]> git.proxmox.com Git - grub2.git/blob - ChangeLog
* grub-core/gmodule.pl.in: Accept newer binutils which output
[grub2.git] / ChangeLog
1 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
2
3 * grub-core/gmodule.pl.in: Accept newer binutils which output
4 empty column rather than 0x0.
5
6 2014-09-21 Michael Chang <mchang@suse.com>
7
8 * grub-core/osdep/unix/config.c: Remove extraneous comma.
9
10 2014-09-21 Peter Jones <pjones@redhat.com>
11
12 * grub-core/loader/arm/linux.c: Initialized initrd_ctx so
13 we don't free a random pointer from the stack.
14 * grub-core/loader/arm64/linux.c: Likewise.
15 * grub-core/loader/i386/linux.c: Likewise.
16 * grub-core/loader/i386/pc/linux.c: Likewise.
17 * grub-core/loader/ia64/efi/linux.c: Likewise.
18 * grub-core/loader/mips/linux.c: Likewise.
19 * grub-core/loader/powerpc/ieee1275/linux.c: Likewise.
20 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
21
22 2014-09-15 Khem Raj <raj.khem@gmail.com>
23
24 * grub-core/kern/emu/hostfs.c: use _DEFAULT_SOURCE in addition to
25 _BSD_SOURCE to avoid warnings under glibc 2.20+.
26
27 2014-09-08 Michael Chang <mchang@suse.com>
28
29 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Fix extent size
30 check; comparing &data->extent against addresses in the region it
31 points to is unpredictable.
32
33 2014-09-07 Colin Watson <cjwatson@ubuntu.com>
34
35 Support grub-emu on x32 (ILP32 but with x86-64 instruction set)
36
37 * configure.ac: Remove -m64 from checks for -mcmodel=large and
38 -mno-red-zone. These are always either unnecessary (x86_64-emu) or
39 already in TARGET_CFLAGS at this point, and they produce incorrect
40 results when building for x32.
41 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Cast
42 pointers to Elf64_Xword via grub_addr_t, in order to work on x32.
43 * include/grub/x86_64/types.h (GRUB_TARGET_SIZEOF_VOID_P,
44 GRUB_TARGET_SIZEOF_LONG): Define to 4 on x32.
45
46 2014-09-07 Colin Watson <cjwatson@ubuntu.com>
47
48 * configure.ac: Remove several unnecessary semicolons.
49
50 2014-08-25 Colin Watson <cjwatson@ubuntu.com>
51
52 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
53 Initialise pend to pacify GCC.
54
55 2014-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
56
57 * util/grub-mkconfig.in: Fix typo (gettext_print instead of
58 gettext_printf).
59
60 2014-08-13 Vladimir Serbinenko <phcoder@gmail.com>
61
62 * grub-core/term/at_keyboard.c: Retry probing keyboard if
63 scancode setup failed.
64
65 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
66
67 * grub-core/kern/disk_common.c: Clump disk size to 1EiB.
68
69 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
70
71 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Add
72 safety to avoid triggerring VirtualBox bug.
73
74 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
75
76 * grub-core/fs/cbfs.c: Don't probe disks of unknow size.
77
78 Fixes hang on virtualbox.
79
80 2014-07-08 Colin Watson <cjwatson@ubuntu.com>
81
82 * util/grub.d/10_hurd.in: Make kernel list progression not fail on
83 kernels whose paths contain regex metacharacters.
84 * util/grub.d/10_kfreebsd.in: Likewise.
85 * util/grub.d/10_linux.in: Likewise.
86 * util/grub.d/20_linux_xen.in: Likewise.
87
88 Reported by: Heimo Stranner.
89
90 2014-06-26 Colin Watson <cjwatson@ubuntu.com>
91
92 * docs/grub-dev.texi (Finding your way around): The build system no
93 longer uses AutoGen directly.
94
95 2014-06-21 Роман Пехов <roman_pekhov>
96
97 * grub-core/commands/loadenv.c (check_blocklists): Fix overlap check.
98
99 2014-06-21 Glenn Washburn <development@efficientek.com>
100
101 * util/grub-install.c: Fix handling of --disk-module.
102
103 2014-06-21 Stephane Rochoy <sheda>
104
105 * grub-core/loader/i386/bsd.c (grub_netbsd_boot): Pass pointer to
106 EFI system table.
107
108 2014-06-21 Stephane Rochoy <sheda>
109
110 * grub-core/commands/efi/lsefisystab.c (grub_cmd_lsefisystab): Show
111 EFI system table physical address.
112
113 2014-06-21 Trevor Woerner <trevor.woerner@linaro.org>
114
115 * util/grub-gen-asciih.c (add_glyph): Fix uninitialised variable.
116
117 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
118
119 * grub-core/commands/verify.c (grub_pubkey_open): Trust procfs.
120
121 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
122
123 * grub-core/commands/verify.c (grub_pubkey_open): Fix memdisk
124 check.
125
126 2014-04-20 Vladimir Serbinenko <phcoder@gmail.com>
127
128 * grub-core/kern/misc.c (__bzero): Don't compile in GRUB_UTIL.
129
130 Reported by: Yves Blusseau <blusseau@zetam.org>.
131
132 2014-04-20 Piotr Krysiuk <piotras@gmail.com>
133
134 * grub-core/lib/i386/relocator.c: Allow loading old kernels by placing
135 GDT in conventional memory.
136
137 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
138
139 * util/grub.d/30_os-prober.in: Tolerate devices with no filesystem
140 UUID. Other parts of grub-mkconfig tolerate these, they were
141 previously allowed here up to commit
142 55e706c918922def17f5012c23cfe88c4c645208, and they can arise in
143 practice when the system has active LVM snapshots.
144 Fixes Ubuntu bug #1287436.
145
146 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
147
148 * grub-core/disk/lvm.c (grub_lvm_detect): Search for
149 "logical_volumes" block a little more accurately.
150
151 2014-04-06 Vladimir Serbinenko <phcoder@gmail.com>
152
153 * grub-core/lib/syslinux_parse.c: Fix timeout quoting.
154
155 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
156
157 * include/grub/libgcc.h: Remove ctzsi2 and ctzdi2. They're no longer
158 pulled from libgcc.
159
160 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
161
162 Replace few instances of memcmp/memcpy in the code that should be
163 grub_memcmp/grub_memcpy.
164
165 2014-04-03 Vladimir Serbinenko <phcoder@gmail.com>
166
167 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Support NVMe
168 device names.
169
170 2014-03-31 Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
171
172 btrfs: fix get_root key comparison failures due to endianness
173
174 * grub-core/fs/btrfs.c (get_root): Convert
175 GRUB_BTRFS_ROOT_VOL_OBJECTID to little-endian.
176
177 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
178
179 Fix partmap, cryptodisk, and abstraction handling in grub-mkconfig.
180
181 Commit 588744d0dc655177d5883bdcb8f72ff5160109ed caused grub-mkconfig
182 no longer to be forgiving of trailing spaces on grub-probe output
183 lines, which among other things means that util/grub.d/10_linux.in
184 no longer detects LVM. To fix this, make grub-probe's output
185 delimiting more consistent. As a bonus, this improves the coverage
186 of the -0 option.
187
188 Fixes Debian bug #735935.
189
190 * grub-core/disk/cryptodisk.c
191 (grub_util_cryptodisk_get_abstraction): Add a user-data argument.
192 * grub-core/disk/diskfilter.c (grub_diskfilter_get_partmap):
193 Likewise.
194 * include/grub/cryptodisk.h (grub_util_cryptodisk_get_abstraction):
195 Update prototype.
196 * include/grub/diskfilter.h (grub_diskfilter_get_partmap): Likewise.
197 * util/grub-install.c (push_partmap_module, push_cryptodisk_module,
198 probe_mods): Adjust for extra user-data arguments.
199 * util/grub-probe.c (do_print, probe_partmap, probe_cryptodisk_uuid,
200 probe_abstraction): Use configured delimiter. Update callers.
201
202 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
203
204 * util/grub-probe,c (options): Make -0 work again (broken by
205 conversion to argp).
206 (main): Simplify logic.
207
208 2014-03-26 Vladimir Serbinenko <phcoder@gmail.com>
209
210 * grub-core/lib/relocator.c: Fix the case when end of leftover is used.
211
212 2014-03-26 Fu Wei <fu.wei@linaro.org>
213
214 * grub-core/loader/arm64/linux.c: Remove redundant "0x".
215
216 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
217
218 * include/grub/i386/openbsd_bootarg.h: Add addr and frequency fields.
219 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Fill addr field.
220
221 Suggested by: Markus Müller.
222
223 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
224
225 * grub-core/kern/i386/pc/mmap.c: Fallback to EISA memory map
226 if E820 failed to return any regions.
227
228 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
229
230 * grub-core/mmap/i386/uppermem.c (lower_hook) [COREBOOT]: Ignore low
231 tables for low memory calculations.
232
233 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
234
235 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi): Limit
236 location to 640K.
237
238 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
239
240 * grub-core/kern/i386/coreboot/mmap.c: Filter out 0xa0000-0x100000
241 region.
242
243 2014-02-20 Vladimir Serbinenko <phcoder@gmail.com>
244
245 * grub-core/disk/ahci.c: Ignore NPORTS field and rely on PI
246 exclusively.
247
248 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
249
250 Add bootpath parser for open firmware.
251
252 It enables net boot even when there is no bootp/dhcp server.
253
254 * grub-core/net/drivers/ieee1275/ofnet.c: Add grub_ieee1275_parse_bootpath
255 and call it at grub_ieee1275_net_config_real.
256 * grub-core/kern/ieee1275/init.c: Add bootpath to
257 grub_ieee1275_net_config.
258 * include/grub/ieee1275/ieee1275.h: Likewise.
259
260
261 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
262
263 Add grub_env_set_net_property function.
264
265 * grub-core/net/bootp.c: Remove set_env_limn_ro.
266 * grub-core/net/net.c: Add grub_env_set_net_property.
267 * include/grub/net.h: Likewise.
268
269 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
270
271 * util/grub-mkrescue.c: Build fix for argp.h with older gcc.
272
273 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
274
275 * util/grub-mkfont.c: Build fix for argp.h with older gcc.
276
277 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
278
279 * grub-core/disk/ahci.c: Increase timeout. Some SSDs take up to
280 7 seconds to recover if last poweroff was bad.
281
282 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
283
284 * grub-core/disk/ahci.c: Properly handle transactions with no
285 transferred data.
286
287 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
288
289 * grub-core/disk/ahci.c: Add safety cleanups.
290
291 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
292
293 * grub-core/disk/ahci.c: Allocate and clean space for all possible 32
294 slots to avoid pointing to uninited area.
295
296 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
297
298 * grub-core/disk/ahci.c: Do not enable I/O decoding and keep
299 enabling busmaster for the end.
300
301 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
302
303 * util/grub-mkfont.c: Downgrade warnings about unhandled features
304 to debug.
305
306 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
307
308 * grub-core/term/at_keyboard.c: Tolerate missing keyboard.
309
310 2014-01-29 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
311
312 * .gitignore: add missing files and .exe variants.
313
314 2014-01-26 Mike Gilbert <floppym@gentoo.org>
315
316 grub-install: support for partitioned partx loop devices.
317
318 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Detect
319 /dev/loopX as being the parent of /dev/loopXpY.
320
321 2014-01-26 Vladimir Serbinenko <phcoder@gmail.com>
322
323 * grub-core/term/serial.c (grub_serial_register): Fix invalid free.
324 Ensure that pointers are inited to NULL and that pointers are not
325 accessed after free.
326
327 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
328
329 * include/grub/crypto.h: Replace __attribute__ ((format (printf)) with
330 __attribute__ ((format (__printf__)) to fix compilation under MinGW-w64.
331 * include/grub/emu/misc.h: ... and here.
332 * include/grub/err.h: ... and here.
333 * util/import_gcry.py: ... and here (in files g10lib.h).
334
335 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
336
337 * util/grub-mkimage.c: Make prefix argument mandatory.
338
339 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
340
341 Fix several translatable strings.
342
343 Suggested by: D. Prévot.
344
345 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
346
347 * util/grub-install.c: List available targets.
348
349 2014-01-23 Colin Watson <cjwatson@ubuntu.com>
350
351 * util/grub-install.c (write_to_disk): Add an info message.
352
353 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
354
355 * Makefile.am: Allow adding extra files to generated Windows ZIP
356 archive by setting GRUB_WINDOWS_EXTRA_DIST.
357
358 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
359
360 * configure.ac: Look for DejaVuSans also in /usr/share/fonts/truetype.
361 Show detected font path in summary.
362
363 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
364
365 * grub-core/net/arp.c (grub_net_arp_send_request): Increase network try
366 interval gradually.
367 * grub-core/net/icmp6.c (grub_net_icmp6_send_request): Likewise.
368 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
369 * grub-core/net/tftp.c (tftp_open): Likewise.
370 * include/grub/net.h (GRUB_NET_INTERVAL_ADDITION): New define.
371
372 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
373
374 * grub-core/net/net.c (receive_packets): Change stop condition to avoid
375 infinite loops.
376
377 In net/net.c there is a while (1) that only exits if there is a stop
378 condition and more then 10 packages or if there is no package received.
379
380 If GRUB is idle and enter in this loop, the only condition to leave is
381 if it doesn't have incoming packages. In a network with heavy traffic
382 this never happens.
383
384 2014-01-19 Colin Watson <cjwatson@ubuntu.com>
385
386 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Ignore
387 EPERM when modifying kern.geom.debugflags. It is only a problem for
388 such things as installing GRUB to the MBR, in which case there'll be
389 an error later anyway, not for opening files during tests.
390
391 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
392
393 * grub-core/Makefile.am: Build grub_emu_init.[ch] from MODULE_FILES
394 instead of MOD_FILES.
395 * grub-core/genemuinit.sh: Simplify stripping of suffix so it works
396 both with and without .exe.
397 * grub-core/genemuinitheader.sh: Same.
398
399 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
400
401 * util/grub-install.c: Fix a typo.
402
403 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
404
405 * grub-core/normal/main.c (read_config_file): Buffer config file.
406 Reduces boot time.
407
408 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
409
410 * acinclude.m4 (grub_CHECK_LINK_DIR): Check that we can also remove
411 symbolic link to directory. It fails in Msys shell on Windows 2003.
412
413 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
414
415 * Makefile.am (default_payload.elf): Add modules
416 multiboot cbmemc linux16 gzio echo help.
417
418 2014-01-18 Mike Gilbert <floppym@gentoo.org>
419
420 * Makefile.util.def: Link grub-ofpathname with zfs libs.
421
422 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
423
424 * grub-core/commands/macbless.c: Rename FILE and DIR to avoid
425 conflicts.
426
427 Reported by: Andrey Borzenkov.
428
429 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
430
431 * include/grub/misc.h: Move macros for compiler features to ...
432 * include/grub/compiler.h: ... new file.
433 * include/grub/list.h: Include <grub/compiler.h> instead of <grub/misc.h>.
434 * grub-core/commands/fileXX.c: Include <grub/misc.h>.
435 * grub-core/efiemu/prepare.c: Include <grub/misc.h>.
436 * grub-core/loader/i386/xen_file.c: Include <grub/misc.h>.
437 * grub-core/loader/i386/xen_fileXX.c: Include <grub/misc.h>.
438 * grub-core/video/capture.c: Include <grub/misc.h>.
439 * include/grub/command.h: Include <grub/misc.h>.
440 * include/grub/dl.h: Include <grub/misc.h>.
441 * include/grub/procfs.h: Include <grub/misc.h>.
442
443 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
444
445 * configure.ac: Add support for BUILD_EXEEXT and use it ...
446 * Makefile.am: ... here.
447 * Makefile.util.def: ... and here.
448 * grub-core/Makefile.am: ... and here.
449
450 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
451
452 * include/grub/osdep/hostfile_windows.h: Use _W64 instead of
453 FILE_OFFSET_BITS to differentiate between native MinGW and Mingw W64.
454
455 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
456
457 * grub-core/term/terminfo.c: Recognize keys F1-F12.
458
459 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
460
461 * configure.ac: Add support for BUILD_LDFLAGS.
462 * Makefile.am: Use BUILD_LDFLAGS for build time programs here ...
463 * grub-core/Makefile.am: ... and here.
464 * INSTALL: Mention BUILD_LDFLAGS.
465
466 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
467
468 * util/grub-mount.c: Extend GCC warning workaround to grub-mount.
469
470 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
471
472 * grub-core/kern/efi/efi.c: Ensure that the result starts with /
473 and has no //.
474
475 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
476
477 * NEWS: Add few missing entries.
478
479 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
480
481 * util/grub.d/00_header.in (make_timeout): Use && rather than test
482 -a.
483 * util/grub.d/10_windows.in: Likewise.
484 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): Use || rather
485 than test -o.
486 * util/grub.d/30_os-prober.in: Use && rather than test -a, and ||
487 rather than test -o.
488
489 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
490
491 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Remove
492 redundant preprocessor conditional.
493
494 2014-01-08 Colin Watson <cjwatson@ubuntu.com>
495
496 * Makefile.util.def (grub-macbless): Change mansection to 8.
497
498 2014-01-07 Leif Lindholm <leif.lindholm@linaro.org>
499
500 * grub-core/loader/arm64/linux.c: correctly set device path end length.
501
502 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
503
504 * util/grub-install.c: Use bootaa64.efi instead of bootaarch64.efi on
505 arm64 to comply with EFI specification. Also use grubaa64.efi for
506 consistency.
507 * util/grub-mkrescue.c: Change to use bootaa64.efi too.
508
509 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
510
511 * include/grub/osdep/hostfile_windows.h: Do not redefine fseeko/ftello
512 on MinGW-64 when compiling for 32 bits.
513
514 2013-12-30 Andrey Borzenkov <arvidjaar@gmail.com>
515
516 * grub-core/Makefile.core.def: strip .eh_frame section for arm64-efi.
517
518 2013-12-30 Vladimir Serbinenko <phcoder@gmail.com>
519
520 * NEWS: Add few missing entries. Correct existing ones.
521
522 2013-12-28 Vladimir Serbinenko <phcoder@gmail.com>
523
524 Don't abort() on unavailable coreboot tables if not running on coreboot.
525
526 2013-12-28 Andrey Borzenkov <arvidjaar@gmail.com>
527
528 * grub-core/kern/emu/misc.c: Remove unused error.h; fixes compilation
529 on mingw.
530
531 2013-12-28 Colin Watson <cjwatson@ubuntu.com>
532
533 * NEWS: The cmosclean command in fact dates back to 1.99. Remove
534 mention of it from 2.02.
535
536 2013-12-27 Vladimir Serbinenko <phcoder@gmail.com>
537
538 * grub-core/kern/arm/cache_armv6.S: Remove .arch directive.
539
540 As these functions are used on pre-ARMv6 CPUs as well we don't want
541 to make assembler assume that architecture is higher than default one.
542
543 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
544
545 * NEWS: First draft of 2.02 entry.
546
547 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
548
549 * INSTALL (Cross-compiling the GRUB): Fix some spelling mistakes.
550 * docs/grub.texi (Getting the source code): Likewise.
551
552 2013-12-25 Andrey Borzenkov <arvidjaar@gmail.com>
553
554 * grub-core/osdep/windows/platform.c (get_platform): Fix EFI
555 detection.
556
557 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
558
559 * configure.ac: Set version to 2.02~beta2.
560
561 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
562
563 * grub-core/disk/efi/efidisk.c (name_devices): Skip Apple ghosts.
564
565 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
566
567 * util/grub-probe.c: Improve help message and simplify list handling.
568
569 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
570
571 Fix buffer overflow in grub_efi_print_device_path.
572
573 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
574
575 Show SATA device path.
576
577 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
578
579 Revert grub-file usage in grub-mkconfig.
580
581 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
582
583 Make newly-created files other than grub.cfg world-readable.
584
585 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
586
587 * util/grub.d/00_header.in: Improve compatibility with old config.
588
589 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
590
591 Make rijndael.c respect aliasing rules.
592
593 Trivial backport of dfb4673da8ee52d95e0a62c9f49ca8599943f22e.
594
595 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
596
597 Make grub_util_device_is_mapped_stat available in grub-emu core.
598
599 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
600
601 Add -Qn to TARGET_CFLAGS if it's supported.
602 Fixes compilation on cygwin.
603
604 Reported by: Andrey Borzenkov.
605 Suggested by: Andrey Borzenkov.
606
607 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
608
609 Save TARGET_CC version in modinfo.sh.
610
611 Suggested by: Andrey Borzenkov.
612
613 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
614
615 Make grub_util_devmapper_part_to_disk and grub_util_find_partition_start
616 follow the same algorithm to avoid method mismatch. Don't assume
617 DMRAID- UUID to mean full disk but instead check that mapping is linear.
618
619 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
620
621 Declare GRUB_EFI_VENDOR_APPLE_GUID.
622
623 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
624
625 Dump type and vendor specific data when printing device path.
626
627 2013-12-23 Colin Watson <cjwatson@debian.org>
628
629 Update some documentation to refer to Git rather than Bazaar.
630
631 * docs/grub.texi (Obtaining and Building GRUB): Refer to Git rather
632 than Bazaar.
633 * po/README: Likewise. Fix spelling mistake.
634
635 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
636
637 Don't distribute config.h.
638
639 * Makefile.am (platform_HEADERS): Move to ...
640 (nodist_platform_HEADERS): ... here. Fixes gettext_strings_test
641 failure when building from a distributed tarball.
642
643 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
644
645 * configure.ac: Fix spelling.
646 * grub-core/commands/parttool.c: Fix grammar.
647 * grub-core/disk/ldm.c: Use consistent capitalisation for "LDM
648 Embedding Partition".
649
650 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
651
652 ARM64 support for grub-mkrescue.
653
654 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
655
656 Install modinfo.sh to keep build information around.
657
658 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
659
660 * grub-core/modinfo.sh.in: Add build config information.
661
662 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
663
664 ARM64 grub-file and grub-mkconfig support.
665
666 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
667
668 Remove leftover options defines.
669
670 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
671
672 * include/grub/arm64/linux.h: Remove leftovers. Add missing prefixes.
673
674 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
675
676 * grub-core/loader/arm64/linux.c: Add missing bracket.
677
678 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
679
680 Add arm64-efi recognition to grub-file.
681
682 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
683
684 Fix ia64-efi recognition in grub-file.
685
686 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
687
688 Recognize raspberry pi kernel in grub-file.
689
690 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
691
692 Enable cache on ARM U-Boot port.
693
694 Without it the port is reidiculously slow.
695
696 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
697
698 Fix ARM cache maintainance.
699
700 More code was converted from ASM to C for easier handling.
701
702 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
703
704 * grub-core/kern/arm/cache.c (grub_arm_disable_caches_mmu): Use v6
705 algorithm on v5.
706
707 Suggested by: Leif Lindholm.
708
709 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
710
711 * util/grub-mkconfig.in: Fix Xen platform conditions.
712
713 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
714
715 * util/grub-mkrescue.c: Split single help message string in several
716 strings used in previous shell version.
717
718 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
719
720 Add arm64 Linux loader.
721
722 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
723
724 Add grub_fdt_create_empty_tree() and grub_fdt_set_prop64().
725
726 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
727
728 Add module loading and parsing boot time checkpoints.
729
730 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
731
732 * grub-core/loader/arm/linux.c: Pass arguments through on ATAG
733 platforms.
734
735 2013-12-22 Lars Wendler <polynomial-c@gentoo.org>
736
737 * util/grub-mkconfig.in: Skip non-executable files.
738
739 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
740
741 Workaround buggy timer in raspberry pie by using our own timer
742 implementation.
743
744 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
745
746 * include/grub/arm/uboot/kernel.h (GRUB_KERNEL_MACHINE_HEAP_SIZE):
747 Increase to 16 MiB to allow loading the whole memdisk.
748
749 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
750
751 Fix ARM Linux Loader on non-FDT platforms.
752
753 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
754
755 * configure.ac: Choose link format based on host_os on emu.
756
757 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
758
759 * grub-core/osdep/unix/getroot.c: Non-unix build fix.
760
761 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
762
763 * grub-core/kern/emu/main.c: Build fix for emu.
764
765 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
766
767 Build fixes for argp.h with older gcc.
768
769 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
770
771 * util/grub-glue-efi.c: Use "universal binary" rather "fat binary"
772 in strings.
773
774 Suggested by: David Prévot.
775
776 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
777
778 * include/grub/crypto.h (grub_crypto_xor): Fix cast-align warning.
779
780 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
781
782 Enable -Wformat=2 if it's supported.
783
784 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
785
786 * configure.ac: Add -Wmissing-include-dirs -Wmissing-prototypes
787 -Wmissing-declarations if supported.
788
789 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
790
791 * grub-core/commands/macbless.c (grub_mac_bless_inode): Pass inode as
792 u32 as both HFS and HFS+ have 32-bit inodes.
793
794 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
795
796 * include/grub/misc.h (grub_strtol): Fix overflow.
797
798 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
799
800 * include/grub/term.h (grub_unicode_estimate_width): Use grub_size_t
801 as return type in both conditionals.
802
803 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
804
805 * include/grub/video.h (grub_video_rgba_color_rgb): Fix prototype
806 to use uint8_t for color.
807
808 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
809
810 * util/misc.c (grub_util_get_image_size): Check for overflow.
811
812 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
813
814 * grub-core/disk/raid6_recover.c (grub_raid_block_mulx): Use grub_size_t
815 for size.
816
817 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
818
819 * grub-core/disk/lvm.c: Use grub_size_t for sizes and grub_ssize_t
820 for pointer difference.
821
822 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
823
824 * util/import_gcry.py: Skip sample keys.
825
826 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
827
828 * util/misc.c (grub_qsort_strcmp): Don't discard const attribute.
829
830 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
831
832 * configure.ac: Remove duplicate warning arguments.
833
834 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
835
836 Add missing static qualifiers.
837
838 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
839
840 Add missing includes.
841
842 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
843
844 Inline printf templates when possible to enable format checking.
845
846 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
847
848 * include/grub/crypto.h: Don't discard const attribute.
849
850 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
851
852 * grub-core/net/bootp.c (grub_cmd_dhcpopt): Use snprintf where it
853 was intended.
854
855 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
856
857 * grub-core/lib/crypto.c: Don't discard const attribute.
858
859 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
860
861 * grub-core/lib/disk.c: Fix potential overflow.
862
863 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
864
865 * grub-core/lib/arg.c: Don't discard const attribute.
866
867 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
868
869 * grub-core/kern/dl.c: Don't discard const attribute.
870
871 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
872
873 * grub-core/kern/disk.c: Fix potential overflow.
874
875 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
876
877 * conf/Makefile.common: Don't include non-existing directory
878 grub-core/lib/libgcrypt-grub/include.
879
880 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
881
882 Clarify several translatable messages.
883
884 2013-12-21 David Prévot <david@tilapin.org>
885
886 Correct some translatable strings.
887
888 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
889
890 * util/grub-mkrescue.c: Rephrase mkrescue description.
891
892 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
893 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
894
895 Clarify several translatable messages.
896
897 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
898
899 Be more verbose about some configure failures.
900
901 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
902
903 Fix various build problems on GNU/Hurd.
904
905 * grub-core/osdep/unix/getroot.c (strip_extra_slashes): Move inside
906 !defined (__GNU__).
907 (xgetcwd): Likewise.
908 * include/grub/emu/hostdisk.h (grub_util_hurd_get_disk_info)
909 [__GNU__]: Add prototype.
910 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Format
911 long int using %ld rather than %d.
912
913 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
914
915 * util/grub-install.c: Inform user about install platform.
916
917 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
918
919 * configure.ac: Set version to 2.02~beta1.
920
921 2013-12-18 Allen Pais <allen.pais@oracle.com>
922 2013-12-18 Bob Picco <bob.picco@oracle.com>
923
924 * grub-core/boot/sparc64/ieee1275/boot.S: Fix order of fields.
925
926 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
927
928 Make grub_zlib_decompress handle incomplete chunks.
929
930 Fixes squash4.
931
932 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
933
934 * grub-core/Makefile.am: Don't attempt to export grub_bios_interrupt
935 on i386-multiboot.
936
937 2013-12-18 Aleš Nesrsta <starous@volny.cz>
938
939 * grub-core/disk/usbms.c: Retry on unknown errors.
940 Reuse the same tag on retries.
941
942 2013-12-18 Aleš Nesrsta <starous@volny.cz>
943
944 * grub-core/bus/usb/ehci.c: Fix handling of newborn transfers.
945
946 Avoid confusing them with already completed transfers.
947
948 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
949
950 Remove xen VFB.
951
952 Due to XEN bug it prevents Linux boot. Remove it at least, until
953 workaround is found.
954
955 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
956
957 * po/exclude.pot: Add 2 missing excludes.
958
959 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
960
961 Add missing license section in macbless.mod and macho.mod.
962
963 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
964
965 Allow compilation without thumb-interwork as long as no thumb is
966 involved or only thumb2 is used.
967
968 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
969
970 Use -Wl,--no-relax rather than -mno-relax for uniformity.
971
972 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
973
974 * INSTALL: Update comment as to why sparc64 clang isn't usable.
975
976 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
977
978 Add __attribute__ ((sysv_abi)) only if it's really needed.
979
980 Some compilers don't support it.
981
982 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
983
984 * grub-core/lib/syslinux_parse.c: Declare timeout unsigned.
985
986 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
987
988 Remove -Wold-style-definition.
989
990 Not very useful and interaction of it with regexp depends on GCC
991 version.
992
993 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
994
995 Make grub_util_get_windows_path_real static.
996
997 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
998
999 * grub-core/commands/fileXX.c: Silence cast-align.
1000 * grub-core/loader/i386/xen_fileXX.c: Likewise.
1001
1002 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1003
1004 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Use explicit cast
1005 rather than LL suffix.
1006
1007 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1008
1009 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): Remove leftover.
1010
1011 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1012
1013 * grub-core/loader/arm/linux.c: Use common initrd functions.
1014
1015 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1016
1017 Decrease number of strings to translate.
1018
1019 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1020
1021 * grub-core/kern/arm/dl.c: Remove unnecessarry execution mode check.
1022
1023 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1024
1025 Mark strings for translation and add remaining ones to exclude list.
1026
1027 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1028
1029 * util/grub-file.c (main): Fix sizeof usage.
1030
1031 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1032
1033 Silence spurious warning.
1034
1035 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1036
1037 Remove check_nt_hiberfil as it's been superseeded by file command.
1038
1039 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1040
1041 * docs/osdetect.cfg: Add isolinux config to detected OSes.
1042
1043 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1044
1045 Implement syslinux parser.
1046
1047 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1048
1049 * grub-core/commands/legacycfg.c: Use 32-bit Linux protocol on non-BIOS.
1050
1051 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1052
1053 Support cpuid --pae.
1054
1055 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1056
1057 Use AT keyboard on Yeeloong 3A.
1058
1059 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1060
1061 Add Yeeloong 3A reboot and halt.
1062
1063 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1064
1065 Add Radeon Yeeloong 3A support.
1066
1067 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1068
1069 Add bonito 3A support.
1070
1071 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1072
1073 * grub-core/loader/machoXX.c: Fix compilation on non-i386.
1074
1075 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1076
1077 * grub-core/loader/i386/xen_fileXX.c: Silence cast-align.
1078
1079 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1080
1081 * grub-core/loader/macho.c: Fix compilation on non-i386.
1082
1083 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1084
1085 Add missing format_arg attribute to check that printf with translated
1086 messages has proper arguments.
1087
1088 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1089
1090 Use grub_xasprintf to format translated error messages containing
1091 64-bit quantity.
1092
1093 2013-12-17 Jon McCune <jonmccune@google.com>
1094
1095 Fix double-free introduced by commit 33d02a42d64cf06cada1c389
1096
1097 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1098
1099 Unify message for unsupported relocation.
1100
1101 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1102
1103 Mark miscompile error for translation.
1104
1105 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1106
1107 Use %I64 and not %ll when using OS printf if compiling for windows.
1108
1109 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1110
1111 Update Mac code to match new register_efi prototype.
1112
1113 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1114
1115 Implement better integration with Mac firmware.
1116
1117 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1118
1119 * grub-core/loader/multiboot_mbi2.c: Implement special value for
1120 load_addr.
1121
1122 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1123
1124 Include serial module in default_payload.elf.
1125
1126 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1127
1128 Add explicit thumb interwork bx in asm files.
1129
1130 Shouldn't matter for armv >= 5 but let's be safe.
1131
1132 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1133
1134 Implement Truecrypt ISO loader.
1135
1136 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1137
1138 * grub-core/lib/arg.c: Ensure at least a single space between commands.
1139
1140 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1141
1142 Implement grub_file tool and use it to implement generating of config
1143 in separate root.
1144
1145 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1146
1147 Change to v1 xen grants.
1148
1149 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1150
1151 * grub-core/lib/i386/xen/relocator.S: Fix hypercall ABI violation.
1152
1153 GRUB relied on %ebx being preserved across hypercall which isn't true.
1154
1155 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1156
1157 * grub-core/lib/x86_64/xen/relocator.S: Fix hypercall ABI violation.
1158
1159 GRUB relied on %rdi being preserved across hypercall which isn't true.
1160
1161 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1162
1163 Implement XEN VFB support.
1164
1165 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1166
1167 Remove grub_bios_interrupt on coreboot.
1168
1169 It's not used currently and cannot be used safely currently.
1170
1171 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1172
1173 Update exclude.pot and mark few strings for translation.
1174
1175 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1176
1177 * util/grub-mkrescue.c: Fix incorrect file usage in fallback code.
1178
1179 Reported by: Jon McCune
1180
1181 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1182
1183 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1184 Add verbose information which firmware directories were tried.
1185
1186 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1187
1188 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect_all): New
1189 function to optionally redirect all three standard descriptors.
1190 Redefine grub_util_exec, grub_util_exec_redirect and
1191 grub_util_exec_redirect_null to use it.
1192 * include/grub/emu/exec.h: Define it.
1193 * include/grub/osdep/exec_unix.h: Delete, it is unused.
1194 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1195 Use grub_util_exec_redirect_all to redirect error to NULL.
1196
1197 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1198
1199 * grub-core/tests/sleep_test.c: Silence spurious warning.
1200
1201 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1202
1203 Make grub_xen_hypercall on i386 cdecl rather than stdcall to avoid
1204 linker trying to "fixup" the code.
1205
1206 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1207
1208 * grub-core/kern/x86_64/xen/startup.S: Align stack.
1209
1210 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1211
1212 Add support for converting PE+ to Elf64.
1213
1214 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1215
1216 * grub-core/commands/minicmd.c (grub_mini_cmd_dump): Handle LLP case.
1217
1218 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1219
1220 Remove practice of assigning random const pointers to device id.
1221
1222 This is not required as cache code already checks driver id as well.
1223
1224 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1225
1226 * include/grub/x86_64/types.h: Define sizeof (long) as 4 when compiling
1227 with mingw.
1228
1229 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1230
1231 * include/grub/efi/api.h: Don't use call wrappers when compiled with
1232 mingw or cygwin as API already matches.
1233
1234 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1235
1236 * grub-core/lib/posix_wrap/errno.h: Undefine errno before redefining.
1237
1238 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1239
1240 * include/grub/efi/api.h: Define (u)intn_t based on pointer size and
1241 not on long.
1242
1243 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1244
1245 Handle X86_64_PC64 relocation.
1246
1247 Those are generated by some cygwin compilers.
1248
1249 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1250
1251 Determine the need for mingw-related stubs at compile time rather than
1252 using not very significant $target_os.
1253
1254 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1255
1256 * grub-core/genmod.sh.in: Strip before converting to ELF as strip
1257 may not work with ELF.
1258
1259 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1260
1261 Use unix functions for temporary files and special files on cygwin.
1262
1263 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1264
1265 Define functions explicitly rather than using --defsym in tests
1266 whenever possible. Respect locality in remaining cases.
1267
1268 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1269
1270 * grub-core/genmoddep.awk: Remove explicit getline < /dev/stdin.
1271
1272 2013-12-15 Andrey Borzenkov <arvidjaar@gmail.com>
1273
1274 * grub-core/osdep/windows/platform.c (grub_install_register_efi): Handle
1275 unlikely errors when getting EFI variables and make exhaustive search
1276 for all BootNNNN variables to find matching one.
1277
1278 2013-12-15 Ian Campbell <ijc@hellion.org.uk>
1279
1280 * grub-core/kern/uboot/init.c: Fix units of uboot timer.
1281
1282 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1283
1284 New functional test for sleep function.
1285
1286 This test allows to check sleep without qemu. Keep qemu version as
1287 well as functional test won't notice if all clocks are going too fast
1288 or too slow.
1289
1290 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1291
1292 Add explicit sysv_abi on amd64 asm routines.
1293
1294 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1295
1296 * grub-core/commands/efi/lsefisystab.c: Use %lld to show
1297 num_table_entries.
1298
1299 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1300
1301 * include/grub/test.h: Use gnu_printf rather than printf on GRUB
1302 functions.
1303
1304 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1305
1306 * grub-core/loader/i386/linux.c: Use grub_addr_t rather than long when
1307 appropriate.
1308
1309 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1310
1311 * grub-core/loader/i386/linux.c: Use %p rather than %lx for pointers.
1312
1313 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1314
1315 * grub-core/kern/elfXX.c: Use grub_addr_t rather than long when
1316 appropriate.
1317
1318 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1319
1320 * grub-core/disk/loopback.c: Use sequential IDs rather than pointer.
1321
1322 In case of quick removal of loopback and adding another one it may
1323 get same ID, confusing the cache system.
1324
1325 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1326
1327 * grub-core/commands/acpi.c: Use grub_addr_t rather than long when
1328 appropriate.
1329
1330 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1331
1332 * grub-core/kern/i386/coreboot/cbtable.c: Use char * arithmetic rather
1333 than converting to long.
1334
1335 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1336
1337 * grub-core/disk/cryptodisk.c: Rename "n" to "last_cryptodisk_id".
1338
1339 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1340
1341 * util/grub-mkimagexx.c (relocate_addresses): Display offset rather
1342 than almost useless pointer.
1343
1344 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1345
1346 Add gcc_struct to all packed structures when compiling with mingw.
1347
1348 Just "packed" doesn't always pack the way we expect.
1349
1350 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1351
1352 * include/grub/i386/coreboot/lbio.h: Add missing attribute (packed).
1353
1354 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1355
1356 * util/grub-pe2elf.c: Fix handling of .bss.
1357
1358 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1359
1360 Implement windows flavour of EFI install routines.
1361
1362 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1363
1364 * conf/Makefile.extra-dist: Adjust path to conf/i386-cygwin-img-ld.sc.
1365
1366 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1367
1368 Change grub_install_register_efi interface to pass GRUB device.
1369
1370 This allows grub_install_register_efi to request partition info
1371 directly.
1372
1373 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1374
1375 Workaround cygwin bug when using \\?\Volume{GUID} syntax.
1376
1377 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1378
1379 Do not use TCHAR string functions as they are not available on cygwin.
1380
1381 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1382
1383 Workaround windows bug when querying EFI system partition parameters.
1384
1385 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1386
1387 * grub-core/kern/i386/qemu/init.c (resource): Decrease struct size
1388 by using bitfields.
1389
1390 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1391
1392 * grub-core/boot/i386/qemu/boot.S: Add missing EXT_C.
1393
1394 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1395
1396 Make i386-* other than i386-pc compileable under cygwin.
1397
1398 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1399
1400 Fix definition of grub_efi_hard_drive_device_path. Take care that
1401 existing code would work even if by some reason bogus definition is
1402 used by EFI implementations.
1403
1404 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1405
1406 * grub-core/osdep/windows/hostdisk.c: Fix cygwin compilation.
1407
1408 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1409
1410 * grub-core/osdep/windows/blocklist.c: Add missing cast in printf
1411 invocation.
1412
1413 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1414
1415 * util/config.c: Remove trailing newline from distributor in simple
1416 parsing.
1417
1418 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1419
1420 * include/grub/efi/api.h: Rename protocol and interface to avoid
1421 conflict.
1422
1423 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1424
1425 * .gitignore: add .exe variants. add missing files. remove few outdated
1426 entries.
1427
1428 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1429
1430 * grub-core/osdep/exec.c: Use unix version on cygwin.
1431
1432 2013-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1433
1434 Implement multiboot2 EFI BS specification.
1435
1436 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1437
1438 * grub-core/normal/charset.c: Fix premature line wrap and crash.
1439 Crash happened only in some cases like a string starting at the
1440 half of the screen of same length.
1441
1442 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1443
1444 * include/grub/efiemu/efiemu.h: Sync configuration table declaration
1445 with EFI counterpart.
1446
1447 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1448
1449 Propagate the EFI commits to x86-efi specific parts.
1450
1451 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1452
1453 * grub-core/commands/efi/lssal.c: Fix terminating condition.
1454
1455 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1456
1457 Introduce grub_efi_packed_guid and use it where alignment is not
1458 guaranteed.
1459
1460 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1461
1462 * include/grub/efi/api.h (grub_efi_device_path): Define length as
1463 unaligned u16 rather than u8[2].
1464
1465 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1466
1467 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Add checks
1468 for relocation range.
1469
1470 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1471
1472 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Handle
1473 non-function pcrel21b relocation. It happens with .text.unlikely
1474 section.
1475
1476 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1477
1478 * make MAX_USABLE_ADDRESS platform-specific
1479 * grub-core/kern/efi/mm.c: add Vladimir's new BYTES_TO_PAGES_DOWN macro.
1480
1481 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1482
1483 * grub-core/lib/fdt.c: change memcpy => grub_memcpy
1484
1485 2013-12-09 Jon McCune <jonmccune@google.com>
1486
1487 * Add --no-rs-codes flag to optionally disable reed-solomon codes
1488 in grub-install and grub-bios-setup for x86 BIOS targets.
1489
1490 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1491
1492 Add missing compile and link options for sparc64-emu.
1493
1494 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1495
1496 Implement sparc64 trampolines (needed for sparc64-emu).
1497
1498 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1499
1500 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Check
1501 range of R_SPARC_HI22.
1502 Implement R_SPARC_LM22.
1503
1504 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1505
1506 * grub-core/kern/powerpc/dl_helper.c (grub_arch_dl_get_tramp_got_size):
1507 Do not explicitly check for symbol table as it's already checked in
1508 platform-independent layer.
1509
1510 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1511
1512 * grub-core/kern/emu/cache.c [__ia64__]: Use our cache cleaning routine
1513 on ia64 as __clear_cache is a dummy on ia64.
1514
1515 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1516
1517 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
1518 Do not explicitly check for symbol table as it's already checked in
1519 platform-independent layer.
1520
1521 2013-12-09 Colin Watson <cjwatson@ubuntu.com>
1522
1523 * util/grub-mkconfig.in: Add missing newline to output.
1524
1525 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1526
1527 * grub-core/kern/ia64/efi/init.c (grub_arch_sync_caches): Move to ...
1528 * grub-core/kern/ia64/cache.c (grub_arch_sync_caches): ... here.
1529
1530 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1531
1532 * grub-core/kern/emu/main.c: Silence missing prototypes to allow emu
1533 compilation with GCC <= 4.2.
1534 * grub-core/kern/emu/argp_common.c: Likewise.
1535
1536 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1537
1538 * include/grub/kernel.h [__sparc__]: Restrict sparc64-ieee1275 to
1539 right platform rather than leaking to sparc64-emu.
1540
1541 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1542
1543 * grub-core/osdep/windows/emuconsole.c: Remove unsigned comparison >= 0.
1544 But ensure that the variables in question are indeed unsigned.
1545
1546 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1547
1548 * grub-core/kern/emu/lite.c: Add missing include of ../ia64/dl_helper.c.
1549
1550 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1551
1552 Remove grub_memalign on emu.
1553
1554 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1555
1556 * grub-core/kern/ia64/efi/init.c: Fix alignment code so it doesn't
1557 truncate incomplete lines but instead flushes them.
1558
1559 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1560
1561 Move OS-dependent mprotect for module loading to grub-core/osdep/*/dl.c
1562 and implement windows variant.
1563
1564 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1565
1566 Fix mips-emu compilation.
1567
1568 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1569
1570 * configure.ac: Check for freetype library usability.
1571
1572 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1573
1574 Make arm-emu work.
1575
1576 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1577
1578 * util/grub-mkfont.c: Replace stpcpy with grub_stpcpy.
1579
1580 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1581
1582 * docs/grub.texi (Environment): Update color_normal and color_highlight
1583 defaults (light-gray instead of white).
1584
1585 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1586
1587 * grub-core/normal/main.c (INIT): Set default color to light-gray
1588 to match GRUB_TERM_DEFAULT_NORMAL_COLOR (i.e. rescue mode), Linux
1589 and apparently BIOS defaults.
1590
1591 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1592
1593 Transform -C option to grub-mkstandalone to --core-compress available
1594 in all grub-install flavours.
1595
1596 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1597
1598 Merge GRUBFS and GRUB_FS variables.
1599
1600 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1601
1602 Revert commit 69ca97c820, it caused failures when using OS device name
1603 in grub-install. Instead just strip off parenthesis in grub-install
1604 if (hdX) was passed.
1605
1606 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1607
1608 * util/grub-install.c (push_partmap_module): Add helper to convert
1609 partmap names to module names and use it in probe_mods(). Fixes
1610 failure to find partmap modules in diskfilter case.
1611
1612 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1613
1614 * configure.ac: Make unifont mandatory on coreboot.
1615
1616 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1617
1618 * configure.ac: Skip unifont 6.3 pcf and bdf.
1619
1620 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1621
1622 * Makefile.am: Remove partial font files if generation failed.
1623
1624 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1625
1626 * util/misc.c (grub_qsort_strcmp): Add qsort helper function to sort
1627 strings.
1628 * include/grub/util/misc.h: Define it ...
1629 * util/grub-install.c (device_map_check_duplicates): ... and use it.
1630
1631 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1632
1633 * util/grub.d/30_os-prober.in: Fix use of grub-probe instead of
1634 ${grub_probe}.
1635
1636 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1637
1638 Don't add -mlong-calls when compiling with clang.
1639
1640 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1641
1642 * configure.ac: Fix a typo.
1643
1644 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1645
1646 Revamp relocation handling.
1647
1648 Move more code to common dl.c. Add missing veneers for arm and arm64.
1649 Decreases kernel size by 70 bytes on i386-pc (40-50 compressed)
1650
1651 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1652
1653 * util/grub-mkimagexx.c: Fix reloc section generation for ia64.
1654
1655 2013-12-05 Mike Gilbert <floppym@gentoo.org>
1656
1657 * INSTALL: Raise minimum python version to 2.6.
1658 * gentpl.py: Use python3-style print function.
1659
1660 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1661
1662 * util/grub-install.c: Mention Boot* variable.
1663
1664 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1665
1666 * grub-core/osdep/linux/hostdisk.c
1667 (grub_util_find_partition_start_os): Initialise start to avoid
1668 spurious compiler warning.
1669
1670 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1671
1672 On Linux, read partition start offsets from sysfs if possible, to
1673 cope with block device drivers that don't implement HDIO_GETGEO.
1674 Fixes Ubuntu bug #1237519.
1675
1676 * grub-core/osdep/linux/hostdisk.c (sysfs_partition_path): New
1677 function.
1678 (sysfs_partition_start): Likewise.
1679 (grub_util_find_partition_start_os): Try sysfs_partition_start
1680 before HDIO_GETGEO.
1681
1682 2013-12-05 Leif Lindholm <leif.lindholm@linaro.org>
1683
1684 * grub-core/kern/fdt.c: Update struct size when adding node.
1685
1686 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1687
1688 Handle unaligned .bss on sparc64.
1689
1690 Current code improperly assumes that both __bss_start and _end are
1691 aligned to 8-bytes. Eliminating this assumption and explicitly align
1692 modules.
1693
1694 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1695
1696 * grub-core/boot/sparc64/ieee1275/boot.S [CDBOOT]: Move scratchpad
1697 so it doesn't land in the middle of loaded image.
1698
1699 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1700
1701 * configure.ac: Move all warning options that may be absent in
1702 gcc >= 3.1 to optional.
1703
1704 Note: while this allows to compile with older GCC, official requirements
1705 remain the same and no support for older GCC.
1706
1707 2013-12-04 Colin Watson <cjwatson@ubuntu.com>
1708
1709 Copying the themes directory in grub-shell isn't
1710 parallel-test-friendly and breaks on the second test when the source
1711 directory is read-only (as in "make distcheck"). Instead, add a
1712 hidden --themes-directory option to grub-mkrescue et al, and use it
1713 in grub-shell.
1714
1715 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1716
1717 * conf/Makefile.common (CFLAGS_GNULIB): Remove -Wno-old-style-definition
1718 as it's no longer necessarry.
1719
1720 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1721
1722 * configure.ac: Allow compilation with older GCC for ARM.
1723
1724 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1725
1726 * configure.ac: Add -no-integrated-as if {addme|ame} isn't supported.
1727 * INSTALL: Note that GRUBwas successfully compiled with clang 3.2 for
1728 ppc.
1729
1730 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1731
1732 * grub-core/kern/emu/main.c: Ignore missing prototype for main.
1733
1734 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1735
1736 Pass font config to config.h and not by TARGET_CFLAGS as adding
1737 arguments doesn't work if TARGET_CFLAGS is specified on command
1738 line.
1739
1740 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1741
1742 * configure.ac: Add -Wvla if compiler supports it.
1743
1744 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1745
1746 * grub-core/osdep/windows/emuconsole.c (grub_console_putchar):
1747 Remove variable length arrays.
1748 * grub-core/term/efi/console.c (grub_console_putchar): Likewise.
1749
1750 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1751
1752 * grub-core/kern/i386/qemu/init.c: Remove variable length arrays.
1753
1754 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1755
1756 * include/grub/types.h: Declare all byteswaps as inline functions
1757 except compile-time ones.
1758
1759 Solves variable shadowing in constructions like
1760 cpu_to_le (le_to_cpu(x) + 1).
1761
1762 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1763
1764 * grub-core/kern/efi/efi.c: Remove variable length arrays.
1765
1766 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1767
1768 * grub-core/kern/uboot/init.c (uboot_timer_ms): Fix overflow after 71
1769 minutes.
1770
1771 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1772
1773 * grub-core/disk/ieee1275/ofdisk.c: Remove variable length arrays.
1774 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
1775
1776 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
1777
1778 * grub-core/Makefile.core.def (setjmp): Distribute
1779 lib/arm64/setjmp.S.
1780
1781 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
1782
1783 Add a new timeout_style environment variable and a corresponding
1784 GRUB_TIMEOUT_STYLE configuration key for grub-mkconfig. This
1785 controls hidden-timeout handling more simply than the previous
1786 arrangements, and pressing any hotkeys associated with menu entries
1787 during the hidden timeout will now boot the corresponding menu entry
1788 immediately.
1789
1790 GRUB_HIDDEN_TIMEOUT=<non-empty> + GRUB_TIMEOUT=<non-zero> now
1791 generates a warning, and if it shows the menu it will do so as if
1792 the second timeout were not present. Other combinations are
1793 translated into reasonable equivalents.
1794
1795 Based loosely on work by Franz Hsieh. Fixes Ubuntu bug #1178618.
1796
1797 2013-12-02 Vladimir Serbinenko <phcoder@gmail.com>
1798
1799 * util/config.c: Add missing pointer adjustment.
1800 Reported by: qwertial
1801
1802 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1803
1804 * grub-core/kern/arm64/dl_helper.c: Include grub/arm64/reloc.h
1805 directly, not via `cpu' link, to fix libgrub.pp generation.
1806
1807 2013-11-30 Leif Lindholm <leif.lindholm@linaro.org>
1808
1809 New port arm64-efi.
1810
1811 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1812
1813 * docs/grub.texi (sleep): Document exit codes.
1814
1815 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1816
1817 Ensure that -mno-unaligned-access or some equivalent option is used.
1818
1819 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1820
1821 * grub-core/lib/libgcrypt/mpi/longlong.h: Fix compilation error with
1822 -march=armv3.
1823
1824 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1825
1826 Remove leftover GRUB_IA64_DL_TRAMP_SIZE.
1827
1828 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
1829
1830 * docs/grub-dev.texi (Font Metrics): Exclude @image command from DVI
1831 builds, since we don't have an EPS version of font_char_metrics.png.
1832 Add leading dot to image extension per the Texinfo documentation.
1833
1834 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
1835
1836 * util/grub-gen-asciih.c: Include FT_SYNTHESIS_H rather than
1837 <freetype/ftsynth.h>, fixing build with FreeType 2.5.1.
1838 * util/grub-gen-widthspec.c: Likewise.
1839 * util/grub-mkfont.c: Likewise.
1840
1841 2013-11-29 Andrey Borzenkov <arvidjaar@gmail.com>
1842
1843 * util/grub-setup.c (main): Move parsing of (hdX) syntax to ...
1844 * util/setup.c (SETUP): ... here. Fixes regression: grub-install
1845 failed to install on (hdX).
1846 * util/grub-setup.c (get_device_name): Remove, not needed after
1847 above change.
1848
1849 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1850
1851 * grub-core/kern/emu/hostfs.c (is_dir): Remove variable length arrays.
1852
1853 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1854
1855 * util/grub-fstest.c: Remove variable length arrays.
1856
1857 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1858
1859 * grub-core/osdep/linux/ofpath.c: Check return value of read.
1860
1861 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1862
1863 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
1864 computing crc32 rather than handling with md fundtions directly.
1865
1866 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1867
1868 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
1869 checking fwstart.img rather than md fundtions directly.
1870
1871 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1872
1873 * util/grub-mkrescue.c (main): Check that fread succeeded.
1874
1875 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1876
1877 * conf/Makefile.common: Remove -mexplicit-relocs and
1878 -DUSE_ASCII_FALLBACK on yeeloong.
1879
1880 -DUSE_ASCII_FALLBACK is already added by font snippets.
1881 -mexplicit-relocs isn't needed is compiler/assemblera are
1882 configured properly.
1883 If they're not we shouldn't attempt to fix it by ourselves.
1884 Binary compare between before and after shows no difference.
1885
1886 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1887
1888 * grub-core/Makefile.core.def: Remove libgnulib.a and use its
1889 sources in dependencies directly.
1890
1891 This was the only instance of "library" in core config. A bug was
1892 reported that -fno-stack-protector wasn't passed to it. Instead of
1893 figuring out why it failed just remove this construction used
1894 needlessly.
1895
1896 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1897
1898 * grub-core/osdep/unix/password.c (grub_password_get): Check that
1899 fgets succeeded.
1900
1901 2013-11-27 Francesco Lavra <francescolavra.fl@gmail.com>
1902
1903 * docs/grub.texi (ls): Fix command description in case of a device name
1904 passed as argument.
1905
1906 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1907
1908 Eliminate variable length arrays in grub_vsnprintf_real.
1909
1910 A bit tricky because this function has to continue to work without
1911 heap for short strings. Fixing prealloc to 32 arguments is reasonable
1912 but make all stack references use 32-bit offset rather than 8-bit one.
1913 So split va_args preparsing to separate function and put the prealloc
1914 into the caller.
1915
1916 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1917
1918 Introduce grub_util_file_sync and use it instead of fsync(fileno(f)).
1919 Fixes build for windows.
1920
1921 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1922
1923 * gentpl.py: Don't generate platform-dependent conditionals for
1924 platform-independent targets.
1925
1926 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
1927
1928 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect): Remove
1929 references to mdadm from otherwise generic code.
1930 (grub_util_exec_pipe): Likewise.
1931 (grub_util_exec_pipe_stderr): Likewise.
1932 * grub-core/osdep/unix/getroot.c (grub_util_pull_lvm_by_command):
1933 This function calls vgs, not mdadm; adjust variable names
1934 accordingly.
1935
1936 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
1937
1938 Generate Makefile.*.am directly from gentpl.py, eliminating the use
1939 of Autogen. The Autogen definitions files remain intact as they
1940 offer a useful abstraction.
1941
1942 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
1943
1944 Add grub_util_disable_fd_syncs call to turn grub_util_fd_sync calls
1945 into no-ops, and use it in programs that copy files but do not need
1946 to take special care to sync writes (grub-mknetdir, grub-rescue,
1947 grub-mkstandalone).
1948
1949 2013-11-26 Colin Watson <cjwatson@ubuntu.com>
1950
1951 * tests/util/grub-fs-tester.in: Execute xorriso from $PATH rather
1952 than hardcoding /usr/local/bin/xorriso.
1953
1954 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
1955
1956 Add PCI command activation to all PCI drivers as required for coreboot
1957 and maybe some other firmwares.
1958
1959 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
1960
1961 * grub-core/Makefile.am: Reduce gratuituous differences between Apple
1962 and non-Apple variants of efiemu compile.
1963
1964 2013-11-25 Andrey Borzenkov <arvidjaar@gmail.com>
1965
1966 * configure.ac: Add explicit check for linking format of
1967 efiemu64; save it as EFIEMU64_LINK_FORMAT.
1968 * grub-core/Makefile.am: Use EFIEMU64_LINK_FORMAT instead of
1969 hardcoding linking format.
1970
1971 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1972
1973 * util/grub-mknetdir.c: Look for platform directories under pkglibdir
1974 and not pkgdatadir.
1975
1976 2013-11-25 Colin Watson <cjwatson@ubuntu.com>
1977 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1978
1979 Add a --locale-directory option to grub-install and related tools.
1980
1981 * include/grub/util/install.h (GRUB_INSTALL_OPTIONS): Add
1982 --locale-directory option.
1983 (enum grub_install_options): Add
1984 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
1985 * util/grub-install-common.c (grub_install_help_filter): Handle
1986 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
1987 (grub_install_parse): Likewise.
1988 (get_localedir): New function to check for a user-provided option
1989 before trying grub_util_get_localedir.
1990 (copy_locales): Use get_localedir rather than
1991 grub_util_get_localedir. Handle differing locale directory layouts.
1992 (grub_install_copy_files): Likewise.
1993
1994 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1995
1996 * grub-core/osdep/unix/platform.c (get_ofpathname): Trim ending newline.
1997 Don't rely on PATH_MAX.
1998
1999 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2000
2001 * grub-core/genmoddep.awk: Use more portable && rather than and.
2002
2003 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2004
2005 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Create _edata by placing
2006 an object after data. While it doesn't seem right solution, it
2007 works well enough and OSX isn't main compilation platform.
2008
2009 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2010
2011 * gentpl.py: Add -ed2016 in order to make objconv accept our binary.
2012 While it doesn't seem right solution, it works well enough and
2013 OSX isn't main compilation platform.
2014
2015 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2016
2017 * configure.ac: Add -static to LDFLAGS when using apple linker to
2018 prevent it from pulling in dynamic linker.
2019
2020 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2021
2022 Apple assembly doesn't handle symbol arithmetic well. So define an
2023 offset symbol in boot.S and use it.
2024
2025 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2026
2027 Apple assembly doesn't handle symbol arithmetic well. So instead
2028 of getting addres of kernel_sector + 4 define kernel_sector_high.
2029 It also makes code more readable.
2030
2031 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2032
2033 With Apple assembly in .macro environvemnt you have to use $$ instead
2034 of $. So introduce new preprocessor macro MACRO_DOLLAR(x) which expands
2035 to $$x on Apple and to $x on everything else.
2036
2037 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2038
2039 * grub-core/Makefile.am: Use correct TARGET_OBJCONV rather than
2040 OBJCONV.
2041
2042 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2043
2044 * grub-core/gdb/i386/machdep.S: Use xorl %eax, %eax on both Apple
2045 and non-Apple. This instruction is shorter and faster,
2046 so no reason not to use it on both.
2047
2048 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2049
2050 * grub-core/lib/reed_solomon.c: Use section _text, _text rather than
2051 .text when compiling for Apple.
2052
2053 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2054
2055 * grub-core/term/arc/console.c: Add missing cast to silence warning.
2056
2057 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2058
2059 * grub-core/boot/i386/pc/boot.S: Fix floppy probe. Due to missing
2060 %dx restore the probe worked on non-existant drive. Reorganize the
2061 code a little bit to free 2 bytes necessary for push/pop.
2062
2063 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2064
2065 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2066 Add missing cast to silence warning.
2067
2068 2013-11-23 Keshav Padram Amburay <the.ridikulus.rat@gmail.com>
2069
2070 * util/grub-install.c (update_nvram): Support --no-nvram flag
2071 for EFI targets.
2072
2073 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2074
2075 * INSTALL: Add note about sparc64/ia64 with clang (unsupported).
2076
2077 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2078
2079 * util/garbage-gen.c: Add missing include of sys/time.h.
2080
2081 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2082
2083 Don't add -mflush-func if it's not supported by compiler.
2084
2085 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2086
2087 Move common BIOS/coreboot memory map declarations to
2088 include/grub/i386/memory_raw.h and eliminate duplicate declarations.
2089
2090 2013-11-22 Andrey Borzenkov <arvidjaar@gmail.com>
2091
2092 * Makefile.am: Add util/garbage-gen.c to EXTRA_DIST.
2093
2094 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2095
2096 * INSTALL: Document why older clang versions aren't appropriate.
2097
2098 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2099
2100 * INSTALL: Document about clang for mips.
2101
2102 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2103
2104 * grub-core/lib/libgcrypt/mpi/longlong.h: Use C version with mips
2105 clang.
2106
2107 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2108
2109 Add *-xen to the list of grub-install-common platforms.
2110
2111 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2112
2113 * configure.ac: Do not enforce -mcmodel=large. It's not necessarry with
2114 3 last commits.
2115
2116 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2117
2118 * grub-core/kern/xen/init.c: Do not map more pages than we can address.
2119
2120 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2121
2122 * grub-core/kern/efi/mm.c: Limit allocations to 2GiB when not compiling
2123 with -mcmodel=large.
2124
2125 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2126
2127 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Add
2128 range-checking for 32-bit quantities.
2129
2130 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2131
2132 * configure.ac: Compile with -fPIC when compiling with clang on
2133 mips.
2134
2135 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2136
2137 * configure.ac: Add -no-integrated-as on mips(el) to TARGET_CCASFLAGS
2138 when compiling with clang.
2139
2140 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2141
2142 clang emits calls to abort () under some unknown conditions.
2143 Export abort () when compiling with clang.
2144
2145 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2146
2147 * docs/grub-dev.texi: Document stack and heap sizes.
2148
2149 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2150
2151 * include/grub/i386/pc/memory.h: Decrease
2152 GRUB_MEMORY_MACHINE_SCRATCH_SIZE and increase
2153 GRUB_MEMORY_MACHINE_PROT_STACK_SIZE.
2154 The binary doesn't change (checked). It's more to better reflect actual
2155 usage.
2156
2157 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2158
2159 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Ensure
2160 at compile time that enough of scratch size is available.
2161
2162 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2163
2164 * grub-core/kern/x86_64/efi/callwrap.S: Fix stack alignment.
2165 Previously we misaligned stack by 8 in startup.S and compensated
2166 for it in callwrap.S. According to ABI docs (EFI and sysv amd64)
2167 right behaviour is to align stack in startup.S and keep it aligned
2168 in callwrap.S. startup.S part was committed few commits before. This
2169 takes care of callwrap.S.
2170 Reported by: Gary Lin.
2171
2172 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2173
2174 * grub-core/boot/mips/startup_raw.S: Handle the case of gap between
2175 .data and .bss. May happen if compiler and assembly use different
2176 alignment.
2177
2178 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2179
2180 On MIPS handle got16 relocations to local symbols in an ABI-compliant
2181 way.
2182
2183 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2184
2185 Add support for a new magic symbol _gp_disp on mips to handle PIC
2186 binaries.
2187
2188 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2189
2190 Use $t9 for indirect calls from asm to C as PIC ABI requires.
2191
2192 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2193
2194 Remove -march=mips3 from TARGET_CCASFLAGS as it creates linking problem
2195 when rest of GRUB is compiled for hisher stepping. Instead use
2196 .set mips3/.set mips1 around cache and sync opcodes.
2197
2198 2013-11-21 Vladimir Serbinenko <phcoder@gmail.com>
2199
2200 Unify GOT/trampoline handling between PPC, MIPS and IA64 as they
2201 do essentially the same thing, do it in similar way.
2202
2203 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2204
2205 * util/grub-mkrescue.c (main): If a source directory is not
2206 specified, read platform-specific files from subdirectories of
2207 pkglibdir, not pkgdatadir.
2208
2209 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2210
2211 * grub-core/normal/progress.c: Remove unused file.
2212
2213 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2214
2215 * grub-core/lib/crypto.c (grub_crypto_hash): Remove variable length
2216 array.
2217
2218 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2219
2220 * util/grub-mkconfig.in: Say explicit "grub configuration" rather
2221 than grub.cfg.
2222
2223 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2224
2225 * coreboot.cfg: Add missing file.
2226
2227 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2228
2229 * Makefile.am: Allow STRIP to be empty when creating windowszip.
2230
2231 2013-11-19 Axel Kellermann <axel.kellermann@gmx.de>
2232
2233 * util/grub.d/30_os-prober.in: Add GRUB_OS_PROBER_SKIP_LIST to
2234 selectively skipping systems.
2235
2236 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2237
2238 * Makefile.util.def (grub-mkimage): Add
2239 grub-core/osdep/aros/config.c to extra_dist.
2240 * conf/Makefile.extra-dist (EXTRA_DIST): Add docs/autoiso.cfg,
2241 docs/osdetect.cfg, grub-core/gnulib-fix-null-deref.diff,
2242 grub-core/gnulib-fix-width.diff, grub-core/gnulib-no-abort.diff, and
2243 grub-core/gnulib-no-gets.diff.
2244
2245 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2246
2247 Add automated filesystem checking based on scripts I've used now for
2248 quite some time locally. Most of the test require root so they are
2249 skipped when run without necessarry privelegies.
2250
2251 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2252
2253 * util/grub-install.c (main): Adjust info messages to match
2254 installed paths of grub-bios-setup and grub-sparc64-setup.
2255
2256 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2257
2258 * util/grub-install-common.c (copy_locales): Consistently use
2259 grub_util_get_localedir () rather than LOCALEDIR.
2260 (grub_install_copy_files): Likewise.
2261
2262 2013-11-19 Josh Triplett <josh@joshtriplett.org>
2263
2264 * grub-core/kern/x86_64/efi/startup.S (_start): Align the stack to a
2265 16-byte boundary, as required by the x86-64 ABI, before calling
2266 grub_main. In some cases, GCC emits code that assumes this
2267 alignment, which crashes if not aligned. The EFI firmware is also
2268 entitled to assume that stack alignment without checking.
2269
2270 2013-11-18 Josh Triplett <josh@joshtriplett.org>
2271
2272 * grub-core/mmap/efi/mmap.c (grub_mmap_register): Round up/down to
2273 4k page boundaries as expected by firmware rather than 1k
2274 boundaries.
2275 (grub_mmap_malign_and_register): Likewise.
2276
2277 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2278
2279 * tests/grub_func_test.in: Decrease RAM size to 512M. With less
2280 fragmentation 512M is enough.
2281
2282 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2283
2284 * grub-core/kern/mm.c (grub_real_malloc): Decrease cut-off of moving the
2285 pointer to 32K. This is the size of cache element which is the most
2286 common allocation >1K. This way the pointer is always around blocks
2287 of 32K and so we keep performance while decreasing fragmentation.
2288
2289 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2290
2291 * grub-core/kern/mm.c (grub_real_malloc): Don't update the pointer to
2292 current memory when allocating large chunks. This significantly
2293 decreases memory fragmentation.
2294
2295 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2296
2297 * tests/gzcompress_test.in: Skip if gzip is not installed (unlikely,
2298 but for symmetry).
2299 * tests/lzocompress_test.in: Skip if lzop is not installed.
2300 * tests/xzcompress_test.in: Skip if xz is not installed.
2301
2302 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2303
2304 * util/grub-mkrescue.c (main): Fix typo.
2305
2306 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2307
2308 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Update
2309 clock frequency to 200 MHz,
2310
2311 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2312
2313 * tests/util/grub-shell.in: Increase console size to 1024x1024.
2314
2315 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2316
2317 * Makefile.am (default_payload.elf): Add pata to loaded modules.
2318 Load config file from (cbfsdisk)/etc/grub.cfg.
2319
2320 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2321
2322 * util/grub-install-common.c (grub_install_copy_files): Fix module
2323 destination directory.
2324
2325 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2326
2327 * tests/util/grub-shell.in: Don't fail on emu platform if po/*.gmo
2328 files have not been built.
2329
2330 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2331
2332 * grub-core/osdep/unix/hostdisk.c (grub_util_make_temporary_file):
2333 Handle errors from mkstemp.
2334 (grub_util_make_temporary_dir): Handle errors from mkdtemp.
2335
2336 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2337
2338 * tests/util/grub-shell.in: Use -cdrom and don't force cdrom
2339 on primary master on pseries.
2340
2341 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2342
2343 * grub-core/tests/videotest_checksum.c: Don't reload unifont if it's
2344 already loaded. This saves memory needed for tests,
2345
2346 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2347
2348 * util/grub-mkrescue.c (main): Fix a typo to make yeeloong part
2349 work again.
2350
2351 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2352
2353 * grub-core/term/terminfo.c (grub_cmd_terminfo): Fix a typo to make -g
2354 work again.
2355
2356 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2357
2358 * tests/util/grub-shell.in: For powerpc tests put the CD-ROM as primary
2359 master since with some combinations of qemu and firmware only primary
2360 IDE channel is available.
2361
2362 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2363
2364 * grub-core/tests/gfxterm_menu.c: Skip high-resolution tests on
2365 low-memory platforms where we don't have enough memory for them.
2366 * grub-core/tests/videotest_checksum.c: Likewise.
2367
2368 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2369
2370 * grub-core/tests/cmdline_cat_test.c: Don't reload unifont if it's
2371 already loaded. This saves memory needed for tests,
2372
2373 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2374
2375 Fix handling of install lists.
2376
2377 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2378
2379 * grub-core/lib/sparc64/setjmp.S: Force spilling of current window.
2380
2381 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2382
2383 On i386-ieee1275 we run in paged mode. So we need to explicitly map
2384 the devices before accessing them.
2385
2386 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2387
2388 * grub-core/lib/relocator.c (grub_mm_check_real): Accept const char *
2389 as file argument.
2390
2391 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2392
2393 * grub-core/normal/cmdline.c (grub_cmdline_get): Plug memory leak.
2394
2395 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2396
2397 * grub-core/kern/file.c (grub_file_open): Free file->name on failure.
2398 (grub_file_close): Free file->name.
2399
2400 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2401
2402 * grub-core/commands/verify.c (free_pk): Plug memory leak.
2403 (grub_load_public_key): Likewise.
2404 (grub_verify_signature_real): Likewise.
2405 (grub_cmd_verify_signature): Likewise.
2406
2407 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2408
2409 * grub-core/commands/legacycfg.c (grub_legacy_check_md5_password): Plug
2410 memory leak.
2411
2412 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2413
2414 * grub-core/lib/powerpc/setjmp.S (grub_setjmp): Save r31.
2415 (grub_longjmp): Restore r31.
2416 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Reserve space for r31.
2417
2418 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2419
2420 * util/grub-mkrescue.c (make_image_fwdisk_abs): Insert all partmap
2421 modules to be in line with make_image_abs.
2422
2423 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2424
2425 * include/grub/mips/setjmp.h (grub_jmp_buf): Fix buffer size.
2426
2427 setjmp.S uses 12 entries but buffer is declared with only 11 entries.
2428
2429 2013-11-17 Ian Campbell <ijc@hellion.org.uk>
2430
2431 * grub-core/disk/uboot/ubootdisk.c: Include SCSI disks.
2432
2433 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2434
2435 * tests/grub_func_test.in: Increase memory reservation as on EFI we need
2436 to leave some memory to firmware.
2437
2438 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2439
2440 * grub-core/tests/cmdline_cat_test.c (cmdline_cat_test): Ignore errors
2441 of loading gfxterm as gfxterm is embed in kernel on some platforms.
2442 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Likewise.
2443 Load gfxmenu.
2444
2445 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2446
2447 * tests/core_compress_test.in: Use full arguments as grub-mkimage-extra
2448 now needs full arguments.
2449
2450 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2451
2452 * util/grub-mkrescue.c (main): Add trailing \n in
2453 .disk_label.contentDetails to be in line with previous shell script.
2454
2455 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2456
2457 * util/grub-mkrescue.c (main): Use right source file for bootinfo.txt.
2458
2459 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2460
2461 * util/grub-install-common.c (grub_install_parse): Recognize
2462 --compress=none like shell script did.
2463
2464 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2465
2466 * include/grub/misc.h: Replace check for __sparc64__ with one for
2467 __sparc__ as __sparc64__ isn't actually defined.
2468
2469 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2470
2471 * tests/util/grub-shell.in: Use escc-ch-b on powerpc. This is missing
2472 counterpart of fixing the naming of escc ports.
2473
2474 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2475
2476 * util/grub-install-common.c (platforms): Fix the order of entries and
2477 remove useless field val.
2478
2479 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2480
2481 * util/grub-install.c: Add new option --no-bootsector to skip
2482 installing of bootsector. Accept --grub-setup=/bin/true as
2483 backwards-compatible synonym.
2484
2485 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2486
2487 * util/grub-install.c (device_map_check_duplicates): Fix incorrect
2488 order of qsort arguments (number of elements vs. element size).
2489
2490 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2491
2492 Rewrite grub-install, grub-mkrescue, grub-mkstandalone and grub-mknetdir
2493 the function of these files exceeds what can be sanely handled in shell
2494 in posix-comaptible way. Also writing it in C extends the functionality
2495 to non-UNIX-like OS and minimal environments.
2496
2497 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2498
2499 * grub-core/kern/arm/cache.S: Don't switch back to ARM mode when
2500 compiling to thumb2.
2501 * grub-core/kern/arm/cache_armv7.S: Likewise.
2502 * grub-core/lib/arm/setjmp.S: Likewise.
2503
2504 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2505
2506 * grub-core/kern/arm/uboot/startup.S: delete superflouous save of r8
2507 in grub_uboot_syscall
2508
2509 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2510
2511 Decrease stack usage in lexer.
2512
2513 We have only 92K of stack and using over 4K per frame is wasteful
2514
2515 * grub-core/script/yylex.l (yyalloc), (yyfree), (yyrealloc): Declare
2516 as macros so that compiler would remove useless structure on stack.
2517 Better solution would be to fix flex not to put this structure on
2518 the stack but flex is external program.
2519
2520 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2521
2522 Decrease stack usage in signature verification.
2523
2524 We have only 92K of stack and using over 4K per frame is wasteful
2525
2526 * grub-core/commands/verify.c (grub_load_public_key): Allocate on heap
2527 rather than stack.
2528 (grub_verify_signature_real): Likewise.
2529
2530 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2531
2532 Decrease stack usage in mdraid 0.9x.
2533
2534 We have only 92K of stack and using over 4K per frame is wasteful
2535
2536 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Allocate on heap
2537 rather than stack.
2538
2539 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2540
2541 Decrease stack usage in BtrFS.
2542
2543 We have only 92K of stack and using over 4K per frame is wasteful
2544
2545 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Allocate on heap
2546 rather than stack.
2547
2548 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2549
2550 Decrease stack usage in JFS.
2551
2552 We have only 92K of stack and using over 4K per frame is wasteful
2553
2554 * grub-core/fs/jfs.c (getblk): Allocate on heap rather than on
2555 stack. Note: this function is recursive.
2556 (grub_jfs_read_inode): Read only part we care about.
2557
2558 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2559
2560 * grub-core/kern/arm/uboot/startup.S: fix grub_uboot_syscall va_arg
2561 handling
2562
2563 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2564
2565 * configure.ac: Restore -nostdlib for libgcc symbols tests.
2566
2567 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2568
2569 * docs/grub.texi (Environment): Document cmdpath.
2570
2571 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2572
2573 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2574 Remove "unused" attribute from arguments, they are used.
2575
2576 2013-11-15 Colin Watson <cjwatson@debian.org>
2577
2578 * .gitignore: Only ignore grub-mk* at the top level.
2579
2580 2013-11-15 Colin Watson <cjwatson@ubuntu.com>
2581
2582 * util/grub-reboot.in (usage): Fix a typo.
2583
2584 2013-11-15 Vladimir Serbinenko <phcoder@gmail.com>
2585
2586 Replace libgcc version of ctz with our own.
2587
2588 On upcoming arm64 port libgcc ctz* are not usable in standalone
2589 environment. Since we need ctz* for this case and implementation is
2590 in C we may as well use it on all concerned platforms.
2591
2592 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2593
2594 * configure.ac: Probe for linking format rather than guessing it based
2595 on target_os.
2596
2597 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2598
2599 * grub-core/disk/xen/xendisk.c (grub_xendisk_fini): Set state to
2600 "1" prior to handoff.
2601
2602 Reported by: M A Young.
2603
2604 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2605
2606 * grub-core/kern/xen/init.c (grub_xenstore_write_file): Don't add
2607 \0 to all files.
2608
2609 Reported by: M A Young.
2610
2611 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2612
2613 * grub-core/osdep/bsd/hostdisk.c (grub_util_get_fd_size_os): Fix
2614 compilation on NetBSD.
2615
2616 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2617
2618 * acinclude.m4: Don't add -P on initial nm test.
2619
2620 Note: even though this patch postdates Andrey's it bears 14 Nov as
2621 date due to timezone difference.
2622
2623 2013-11-15 Andrey Borzenkov <arvidjaar@gmail.com>
2624
2625 * grub-core/Makefile.core.def (signature_test): Add missing
2626 tests/signatures.h.
2627
2628 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2629
2630 * util/grub-install_header: Set localedir here, since this file is
2631 where it's used.
2632 * util/grub-install.in: Remove setting of localedir.
2633 * util/grub-mkrescue.in: Likewise.
2634
2635 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2636
2637 * Makefile.am (default_payload.elf): Add uhci, ohci and usb_keyboard.
2638
2639 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2640
2641 * configure.ac: Move nm checks to the end.
2642 Call grub_PROG_NM_WORKS.
2643 * acinclude.m4: New check grub_PROG_NM_WORKS.
2644 Use $TARGET_CFLAGS -c when compiling test binary.
2645
2646 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2647
2648 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Remove
2649 unused variables.
2650
2651 2013-11-14 Matthew Garrett <mjg@redhat.com>
2652
2653 * grub-core/kern/main.c (grub_set_prefix_and_root): Set variable
2654 cmdpath to firmware directory.
2655
2656 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2657
2658 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Reset the pointer
2659 at the start of second iteration.
2660
2661 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2662
2663 * grub-core/Makefile.am (efiemu64.o): Explicitly set link format.
2664
2665 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2666
2667 * Makefile.am (default_payload.elf): New target for easier coreboot
2668 build.
2669
2670 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2671
2672 * grub-core/kern/arm/cache_armv6.S: Remove special handling for
2673 clang (not necessarry with -no-integrated-as).
2674 * include/grub/symbol.h [__arm__]: Likewise.
2675
2676 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2677
2678 * configure.ac: Use -no-integrated-as on arm with clang.
2679 * INSTALL: Mention ARM compilation with clang.
2680
2681 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2682
2683 * conf/Makefile.common (CCASFLAGS_PLATFORM) [COND_arm]: Add
2684 -mthumb-interwork.
2685
2686 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2687
2688 * grub-core/fs/ext2.c (grub_ext2_read_block): Factor out common
2689 code for indirect block handling.
2690
2691 Saves 185 bytes on compressed image.
2692
2693 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2694
2695 Fix make clean.
2696
2697 * Makefile.am: Remove build-grub-* in make clean.
2698
2699 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2700
2701 New files to gitignore.
2702
2703 * .gitignore: Add build-grub-gen-asciih, build-grub-gen-widthspec,
2704 build-grub-mkfont, and grub-emu-lite. Remove .bzrignore.
2705
2706 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2707
2708 * grub-core/kern/arm/misc.S: Make thumb2-compatible.
2709
2710 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2711
2712 * .gitignore: fix rules for .dep* and add *.a post git migration
2713
2714 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2715
2716 * configure.ac (AM_INIT_AUTOMAKE): Require at least version 1.10.1,
2717 to match INSTALL.
2718
2719 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2720
2721 * grub-core/kern/misc.c: Don't redirect divisions in the
2722 GRUB_UTIL case.
2723 * include/grub/misc.h: Likewise.
2724
2725 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2726
2727 * grub-core/osdep/unix/emuconsole.c (put): Pacify the compiler on
2728 systems that require checking the return value of write.
2729
2730 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2731
2732 * util/grub-install.in (efi_quiet): Fix inverted logic: make
2733 efibootmgr quiet when --debug is not used, rather than when it is.
2734
2735 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2736
2737 * gentpl.py (define_macro_for_platform_dependencies): Remove
2738 first (and thus unused) of two definitions for this function.
2739 (platform_dependencies): Likewise.
2740
2741 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2742
2743 * acinclude.m4 (grub_apple_cc): Remove; since the removal of nested
2744 functions, we only need to check this for the target, not the host.
2745 * configure.ac (grub_apple_cc): Likewise.
2746
2747 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2748
2749 * grub-core/kern/arm/cache.c (probe_caches): Move asm part to ...
2750 * grub-core/kern/arm/cache_armv6.S: ... here. This allows this
2751 asm to stay in arm even if surrounding is thumb.
2752
2753 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2754
2755 * grub-core/kern/arm/misc.S: Add __muldi3 and __aeabi_lmul. Those
2756 helper functions are needed for thumb.
2757
2758 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2759
2760 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Make
2761 level / 3 division explicitly unsigned. Saves few bytes.
2762
2763 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2764
2765 * grub-core/fs/zfs/zfs.c (ZAP_LEAF_NUMCHUNKS): Use unsigned arithmetics.
2766
2767 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2768
2769 * grub-core/normal/datetime.c (grub_get_weekday): Use if rather than
2770 division.
2771
2772 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2773
2774 * grub-core/kern/uboot/init.c: Move grub_uboot_machine_type and
2775 grub_uboot_boot_data to asm part.
2776
2777 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2778
2779 * grub-core/kern/arm/uboot/startup.S: Remove = by replacing with
2780 literal load.
2781 (grub_uboot_syscall): Save/restore r9 and align stack.
2782
2783 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2784
2785 * grub-core/kern/arm/cache.S: Replace = with explicit litteral load.
2786
2787 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2788
2789 * include/grub/symbol.h (END) [__arm__]: New macros. Replace all .end
2790 occurencies with END.
2791
2792 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2793
2794 * util/grub-editenv.c (help_filter, argp): Document how to delete
2795 the whole environment block.
2796 Reported by Dan Jacobson. Fixes Debian bug #726265.
2797
2798 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2799
2800 * docs/grub.texi (Internationalisation, Supported kernels): Fix
2801 sectioning.
2802
2803 2013-11-13 Josh Triplett <josh@joshtriplett.org>
2804
2805 * grub-core/normal/term.c (grub_set_more): Use bool logic rather than
2806 increment/decrement.
2807
2808 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2809
2810 * grub-core/kern/arm/cache_armv6.S [__clang__]: Don't add .armv6 when
2811 compiling with clang.
2812
2813 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2814
2815 * grub-core/kern/arm/uboot/startup.S: Use .org rather than assigning
2816 ".".
2817
2818 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2819
2820 Redirect all divisions to grub_divmod64.
2821
2822 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2823
2824 * grub-core/term/tparm.c (tparam_internal): Use unsigned divisions.
2825
2826 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2827
2828 Add missing includes of loader.h.
2829
2830 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2831
2832 * configure.ac: Allow disabling themes.
2833
2834 2013-11-12 Lukas Schwaighofer <lukas@schwaighofer.name>
2835
2836 * util/grub.d/20_linux_xen.in: Don't decompress initrd.
2837
2838 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2839
2840 * grub-core/term/at_keyboard.c: Don't poll non-functional AT controller
2841 until it becomes operational.
2842
2843 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2844
2845 * grub-core/Makefile.core.def (legacy_password_test): Disable
2846 on platforms where no legacycfg is compiled.
2847 * grub-core/tests/lib/functional_test.c: Tolerate failure to
2848 load legacy_password_test.
2849
2850 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2851
2852 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
2853
2854 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2855
2856 * grub-core/efiemu/prepare.c: Remove variable length arrays.
2857
2858 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2859
2860 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror): Silence
2861 strict-aliasing warning.
2862 (fsync): Silence cast warning.
2863
2864 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2865
2866 * grub-core/commands/verify.c: Remove variable length arrays.
2867 Load gcry_dsa/gcry_rsa automatically.
2868
2869 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2870
2871 * grub-core/tests/signature_test.c: New test.
2872
2873 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2874
2875 * grub-core/disk/cryptodisk.c (luks_script_get): Adapt to new procfs
2876 API.
2877
2878 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2879
2880 * grub-core/tests/legacy_password_test.c (vectors): Make static.
2881 * grub-core/tests/pbkdf2_test.c (vectors): Likewise.
2882
2883 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2884
2885 * grub-core/tests/setjmp_test.c: Reset counter to 0 before starting.
2886
2887 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2888
2889 * grub-core/fs/proc.c: Allow \0 in proc files.
2890
2891 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2892
2893 * grub-core/tests/xnu_uuid_test.c: Fix assert message.
2894
2895 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2896
2897 * grub-core/tests/xnu_uuid_test.c: Fix copyright year.
2898
2899 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2900
2901 * grub-core/fs/ext2.c: Remove variable length arrays.
2902
2903 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2904
2905 * grub-core/lib/crypto.c (grub_crypto_cbc_decrypt): Remove variable
2906 length arrays.
2907
2908 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2909
2910 * grub-core/disk/AFSplitter.c: Remove variable length arrays.
2911 * grub-core/disk/cryptodisk.c: Likewise.
2912 * grub-core/disk/geli.c: Likewise.
2913 * grub-core/disk/luks.c: Likewise.
2914
2915 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2916
2917 * grub-core/tests/legacy_password_test.c: New test.
2918 * grub-core/commands/legacycfg.c: Remove variable length arrays.
2919
2920 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2921
2922 * grub-core/lib/pbkdf2.c: Remove variable length arrays.
2923
2924 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2925
2926 * grub-core/tests/pbkdf2_test.c: New test.
2927
2928 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2929
2930 * grub-core/lib/xzembed/xz_dec_stream.c: Remove variable length arrays.
2931
2932 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2933
2934 * grub-core/io/lzopio.c: Remove variable length arrays.
2935
2936 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2937
2938 * include/grub/crypto.h: Add maximums on hash size and cipher block
2939 size.
2940
2941 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2942
2943 * grub-core/commands/xnu_uuid.c: Remove variable length arrays.
2944
2945 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2946
2947 * grub-core/tests/xnu_uuid_test.c: New test.
2948
2949 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2950
2951 * grub-core/commands/hashsum.c: Remove unneeded memset (zalloc already
2952 covers it).
2953
2954 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2955
2956 * grub-core/commands/hashsum.c: Remove variable length arrays.
2957
2958 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2959
2960 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Handle out-of-memory
2961 condition.
2962 * tests/grub_func_test.in: Increase memory allocation.
2963
2964 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2965
2966 * grub-core/osdep/unix/getroot.c [HAVE_STRUCT_STATFS_F_FSTYPENAME
2967 && HAVE_STRUCT_STATFS_F_MNTFROMNAME]: Include sys/param.h and
2968 sys/mount.h.
2969
2970 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2971
2972 * grub-core/osdep/apple/hostdisk.c (grub_util_get_fd_size): Rename to ..
2973 (grub_util_get_fd_size_os): ...this.
2974 (grub_hostdisk_flush_initial_buffer): New empty function.
2975
2976 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2977
2978 * grub-core/gensyminfo.sh.in: Handle the case of portable output
2979 without --defined-only.
2980
2981 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2982
2983 * grub-core/lib/i386/relocator_common.S [__APPLE__ && __x86_64__]: Use
2984 rip-relative addressing in prologue.
2985
2986 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2987
2988 * include/grub/misc.h [__APPLE__]: Do not add regparm(0) on x86_64.
2989 * grub-core/kern/misc.c (__bzero) [__APPLE__]: New function.
2990
2991 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2992
2993 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
2994 Add missing semicolon.
2995
2996 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2997
2998 * util/grub-macho2img.c: Use plain fopen rather than grub_util_fopen.
2999
3000 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3001
3002 * configure.ac: Check for lzma.h for enabling liblzma and allow
3003 manual disabling.
3004
3005 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3006
3007 Add missing includes of loader.h.
3008
3009 2013-11-11 Fam Zheng <famcool@gmail.com>
3010
3011 * util/grub.d/30_os-prober.in: Add minix entry.
3012
3013 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3014
3015 * grub-core/loader/i386/coreboot/chainloader.c (load_segment): Use
3016 right buffer for temporary load.
3017
3018 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3019
3020 * grub-core/loader/i386/coreboot/chainloader.c: Support tianocore.
3021
3022 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3023
3024 * grub-core/loader/i386/coreboot/chainloader.c: Support lzma-compressed
3025 payload.
3026
3027 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3028
3029 * include/grub/lib/LzmaDec.h: Fix to include LzmaTypes.h and
3030 not Types.h.
3031 * grub-core/lib/LzmaDec.c: Fix prologue to make it compileable in GRUB
3032 environment.
3033 (LzmaDec_InitDicAndState): Make static.
3034
3035 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3036
3037 * util/grub-mkimagexx.c (generate_elf): Fix module address on coreboot.
3038
3039 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3040
3041 * grub-core/term/ieee1275/escc.c (GRUB_MOD_INIT): Fix order of channels.
3042
3043 Reported by: Aaro Koskinen <aaro.koskinen@iki.fi>
3044
3045 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3046
3047 * docs/grub-dev.texi: Replace bzr references with git ones.
3048
3049 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3050
3051 * docs/grub.texi (Simple configuration): Remove reference to
3052 grub-reboot from saved default entry description - grub-default
3053 does not use it anymore.
3054
3055 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3056
3057 * configure.ac: Make efiemu test cflags match the cflags efiemu is
3058 compiled with.
3059
3060 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3061
3062 * docs/grub.texi (Simple configuration): Document GRUB_DISABLE_SUBMENU.
3063
3064 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3065
3066 Fix grub_machine_fini bitrot.
3067
3068 Reported by: Glenn Washburn.
3069
3070 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3071
3072 * configure.ac: Remove leftover -fnested-funcions -Wl,-allow_execute.
3073
3074 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3075
3076 * grub-core/Makefile.am (efiemu): Remove leftover -DAPPLE_CC and
3077 -DELF.
3078 * grub-core/efiemu/runtime/config.h: Use __i386__ and __x86_64__
3079 instead of ELF*.
3080
3081 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3082
3083 * configure.ac: Restore CFLAGS to TARGET_CFLAGS before external tests.
3084 Add -march=core2 when testing compile of efiemu64.
3085
3086 Thanks Andrey Borzenkov for spotting this.
3087
3088 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3089
3090 Add new ports: i386-xen and x86_64-xen. This allows running GRUB in
3091 XEN PV environment and load kernels.
3092
3093 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3094
3095 * grub-core/loader/i386/multiboot_mbi.c: Handle space in command line.
3096 * grub-core/loader/multiboot_mbi2.c: Likewise.
3097
3098 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3099
3100 * grub-core/lib/cmdline.c (grub_loader_cmdline_size): Fix empty cmdline
3101 handling.
3102
3103 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3104
3105 * grub-core/commands/i386/cmostest.c: Add new command "cmosset".
3106
3107 Tested by: Denis 'GNUtoo' Carikli.
3108
3109 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3110
3111 * grub-core/normal/datetime.c (grub_get_weekday): Use unsigned types.
3112
3113 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3114
3115 * grub-core/gfxmenu/gui_circular_progress.c (parse_angle):
3116 Use to get rounded angle rather than truncated.
3117
3118 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3119
3120 * grub-core/term/serial.c: Add option for enabling/disabling
3121 RTS/CTS flow control.
3122
3123 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3124
3125 * grub-core/lib/libgcrypt/cipher/idea.c (mul_inv): Remove signed
3126 divisions.
3127
3128 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3129
3130 * grub-core/lib/libgcrypt/mpi/mpih-div.c (_gcry_mpih_divrem):
3131 Use grub_fatal rather than divide by zero.
3132 * grub-core/lib/libgcrypt/mpi/mpi-pow.c (gcry_mpi_powm): Likewise.
3133
3134 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3135
3136 * include/grub/gui.h (grub_fixed_sfs_divide): Round rather than
3137 truncate.
3138 (grub_fixed_fsf_divide): Likewise.
3139
3140 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3141
3142 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Avoid
3143 division by-zero and senseless negative divisions.
3144
3145 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3146
3147 * grub-core/gfxmenu/gui_circular_progress.c (circprog_paint): Avoid
3148 division by-zero and senseless negative divisions.
3149 (circprog_set_property): Don't accept negative num_ticks.
3150
3151 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3152
3153 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Avoid
3154 division by-zero and senseless negative divisions.
3155
3156 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3157
3158 * configure.ac: Use elf_*_fbsd on kfreebsd.
3159
3160 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3161
3162 * grub-core/tests/div_test.c: New test.
3163
3164 2013-11-08 Vladimir Testov <vladimir.testov@rosalab.ru>
3165
3166 * grub-core/gfxmenu/gui_box.c: Updated to work with area status.
3167 * grub-core/gfxmenu/gui_canvas.c: Likewise.
3168 * grub-core/gfxmenu/view.c: Likewise.
3169 * grub-core/video/fb/video_fb.c: Introduce new functions:
3170 grub_video_set_area_status, grub_video_get_area_status,
3171 grub_video_set_region, grub_video_get_region.
3172 * grub-core/video/bochs.c: Likewise.
3173 * grub-core/video/capture.c: Likewise.
3174 * grub-core/video/video.c: Likewise.
3175 * grub-core/video/cirrus.c: Likewise.
3176 * grub-core/video/efi_gop.c: Likewise.
3177 * grub-core/video/efi_uga.c: Likewise.
3178 * grub-core/video/emu/sdl.c: Likewise.
3179 * grub-core/video/radeon_fuloong2e.c: Likewise.
3180 * grub-core/video/sis315pro.c: Likewise.
3181 * grub-core/video/sm712.c: Likewise.
3182 * grub-core/video/i386/pc/vbe.c: Likewise.
3183 * grub-core/video/i386/pc/vga.c: Likewise.
3184 * grub-core/video/ieee1275.c: Likewise.
3185 * grub-core/video/i386/coreboot/cbfb.c: Likewise.
3186 * include/grub/video.h: Likewise.
3187 * include/grub/video_fb.h: Likewise.
3188 * include/grub/fbfill.h: Updated render_target structure.
3189 grub_video_rect_t viewport, region, area
3190 int area_offset_x, area_offset_y, area_enabled
3191 * include/grub/gui.h: New helper function
3192 grub_video_bounds_inside_region.
3193 * docs/grub-dev.texi: Added information about new functions.
3194
3195 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3196
3197 * grub-core/kern/mm.c (grub_real_malloc): Use AND rather than MOD
3198 for alignment.
3199
3200 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3201
3202 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Add
3203 missing attribute.
3204 * grub-core/gdb/cstub.c (grub_gdb_trap): Likewise.
3205
3206 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3207
3208 * grub-core/kern/misc.c (grub_divmod64): Don't fallback to
3209 simple division on arm and ia64.
3210
3211 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3212
3213 * grub-core/kern/arm/misc.S (__aeabi_unwind_cpp_pr0): Add dummy to
3214 link with libgcc.
3215
3216 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3217
3218 * include/grub/symbol.h (FUNCTION), (VARIABLE): Fix precedence logic.
3219
3220 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3221
3222 * include/grub/symbol.h (FUNCTION), (VARIABLE) [__arm__]: Use % as
3223 prefix symbol, not @.
3224
3225 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3226
3227 * INSTALL: Add note about older gcc and clang.
3228
3229 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3230
3231 * tests/util/grub-shell.in: Boot as hdd on ppc by default.
3232
3233 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3234
3235 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_module): Fix
3236 NULL pointer dereference.
3237
3238 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3239
3240 * grub-core/Makefile.am: Do not include libgcc.h when compiling with
3241 clang.
3242
3243 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3244
3245 * grub-core/kern/powerpc/dl.c: Add missing pragma to silence cast-align
3246 warnings.
3247
3248 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3249
3250 * grub-core/net/net.c (grub_net_route_unregister): Remove unused
3251 function.
3252 * grub-core/loader/i386/xnu.c (hextoval): Likewise.
3253 * grub-core/disk/geli.c (ascii2hex): Likewise.
3254
3255 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3256
3257 * configure.ac: Run linker tests without -Werror.
3258 Define TARGET_LDFLAGS_STATIC_LIBGCC and TARGET_LIBGCC.
3259 Change all occurences of -static-libgcc resp -lgcc to
3260 TARGET_LDFLAGS_STATIC_LIBGCC resp TARGET_LIBGCC.
3261
3262 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3263
3264 * configure.ac: Don't add -no-itegrated-as on clang on non-x86.
3265
3266 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3267
3268 Allow compiling with clang (not really supported though).
3269
3270 * conf/Makefile.common (CFLAGS_PLATFORM): Don't add -mrtd -mregparm=3
3271 unconditionally.
3272 * configure.ac: Add -no-integrated-as when using clangfor asm files.
3273 Add -mrtd -mregparm=3 on i386 when not using clang.
3274 * grub-core/kern/misc.c (grub_memset): Add volatile when on clang.
3275
3276 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3277
3278 * grub-core/kern/ieee1275/cmain.c: Add explicit attribute on asm
3279 bindings.
3280 * grub-core/lib/reed_solomon.c: Likewise.
3281 * include/grub/i386/gdb.h: Likewise.
3282 * include/grub/i386/pc/int.h: Likewise.
3283 * include/grub/i386/pc/pxe.h: Likewise.
3284 * include/grub/ieee1275/ieee1275.h: Likewise.
3285
3286 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3287
3288 Import libgcrypt 1.5.3.
3289
3290 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3291
3292 * configure.ac: Don't add -Wcast-align on x86.
3293
3294 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3295
3296 * configure.ac: Add -freg-struct-return on all platforms that
3297 support it.
3298
3299 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3300
3301 * acinclude.m4: Use -Werror on parameter tests.
3302 * configure.ac: Likewise.
3303
3304 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3305
3306 * acinclude.m4: Add missing TARGET_CCASFLAGS on asm tests.
3307
3308 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3309
3310 * configure.ac: Check that -malign-loops works rather than assuming that
3311 either -falign-loops or -malign-loops work.
3312
3313 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3314
3315 * configure.ac: Remove -fnested-functions. We don't need it anymore.
3316
3317 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3318
3319 * configure.ac: Prevent cflags leaking to subsequent tests by always
3320 resetting cflags to target_cflags in target tests.
3321
3322 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3323
3324 * grub-core/kern/parser.c (grub_parser_split_cmdline): Remove nested
3325 function.
3326
3327 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3328
3329 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove nested functions.
3330
3331 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3332
3333 * grub-core/lib/arg.c (grub_arg_parse): Remove nested function.
3334
3335 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3336
3337 * grub-core/normal/cmdline.c (grub_cmdline_get):
3338 Remove nested functions.
3339
3340 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3341
3342 * tests/test_sha512sum.in: Make it work on emu.
3343
3344 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3345
3346 * grub-core/normal/charset.c (bidi_line_wrap): Eliminate nested
3347 functions.
3348 (grub_bidi_line_logical_to_visual): Likewise.
3349
3350 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3351
3352 Remove vestiges of -Wunsafe-loop-optimisations.
3353
3354 * conf/Makefile.common (CFLAGS_GNULIB): Remove
3355 -Wno-unsafe-loop-optimisations.
3356 * grub-core/commands/legacycfg.c: Remove -Wunsafe-loop-optimisations
3357 pragma.
3358 * grub-core/io/gzio.c: Likewise.
3359 * grub-core/script/parser.y: Likewise.
3360 * grub-core/script/yylex.l: Likewise.
3361 * util/grub-mkfont.c: Likewise.
3362
3363 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3364
3365 * util/grub-mkfont.c (process_cursive): Remove nested function.
3366
3367 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3368
3369 * include/grub/misc.h (grub_dprintf): Use unnamed vararg.
3370 (grub_boot_time): Likewise.
3371
3372 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3373
3374 * include/grub/symbol.h (FUNCTION): Use @function rather than
3375 "function".
3376 (VARIABLE): Likewise.
3377
3378 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3379
3380 * grub-core/net/bootp.c (OFFSET_OF): Explicitly cast to grub_size_t.
3381
3382 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3383
3384 * grub-core/net/bootp.c (set_env_limn_ro): Make pointer const.
3385 (parse_dhcp_vendor): Likewise.
3386
3387 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3388
3389 * util/grub-mkimagexx.c (relocate_symbols): Remove unneeded brackets.
3390
3391 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3392
3393 * grub-core/gettext/gettext.c (main_context), (secondary_context):
3394 Define after defining type and not before.
3395
3396 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3397
3398 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Return right error
3399 type.
3400 (grub_gcm_decrypt): Likewise.
3401 (algo_decrypt): Likewise.
3402 (grub_zfs_decrypt_real): Transform error type.
3403
3404 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3405
3406 * grub-core/disk/geli.c (geli_rekey): Fix error return type.
3407
3408 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3409
3410 * grub-core/disk/usbms.c (grub_usbms_cbi_cmd): Fix error type.
3411 (grub_usbms_cbi_reset): Likewise.
3412 (grub_usbms_bo_reset): Likewise.
3413 (grub_usbms_reset): Likewise.
3414 (grub_usbms_attach): Likewise.
3415 (grub_usbms_transfer_cbi): Likewise.
3416
3417 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3418
3419 * grub-core/io/lzopio.c (test_header): Simplify code and remove useless
3420 "checksum = checksum;".
3421
3422 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3423
3424 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix type of
3425 entry_type.
3426
3427 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3428
3429 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): Fix
3430 BIOS disk check.
3431
3432 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3433
3434 * grub-core/bus/usb/ehci.c (grub_ehci_restore_hw): Return right enum
3435 type.
3436 (grub_ehci_fini_hw): Likewise.
3437 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
3438
3439 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3440
3441 * include/grub/usb.h (grub_usb_controller_dev): Make portstatus
3442 return grub_usb_err_t for cosistency. All users updated.
3443
3444 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3445
3446 * util/mkimage.c (SzAlloc): Use attribute unused rather than dubious
3447 assigning to itself.
3448
3449 2013-11-05 Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
3450 2013-11-05 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3451
3452 Issue separate DNS queries for ipv4 and ipv6
3453
3454 Adding multiple questions on a single DNS query is not supportted by
3455 most DNS servers. This patch issues two separate DNS queries
3456 sequentially for ipv4 and then for ipv6.
3457
3458 Fixes: https://savannah.gnu.org/bugs/?39710
3459
3460 * grub-core/net/bootp.c (parse_dhcp_vendor): Add DNS option.
3461 * grub-core/net/dns.c (grub_dns_qtype_id): New enum.
3462 * (grub_net_dns_lookup): Now using separated dns packages.
3463 * (grub_cmd_nslookup): Add error condition.
3464 * (grub_cmd_list_dns): Print DNS option.
3465 * (grub_cmd_add_dns): Add four parameters: --only-ipv4, --only-ipv6,
3466 --prefer-ipv4, and --prefer-ipv6.
3467 * include/grub/net.h (grub_dns_option_t): New enum.
3468 * (grub_net_network_level_address): option added.
3469
3470 2013-11-05 Vladimir Testov <vladimir.testov@rosalab.ru>
3471
3472 * grub-core/video/fb/video_fb.c: Merge two blit functions
3473 into one.
3474
3475 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3476
3477 * grub-core/term/terminfo.c: Add sequences for home and end.
3478
3479 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3480
3481 * grub-core/lib/legacy_parse.c: Fix handling of hercules and add
3482 graphics console.
3483
3484 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3485
3486 * grub-core/video/i386/pc/vga.c: Fix double bufferring and
3487 add mode 0x12.
3488
3489 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3490
3491 * docs/grub.texi (Vendor power-on keys): Add XPS M1330M based on old
3492 e-mail by Per Öberg.
3493
3494 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3495
3496 * grub-core/commands/i386/nthibr.c (GRUB_MOD_INIT): Fix typo in command
3497 name.
3498
3499 2013-11-04 Andrey Borzenkov <arvidjaar@gmail.com>
3500
3501 * configure.ac: Explicitly disable emusdl, emuusb and emupci on non-
3502 emu platforms.
3503 * grub-core/Makefile.core.def: Enable emupci and emuucb only for emu.
3504
3505 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3506
3507 * docs/grub.texi: Document usage of menuentry id.
3508
3509 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3510
3511 * docs/grub.texi: Add few mentions about EFI, debug and videoinfo.
3512
3513 2013-11-04 Peter Lustig <peter.lustig.7db@gmail.com>
3514
3515 * grub-core/commands/i386/nthibr.c: New command.
3516
3517 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3518
3519 * grub-core/tests/video_checksum.c: Add 2560x1440 mode to testing.
3520
3521 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3522
3523 * include/grub/term.h (grub_term_coordinate): Extend to 16-bit per
3524 coordinate.
3525
3526 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3527
3528 Support GRUB_DISABLE_SUBMENU config.
3529
3530 Inspired by patch from Prarit Bhargava.
3531
3532 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3533
3534 * docs/grub.texi: Mention RSA support.
3535
3536 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3537
3538 * grub-core/commands/verify.c: Add RSA support.
3539
3540 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3541
3542 * grub-core/disk/ahci.c (grub_ahci_pciinit): Detect ATAPI devices.
3543 * grub-core/disk/ata.c (grub_ata_identify): Use atapi_identify if
3544 device is known to be ATAPI.
3545
3546 2013-11-03 Mike Frysinger <vapier>
3547
3548 * configure.ac: Don't add target-prefix.
3549
3550 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3551
3552 * grub-core/commands/loadenv.c (grub_cmd_save_env): Remove unset
3553 variables.
3554
3555 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3556
3557 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Ignore errors
3558 if language is English.
3559
3560 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3561
3562 * grub-core/osdep/linux/getroot.c: Fix cast-align problems.
3563
3564 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3565
3566 * configure.ac: Don't add -m32/-m64 on emu.
3567
3568 2013-11-02 neil
3569
3570 * grub-core/osdep/linux/blocklist.c: Include linux/types.h for some
3571 broken linux headers.
3572
3573 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3574
3575 * util/grub.d/30_os-prober.in: Add unhiding of partition if on msdos.
3576
3577 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3578
3579 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Don't do
3580 Reed-Solomon recovery if more than half of redundancy info is 0.
3581
3582 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3583
3584 * util/grub-mount.c: Handle symlinks to directories.
3585
3586 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3587
3588 * grub-core/fs/fshelp.c (find_file): Save ctx->next when calling
3589 find_file recursively for symlink.
3590
3591 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3592
3593 * tests/util/grub-shell.in: Copy themes.
3594
3595 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3596
3597 * util/grub-mkimagexx.c (locate_sections): Reject mislinked images.
3598
3599 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3600
3601 * configure.ac: Use 0x8000 for address instead of 8000.
3602
3603 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3604
3605 * grub-core/loader/sparc64/ieee1275/linux.c (get_physbase): Fix
3606 signature.
3607
3608 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3609
3610 * grub-core/disk/efi/efidisk.c (grub_efidisk_readwrite): Remove unused
3611 variable.
3612
3613 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3614
3615 * configure.ac (TARGET_CFLAGS): Add -march=i386 on i386.
3616
3617 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3618
3619 * grub-core/fs/hfspluscomp.c (hfsplus_read_compressed_real): Call
3620 file_progress_read_hook.
3621 * grub-core/fs/ntfscomp.c (hfsplus_read_compressed_real): Likewise.
3622
3623 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3624
3625 * conf/Makefile.common (CFLAGS_PLATFORM): Remove poisoning of float
3626 and double.
3627
3628 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3629
3630 * grub-core/fs/tar.c (grub_cpio_read): Add read_hook.
3631
3632 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3633
3634 Rewrite blocklist functions in order to get progress when
3635 reading large extents and decrease amount of blocklist hook calls.
3636
3637 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3638
3639 * grub-core/term/serial.c (options), (grub_cmd_serial): Fix handling
3640 of SI suffixes.
3641
3642 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3643
3644 Support --base-clock for serial command to handle weird cards with
3645 non-standard base clock.
3646
3647 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3648
3649 * grub-core/fs/ext2.c (grub_ext2_read_symlink): Use memcpy rather
3650 strncpy.
3651 * grub-core/fs/jfs.c (grub_jfs_lookup_symlink): Likewise.
3652 * grub-core/kern/misc.c (grub_strncpy): Move from here ...
3653 * include/grub/misc.h (grub_strncpy): ... to here. Make inline.
3654 * grub-core/net/net.c (grub_net_addr_to_str): Use COMPILE_TIME_ASSERT
3655 + strcpy rather than strncpy.
3656
3657 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3658
3659 * grub-core/fs/zfs/zfs.c (nvpair_name): Use correct type for size.
3660 (check_pool_label): Likewise. Fixes overflow.
3661 (nvlist_find_value): Fix comparison.
3662
3663 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3664
3665 * include/grub/misc.h (grub_strcat): Removed. All users changed to
3666 more appropriate functions.
3667
3668 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3669
3670 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Avoid inefficient
3671 realloc.
3672
3673 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3674
3675 * util/grub-mkrescue.in: Do not use UUID search on EFI.
3676
3677 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3678
3679 * grub-core/kern/dl.c: Unify section-finding algorithm. Saves 30 bytes
3680 on core size.
3681
3682 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3683
3684 * grub-core/kern/mm.c (grub_realloc): Don't copy more data than we have.
3685
3686 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3687
3688 * grub-core/io/gzio.c (huft_build): Use zalloc for safety.
3689 (initialize_tables): reset tl and td to NULL after freeing.
3690
3691 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3692
3693 * grub-core/loader/multiboot_mbi2.c: Implement network tag.
3694
3695 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3696
3697 * grub-core/loader/multiboot_mbi2.c: Add EFI memory map to the list
3698 of supported tags.
3699
3700 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3701
3702 * grub-core/loader/multiboot_mbi2.c: Implement EFI memory map.
3703
3704 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3705
3706 * grub-core/loader/multiboot.c: Add support for multiboot kernels
3707 quirks.
3708
3709 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3710
3711 * grub-core/loader/i386/linux.c (allocate_pages): Allocate at least
3712 a page in protected space.
3713
3714 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3715
3716 * grub-core/loader/multiboot.c (grub_cmd_module): Don't attempt to
3717 allocate space for zero-sized modules.
3718
3719 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3720
3721 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Reject empty images.
3722
3723 2013-10-28 Francesco Lavra <francescolavra.fl@gmail.com>
3724
3725 * grub-core/lib/fdt.c: Fix miscellaneous bugs.
3726
3727 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3728
3729 * grub-core/lib/progress.c (grub_file_progress_hook_real): Add missing
3730 safeguards. Fixes a crash with i386/pc/console.c.
3731
3732 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3733
3734 * include/grub/emu/hostdisk.h: Add proper declaration for grub_host_init
3735 and grub_hostfs_init.
3736
3737 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3738
3739 * grub-core/kern/emu/hostdisk.c (grub_util_check_file_presence): Use
3740 windows method on other platforms without good stat as well.
3741
3742 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3743
3744 * grub-core/osdep/linux/getroot.c: Add new btrfs defines.
3745
3746 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3747
3748 Make / in btrfs refer to real root, not the default volume.
3749 Modify mkrelpath to work even if device is mounted with subvolid option.
3750
3751 2013-10-28 Andrey Borzenkov <arvidjaar@gmail.com>
3752
3753 * Makefile.util.def: Add grub-core/kern/disk_common.c to library
3754 extra_dist.
3755 * grub-core/Makefile.core.def: Add kern/disk_common.c to disk module
3756 extra_dist.
3757
3758 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3759
3760 * util/grub-mkfont.c (main): Show error message when FT_Set_Pixel_Sizes
3761 fails.
3762
3763 2013-10-27 BVK Chaitanya <bvk.groups@gmail.com>
3764
3765 * docs/autoiso.cfg: New file.
3766
3767 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3768
3769 * configure.ac: Remove leftover COND_BUILD_GRUB_MKFONT and
3770 COND_GRUB_PE2ELF conditions.
3771
3772 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3773
3774 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Accept "sd", "cd",
3775 "vnd", "rd" and "fd" disks.
3776
3777 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3778
3779 Move grub_disk_write out of kernel into disk.mod.
3780
3781 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3782
3783 * grub-core/kern/misc.c (grub_vsnprintf_real): Unify int and wchar
3784 handling.
3785
3786 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3787
3788 * grub-core/kern/misc.c (grub_abort): Make static
3789
3790 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3791
3792 * grub-core/kern/misc.c (grub_vsnprintf_real): Don't attempt to
3793 transform invalid unicode codepoints.
3794
3795 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3796
3797 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
3798 \0 checking.
3799
3800 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3801
3802 * grub-core/lib/legacy_parse.c: Add support for "nd" disk.
3803
3804 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3805
3806 Consolidate cpuid code.
3807
3808 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3809
3810 Move cpuid code to cpuid.h and TSC code to tsc.c.
3811
3812 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3813
3814 * util/grub.d/00_header.in: Don't use LANG if it's not set.
3815
3816 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3817
3818 * util/grub-mkconfig.in: Replace $0 with $self.
3819 * util/grub-reboot.in: Likewise.
3820 * util/grub-set-default.in: Likewise.
3821
3822 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3823
3824 * docs/osdetect.cfg: New file.
3825
3826 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3827
3828 * tests/util/grub-shell.in: Add new --debug option.
3829
3830 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3831
3832 * tests/test_unset.in: New test.
3833
3834 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3835
3836 * tests/test_sha512sum.in: New test.
3837
3838 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3839
3840 * grub-core/fs/iso9660.c: Replace strncat with memcpy.
3841 * include/grub/misc.h: Remove strncat.
3842 * grub-core/lib/posix_wrap/string.h: Likewise.
3843
3844 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3845
3846 * grub-core/net/tftp.c: Retransmit ack when rereceiving old packet.
3847 Try to handle more than 0xFFFF packets.
3848 Reported by: Bernhard Übelacker <bernhardu>.
3849 He also spotted few overflows in first version of this patch.
3850
3851 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3852
3853 * tests/date_unit_test.c: New test.
3854
3855 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3856
3857 * grub-core/normal/datetime.c (grub_unixtime2datetime): Fix mishandling
3858 of first three years after start of validity of unixtime.
3859
3860 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3861
3862 * grub-core/normal/menu_entry.c (get_logical_num_lines): Use unsigned
3863 division as the one making more sense.
3864 (update_screen): Likewise.
3865 (complete): Likewise.
3866
3867 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3868
3869 * grub-core/normal/menu_entry.c (complete): Make sure that width is >0.
3870
3871 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3872
3873 Make char and string width grub_size_t rather than grub_ssize_t.
3874
3875 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3876
3877 * grub-core/normal/cmdline.c (grub_history_get): Make argument into
3878 unsigned.
3879 (grub_history_replace): Likewise.
3880
3881 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3882
3883 * grub-core/disk/raid6_recover.c: Use unsigned arithmetics when
3884 appropriate.
3885
3886 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3887
3888 * grub-core/video/bitmap_scale.c: Use unsigned arithmetics when
3889 appropriate.
3890
3891 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3892
3893 * grub-core/video/fb/fbblit.c: Use (255 ^ x) rather than (255 - x).
3894 Use unsigned divisions rather than signed variants.
3895
3896 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3897
3898 * grub-core/video/readers/png.c (grub_png_convert_image): Use
3899 unsigned arithmetics.
3900 Add missing break.
3901
3902 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3903
3904 * grub-core/video/readers/jpeg.c: Use unsigned where appropriate.
3905
3906 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3907
3908 * grub-core/fs/zfs/zfs.c (xor_out): Use unsigned modular arithmetics
3909 rather than signed one.
3910 (recovery): Likewise.
3911
3912 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3913
3914 * grub-core/net/dns.c (hash): Use unsigned arithmetic.
3915
3916 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3917
3918 * grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
3919 than signed.
3920
3921 2013-10-25 Jon McCune <jonmccune@google.com>
3922
3923 * docs/grub.texi: Cleanup security documentation around signatures.
3924
3925 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3926
3927 * grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.
3928
3929 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3930
3931 * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
3932 than int.
3933
3934 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3935
3936 * conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.
3937 * include/grub/dl.h (GRUB_MOD_INIT), (GRUB_MOD_FINI): Define
3938 functions when compiling for kernel.
3939
3940 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3941
3942 * grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
3943 unsigned long long when using %llu.
3944
3945 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3946
3947 * grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh
3948 terminal after updating progress.
3949
3950 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3951
3952 * grub-core/boot/i386/pc/startup_raw.S (grub_gate_a20): Remove
3953 argument. We don't disable Gate A20 in this code.
3954
3955 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3956
3957 * grub-core/boot/i386/qemu/boot.S: Ensure that A20 is enabled.
3958 Conceptually based on change in branch "vbe-on-coreboot".
3959
3960 2013-10-24 Robert Millan <rmh@gnu.org>
3961
3962 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
3963 numeric constants with their symbolic equivalent.
3964 Taken from branch "vbe-on-coreboot".
3965
3966 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
3967
3968 * docs/grub.texi: Fix ordering and use pxref rather than xref.
3969
3970 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
3971
3972 * grub-core/lib/progress.c (grub_file_progress_hook_real): Use
3973 divmod64 for offset division.
3974
3975 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3976
3977 Rename .bzrignore to .gitignore. Add "*.o" rule.
3978
3979 * .bzrignore: Renamed to...
3980 * .gitignore: ...this.
3981
3982 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3983
3984 Add new progress module that displays the load progress of files.
3985
3986 * grub-core/lib/progress.c: New file.
3987 * grub-core/Makefile.core.def (progress): New module.
3988 * grub-core/kern/file.c (grub_file_open): File name added.
3989 * (grub_file_read): Progress hook added.
3990 * grub-core/fs/cbfs.c (grub_cbfs_read): Likewise.
3991 * grub-core/fs/cpio_common.c (grub_cpio_read): Likewise.
3992 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
3993 * include/grub/file.h (struct grub_file): Add progress module members.
3994 * include/grub/term.h (struct grub_term_output): Likewise.
3995 * grub-core/osdep/unix/emuconsole.c (grub_console_term_output):
3996 Terminal velocity added.
3997 * grub-core/osdep/windows/emuconsole.c (grub_console_term_output): Likewise.
3998 * grub-core/term/arc/console.c (grub_console_term_output): Likewise.
3999 * grub-core/term/efi/console.c (grub_console_term_output): Likewise.
4000 * grub-core/term/gfxterm.c (grub_video_term): Likewise.
4001 * grub-core/term/i386/coreboot/cbmemc.c (grub_cbmemc_term_output): Likewise.
4002 * grub-core/term/i386/pc/console.c (grub_console_term_output): Likewise.
4003 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_term): Likewise.
4004 * grub-core/term/ieee1275/console.c (grub_console_term_output): Likewise.
4005 * grub-core/term/morse.c (grub_audio_term_output): Likewise.
4006 * grub-core/term/serial.c (grub_serial_term_output): Likewise.
4007 * grub-core/term/spkmodem.c (grub_spkmodem_term_output): Likewise.
4008 * grub-core/term/uboot/console.c (uboot_console_term_output): Likewise.
4009
4010 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4011
4012 Verify signatures of signatures unless --skip-sig is specified.
4013
4014 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4015
4016 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
4017 \0 checking.
4018
4019 Saves 70 bytes on compressed image.
4020
4021 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4022
4023 * grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
4024 check.
4025
4026 Saves 10 bytes on compressed image.
4027
4028 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4029
4030 * grub-core/kern/misc.c (grub_isprint): Move to ...
4031 * include/grub/misc.h (grub_isprint): ... here. Make inline.
4032
4033 Saves 20 bytes on compressed image due to remving exporting.
4034
4035 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4036
4037 * grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
4038
4039 Saves 5 bytes on compressed image.
4040
4041 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4042
4043 * grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
4044 function get_utf8.
4045
4046 Saves 379 bytes on compressed image.
4047
4048 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4049
4050 * grub-core/fs/ntfs.c: Handle 48-bit MFT no.
4051
4052 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4053
4054 * grub-core/fs/ntfs.c (read_run_data): Rewrite using bitfields.
4055
4056 Saves 40 bytes on compressed image.
4057
4058 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4059
4060 * grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for
4061 mask rather than 64-bit type.
4062
4063 Saves 20 bytes on compressed image.
4064
4065 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4066
4067 * grub-core/fs/ntfs.c (read_data): Move code for compressed data to ...
4068 * grub-core/fs/ntfscomp.c (ntfscomp): ... here.
4069
4070 Saves 273 bytes on compressed image.
4071
4072 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4073
4074 * grub-core/kern/disk.c (grub_disk_write): Use malloc/free instead of
4075 variable length arrays.
4076
4077 Saves 50 bytes on compressed image.
4078
4079 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4080
4081 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
4082
4083 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4084
4085 * grub-core/fs/ufs.c: Remove variable length arrays.
4086
4087 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4088
4089 * grub-core/fs/ntfs.c: Add comment about fixed allocation size.
4090
4091 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4092
4093 * grub-core/fs/zfs.c: Remove variable length arrays.
4094 Reduces zfs.mod by 160 bytes (208 compressed).
4095
4096 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4097
4098 * grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.
4099
4100 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4101
4102 * grub-core/net/arp.c: Remove variable length arrays.
4103 * grub-core/net/bootp.c: Likewise.
4104 * grub-core/net/dns.c: Likewise.
4105 * grub-core/net/icmp6.c: Likewise.
4106 * grub-core/net/net.c: Likewise.
4107
4108 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4109
4110 * grub-core/fs/ntfs.c: Remove variable length arrays.
4111 Increases ntfs.mod by 64 bytes (but decreases by 3 when
4112 compressed).
4113
4114 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4115
4116 * grub-core/fs/hfs.c: Remove variable length arrays.
4117 Reduces hfs.mod by 8 bytes (52 compressed).
4118
4119 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4120
4121 * grub-core/fs/udf.c: Remove variable length arrays.
4122 Increases udf.mod by 128 bytes (but decreases by 13 when
4123 compressed).
4124
4125 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4126
4127 * grub-core/fs/iso9660.c: Remove variable length arrays.
4128 Increases iso9660.mod by 200 bytes (but decreases by 79 when
4129 compressed).
4130
4131 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4132
4133 * grub-core/fs/nilfs2.c: Remove variable length arrays.
4134 Increases nilfs2.mod by 24 bytes (but decreases by 115 when
4135 compressed).
4136
4137 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4138
4139 * grub-core/fs/xfs.c: Remove variable length arrays.
4140 Reduces xfs.mod by 40 bytes (43 compressed).
4141
4142 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4143
4144 * grub-core/fs/fshelp.c: Remove variable length arrays.
4145 Reduces fshelp.mod by 116 bytes (23 compressed).
4146
4147 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4148
4149 * grub-core/normal/completion.c: Remove variable length arrays.
4150 * grub-core/normal/menu_entry.c: Likewise.
4151
4152 Reduces normal.mod by 496 bytes.
4153
4154 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4155
4156 * grub-core/fs/minix.c: Remove variable length arrays. Reduces jfs.mod
4157 by 356 bytes (158 compressed).
4158
4159 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4160
4161 * grub-core/fs/jfs.c: Remove variable length arrays. Reduces jfs.mod
4162 by 364 bytes (169 compressed).
4163
4164 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4165
4166 * grub-core/fs/bfs.c: Remove variable length arrays. Reduces afs.mod and
4167 bfs.mod size by 556 resp 740 bytes (288 resp 334 compressed).
4168 * include/grub/types.h (grub_unaligned_uint64_t): New type.
4169
4170 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4171
4172 Lift 255x255 erminal sie restriction to 65535x65535. Also change from
4173 bitmasks to small structures of size chosen to fit in registers.
4174
4175 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4176
4177 * conf/Makefile.common: Use -freg-struct-return on i386. This
4178 decreases code size and improves performance.
4179
4180 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4181
4182 * grub-core/osdep/unix/exec.c: Fix compilation error on emu.
4183
4184 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4185
4186 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
4187 "(null)" string.
4188 Simplify expressions to save around 256 bytes in kernel.img.
4189 * tests/printf_unit_test.c (printf_test): Add "(null)" tests.
4190
4191 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4192
4193 * grub-core/tests/video_checksum.c (grub_video_capture_write_bmp):
4194 Use GRUB_UTIL_FD_O_* rather than O_*.
4195
4196 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4197
4198 Add haiku-specific functions.
4199
4200 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4201
4202 * grub-core/kern/emu/hostdisk.c: Remove few leftover includes.
4203
4204 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4205
4206 Move stat () and device mode checking into OS-dependent files as
4207 long as performance doesn't suffer.
4208
4209 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4210
4211 Split make_system_path_relative_to_its_root into separate file
4212 relpath.c from getroot.c as it's common between unix and haiku
4213 but otherwise haiku doesn't use any functions from unix getroot.c.
4214
4215 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4216
4217 * grub-core/osdep/aros/hostdisk.c (grub_util_is_directory):
4218 New function.
4219 (grub_util_is_special_file): Likewise.
4220
4221 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4222
4223 * grub-core/osdep/unix/getroot.c: Move exec functions to ...
4224 * osdep/unix/exec.c: ... here. Add few additional exec_* variants.
4225
4226 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4227
4228 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Define size_t to
4229 grub_size_t. This fixes the case when size_t mismatches grub_size_t.
4230
4231 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4232
4233 * util/grub-mkimagexx.c (make_reloc_section): Fix memory leak.
4234 (load_image): Likewise.
4235
4236 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4237
4238 * util/grub-render-label.c: Move backend part to ...
4239 * util/render-label.c: ... here.
4240
4241 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4242
4243 * grub-core/osdep/random.c: Use unix/random.c on haiku. Haiku uses
4244 yarrow (by B. Schneier et al) for its /dev/urandom (similar to FreeBSD).
4245
4246 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4247
4248 * grub-core/osdep/generic/blocklist.c: Add missing include to string.h.
4249
4250 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4251
4252 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Handle
4253 CD-ROM in case when it's declared as having subpartitions.
4254
4255 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4256
4257 Don't add -lm on haiku.
4258
4259 * configure.ac: Define BUILD_LIBM to -lm on most platforms
4260 and empty on haiku.
4261 * grub-core/Makefile.am (gentrigtables): Use $(BUILD_LIBM) rather than
4262 -lm.
4263
4264 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4265
4266 * configure.ac: Use -melf_*_haiku as target on haiku.
4267
4268 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4269
4270 * Makefile.util.def: Add util/setup.c to extra_dist.
4271
4272 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4273
4274 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass
4275 unknown types through.
4276
4277 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4278
4279 * grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove.
4280 (grub_util_check_char_device): Likewise.
4281 * include/grub/emu/getroot.h: Likewise.
4282
4283 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4284
4285 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Use define for defining
4286 memset rather than inline static function.
4287
4288 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4289
4290 * grub-core/lib/xzembed/xz_config.h: Enable all bcj filters when
4291 not doing embedded decompressor.
4292
4293 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4294
4295 * grub-core/disk/ldm.c: Rename variables and arguments to prevent
4296 shadowing.
4297 * grub-core/kern/disk.c: Likewise.
4298 * grub-core/kern/misc.c: Likewise.
4299 * include/grub/parser.h: Likewise.
4300 * include/grub/script_sh.h: Likewise.
4301 * include/grub/zfs/zfs.h: Likewise.
4302
4303 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4304
4305 * grub-core/disk/luks.c (configure_ciphers): Fix spurious warning.
4306
4307 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4308
4309 * grub-core/fs/zfs/zfs_lz4.c: Check that __INTEL_COMPILER is
4310 defined before trying to use it.
4311
4312 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4313
4314 * grub-core/fs/affs.c (grub_affs_create_node): Fix uninited value
4315 warning.
4316
4317 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4318
4319 * include/grub/dl.h: Remove double declaration of GRUB_MOD_DEP.
4320 Use __unused__ rather than __used__ on gcc < 3.2.
4321
4322 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4323
4324 * include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for
4325 gcc < 4.0.
4326 * include/grub/*/setjmp.h: USe RETURNS_TWICE.
4327
4328 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4329
4330 * grub-core/disk/dmraid_nvidia.c: Fix potentially uninited "layout".
4331
4332 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4333
4334 * include/grub/misc.h: Don't use warn_unused_result on gcc < 3.4.
4335 * include/grub/emu/misc.h: Likewise.
4336
4337 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4338
4339 * grub-core/term/i386/pc/vga_text.c: Remove extra declaration of
4340 cur_color.
4341
4342 2013-10-18 Vladimir Testov <vladimir.testov@rosalab.ru>
4343
4344 * grub-core/tests/checksums.h: Regenerated due to progress bar
4345 get_minimal_size changes.
4346
4347 2013-10-17 BVK Chaitanya <bvk.groups@gmail.com>
4348
4349 Added `tr' command support.
4350
4351 * grub-core/commands/tr.c: New file.
4352 * grub-core/Makefile.core.def: Build rules for new module.
4353
4354 * tests/grub_cmd_tr.in: New test.
4355 * Makefile.util.def: Build rules for new test.
4356
4357 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4358
4359 * grub-core/gfxmenu/gui_progress_bar.c: Sanity checks added.
4360
4361 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4362
4363 * grub-core/gfxmenu/gui_progress_bar.c: New option ``highlight_overlay``
4364 * docs/gurb.texi: Likewise.
4365
4366 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4367
4368 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Fixed bug.
4369 Pixmap highlighted section with east and west slices was displayed
4370 incorrectly due to negative width of the central slice.
4371
4372 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4373
4374 * docs/grub.texi: Graphical options information update.
4375 Removed outdated. Updated current. Inserted missed.
4376
4377 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4378
4379 * docs/grub.texi: Mention few new platform-specific commands.
4380
4381 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4382
4383 * grub-core/script/yylex.l: Fix LSQBR2 and RSQBR2. It's not
4384 currently used so this doesn't really have any effect.
4385 Reported by: Douglas Ray <dougray>
4386
4387 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4388
4389 * autogen.sh: Don't set LC_CTYPE as it doesn't create problem for
4390 compilation but prevents gcc from displaying messages in non-Latin
4391 alphabets.
4392 * conf/Makefile.common: Likewise.
4393
4394 2013-10-16 Hiroyuki YAMAMORI
4395
4396 Handle Japanese special keys.
4397 Reported by: Hiroyuki YAMAMORI.
4398 Codes supplied by: Hiroyuki YAMAMORI.
4399
4400 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4401
4402 * grub-core/gfxmenu/gui_list.c: Scrollbar sanity checks added.
4403
4404 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4405
4406 * grub-core/gfxmenu/gui_list.c: New option `item_pixmap_style`.
4407 * docs/grub.texi: Likewise.
4408
4409 2013-10-16 Vladimir Serbinenko <phcoder@gmail.com>
4410
4411 * grub-core/osdep/unix/hostdisk.c (grub_util_fd_read): Return correct
4412 value in case of incomplete read.
4413 (grub_util_fd_write): Likewise.
4414
4415 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4416
4417 * util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.
4418
4419 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4420
4421 * util/grub-editenv.c (create_envblk_file): More from here ...
4422 * util/editenv.c (grub_util_create_envblk_file): ... to here.
4423
4424 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4425
4426 * grub-core/osdep/unix/getroot.c (grub_guess_root_devices):
4427 canonicalize file name before doing the rest.
4428
4429 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4430
4431 * include/grub/osdep/hostfile_windows.h: Add missing ftello for
4432 mingw32.
4433
4434 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4435
4436 Define grub_util_is_directory/regular/special_file and
4437 use OS-dependent versions rather than to rely on stat().
4438
4439 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4440
4441 * util/grub-mkimage.c: Move backend part to ...
4442 * util/mkimage.c: ... here.
4443
4444 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4445
4446 Allow compilation with mingw64 albeit with warnings due to lack of
4447 %llx/%llu.
4448
4449 * grub-core/gnulib/msvc-inval.c: Use __cdecl rather than cdecl.
4450 * grub-core/lib/posix_wrap/wchar.h: Define wint_t.
4451 * grub-core/lib/posix_wrap/wctype.h: Define wctype_t.
4452 * include/grub/osdep/hostfile_windows.h: Don't define fseeko/ftello
4453 on mingw64.
4454 * include/grub/types.h: Allow sizeof (long) != sizeof (void *).
4455
4456 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4457
4458 Remove leftover references to some of the system headers.
4459
4460 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4461
4462 * grub-core/disk/geli.c (grub_util_get_geli_uuid): Close handle after
4463 read.
4464
4465 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4466
4467 * grub-core/disk/cryptodisk.c: Use grub_util_fd_strerror instead
4468 of strerror.
4469
4470 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4471
4472 Split out blocklist retrieving from setup.c to
4473 grub-core/osdep/blocklist.c and add windows implementation since
4474 generic version doesn't work on NTFS on Windows due to aggressive
4475 unflushable cache.
4476
4477 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4478
4479 Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c)
4480 files.
4481
4482 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4483
4484 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror):
4485 Cut tailing newline. Remove arbitrary limitation. Always use
4486 grub_util_tchar_to_utf8.
4487
4488 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4489
4490 * grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
4491 * tests/printf_unit_test.c (printf_test): Add %% tests.
4492 Reported by: Paulo Flabiano Smorigo.
4493
4494 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4495
4496 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
4497 implement fsync.
4498
4499 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4500
4501 * configure.ac: Check for nvlist_lookup_string in nvpair since we
4502 use nvlist_lookup_string and don't use nvlist_print.
4503
4504 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4505
4506 Add wrappers around rename, unlink, mkdir, opendir, readdir and
4507 closedir to handle filename charset translation.
4508
4509 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4510
4511 * include/grub/emu/hostdisk.h: Move file operations to
4512 * include/grub/emu/hostfile.h: ... here.
4513
4514 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4515
4516 * grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
4517 unicode path.
4518
4519 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4520
4521 * grub-core/tests/checksums.h: Regenerate due to swiss.sed change.
4522
4523 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4524
4525 Move cpu time retrieval to separate grub_util_get_cpu_time_ms
4526 and remove export.h.
4527
4528 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4529
4530 * grub-core/kern/emu/error.c: Removed.
4531 * grub-core/Makefile.core.def (kernel): Don't add error.c and progname.c
4532 explicitly as it's already in libgnu.a.
4533
4534 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4535
4536 * grub-core/osdep/windows/emuconsole.c: Add missing config.h and
4537 config-util.h include.
4538
4539 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4540
4541 Split emunet into platform-dependent and GRUB-binding parts. Keep
4542 platform-dependent part in kernel for easy access to OS functions.
4543
4544 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4545
4546 * grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
4547 open/read/write.
4548
4549 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4550
4551 * grub-core/osdep/windows/emuconsole.c: New file.
4552
4553 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4554
4555 * conf/Makefile.extra-dist: Add osdep/*/init.c
4556
4557 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4558
4559 * Makefile.am: Use TARGET_OBJCOPY when doing objcopy for target.
4560
4561 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4562
4563 * util/grub-probe.c (probe): Separate different drives in hint-str
4564 by spaces and not newlines.
4565 * util/grub-mkconfig_lib.in: Handle multidevice filesystem.
4566
4567 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4568
4569 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
4570 Handle CD-ROMs.
4571
4572 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4573
4574 Pass-through unknown E820 types. It required reorganisation of mmap
4575 module.
4576
4577 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4578
4579 * Makefile.util.def: Add osdep/init.c to grub-mount files.
4580
4581 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4582
4583 Make grub_util_fd_seek match behaviour of other grub_util_fd_* and
4584 fseeko.
4585
4586 2013-10-14 qwertial <qwertial>
4587
4588 * grub-core/gdb_grub.in: Fix overflow and wrong field.
4589
4590 2013-10-14 Jon McCune <jonmccune@google.com>
4591
4592 * docs/grub.texi: Document new signatures possibility.
4593
4594 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4595
4596 Define GRUB_UTIL_FD_O_* and always use them with grub_util_fd_open.
4597
4598 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4599
4600 * include/grub/osdep/hostfile_windows.h (grub_util_utf8_to_tchar): Add
4601 missing prototype.
4602 (grub_util_tchar_to_utf8): Likewise.
4603
4604 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4605
4606 * grub-core/Makefile.core.def: Add osdep/init.c on emu.
4607 * grub-core/kern/emu/main.c: Add missing include.
4608 * grub-core/osdep/basic/init.c (grub_util_host_init) [!GRUB_UTIL]:
4609 Don't call grub_util_init_nls.
4610 * grub-core/osdep/windows/init.c (grub_util_host_init) [!GRUB_UTIL]:
4611 Likewise.
4612
4613 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4614
4615 * util/misc.c (grub_util_get_image_size): Use FILE functions rather than
4616 stat.
4617
4618 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4619
4620 * util/grub-editenv.c: Remove leftover set_program_name and init_nls.
4621
4622 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4623
4624 * include/grub/misc.h: Use gnu_printf only on gcc 4.4 or later.
4625
4626 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4627
4628 Add a wrapper for fopen. On unix-like systems just pass-through. On
4629 windows use unicode version.
4630
4631 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4632
4633 Move set_program_name and init_nls to host_init. On windows
4634 fix in this fuction console and argument charset as well.
4635
4636 2013-10-12 Andrey Borzenkov <arvidjaar@gmail.com>
4637
4638 Fix inconsistent use of GRUB_CRYPTODISK_ENABLE and
4639 GRUB_ENABLE_CRYPTODISK.
4640
4641 * util/grub-install.in: Rename all GRUB_CRYPTODISK_ENABLE to
4642 GRUB_ENABLE_CRYPTODISK.
4643 * util/grub-mkconfig_lib.in: Likewise.
4644
4645 2013-10-12 Christian Cier-Zniewski <c.cier@gmx.de>
4646
4647 * docs/grub.texi (Vendor power-on keys): Add Dell Latitude E4300.
4648
4649 2013-10-12 Melki Christian <Christian.melki@saabgroup.com>
4650
4651 * grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
4652 error when enabling debug.
4653
4654 2013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
4655
4656 * configure.ac: Use -melf_*_obsd on openbsd.
4657
4658 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4659
4660 * grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer.
4661
4662 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4663
4664 * include/grub/misc.h: Use gnu_printf rather than printf as format
4665 template since our functions are independent of libc.
4666
4667 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4668
4669 * util/grub-setup.c (setup): Move copying of partition table as
4670 futher up as possible to avoid possible overwrite by floppy routines.
4671
4672 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4673
4674 * grub-core/fs/fat.c: Fix handling of exfat contiguous files.
4675
4676 2013-10-10 Vladimir Testov <vladimir.testov@rosalab.ru>
4677
4678 * grub-core/gfxmenu/gui_list.c: New option `scrollbar_thumb_overlay`.
4679 * docs/grub.texi: Likewise.
4680
4681 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4682
4683 * util/getroot.c (make_device_name): Remove dos_part and bsd_part as
4684 it's mostly unused. Move vestiges to the callers.
4685
4686 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4687
4688 * util/grub-mkpasswd-pbkdf2.c: Remove temporary buffers for hex
4689 version of salt and hash. Use grub_snprintf rather than snprintf.
4690
4691 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4692
4693 * docs/grub.texi: Fix problem with braces.
4694
4695 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4696
4697 * conf/Makefile.extra-dist: Fix extra-dist list.
4698 * grub-core/Makefile.core.def: Likewise.
4699
4700 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4701
4702 * docs/grub.texi: Document disk names used on Windows and AROS.
4703
4704 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4705
4706 * grub-core/osdep/aros/getroot.c: Change to //: prefix as discussed
4707 with AROS devs.
4708 * grub-core/osdep/aros/hostdisk.c: Likewise.
4709
4710 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4711
4712 Avoid including hostfile.h when not necessarry as it pulls
4713 in OS-specific headers which may redefine generic names
4714 like "far".
4715
4716 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4717
4718 * grub-core/gfxmenu/gui_list.c: New options for scrollbar padding:
4719 scrollbar_left_pad, scrollbar_right_pad, scrollbar_top_pad,
4720 scrollbar_bottom_pad
4721 * docs/grub.texi: Likewise.
4722
4723 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4724
4725 * grub-core/gfxmenu/gui_list.c (list_destroy): Fixed memory leak.
4726
4727 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4728
4729 Move OS-dependent file definitions to include/grub/osdep/hostfile*.h.
4730
4731 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4732
4733 * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition):
4734 Removed.
4735 * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition):
4736 Made static.
4737
4738 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4739
4740 * include/grub/emu/getroot.h (grub_util_find_hurd_root_device): Remove
4741 leftover.
4742
4743 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4744
4745 Move OS-specific driver configuration to grub_util_fd_open. This
4746 moves OS-dependent parts from kern/emu/hostdisk.c to
4747 grub-core/osdep/*/hostdisk.c.
4748
4749 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4750
4751 * util/grub-mkimage.c (generate_image): Use size_t instead of
4752 grub_size_t.
4753 * util/grub-mkimagexx.c (locate_sections): Likewise.
4754 (load_image): Likewise.
4755
4756 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4757
4758 * util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for
4759 size_t.
4760 (grub_util_write_image): Likewise.
4761
4762 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4763
4764 * grub-core/osdep/basic/random.c: New file. Abort on an attempt to
4765 get random when no RNG is available.
4766 * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
4767
4768 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4769
4770 * include/grub/util/lvm.h: Removed.
4771
4772 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4773
4774 * grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
4775 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
4776
4777 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4778
4779 * grub-core/osdep/windows/sleep.c: Add missing config.h.
4780
4781 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4782
4783 * grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
4784
4785 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4786
4787 * grub-core/net/drivers/emu/emunet.c: Move to ..
4788 * grub-core/osdep/linux/emunet.c: ..here.
4789
4790 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4791
4792 * util/ieee1275/ofpath.c: Move to ...
4793 * grub-core/osdep/linux/ofpath.c: ..here, split stub into ...
4794 * grub-core/osdep/basic/ofpath.c: ..here.
4795
4796 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4797
4798 Move password-querying (util-version) routines to grub-core/osdep.
4799
4800 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4801
4802 Move sleep routines to grub-core/osdep.
4803
4804 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4805
4806 Move OS-dependent files to grub-core/osdep and document it.
4807
4808 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4809
4810 * grub-core/kern/emu/misc.c (canonicalize_file_name): Move to ...
4811 * grub-core/kern/emu/hostdisk_*.c (canonicalize_file_name): ... here.
4812
4813 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4814
4815 * grub-core/kern/arm/misc.S: Remove leftover ARM and THUMB.
4816
4817 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4818
4819 * util/misc.c: Remove leftover inclusion of malloc.h.
4820
4821 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4822
4823 * include/grub/setjmp.h: Remove leftover GRUBOF.
4824
4825 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4826
4827 * util/raid.c: Fold into ...
4828 * util/getroot_linux.c: ... here. Make all functions static.
4829
4830 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4831
4832 * grub-core/fs/zfs/zfs_lz4.c: Switch from ad-hoc endiannes and width
4833 macros to GRUB ones.
4834
4835 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4836
4837 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Fixed rare
4838 occasional bug. If there are too many boot entries or too low
4839 scrollbar height then we need to use another formula to calculate
4840 the position and size of the scrollbar thumb.
4841
4842 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4843
4844 * util/random_unix.c: Add NetBSD, Solaris and Mac OS X to verified list.
4845
4846 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4847
4848 * grub-core/gfxmenu/gui_list.c: New option `scrollbar-slice`.
4849 * docs/grub.texi: Likewise.
4850
4851 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4852
4853 * grub-core/gfxmenu/gui_list.c: Draw the scrollbar in a separate
4854 viewport.
4855
4856 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4857
4858 * grub-core/gfxmenu/gui_list.c (list_get_minimal_size): Corrected
4859 minimal width calculations.
4860
4861 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4862
4863 * docs/grub.texi: Update note on colors on emu console.
4864
4865 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4866
4867 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Give GRUB_ERR_BAD_FS
4868 for quadruple indirect rather than GRUB_ERR_NOT_IMPLEMENTED_YET as
4869 it's FS and not GRUB limitation.
4870
4871 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4872
4873 * grub-core/kern/arm/efi/startup.S: Remove thumb leftover.
4874
4875 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4876
4877 * grub-core/kern/arm/efi/init.c: Rewrite timer fucntion.
4878
4879 2013-10-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
4880
4881 * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach
4882 kernels by version order.
4883
4884 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4885
4886 * util/random_unix.c: Add kFreeBSD to the list of secure RNG.
4887
4888 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4889
4890 Add AROS hostdisk and getroot routines.
4891
4892 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4893
4894 Make cryptodisk and diskfilter probe data retrievable programmatically
4895 and not just printable.
4896
4897 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4898
4899 Split random retrieving code into separate files.
4900
4901 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4902
4903 * grub-core/kern/arm/dl.c (do_relocations): Accept and ignore
4904 R_ARM_V4BX.
4905
4906 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4907
4908 * grub-core/tests/video_checksum.c: Increase robustness to out of memory
4909 condition.
4910 * grub-core/tests/fake_input.c: Likewise.
4911 * grub-core/tests/cmdline_cat_test.c: Likewise.
4912
4913 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4914
4915 * grub-core/video/capture.c: Do not do finalization when .fini
4916 is called as there is explicit capture_end.
4917
4918 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4919
4920 * grub-core/term/gfxterm.c: Add flag "functional" to skip input when
4921 changing windows to avoid crash.
4922
4923 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4924
4925 * grub-core/kern/arm/cache.c: Add v5 write-through cache support.
4926
4927 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4928
4929 * po/exclude.pot: Add several strings to exclude.
4930
4931 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4932
4933 * tests/gettext_strings_test.in: Add getroot_*.c to exclude list.
4934
4935 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4936
4937 * autogen.sh: Add ./util/grub-gen-widthspec.c and
4938 ./util/grub-gen-asciih.c to exclude list.
4939
4940 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4941
4942 * grub-core/gfxmenu/theme_loader.c (theme_set_string): Fix memory leak
4943 and don't mark error strings for translation.
4944
4945 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4946
4947 * grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
4948 properly in case of missing block size.
4949
4950 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4951
4952 * grub-core/lib/arm/setjmp.S: Add missing license section.
4953
4954 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4955
4956 * po/swiss.sed: Add replacement for key names and for term computer.
4957
4958 2013-10-02 Vladimir Testov <vladimir.testov@rosalab.ru>
4959
4960 * grub-core/gfxmenu/theme_loader.c: New global options for the
4961 theme background image handling. desktop-image-scale-method,
4962 desktop-image-h-align, desktop-image-v-align.
4963 * grub-core/gfxmenu/view.c: Likewise.
4964 * include/gfxmenu_view.h: Likewise.
4965 * include/bitmap_scale.h: Proportional scale functions introduced.
4966 * grub-core/video/bitmap_scale.c: Likewise. Verification checks are
4967 put in a separate functions. GRUB_ERR_BUG is set for grub_error in
4968 cases of unexpected input variables for scale functions.
4969 * docs/grub.texi: Updated documentation for new options.
4970
4971 2013-10-02 Vladimir Serbinenko <phcoder@gmail.com>
4972
4973 * grub-core/video/readers/png.c: Support narrow (4-/2-/1-bpp) PNG.
4974
4975 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
4976
4977 * grub-core/tests/checksums.h: Corrected due to changes in
4978 bilinear interpolation function.
4979
4980 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
4981
4982 * grub-core/video/bitmap_scale.c (scale_bilinear): Increased precision
4983 to eliminate artefacts in bilinear interpolation.
4984
4985 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4986
4987 * grub-core/video/readers/tga.c: Support paletted tga.
4988
4989 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4990
4991 * grub-core/video/readers/jpeg.c (grub_jpeg_decode_data): Remove
4992 incorrect cbcr setting when in color mode.
4993
4994 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4995
4996 * grub-core/video/readers/png.c: Support paletted images and clean up
4997 greyscale support.
4998
4999 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5000
5001 * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix
5002 usage of wrong table which resulted in mishandling of 4-byte
5003 sequences.
5004
5005 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5006
5007 * grub-core/term/terminfo.c: Add Home and End key sequences.
5008
5009 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5010
5011 * grub-core/video/readers/png.c (grub_png_decode_image_header):
5012 Fix formula for computing total number of bytes.
5013
5014 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5015
5016 * grub-core/video/readers/tga.c: Reorganize to separate RLE and
5017 image processing, fix big-endian and support grayscale.
5018
5019 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5020
5021 * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target):
5022 Correctly will with maximum transparency when using index color.
5023
5024 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5025
5026 * grub-core/video/readers/png.c: Support grayscale
5027
5028 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5029
5030 * grub-core/video/readers/jpeg.c: Support grayscale.
5031
5032 2013-09-26 Jon McCune <jonmccune@google.com>
5033
5034 * grub-core/commands/loadenv.c: Support skipping signature check
5035 and variable names filtering.
5036
5037 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5038
5039 * grub-core/kern/emu/hostdisk_unix.c: Declare AROS as non-unix.
5040 * grub-core/kern/emu/hostfs.c: Likewise.
5041 * util/getroot_unix.c: Likewise.
5042
5043 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5044
5045 * include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.
5046 Migrate all explicit defines to this new one.
5047
5048 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5049
5050 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Use
5051 grub_util_fd_strerror when using grub_util_fd_*.
5052 (grub_util_fd_open_device): Likewise.
5053 (grub_util_biosdisk_read): Likewise.
5054 (grub_util_biosdisk_write): Likewise.
5055 * grub-core/kern/emu/hostdisk_unix.c (grub_util_fd_open): New function.
5056 (grub_util_fd_strerror): Likewise.
5057 (grub_util_fd_sync): Likewise.
5058 (grub_util_fd_close): Likewise.
5059 * grub-core/kern/emu/hostdisk_windows.c (grub_util_fd_sync): Likewise.
5060 (grub_util_fd_close): Likewise.
5061 (grub_util_fd_strerror): Likewise.
5062 * include/grub/emu/hostdisk.h (grub_util_fd_close): Make into real
5063 function proto rather than macro.
5064 (grub_util_fd_sync): Likewise.
5065 (grub_util_fd_open): Likewise.
5066 (grub_util_fd_strerror): New proto.
5067
5068 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5069
5070 * util/getroot.c (grub_util_biosdisk_is_present): Don't do stat on
5071 platforms on which it doesn't work.
5072
5073 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5074
5075 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Move struct
5076 stat immediately to where it's used.
5077
5078 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5079
5080 * util/getroot.c (grub_util_check_block_device): Move to ...
5081 * util/getroot_unix.c (grub_util_check_block_device): ... here.
5082 * util/getroot.c (grub_util_check_char_device): Move to ...
5083 * util/getroot_unix.c (grub_util_check_char_device): ... here.
5084
5085 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5086
5087 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
5088 disk closing logic.
5089
5090 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5091
5092 * docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
5093
5094 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5095
5096 * docs/grub.texi (File name syntax): Document ZFS filenames
5097 (/volume@snapshot/...).
5098
5099 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5100
5101 * grub-core/kern/emu/hostdisk_windows.c (grub_util_get_windows_path):
5102 Always return full path. Fixes a problem with mkrelpath.
5103
5104 2013-09-23 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5105
5106 * util/grub-install.in: Add GPT PReP support.
5107 * util/grub-probe.c (probe): Support GPT partition type.
5108 (main): Support -t gpt_parttype.
5109
5110 2013-09-23 Aleš Nesrsta <starous@volny.cz>
5111
5112 * grub-core/bus/usb/ehci.c: SMI disabled in all cases
5113
5114 2013-09-23 Massimo Maggi <me@massimo-maggi.eu>
5115
5116 * grub-core/fs/zfs/zfs.c (check_pool_label): Check nvlist.
5117
5118 2013-09-23 Tim Hardeck <thardeck>
5119
5120 * util/grub.d/10_hurd.in: Filter out character for the class.
5121 * util/grub.d/10_kfreebsd.in: Likewise.
5122 * util/grub.d/10_linux.in: Likewise.
5123 * util/grub.d/20_linux_xen.in: Likewise.
5124
5125 2013-09-23 Melki Christian <Christian.melki@saabgroup.com>
5126
5127 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Fix the type of
5128 "changed".
5129
5130 2013-09-23 Josh Triplett <josh@joshtriplett.org>
5131
5132 * grub-core/boot/i386/pc/lnxboot.S: Re-add support for recording the
5133 boot partition.
5134
5135 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5136
5137 * Makefile.util.def (libgrubmods.a): Remove CFLAGS_POSIX as this lib
5138 doesn't use posix_wrap. Keep literal -fno-builtin however.
5139
5140 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5141
5142 * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
5143
5144 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5145 2013-09-23 neil
5146
5147 * configure.ac: Do not enable -Wmissing-noreturn as its
5148 usefulness is limited and creates problems on some OS notably with
5149 code generated by bison.
5150
5151 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5152 2013-09-23 neil
5153
5154 * configure.ac: Do not explicitly enable -Waddress as it's not
5155 supported by all gcc and when it is, it's already enabled by -Wall.
5156
5157 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5158
5159 * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
5160 desactivated use of EDID at all.
5161
5162 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5163 2013-09-23 neil
5164
5165 * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
5166 video if no text is available.
5167
5168 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5169 2013-09-23 neil
5170
5171 * configure.ac: Substitute TARGET_RANLIB.
5172
5173 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5174 2013-09-23 neil
5175
5176 * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
5177
5178 Based on patches from AROS.
5179
5180 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5181 2013-09-23 neil
5182
5183 * grub-core/Makefile.am: Override STRIP and RANLIB.
5184 * configure.ac: compute TARGET_RANLIB.
5185 * INSTALL: Document TARGET_RANLIB
5186
5187 Based on patches from AROS.
5188
5189 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5190
5191 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
5192 that floppies are unpartitioned.
5193
5194 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5195
5196 * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
5197 Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
5198
5199 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5200
5201 * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
5202 less nice but more portable.
5203 * grub-core/lib/posix_wrap/wchar.h: Likewise.
5204
5205 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5206
5207 * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
5208 for cheat_fd.
5209 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
5210 functions.
5211 (grub_cryptodisk_cheat_insert): Likewise.
5212 (grub_cryptodisk_close): Likewise.
5213
5214 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5215
5216 * include/grub/emu/misc.h: Remove leftover cygwin definitions.
5217 Use windows path for DEFAULT_DIRECTORY.
5218
5219 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5220
5221 * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
5222 difference was likely just gcc version, not anything mingw-related.
5223
5224 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5225
5226 Use Winapi on both cygwin and mingw32 to share more code between both.
5227
5228 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5229
5230 * util/grub-install.in: Add --grub-editenv option.
5231 * util/grub-install_header (grub_compress_file): Explicitly check for
5232 plain file to avoid cp error.
5233
5234 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5235
5236 * docs/grub.texi (Device syntax): Document new LVM UUID based device
5237 names; fix LVM driver name (lvm, not lv).
5238 * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
5239 names.
5240
5241 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5242
5243 * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
5244 files rather than one file with loads of #if's.
5245 * util/getroot.c: Likewise.
5246
5247 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5248
5249 * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
5250
5251 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5252
5253 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
5254 GNU/Hurd to the list of checked PRNG.
5255
5256 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5257
5258 * configure.ac: On FreeBSD use -melf_*_fbsd format.
5259
5260 2013-09-21 Ales Nesrsta <starous@volny.cz>
5261
5262 * grub-core/bus/usb/ehci.c: Corrected EHCI QH handling (async./sync.)
5263
5264 2013-09-20 Vladimir Serbinenko <phcoder@gmail.com>
5265
5266 * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
5267 * grub-core/disk/lvm.c: Add LVM UUIDs.
5268 * util/getroot.c: Use LVM UUIDs whenever possible.
5269
5270 2013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
5271
5272 * docs/grub.texi (Networking commands): Add documentation for
5273 network related commands.
5274
5275 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5276
5277 * util/getroot.c (grub_util_open_dm): Check major rather than the name
5278 to determine if device is handled by devmapper.
5279 (convert_system_partition_to_system_disk): Likewise.
5280 (get_dm_uuid): Don't check explicitly if device is mapped, it's
5281 already done in grub_util_open_dm.
5282
5283 2013-09-19 Leif Lindholm <leif.lindholm@linaro.org>
5284
5285 * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
5286 Clean up stack manipulation (sync_caches_armv*)
5287
5288 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5289
5290 * util/lvm.c: Remove since unused. Remove remaining references.
5291
5292 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5293
5294 Handle the case of partitioned LVM properly.
5295
5296 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
5297 Stop on meeting LVM, mpath or DMRAID.
5298 (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
5299 (read_device_map): Likewise.
5300 * util/getroot.c (convert_system_partition_to_system_disk): Assume that
5301 device is full disk rather than erroring out on LVM and similar cases.
5302
5303 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5304
5305 * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
5306
5307 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5308
5309 * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
5310 4K before the end.
5311 Reported by: Leif Lindholm
5312
5313 2013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
5314 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5315
5316 * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
5317 codes.
5318
5319 2013-09-18 Colin Watson <cjwatson@ubuntu.com>
5320
5321 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
5322 Remove no-longer-true __attribute__ ((unused)) on disk parameter.
5323
5324 2013-09-18 Douglas Ray <dougray@cpan.org>
5325
5326 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
5327 as secure.
5328
5329 2013-09-18 Aleš Nesrsta <starous@volny.cz>
5330
5331 * docs/grub.texi: Fix broken link.
5332
5333 2013-09-18 Melki Christian <Christian.melki@saabgroup.com>
5334
5335 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
5336 to break endless loop.
5337
5338 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5339
5340 * util/grub-fstest.c: Fix several printf formats.
5341 * util/grub-mkimage.c: Likewise.
5342 * util/grub-mkimagexx.c: Likewise.
5343 * util/grub-script-check.c: Likewise.
5344
5345 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5346
5347 * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
5348 error.
5349
5350 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5351
5352 * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
5353
5354 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5355
5356 * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
5357 removed in current versions cygwin_conv_*.
5358
5359 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5360
5361 * configure.ac: Disable efiemu runtime on cygwin.
5362
5363 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5364
5365 * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
5366 util/grub-gen-widthspec.c and util/grub-pe2elf.c.
5367
5368 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5369
5370 * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
5371 error message.
5372
5373 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5374
5375 * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
5376 windows variant.
5377 * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
5378 data.
5379
5380 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5381
5382 * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
5383 when on x86 and not cygwin.
5384 * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
5385 -Wl,-melf_x86_64.
5386
5387 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5388
5389 * configure.ac: Set CPP to build one when checkoing for freetype for
5390 build.
5391
5392 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5393
5394 * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
5395 [!GRUB_BUILD]: Remove has_argument.
5396
5397 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5398
5399 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
5400 Replace with a dummy.
5401
5402 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5403
5404 * configure.ac: Don't change host_os from mingw to cygwin.
5405
5406 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5407
5408 * configure.ac: Change target_os from windows to cygwin.
5409
5410 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5411
5412 Handle grub-pe2elf and grub-mkfont for cases when build != host.
5413
5414 * Makefile.am (build-grub-mkfont): Don't include gnulib.
5415 (build-grub-gen-asciih): Likewise.
5416 (build-grub-gen-widthspec): Likewise.
5417 * Makefile.util.def (grub-pe2elf): Remove.
5418 * config.h.in [GRUB_BUILD]: Use build rather than host constants.
5419 * configure.ac: Separate tests for build.
5420 Move ./build-grub-pe2elf to grub-core.
5421 Fix typo.
5422 * grub-core/Makefile.am (build-grub-pe2elf): New target.
5423 * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
5424 defined.
5425 * include/grub/types.h [GRUB_BUILD]: Use build rather than host
5426 constants.
5427 * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
5428 * util/grub-pe2elf.c: Simplify not to rely on getopt.
5429 * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
5430
5431 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5432
5433 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
5434 mingw32 as well based on grub_util_get_disk_size.
5435 * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
5436 grub_util_get_fd_size.
5437 (sync): Removed.
5438 (fsync): Moved to ...
5439 * grub-core/kern/emu/misc.c (fsync): ... here.
5440
5441 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5442
5443 * include/grub/mm.h (grub_extend_alloc): Remove.
5444 * grub-core/loader/i386/pc/plan9.c: Use own version of
5445 grub_extend_alloc with appropriate types.
5446
5447 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5448
5449 * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
5450
5451 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5452
5453 * util/getroot.c: Include sys/wait.h only when we need waitpid.
5454
5455 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5456
5457 Fix dependencies on cygwin.
5458
5459 * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
5460 dependencies when used and defined.
5461 * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
5462
5463 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5464
5465 * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
5466 * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
5467
5468 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5469
5470 * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
5471 implementation available to cause compile-time rather than runtime
5472 error.
5473
5474 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5475
5476 * util/grub-fstest.c: Don't check for symlinks on windows.
5477
5478 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5479
5480 * INSTALL: Mention unavailability of man pages when cross-compiling.
5481
5482 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5483
5484 * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
5485 and gcry_log_bug.
5486 * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
5487
5488 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5489
5490 * INSTALL: Document cross-compilation.
5491 * acinclude.m4: Determine whether nm support -P and --defined-only.
5492 * configure.ac: Add TARGET_ to all variables pertaining to target
5493 that don't have it yet.
5494 * gentpl.py: Likewise.
5495 * grub-core/Makefile.am: Likewise.
5496 * grub-core/genmod.sh.in: Likewise.
5497 * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
5498 as well.
5499
5500 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5501
5502 * configure.ac: Remove -Wempty-body. It's not essential and needs
5503 recent gcc.
5504
5505 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5506
5507 * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
5508 * util/getroot.c: Likewise.
5509
5510 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5511
5512 * grub-core/disk/ahci.c: Add needed explicit cast.
5513 * grub-core/lib/backtrace.c: Likewise.
5514 * grub-core/net/ip.c: Likewise.
5515 * grub-core/net/tcp.c: Likewise.
5516 * grub-core/net/udp.c: Likewise.
5517
5518 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5519
5520 * grub-core/lib/posix_wrap/wchar.h: Fix typo.
5521
5522 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5523
5524 * util/import_gcry.py: Add final newline in visibility.h.
5525
5526 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5527
5528 * conf/Makefile.common: Fix typo.
5529
5530 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5531
5532 * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
5533
5534 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5535
5536 * Makefile.am (widthspec.h): Fix typo.
5537 * util/grub-gen-widthspec.c: Likewise.
5538
5539 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5540
5541 Move ascii.h and widthspec.h generation to a separate build-time-only
5542 tool.
5543
5544 2013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
5545
5546 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
5547 Always fill bootdisk info and improve check for NetBSD disklabel.
5548
5549 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5550
5551 * conf/Makefile.extra-dist: Add util/bin2h.c.
5552 Reported by: floppym.
5553
5554 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5555
5556 * configure.ac: Make unifont mandatory for powerpc-ieee1275.
5557
5558 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5559
5560 * configure.ac: Disable unifont and starfield if no freetype was found.
5561
5562 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5563
5564 * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
5565 on NetBSD and OpenBSD.
5566
5567 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5568
5569 * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
5570
5571 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5572
5573 * grub-core/gfxmenu/gui_list.c: The number of color mappings is
5574 reduced. Inheritant options are processed during the theme loading.
5575
5576 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5577
5578 * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
5579
5580 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5581
5582 * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
5583
5584 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5585
5586 * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
5587 using qemu.
5588
5589 2013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5590
5591 * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
5592 remove-potcdate.sed.
5593
5594 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5595
5596 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
5597 unused attribute from pull argument.
5598
5599 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5600
5601 * util/getroot.c (grub_util_is_imsm): Fix descriptor and
5602 memory leak.
5603
5604 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5605
5606 * util/getroot.c (pull_lvm_by_command): add --separator option
5607 to vgs call to disable padding of output to 10 characters.
5608
5609 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5610
5611 * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
5612 here ...
5613 * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
5614 here.
5615
5616 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5617
5618 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
5619 length.
5620
5621 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5622
5623 Fix handling of build-time grub-bin2h and grub-mkfont when doing
5624 full Canadian cross. Tested with build=x86_64, host=arm,
5625 target=ppc-ieee1275.
5626
5627 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5628
5629 * configure.ac: Error if no $BUILD_CC could be found.
5630 Reported by: DevHC.
5631
5632 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5633
5634 * grub-core/kern/i386/coreboot/init.c: Fix compilation on
5635 i386-multiboot.
5636
5637 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5638
5639 * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
5640 * grub-core/kern/mips/qemu_mips/init.c: Likewise.
5641
5642 2013-08-13 Colin Watson <cjwatson@ubuntu.com>
5643
5644 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
5645 grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
5646 falling back to the partition device, otherwise a later call to this
5647 function may fail spuriously.
5648 Reported by Axel Beckert. Fixes Debian bug #708614.
5649
5650 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5651
5652 * autogen.sh: Replace find -not by the POSIX-compliant find !.
5653
5654 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5655
5656 Prevent shadowing of stdlib's devname(3) on BSD.
5657
5658 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
5659 and devlast to diskname and disklast, respectively.
5660
5661 2013-08-11 Colin Watson <cjwatson@ubuntu.com>
5662
5663 * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
5664
5665 2013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5666
5667 * docs/grub.texi: Introduce terminal window position options:
5668 terminal-left: terminal window's left position
5669 terminal-top: terminal window's top position
5670 terminal-width: terminal window's width
5671 terminal-height: terminal window's height
5672 terminal-border: terminal window's border width
5673 * grub-core/gfxmenu/theme-loader.c: Likewise.
5674 * include/grub/gfxmenu_view.h: Likewise.
5675 * po/exlude.pot: Likewise.
5676 * grub-core/gfxmenu/view.c: Likewise.
5677 Also updated minimal window size.
5678 Also terminal_sanity_check function has been introduced.
5679 * grub-core/tests/checksums.h: Update (terminal window height
5680 is adjusted now for low resolution screen)
5681
5682 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5683
5684 * grub-core/tests/checksums.h: Update (1-pixel difference in marker
5685 position).
5686
5687 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5688
5689 * po/exclude.pot: Add few recent exceptions.
5690
5691 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5692
5693 * tests/grub_func_test.in: Add unicode.pf2.
5694
5695 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5696
5697 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
5698 standard rather than noral color, in line with other terminals.
5699
5700 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5701
5702 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
5703 analysis.
5704
5705 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5706
5707 * grub-core/loader/arm/linux.c: Change printf to dprintf.
5708
5709 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5710
5711 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
5712 inappropriate printf.
5713
5714 2013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
5715
5716 * .bzrignore: Remove grub-core/lib/dtc-grub,
5717 grub-core/Makefile.libfdt.def
5718 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
5719
5720 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5721
5722 * include/grub/video.h (grub_video_register): Keep double-linked as
5723 well as single-linked invariants.
5724 Reported by: qwertial.
5725
5726 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5727
5728 * grub-core/commands/nativedisk.c (get_uuid): Handle
5729 GRUB_DISK_DEVICE_UBOOTDISK_ID.
5730
5731 2013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
5732
5733 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
5734 maximum of NW, N, NE heights instead of N's height and maximum of
5735 NW, W, SW widths instead of W's width. (So the box will be always
5736 correctly drawn)
5737
5738 2013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
5739
5740 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
5741 Fix misuse of variable count.
5742
5743 2013-07-18 Leif Lindholm <leif.lindholm@arm.com>
5744 2013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
5745 2013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
5746
5747 New ports to arm-uboot and arm-efi.
5748 Mostly by Leif Lindholm with some additions from
5749 Francesco Lavra and cleanup by Vladimir Serbinenko.
5750
5751 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5752
5753 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
5754 and not before.
5755 Reported by: Leon Drugi.
5756
5757 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5758
5759 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
5760 Reported by: Paulo Flabiano Smorigo.
5761
5762 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5763
5764 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
5765
5766 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5767
5768 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
5769
5770 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5771
5772 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
5773
5774 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5775
5776 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
5777
5778 2013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
5779
5780 * grub-core/net/bootp.c: Export net_* variables.
5781 * grub-core/net/net.c: Likewise.
5782
5783 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5784
5785 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
5786
5787 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5788
5789 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
5790
5791 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5792
5793 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
5794
5795 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5796
5797 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
5798
5799 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5800
5801 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
5802 <= 0.
5803
5804 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5805
5806 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
5807 functions.
5808
5809 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5810
5811 * grub-core/fs/zfs/zfs_lz4.c: New file.
5812 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
5813
5814 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5815
5816 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
5817
5818 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5819
5820 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
5821 (check_pool_label): Likewise.
5822 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
5823
5824 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5825
5826 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
5827
5828 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
5829
5830 * docs/grub.texi (Commands): Document postition parameters
5831 for menuentry command.
5832
5833 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
5834
5835 * util/grub-mknetdir.in: Remove stray line from help output.
5836
5837 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5838
5839 Remove early sm712 init as there is no reason for it (the "watchdog"
5840 effect was due to wrong GPIO map).
5841
5842 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5843
5844 * grub-core/commands/pcidump.c: Remove static variables.
5845
5846 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5847
5848 * grub-core/commands/sleep.c: Refresh screen before sleeping.
5849
5850 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5851
5852 * configure.ac: Move delimiter after the infos.
5853
5854 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5855
5856 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
5857
5858 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5859
5860 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
5861 not filling whole 8x16 space.
5862
5863 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5864
5865 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
5866
5867 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5868
5869 * configure.ac: Indicate which liblzma is used if any.
5870
5871 2013-06-21 Paul Wise <pabs3@bonedaddy.net>
5872 2013-06-21 Craig Sanders <savannah@taz.net.au>
5873
5874 * util/grub-reboot.in: Document submenu usage.
5875
5876 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
5877
5878 * .bzrignore: Update with a number of new test-related files.
5879
5880 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
5881
5882 * util/grub-script-check.c: Fail on scripts containing no
5883 commands, to guard against corrupted grub-mkconfig setups that
5884 produce no useful output.
5885 * tests/grub_script_no_commands.in: New test.
5886 * Makefile.util.def (grub_script_no_commands): Add.
5887 Reported by Hans Putter. Fixes Debian bug #713886.
5888
5889 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5890
5891 * grub-core/disk/diskfilter.c: Forgot to remove comment
5892 from previous commit.
5893
5894 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5895
5896 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
5897 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
5898
5899 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5900
5901 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
5902
5903 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5904
5905 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
5906 rescan diskfilter devices until nothing new is found.
5907
5908 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5909
5910 Fix casts when compiling coreboot-specific code for 64-bit EFI.
5911
5912 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5913
5914 Don't try to detect cbfs on *-emu.
5915
5916 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5917
5918 * grub-core/term/gfxterm.c: USe right background color when scrolling.
5919
5920 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5921
5922 Add support for processed coreboot payload chainloading.
5923
5924 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5925
5926 Enable coreboot information commands even when not loaded as
5927 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
5928
5929 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5930
5931 Support for cbfs. Also factor out the part which is common
5932 for all archives to a separate module. This splits tar from cpio
5933 as they are very different but keeps cpio, cpio_be, odc and newc
5934 together since they're very similar.
5935
5936 2013-06-15 David Michael <fedora.dm0@gmail.com>
5937
5938 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
5939 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
5940
5941 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5942
5943 * tests/grub_script_eval.in: Really add the eval test.
5944
5945 2013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
5946
5947 Move flavour-specific parts out of common cpio.c file and
5948 rename remaining to cpio_common.c
5949
5950 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
5951
5952 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
5953 off new function grub_script_execute_new_scope. Change callers to use
5954 either of them as appropriate.
5955 * grub-core/commands/eval.c: New command eval.
5956 * docs/grub.texi (Commands): Document it.
5957
5958 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
5959
5960 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
5961 to fetch values when listing.
5962
5963 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
5964
5965 Fix make dist on non-pc.
5966
5967 2013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
5968
5969 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
5970 without a device name.
5971
5972 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5973
5974 Remove enable_executable_check as it's not needed anymore.
5975 Reported by: dougray.
5976
5977 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5978
5979 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
5980 ambigouos RAID before discovering RAIDs on top of it.
5981 Reported by: bodom.
5982
5983 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5984
5985 Fix typo (failback vs fallback).
5986
5987 2013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
5988
5989 * util/grub.d/30_os-prober.in: Add support for probing EFI
5990 System Partition (as of os-prober 1.58).
5991
5992 2013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
5993
5994 * configure.ac: Add yet another path to unifont. For parabola.
5995
5996 2013-05-30 Josh Triplett <josh@joshtriplett.org>
5997
5998 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
5999 handling to copy the killed characters to the kill buffer as
6000 UCS4 stored as grub_uint32_t rather than as 8-bit characters
6001 stored as char. Eliminates UCS4 truncation and corruption
6002 observed when killing characters with Ctrl-u and yanking them
6003 back with Ctrl-y.
6004
6005 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6006
6007 Detach optional parts of gfxterm and integrate in with coreboot init.
6008
6009 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6010
6011 Move blit and fill dispatcher to appropriate files to decrease export
6012 and relocation overhead.
6013
6014 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6015
6016 * grub-core/font/font.c, include/grub/font.h: Inline simple font
6017 functions.
6018
6019 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6020
6021 * grub-core/Makefile.am: Fix compilation problem with some
6022 automake versions.
6023
6024 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6025
6026 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
6027
6028 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6029
6030 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
6031 automake versions.
6032
6033 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6034
6035 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
6036 SSDT.
6037
6038 2013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
6039
6040 * grub-core/partmap/dfly.c: New partition map.
6041
6042 2013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
6043
6044 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
6045 checking.
6046 Reported by: Francesco Lavra.
6047
6048 2013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
6049
6050 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
6051 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
6052 false conditions.
6053 * conf/Makefile.common: define dist_grubconf_DATA
6054
6055 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6056
6057 Progressively skip menu elements on small terminals rather
6058 than crashing.
6059
6060 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6061
6062 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
6063 to avoid losing last column.
6064
6065 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6066
6067 * po/exclude.pot: Add missing string "%C".
6068
6069 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6070
6071 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
6072 after the test.
6073
6074 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6075
6076 * util/grub-install.in: Gettextize "Not found" message.
6077
6078 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6079
6080 Fix distfiles list.
6081 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6082
6083 2013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6084
6085 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
6086 present.
6087 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
6088
6089 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6090
6091 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
6092
6093 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6094
6095 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
6096 attribute since structure is not necessarily aligned.
6097
6098 2013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
6099
6100 * docs/grub.texi (Device syntax): Clarify description of network
6101 drives.
6102
6103 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6104
6105 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
6106 for vasprintf presence.
6107
6108 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6109
6110 * util/grub-install.in: Handle efibootmgr presence check.
6111 Reported by: Leif Lindholm.
6112
6113 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6114
6115 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
6116 new strings to translate.
6117
6118 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6119
6120 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
6121 yet another string (pun intended) to translate.
6122
6123 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6124
6125 * po/POTFILES-shell.in: Autogenerate it.
6126
6127 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6128
6129 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
6130
6131 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6132
6133 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
6134 misnomer.
6135
6136 2013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
6137
6138 * docs/grub.texi (Network): Add description of net_default_interface,
6139 net_default_ip and net_default_mac. Rewrite variables description
6140 to emphasize that they are per-interface.
6141
6142 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6143
6144 New test: cmdline and cat.
6145
6146 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6147
6148 * grub-core/commands/cat.c: Show UTF-8 characters.
6149
6150 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6151
6152 * conf/Makefile.common: Poison float and double on non-emu.
6153
6154 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6155
6156 * configure.ac: Don't disable extended registers on emu.
6157
6158 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6159
6160 * configure.ac: Don't use extended registers on x86_64.
6161 Reported by: Peter Jones.
6162
6163 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6164
6165 * grub-core/term/efi/console.c: Fix compile error.
6166
6167 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6168
6169 Compressed HFS+ support.
6170
6171 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6172
6173 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
6174 pixel".
6175
6176 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6177
6178 Menu color test.
6179
6180 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6181
6182 * grub-core/tests/setjmp_test.c: New test.
6183
6184 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6185
6186 New variables 'net_default_*' to determine MAC/IP of default interface.
6187
6188 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6189
6190 * tests/gettext_strings_test.in: A test to check for strings not
6191 marked for translation.
6192
6193 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6194
6195 * autogen.sh: Exclude unused libgcrypt files from translation.
6196
6197 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6198
6199 Simplify few strings.
6200
6201 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6202
6203 Mark few forgotten strings for translation.
6204
6205 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6206
6207 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
6208 rather than printf.
6209
6210 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6211
6212 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
6213 rather than printf.
6214 * grub-core/video/readers/tga.c: Likewise.
6215
6216 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6217
6218 * tests/priority_queue_unit_test.cc: New test.
6219
6220 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6221
6222 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
6223 than printf.
6224
6225 2013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
6226
6227 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
6228 variable for one time boot menu entry.
6229
6230 2013-05-05 Bean <bean123ch@gmail.com>
6231
6232 * grub-core/commands/testspeed.c: New command testspeed.
6233
6234 2013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
6235
6236 Factor-out human-size printing.
6237
6238 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6239
6240 Agglomerate more mallocs to speed-up gfxterm.
6241
6242 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6243
6244 Speed-up gfxterm by slightly agglomerating mallocs.
6245
6246 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6247
6248 More video checks.
6249
6250 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6251
6252 Speed-up gfxterm by saving intermediate results in index+alpha
6253 format.
6254
6255 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6256
6257 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
6258 test.
6259
6260 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6261
6262 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
6263 line of timeout as it may contain the rest of long line.
6264
6265 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6266
6267 * grub-core/normal/main.c: Fix freed memory dereference.
6268
6269 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6270
6271 Fix several memory leaks.
6272
6273 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6274
6275 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
6276
6277 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6278
6279 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
6280
6281 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6282
6283 Fix test -a and -o precedence.
6284 Reported by: adrian15.
6285
6286 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6287
6288 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
6289
6290 2013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
6291
6292 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
6293 and add it as source to functional_test module.
6294
6295 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6296
6297 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
6298
6299 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6300
6301 New series of tests for gfxterm and gfxmenu.
6302
6303 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6304
6305 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
6306 the theme path relative to $prefix/themes.
6307
6308 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6309
6310 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
6311 Fix order bug.
6312 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
6313
6314 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6315
6316 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
6317 descriptor.
6318
6319 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6320
6321 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
6322 grub_gfxmenu_timeout_notifications.
6323 (grub_gfxmenu_view_destroy): Likewise.
6324
6325 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6326
6327 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
6328
6329 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6330
6331 Several fixes to ieee1275 and big-endian video.
6332
6333 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6334
6335 Add missing exports on mips.
6336
6337 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6338
6339 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
6340 if no unifont is found.
6341 Restore original keyboard.
6342
6343 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6344
6345 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
6346 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
6347
6348 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6349
6350 First automated video test (running videotest and comparing results)
6351
6352 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6353
6354 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
6355 instead of 2 to have full RGB/CMY test pattern.
6356
6357 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6358
6359 Add few more tests.
6360
6361 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6362
6363 * include/grub/arc/arc.h: Account for missing "other" peripheral on
6364 ARCS. All users updated.
6365
6366 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6367
6368 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
6369
6370 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6371
6372 * grub-core/partmap/amiga.c: Fix size of checksummed block.
6373
6374 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6375
6376 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
6377 Reported by: qwertial.
6378
6379 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6380
6381 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
6382 with syntax "XXX deg"/"XXX °".
6383
6384 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6385
6386 Make PCI init in i386-qemu port more robust.
6387
6388 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6389
6390 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
6391 cached view is reused.
6392 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
6393 open boot menus.
6394
6395 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6396
6397 Unify more code in grub-install_header.
6398
6399 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6400
6401 Add few new tests.
6402
6403 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6404
6405 Enforce disabling of firmware disk drivers when native drivers kick in.
6406
6407 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6408
6409 * grub-core/commands/nativedisk.c: Customize the list of modules on
6410 platform. Don't try to search for disks already using native drivers.
6411
6412 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6413
6414 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
6415 platforms.
6416
6417 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6418
6419 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
6420 handling of variables containing backslash.
6421
6422 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6423
6424 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
6425 dereference.
6426 Reported by: qwertial.
6427
6428 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6429
6430 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
6431
6432 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6433
6434 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
6435 dereference.
6436 Reported by: qwertial.
6437
6438 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6439
6440 * docs/grub.texi: Add a comment about usefullness of nativedisk.
6441
6442 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6443
6444 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
6445
6446 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6447
6448 New command `nativedisk'.
6449
6450 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6451
6452 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
6453 * grub-core/loader/i386/bsd.c: Likewise.
6454
6455 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6456
6457 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
6458
6459 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6460
6461 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
6462 grub_get_unaligned16 rather than shifts.
6463
6464 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6465
6466 * grub-core/kern/file.c: Use const char * rather than casting to
6467 non-const.
6468
6469 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6470
6471 * grub-core/commands/probe.c: Add missing grub_device_close.
6472
6473 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6474
6475 * INSTALL: Document linguas.sh.
6476
6477 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6478
6479 Remove POTFILES.in and regenerate it in autogen.sh.
6480
6481 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6482
6483 Move --directory/--override-directorry to grub-install_header and unify.
6484
6485 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6486
6487 * grub-core/term/morse.c: Macroify dih and dah.
6488
6489 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6490
6491 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
6492
6493 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6494
6495 * grub-core/term/ns8250.c: Systematically probe ports by writing
6496 to SR before using them.
6497
6498 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6499
6500 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
6501 disks.
6502 (check_sas): Get sas_adress info.
6503
6504 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6505
6506 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
6507 ports.
6508
6509 2013-04-27 Leon Drugi <eyak>
6510
6511 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
6512 BSS clearing.
6513
6514 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6515
6516 Core compression test.
6517
6518 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6519
6520 Implement grub_machine_get_bootlocation for ARC.
6521
6522 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6523
6524 Improve AHCI detection and command issuing.
6525
6526 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6527
6528 Fix pseries test.
6529
6530 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6531
6532 Make 'make check' work on emu.
6533
6534 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6535
6536 Replace libcurses with our own vt100 handling for the ease of testing
6537 and decreasing prerequisites.
6538
6539 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6540
6541 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
6542
6543 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6544
6545 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
6546 compile when not needed.
6547
6548 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6549
6550 * tests/pseries_test.in: New test.
6551
6552 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6553
6554 Add test to check that different boot mediums work.
6555
6556 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6557
6558 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
6559 ofw limited ISO support.
6560
6561 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6562
6563 * configure.ac: Fix loongson conditional.
6564
6565 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6566
6567 Enable mipsel-arc.
6568
6569 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6570
6571 Add serial on ARC platform.
6572
6573 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6574
6575 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
6576 commit.
6577
6578 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6579
6580 * tests/partmap_test.in: Add missing double semicolon.
6581
6582 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6583
6584 * util/grub-mkrescue.in: Fix loongson filename.
6585
6586 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6587
6588 * util/grub-mkrescue.in: Move all files that don't have a location
6589 set in stone under /boot/grub. Use ISO hard links rather than copies
6590 to save some space.
6591
6592 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6593
6594 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
6595 bogus SLOF values.
6596
6597 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6598
6599 Make check work on mips-arc.
6600
6601 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6602
6603 * util/grub-mkrescue.in: Alias sashARCS as sash.
6604
6605 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6606
6607 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
6608 it's serial.
6609
6610 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6611
6612 * util/grub-install.in: Fix target fo qemu_mips.
6613 Fix extension on EFI.
6614
6615 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6616
6617 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
6618 in front of chosen entry to mark it even if highlighting is lost.
6619
6620 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6621
6622 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
6623 gfxpayload=keep if cbfb is active.
6624
6625 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6626
6627 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
6628
6629 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6630
6631 Add missing video ids to coreboot and ieee1275 video.
6632
6633 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6634
6635 * util/grub-mkrescue.in: Add mips-arc support.
6636
6637 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6638
6639 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
6640
6641 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6642
6643 Move mips-arc link address. Previous link address was chosen
6644 in belief that RAM on SGI platforms grows down while in fact it
6645 grows up from an unusual base.
6646
6647 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6648
6649 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
6650 Fix a type which prevented CD-ROM and floppy boot.
6651
6652 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6653
6654 Support coreboot framebuffer.
6655
6656 * grub-core/video/i386/coreboot/cbfb.c: New file.
6657
6658 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6659
6660 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
6661 detecting too small regions.
6662
6663 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6664
6665 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
6666
6667 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6668
6669 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
6670 Remove dprintf.
6671 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
6672
6673 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6674
6675 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
6676 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6677 * grub-core/loader/powerpc/ieee1275/linux.c
6678 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6679
6680 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6681
6682 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6683 Look for /boot-rom as well as /rom/boot-rom.
6684
6685 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6686
6687 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
6688 handling when creating text_layer failed.
6689 * grub-core/video/video.c (grub_video_create_render_target):
6690 Set result to 0 on error.
6691 (grub_video_delete_render_target): Do not dereference NULL.
6692
6693 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6694
6695 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
6696 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
6697 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
6698 (grub_linux_load64): Mask out 2 high bits.
6699
6700 2013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
6701
6702 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
6703 more place.
6704
6705 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6706
6707 Add support for pseries and other bootinfo machines to grub-mkrescue.
6708
6709 Tested by: Paulo Flabiano Smorigo.
6710
6711 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6712
6713 * util/grub-mkrescue.in: Add GPT for EFI boot.
6714
6715 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6716
6717 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
6718 It improves performance in qemu.
6719
6720 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6721
6722 * build-aux/snippet: Add missing gnulib files.
6723
6724 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6725
6726 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
6727
6728 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6729
6730 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
6731
6732 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6733 2013-04-15 Peter Jones <pjones@redhat.com>
6734
6735 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
6736 sectors.
6737 Based on patch by Peter Jones.
6738
6739 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6740
6741 Fix DMRAID partition handling.
6742
6743 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6744
6745 * tests/grub_cmd_date.in: Skip on sparc64.
6746
6747 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6748
6749 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
6750 firmware error messages.
6751
6752 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6753
6754 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
6755 source and destination differ.
6756
6757 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6758
6759 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
6760 detection.
6761
6762 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6763
6764 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
6765 match config-util.h to avoid warnings and increase compatibility.
6766
6767 2013-04-14 Szymon Janc <szymon@janc.net.pl>
6768 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6769
6770 Add option to compress files on install/image creation.
6771
6772 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6773
6774 * docs/grub-dev.texi: Rearrange menu to match the section order.
6775 Reported by: Bryan Hundven.
6776
6777 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6778
6779 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
6780
6781 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6782
6783 Move GRUB out of system area when using xorriso 1.2.9 or later.
6784
6785 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6786
6787 * tests/grub_cmd_date.in: Add missing exit 1.
6788
6789 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6790
6791 * tests/partmap_test.in: Skip on sparc64.
6792
6793 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6794
6795 Support grub-shell on sparc64.
6796
6797 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6798
6799 Support mkrescue on sparc64.
6800
6801 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6802
6803 Allow IEEE1275 ports on path even if it wasn't detected automatically.
6804 Needed on OpenBIOS due to incomplete device tree.
6805
6806 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6807
6808 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
6809 would be otherwise excluded.
6810
6811 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6812
6813 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6814 Inline name defines used only once.
6815
6816 2013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
6817
6818 Fix memory leaks in ofnet.
6819 Reported by: Francesco Lavra.
6820
6821 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6822
6823 * docs/man/grub-glue-efi.h2m: Add missing file.
6824
6825 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6826
6827 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
6828
6829 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6830
6831 Better support Apple Intel Macs on CD.
6832
6833 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6834
6835 Replace stpcpy with grub_stpcpy in tools.
6836
6837 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6838
6839 Handle Japanese special keys.
6840 Reported by: Hiroyuki YAMAMORI.
6841 Codes supplied by: Hiroyuki YAMAMORI.
6842
6843 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6844
6845 * util/grub-mkimage.c: Document memdisk implying --prefix.
6846
6847 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6848
6849 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
6850 much we can do about it anyway.
6851
6852 2013-04-12 Aleš Nesrsta <starous@volny.cz>
6853
6854 Fix handling of split transfers.
6855
6856 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6857
6858 * grub-core/net/http.c: Fix bad free.
6859
6860 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6861
6862 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
6863 than buffer size.
6864
6865 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6866
6867 Disable partmap check on i386-ieee1275 due to openfirmware issues.
6868
6869 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6870
6871 * tests/util/grub-shell.in: Fix it on powerpc.
6872
6873 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6874
6875 Turn off QEMU ACPI-way since new releases don't have shutdown port
6876 anymore.
6877
6878 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6879
6880 * docs/grub.texi: Update coreboot status info.
6881
6882 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6883
6884 * tests/grub_cmd_date.in: New test for datetime.
6885
6886 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6887
6888 * tests/partmap_test.in: Fix missing qemudisk setting.
6889
6890 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6891
6892 Support i386-ieee1275 grub-mkrescue and make check on it.
6893
6894 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6895
6896 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
6897 feature for it.
6898
6899 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6900
6901 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
6902 GRUB_CMDLINE_XEN_DEFAULT.
6903 Reported by: Marc Warne (GigaTux) <gigatux>
6904
6905 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6906
6907 Import new gnulib.
6908
6909 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6910
6911 Use ACPI shutdown intests as traditional port was removed.
6912
6913 2013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
6914
6915 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
6916 distinction.
6917
6918 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6919
6920 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
6921 Fix few warining messages and leaks while on it.
6922
6923 2013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
6924
6925 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
6926 links under grub-core/lib/libgcrypt-grub/mpi.
6927
6928 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6929
6930 Fix ia64-efi image generation on big-endian machines. Deduplicate
6931 some code while on it.
6932 Reported by: Leif Lindholm.
6933
6934 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
6935
6936 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
6937 as extra_dist.
6938
6939 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
6940
6941 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
6942
6943 2013-04-08 Bryan Hundven <bryanhundven@gmail.com>
6944
6945 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
6946 texinfo-5.1.
6947
6948 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6949
6950 * grub-core/normal/term.c: Few more fixes for menu entry editor
6951 rendering.
6952 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6953
6954 2013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
6955
6956 * grub-core/normal/term.c: Few more fixes for menu entry editor
6957 rendering.
6958 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6959
6960 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
6961
6962 * conf/Makefile.extra-dist (EXTRA_DIST): Add
6963 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
6964
6965 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
6966
6967 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
6968 instead of hardcoding grub.mo.
6969
6970 2013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
6971
6972 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
6973
6974 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6975
6976 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
6977 grub-core/disk/geli.c.
6978
6979 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6980
6981 * util/grub-mkfont.c: Prefer enum to #define.
6982
6983 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6984
6985 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
6986
6987 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6988
6989 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
6990
6991 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6992
6993 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
6994
6995 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6996
6997 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
6998
6999 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7000
7001 * include/grub/bsdlabel.h: Use enums.
7002
7003 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7004
7005 Move GRUB_CHAR_BIT to types.h.
7006
7007 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
7008
7009 * docs/grub.texi: Document more user commands.
7010
7011 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
7012
7013 * docs/grub.texi: Document menuentry --id option.
7014
7015 2013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
7016
7017 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
7018
7019 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7020
7021 Unify file copying setup across different install scripts. Add
7022 options for performing partial install.
7023
7024 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7025 2013-04-04 Peter Jones <pjones@redhat.com>
7026
7027 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
7028
7029 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7030
7031 Use TSC as a possible time source on i386-ieee1275.
7032
7033 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7034
7035 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
7036 Init err.
7037
7038 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7039
7040 * util/grub-setup.c (setup): Handle some corner cases.
7041
7042 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7043
7044 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
7045
7046 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7047
7048 * grub-core/commands/verify.c: Save verified file to avoid it being
7049 tampered with after verification was done.
7050
7051 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7052
7053 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
7054 reported width by one to compensate for curesor algorithm problem.
7055
7056 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7057
7058 Fix screen corruption in menu entry editor and simplify the code
7059 flow while on it.
7060
7061 2013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
7062
7063 * util/grub-mount.c (fuse_init): Return error if fuse_main
7064 failed.
7065
7066 2013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
7067
7068 * include/grub/elf.h: Add missing ARM relocation codes and fix
7069 existing ones.
7070
7071 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7072
7073 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
7074
7075 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7076 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7077
7078 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
7079 into account when calculating radius.
7080
7081 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7082
7083 * grub-core/gfxmenu/view.c: Fix off-by-one error.
7084
7085 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7086
7087 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
7088
7089 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7090
7091 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
7092 missing closing bracket.
7093
7094 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7095
7096 * INSTALL: Mention xorriso requirement.
7097
7098 2013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
7099
7100 * grub-core/commands/verify.c: Fix hash algorithms values for
7101 the first three hashes - they start with 1, not with 0.
7102
7103 2013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
7104
7105 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
7106 Try terminating EFI services several times due to quirks in some
7107 implementations.
7108
7109 2013-03-26 Colin Watson <cjwatson@ubuntu.com>
7110
7111 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
7112 skipping Event, Device, Processor, PowerRes, ThermalZone, and
7113 BankField extended opcodes.
7114 (get_sleep_type): Add minimal scope handling (just enough to
7115 handle setting the scope to the root path).
7116 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
7117 * include/grub/acpi.h: Add enumeration values for Event, Device,
7118 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
7119
7120 2013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
7121
7122 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
7123 memory leak.
7124
7125 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7126
7127 * grub-core/disk/ahci.c: Give more time for AHCI request.
7128
7129 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7130
7131 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
7132 command.
7133
7134 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7135
7136 Replace the region at 0 from coreboot tables to available in BSD
7137 memory map.
7138
7139 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7140
7141 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
7142 non-BIOS platforms.
7143
7144 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7145
7146 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
7147 platforms.
7148
7149 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7150
7151 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
7152 handling of multi-device filesystems.
7153
7154 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7155
7156 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
7157 platforms.
7158
7159 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7160
7161 Add new 'proc' filesystem framework and put luks_script into it.
7162
7163 2013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
7164
7165 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
7166 and qemu.
7167
7168 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7169
7170 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
7171
7172 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7173
7174 Add ability to generate newc additions on runtime.
7175
7176 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7177
7178 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
7179 description.
7180
7181 2013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
7182
7183 * po/POTFILES.in: Regenerate.
7184
7185 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7186
7187 * grub-core/commands/verify.c (hashes): Add several hashes
7188 from the spec.
7189
7190 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7191
7192 Slight improve in USB-related boot-time checkpoints.
7193
7194 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7195
7196 * grub-core/commands/boottime.c: Fix copyright header.
7197
7198 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7199
7200 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
7201 coreboot tables content. Support for cbmemc.
7202
7203 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7204
7205 Fix a conflict between ports structures with 2 controllers of
7206 same kind.
7207
7208 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7209
7210 * include/grub/boottime.h: Add missing file.
7211
7212 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7213
7214 Initialize USB ports in parallel to speed-up boot.
7215
7216 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7217
7218 Fix USB devices not being detected when requested
7219 due to delayed attach.
7220
7221 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7222
7223 Implement boot time analysis framework.
7224
7225 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7226
7227 Remove get_endpoint_descriptor and change all functions needing
7228 descriptor to just receive it as argument rather than endpoint
7229 address.
7230
7231 2013-03-19 Aleš Nesrsta <starous@volny.cz>
7232
7233 Better estimate the maximum USB transfer size.
7234
7235 2013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
7236
7237 Resend a packet if we got the wrong buffer in status.
7238
7239 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7240
7241 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
7242 multiplication rather than division.
7243
7244 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7245
7246 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
7247 than divisions.
7248
7249 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7250
7251 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
7252 operations to have intended shifts and not divisions.
7253
7254 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7255
7256 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
7257 intended shifts rather than division.
7258
7259 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7260
7261 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
7262 computation for some years before epoch. Avode confusing division
7263 while on it.
7264
7265 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7266
7267 * grub-core/video/i386/pc/vbe.c
7268 (grub_video_vbe_print_adapter_specific_info): Replace division by
7269 shifts.
7270
7271 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7272
7273 Adjust types in gdb module to have intended unsigned shifts rather than
7274 signed divisions.
7275
7276 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7277
7278 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
7279 maximum size is 4G - 1 on hfs
7280
7281 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7282
7283 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
7284
7285 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7286
7287 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
7288 function.
7289
7290 2013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
7291
7292 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
7293 causing gcc error with gcc 4.7.1.
7294
7295 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7296
7297 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
7298 dereference null pointer. While the code is technically correct, gcc
7299 may eliminate a null check if pointer is already dereferenced.
7300
7301 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7302
7303 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
7304 OOM check.
7305 * grub-core/normal/term.c (read_terminal_list): Likewise.
7306
7307 2013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
7308
7309 Lift up core size limits on some platforms. Fix potential memory
7310 corruption with big core on small memory systems. Document remaining
7311 limits.
7312
7313 2013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
7314
7315 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
7316 gotoxy to 0,0.
7317
7318 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7319
7320 Remove all trampoline support. Add -Wtrampolines when
7321 present. Remove symbols used for trampolines to make
7322 link fail if trampolines are present.
7323
7324 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7325
7326 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
7327 append out of its parent.
7328
7329 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7330
7331 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
7332 parent.
7333
7334 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7335
7336 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
7337 all vars to a macro. All users updated.
7338
7339 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7340
7341 * grub-core/disk/ieee1275/nand.c: Fix compilation on
7342 i386-ieee1275.
7343
7344 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7345
7346 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
7347
7348 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7349
7350 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
7351
7352 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7353
7354 Move to more hookless approach in IEEE1275 devices handling.
7355
7356 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7357
7358 * grub-core/kern/term.c (grub_term_normal_color),
7359 (grub_term_highlight_color): Add back lost defaults.
7360
7361 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7362
7363 Make elfload not use hooks. Opt for flags and iterators instead.
7364
7365 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7366
7367 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
7368 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
7369
7370 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7371
7372 * grub-core/script/execute.c (gettext_append): Remove nested functions.
7373
7374 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7375
7376 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
7377 hook pass-through parameter. All users updated and unnested.
7378
7379 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7380
7381 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
7382 out of its parent.
7383
7384 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7385
7386 * grub-core/fs/hfs.c: Remove nested functions.
7387
7388 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7389
7390 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
7391 the context through.
7392 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
7393
7394 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7395
7396 * util/grub-editenv.c (list_variables): Move print_var out of its
7397 parent.
7398
7399 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7400
7401 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
7402 function.
7403
7404 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7405
7406 * grub-core/gentrigtables.c: Make tables const.
7407
7408 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7409
7410 Remove nested functions from videoinfo iterators.
7411
7412 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7413
7414 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
7415 for 64-bit platforms.
7416
7417 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7418
7419 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
7420 a FOR_CHILDREN macro.
7421
7422 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7423
7424 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
7425 platform from firmware path.
7426
7427 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7428
7429 Enable linux16 on non-BIOS systems for i.a. memtest.
7430
7431 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
7432 correctly.
7433 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
7434
7435 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7436
7437 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
7438 Fix end of table condition.
7439
7440 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7441
7442 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
7443 out of its parent.
7444
7445 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7446
7447 * grub-core/fs/jfs.c: Remove nested functions.
7448
7449 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7450
7451 * grub-core/fs/minix.c: Remove nested functions.
7452
7453 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7454
7455 * grub-core/fs/iso9660.c: Remove nested functions.
7456
7457 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7458
7459 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
7460 of parent function.
7461
7462 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7463
7464 * util/grub-fstest.c: Remove nested functions.
7465
7466 2013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7467
7468 * grub-core/loader/machoXX.c: Remove nested functions.
7469
7470 2013-02-27 Colin Watson <cjwatson@ubuntu.com>
7471
7472 Remove nested functions from disk and file read hooks.
7473
7474 * include/grub/disk.h (grub_disk_read_hook_t): New type.
7475 (struct grub_disk): Add read_hook_data member.
7476 * include/grub/file.h (struct grub_file): Likewise.
7477 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
7478 argument.
7479
7480 Update all callers.
7481
7482 2012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
7483
7484 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
7485 Fix off by one error in enumerating extended partitions.
7486
7487 2013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
7488
7489 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
7490 memory leak if device name is not found.
7491
7492 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7493
7494 * grub-core/normal/menu_entry.c (update_screen): remove
7495 unused variable `off' which caused scroll down arrow to be always shown.
7496
7497 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7498
7499 * grub-core/normal/menu_entry.c (insert_string): fix off by one
7500 access to unallocated memory.
7501
7502 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7503
7504 * Makefile.util.def: Add partmap/msdos.c to common library.
7505 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
7506 * grub-core/disk/ldm.c: Check for existence of
7507 GRUB_PC_PARTITION_TYPE_LDM.
7508
7509 2013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
7510
7511 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
7512 sizes and display sector size.
7513
7514 2013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7515
7516 Implement new command cmosdump.
7517
7518 2013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
7519
7520 Support Openfirmware disks with non-512B sectors.
7521
7522 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
7523 size of the disk.
7524 * (grub_ofdisk_get_block_size): New function.
7525 * (grub_ofdisk_prepare): Use the correct block size.
7526 * (grub_ofdisk_read): Likewise.
7527 * (grub_ofdisk_write): Likewise.
7528 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
7529 New proto.
7530
7531 2013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7532
7533 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
7534
7535 2013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7536
7537 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
7538 on first error.
7539
7540 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7541
7542 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
7543 freeing it.
7544
7545 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7546
7547 Implement USBDebug (full USB stack variant).
7548
7549 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7550
7551 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
7552 unless they have unexpected values.
7553
7554 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7555
7556 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
7557 grub_print_error.
7558
7559 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7560
7561 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
7562 zero-out of port structure.
7563
7564 2013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7565
7566 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
7567 of extended attributes.
7568
7569 2013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
7570
7571 * util/grub-install.in: change misleading comment about
7572 device.map creation
7573
7574 2013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7575
7576 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
7577 when menu highlight color isn't set.
7578
7579 2013-01-27 C. Masloch <pushbx@38.de>
7580
7581 Improve FreeDOS direct loading support compatibility.
7582
7583 * include/grub/i386/relocator.h (grub_relocator16_state):
7584 New member ebp.
7585 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
7586 variable.
7587 (grub_relocator16_boot): Handle %ebp.
7588 * grub-core/lib/i386/relocator16.S: Likewise.
7589 * grub-core/loader/i386/pc/freedos.c:
7590 Load BPB to pass kernel which partition to load from.
7591 Check that kernel file is not too large.
7592 Set register dl to BIOS unit number as well.
7593
7594 2013-01-22 Colin Watson <cjwatson@ubuntu.com>
7595
7596 * util/grub-reboot.in (usage): Document the need for
7597 GRUB_DEFAULT=saved.
7598 * util/grub-set-default.in (usage): Likewise.
7599 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
7600
7601 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7602
7603 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
7604 than defining WORDS_BIGENDIAN manually.
7605
7606 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7607
7608 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
7609 invariants.
7610
7611 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7612
7613 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
7614 nested.
7615 (blit_comb: add_device_width): Likewise.
7616
7617 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7618
7619 Remove nested functions from USB iterators.
7620
7621 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
7622 (grub_usb_controller_iterate_hook_t): Likewise.
7623 (grub_usb_iterate): Add hook_data argument.
7624 (grub_usb_controller_iterate): Likewise.
7625 (struct grub_usb_controller_dev.iterate): Likewise.
7626
7627 Update all implementations and callers.
7628
7629 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7630
7631 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
7632 margin when not needed.
7633
7634 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7635
7636 Make color variables global instead of it being per-terminal.
7637
7638 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7639
7640 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
7641 asterisk.
7642
7643 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7644
7645 Fix powerpc and sparc64 build failures caused by un-nesting memory
7646 map iterators.
7647
7648 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7649
7650 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
7651 parameter declarations.
7652
7653 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7654
7655 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
7656
7657 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7658
7659 Improve spkmomdem reliability by adding a separator between bytes.
7660
7661 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7662
7663 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
7664 an Acer registration utility with several sightings in the wild.
7665 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
7666
7667 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7668
7669 Remove nested functions from filesystem directory iterators.
7670
7671 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
7672 (struct grub_fs.dir): Add hook_data argument.
7673
7674 Update all implementations and callers.
7675
7676 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7677
7678 * docs/grub.texi (Multi-boot manual config): Fix typo for
7679 "recommended".
7680
7681 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7682
7683 * util/grub-mkimage.c (main): Postpone freeing arguments.output
7684 until after its use in generate_image.
7685
7686 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7687
7688 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
7689 initrd size to addr_min, since the initrd will be allocated after
7690 this address.
7691
7692 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7693
7694 * conf/Makefile.common: Fix autogen rules to pass definition
7695 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
7696
7697 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7698
7699 * include/grub/elf.h: Update ARM definitions based on binutils.
7700
7701 2013-01-20 Aleš Nesrsta <starous@volny.cz>
7702
7703 Split long USB transfers into short ones.
7704
7705 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7706
7707 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
7708 is interrupted by ESC.
7709
7710 2013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7711
7712 * util/grub-script-check.c (main): Uniform the error message.
7713
7714 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7715
7716 Remove nested functions from ELF iterators.
7717
7718 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7719
7720 Remove nested functions from device iterators.
7721
7722 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
7723 (grub_arc_iterate_devs): Add hook_data argument.
7724 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
7725 (struct grub_ata_dev.iterate): Add hook_data argument.
7726 * include/grub/device.h (grub_device_iterate_hook_t): New type.
7727 (grub_device_iterate): Add hook_data argument.
7728 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
7729 (struct grub_disk_dev.iterate): Add hook_data argument.
7730 (grub_disk_dev_iterate): Likewise.
7731 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
7732 Likewise.
7733 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
7734 Likewise.
7735 * include/grub/partition.h (grub_partition_iterate_hook_t): New
7736 type.
7737 (struct grub_partition_map.iterate): Add hook_data argument.
7738 (grub_partition_iterate): Likewise.
7739 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
7740 (struct grub_scsi_dev.iterate): Add hook_data argument.
7741
7742 Update all callers.
7743
7744 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7745
7746 Fix typos for "developer" and "development".
7747
7748 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7749
7750 Add license header to spkmodem-recv.c.
7751
7752 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
7753
7754 Rewrite spkmodem to use PIT for timing. Double the speed.
7755
7756 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7757
7758 Add new command pcidump.
7759
7760 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7761
7762 New terminal outputs using serial: morse and spkmodem.
7763
7764 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7765
7766 Improve bidi handling in entry editor.
7767
7768 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7769
7770 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
7771 argument to prevent name collision.
7772
7773 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
7774
7775 Remove nested functions from script reading and parsing.
7776
7777 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
7778 getline_data argument, passed to getline.
7779 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
7780 getline_data argument, passed to grub_parser_split_cmdline.
7781 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
7782 lexerstate->getline_data to lexerstate->getline.
7783 (grub_script_lexer_init): Add getline_data argument, saved in
7784 lexerstate->getline_data.
7785 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
7786 argument, passed to grub_script_parse.
7787 * grub-core/script/script.c (grub_script_parse): Add getline_data
7788 argument, passed to grub_script_lexer_init.
7789 * include/grub/parser.h (grub_parser_split_cmdline): Update
7790 prototype. Update all callers to pass appropriate getline data.
7791 (struct grub_parser.parse_line): Likewise.
7792 (grub_rescue_parse_line): Likewise.
7793 * include/grub/reader.h (grub_reader_getline_t): Add void *
7794 argument.
7795 * include/grub/script_sh.h (struct grub_lexer_param): Add
7796 getline_data member.
7797 (grub_script_parse): Update prototype. Update all callers to pass
7798 appropriate getline data.
7799 (grub_script_lexer_init): Likewise.
7800 (grub_normal_parse_line): Likewise.
7801
7802 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
7803 data argument.
7804 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
7805 static instead of nested. Rename to ...
7806 (grub_parser_execute_getline): ... this.
7807 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
7808 data argument.
7809 * grub-core/normal/main.c (read_config_file: getline): Make static
7810 instead of nested. Rename to ...
7811 (read_config_file_getline): ... this.
7812 (grub_normal_read_line): Add unused data argument.
7813 * grub-core/script/execute.c (grub_script_execute_sourcecode:
7814 getline): Make static instead of nested. Rename to ...
7815 (grub_script_execute_sourcecode_getline): ... this.
7816 * util/grub-script-check.c (main: get_config_line): Make static
7817 instead of nested.
7818
7819 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
7820
7821 Remove nested functions from memory map iterators.
7822
7823 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
7824 argument, passed to hook.
7825 * grub-core/kern/i386/coreboot/mmap.c
7826 (grub_linuxbios_table_iterate): Likewise.
7827 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
7828 instead of nested.
7829 (grub_machine_mmap_iterate): Add hook_data argument.
7830 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
7831 Add hook_data argument, passed to hook.
7832 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
7833 Likewise.
7834 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
7835 Likewise.
7836 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
7837 Likewise.
7838 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
7839 Likewise.
7840 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
7841 Likewise.
7842 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
7843 Likewise.
7844 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
7845 (grub_machine_mmap_iterate): Likewise.
7846 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
7847 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
7848 prototype.
7849 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
7850 Remove NESTED_FUNC_ATTR from here and from all users.
7851 (grub_mmap_iterate): Update prototype.
7852 (grub_efi_mmap_iterate): Update prototype. Update all callers to
7853 pass appropriate hook data.
7854 (grub_machine_mmap_iterate): Likewise.
7855
7856 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
7857 static instead of nested.
7858 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
7859 Rename to ...
7860 (lsmmap_hook): ... this.
7861 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
7862 Likewise.
7863 (grub_efiemu_mmap_fill: fill_hook): Likewise.
7864 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
7865 heap_init): Likewise.
7866 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
7867 Rename to ...
7868 (mmap_iterate_hook): ... this.
7869 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
7870 Likewise.
7871 * grub-core/lib/ieee1275/relocator.c
7872 (grub_relocator_firmware_get_max_events: count): Likewise.
7873 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
7874 to ...
7875 (grub_relocator_firmware_fill_events_iter): ... this.
7876 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
7877 hook): Likewise. Rename to ...
7878 (grub_relocator_alloc_chunk_align_iter): ... this.
7879 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
7880 Rename to ...
7881 (generate_e820_mmap_iter): ... this.
7882 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
7883 Rename to ...
7884 (count_hook): ... this.
7885 (grub_linux_boot: hook): Likewise. Rename to ...
7886 (grub_linux_boot_mmap_find): ... this.
7887 (grub_linux_boot: hook_fill): Likewise. Rename to ...
7888 (grub_linux_boot_mmap_fill): ... this.
7889 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
7890 hook): Likewise. Rename to ...
7891 (grub_fill_multiboot_mmap_iter): ... this.
7892 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
7893 hook): Likewise. Rename to ...
7894 (count_hook): ... this.
7895 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
7896 hook): Likewise. Rename to ...
7897 (grub_fill_multiboot_mmap_iter): ... this.
7898 * grub-core/loader/powerpc/ieee1275/linux.c
7899 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
7900 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
7901 Likewise. Rename to ...
7902 (alloc_phys_choose): ... this.
7903 (determine_phys_base: get_physbase): Likewise.
7904 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
7905 find_hook): Likewise.
7906 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
7907 (malloc_hook: count_hook): Likewise.
7908 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
7909 Likewise. Rename to ...
7910 (lower_hook): ... this.
7911 (grub_mmap_get_upper: hook): Likewise. Rename to ...
7912 (upper_hook): ... this.
7913 (grub_mmap_get_post64: hook): Likewise. Rename to ...
7914 (post64_hook): ... this.
7915 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
7916 Likewise. Rename to ...
7917 (lower_hook): ... this.
7918 (grub_mmap_get_upper: hook): Likewise. Rename to ...
7919 (upper_hook): ... this.
7920 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
7921 (grub_mmap_iterate: fill_hook): Likewise.
7922 (fill_mask): Pass addr and mask within a single struct.
7923 (grub_cmd_badram: hook): Make static instead of nested. Rename
7924 to ...
7925 (badram_iter): ... this.
7926 (grub_cmd_cutmem: hook): Likewise. Rename to ...
7927 (cutmem_iter): ... this.
7928
7929 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7930
7931 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
7932 delimit path in strings using quotes.
7933 * util/getroot.c (grub_guess_root_devices): Likewise.
7934 (grub_make_system_path_relative_to_its_root): Likewise.
7935 * util/grub-probe.c (probe): Likewise.
7936 * util/ieee1275/ofpath.c (find_obppath): Likewise.
7937 (xrealpath): Likewise.
7938
7939 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7940
7941 Fix compilation with older compilers.
7942
7943 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
7944 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
7945 declarations.
7946 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
7947 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
7948 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
7949 identifier with b.
7950 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
7951 * include/grub/crypto.h: Add type defines.
7952 * util/import_gcrypth.sed: Remove duplicate type defines.
7953
7954 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7955
7956 New command list_trusted.
7957
7958 * grub-core/commands/verify.c (grub_cmd_list): New function.
7959
7960 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
7961
7962 * util/grub-mkimage.c (generate_image): Fix "size of public key"
7963 info message.
7964
7965 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
7966
7967 Remove nested functions from PCI iterators.
7968
7969 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
7970 passed to hook. Update all callers to pass appropriate hook data.
7971 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
7972 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
7973 Remove NESTED_FUNC_ATTR from here and from all users.
7974 (grub_pci_iterate): Update prototype.
7975 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
7976 instead of nested. Rename to ...
7977 (grub_cs5536_find_iter): ... this.
7978 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
7979 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
7980 Likewise.
7981 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
7982 Likewise.
7983 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
7984 Likewise.
7985 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
7986 Likewise.
7987 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
7988 * grub-core/video/radeon_fuloong2e.c
7989 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
7990 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
7991 find_card): Likewise.
7992 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
7993 Likewise.
7994
7995 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7996
7997 * grub-core/commands/verify.c: Mark messages for translating.
7998
7999 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8000
8001 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
8002 fatal.
8003
8004 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8005
8006 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
8007 fatal.
8008
8009 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8010
8011 * autogen.sh: Do not try to delete nonexistant files.
8012 * util/import_gcrypth.sed: Add some missing header removals.
8013
8014 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
8015
8016 Clean up dangling references to grub-setup.
8017 Fixes Ubuntu bug #1082045.
8018
8019 * docs/grub.texi (Images): Refer generally to grub-install rather
8020 than directly to grub-setup.
8021 (Installing GRUB using grub-install): Remove direct reference to
8022 grub-setup.
8023 (Device map) Likewise.
8024 (Invoking grub-install): Likewise.
8025 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
8026 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
8027 * util/grub-install.in (usage): Likewise.
8028
8029 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
8030 Apply to grub-bios-setup and grub-sparc64-setup rather than to
8031 grub-setup.
8032 * configure.ac: Remove grub_setup output variable.
8033
8034 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
8035 to grub-bios-setup.
8036 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
8037 grub-setup to grub-sparc64-setup.
8038
8039 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8040
8041 Import gcrypt public-key cryptography and implement signature checking.
8042
8043 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8044
8045 * grub-core/fs/ntfs.c: Ue more appropriate types.
8046 * grub-core/fs/ntfscomp.c: Likewise.
8047 * include/grub/ntfs.h: Likewise.
8048
8049 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8050
8051 Support Apple FAT binaries on non-Apple platforms.
8052
8053 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
8054 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
8055 Likewise.
8056 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
8057 Apple FAT binaries.
8058
8059 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8060
8061 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
8062 sector devices.
8063
8064 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
8065
8066 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
8067 explicitly zeroing elements.
8068 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
8069 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
8070 of elements in a structure already allocated using grub_zalloc.
8071 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
8072
8073 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
8074
8075 * docs/grub.texi (grub_cpu): New subsection.
8076 (grub_platform): Likewise.
8077
8078 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
8079
8080 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
8081
8082 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8083
8084 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
8085 divisions.
8086
8087 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8088
8089 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
8090 * grub-core/fs/ntfscomp.c: Likewise.
8091 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
8092 (grub_ntfs_comp): Likewise.
8093
8094 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8095
8096 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
8097 Rename to ...
8098 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
8099 of groups_per_block. All users updated.
8100
8101 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8102
8103 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
8104 grub_error properly.
8105 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
8106 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
8107
8108 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8109
8110 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
8111 always in /boot/zfs.
8112 Reported by: Yuta Satoh.
8113
8114 2013-01-03 Yuta Satoh <nigoro>
8115
8116 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
8117 ${grub_probe}
8118
8119 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8120
8121 * configure.ac: Extend -Wno-trampolines to host.
8122
8123 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8124
8125 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
8126 entry->len = 0.
8127
8128 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8129
8130 * docs/grub.texi (Invoking grub-mkrelpath): New section.
8131 (Invoking grub-script-check): Likewise.
8132
8133 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8134
8135 * docs/grub.texi (Invoking grub-mount): New section.
8136 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
8137
8138 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8139
8140 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
8141 test failures, so that a failing unit test correctly causes 'make
8142 check' to fail.
8143
8144 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8145
8146 Fix failing printf test.
8147
8148 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
8149 '$' in the correct order when collecting type information.
8150
8151 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8152
8153 * docs/grub.texi (configfile): Explain environment variable
8154 handling.
8155 (source): New section.
8156 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
8157
8158 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
8159
8160 Remove several trivially-unnecessary uses of nested functions.
8161
8162 * grub-core/commands/i386/pc/sendkey.c
8163 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
8164 instead of nested.
8165 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
8166 Rename to ...
8167 (legacy_file_getline): ... this.
8168 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
8169 Likewise.
8170 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
8171 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
8172 to ...
8173 (probe_dummy_iter): ... this.
8174 * grub-core/kern/i386/coreboot/mmap.c
8175 (grub_linuxbios_table_iterate: check_signature): Likewise.
8176 * grub-core/kern/parser.c (grub_parser_split_cmdline:
8177 check_varstate): Likewise. Mark inline.
8178 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
8179 an additional parameter.
8180 (find_long: fnd_long): Likewise. Pass two additional parameters.
8181 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
8182 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
8183 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
8184 Likewise. Rename to ...
8185 (grub_cmos_find_port_iter): ... this.
8186 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
8187 Rename to ...
8188 (find_rtc_iter): ... this.
8189
8190 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
8191 function directly into the function body, since it is only called
8192 once.
8193
8194 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
8195
8196 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
8197 __attribute__ ((unused)).
8198 * grub-core/video/bochs.c (find_card): Likewise.
8199 * grub-core/video/cirrus.c (find_card): Likewise.
8200 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
8201 * grub-core/video/sis315pro.c (find_card): Likewise.
8202 * grub-core/video/sm712.c (find_card): Likewise.
8203
8204 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8205
8206 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
8207 Fixes Savannah bug #37821.
8208
8209 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8210
8211 Apply program name transformations at build-time rather than at
8212 run-time. Fixes Debian bug #696465.
8213
8214 * acinclude.m4 (grub_TRANSFORM): New macro.
8215 * configure.ac: Create output variables with transformed names for
8216 most programs.
8217 * util/bash-completion.d/grub-completion.bash.in: Use
8218 pre-transformed variables for program names.
8219 * util/grub-install.in: Likewise.
8220 * util/grub-kbdcomp.in: Likewise.
8221 * util/grub-mkconfig.in: Likewise.
8222 * util/grub-mkconfig_lib.in: Likewise.
8223 * util/grub-mknetdir.in: Likewise.
8224 * util/grub-mkrescue.in: Likewise.
8225 * util/grub-mkstandalone.in: Likewise.
8226 * util/grub-reboot.in: Likewise.
8227 * util/grub-set-default.in: Likewise.
8228 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8229 * tests/util/grub-shell-tester.in: Remove unused assignment.
8230 * tests/util/grub-shell.in: Likewise.
8231 * util/grub.d/00_header.in: Likewise.
8232
8233 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8234
8235 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
8236
8237 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
8238 HAVE_RAW_DECL_GETS.
8239 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
8240
8241 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
8242
8243 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
8244 Reported by: Eriks Latosheks <foresterlv>.
8245
8246 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8247
8248 * docs/grub.texi (Network): Update instructions on generating netboot
8249 image.
8250
8251 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8252
8253 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
8254 around device name if necessarry.
8255
8256 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8257
8258 * util/grub-install.in: Follow the symbolic link parameter added
8259 to the file command.
8260
8261 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
8262
8263 * util/grub-install.in: Remove stale TODO.
8264
8265 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8266
8267 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
8268 dynamic allocation for the bootpath buffer.
8269
8270 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
8271
8272 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
8273 window too small.
8274
8275 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8276
8277 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
8278 argument rather than font name. All users updated.
8279 (grub_gfxterm_set_window): Likewise.
8280
8281 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
8282
8283 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
8284 from working.
8285
8286 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8287
8288 * util/getroot.c (convert_system_partition_to_system_disk): Support
8289 nbd disks.
8290
8291 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8292
8293 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
8294 infinite loop on corrupted FS.
8295
8296 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8297
8298 Fix big-endian mtime.
8299
8300 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
8301 together sec and usec.
8302 (grub_ufs_dir): Use correct byteswapping for UFS time.
8303
8304 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8305
8306 Support big-endian UFS1.
8307
8308 * Makefile.util.def (libgrubmods): Add ufs_be.c
8309 * grub-core/Makefile.core.def (ufs1_be): New module.
8310 * grub-core/fs/ufs_be.c: New file.
8311 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
8312 the file.
8313
8314 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
8315
8316 * include/grub/types.h: Fix functionality unaffecting typo in
8317 GRUB_TARGET_WORDSIZE conditional macro.
8318
8319 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8320
8321 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
8322
8323 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
8324
8325 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
8326 that /netbsd appears first (when it exists).
8327
8328 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
8329
8330 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
8331 Fixes Savannah bug #37558.
8332
8333 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
8334
8335 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
8336 description of extract_entries_configfile.
8337
8338 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
8339
8340 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
8341 preferred_address.
8342 (grub_cmd_linux): Likewise.
8343 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
8344 preferred_lifetime. Update all users.
8345
8346 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8347
8348 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
8349 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
8350
8351 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8352
8353 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
8354 errors from grub-probe to /dev/null, not stdout.
8355
8356 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
8357
8358 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
8359 sector 1.
8360
8361 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
8362
8363 * util/grub-install.in: Make the error message if $source_dir
8364 doesn't exist more useful.
8365
8366 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
8367
8368 Fix grub-emu build on FreeBSD.
8369
8370 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
8371 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
8372 headers on Linux.
8373 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
8374 implementation is currently Linux-specific.
8375 * util/getroot.c (exec_pipe): Define only on Linux or when either
8376 libzfs or libnvpair is unavailable.
8377 (find_root_devices_from_poolname): Remove unused path variable.
8378
8379 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8380
8381 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
8382 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
8383 should fit before end == 63.
8384
8385 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8386
8387 * util/grub-setup.c (write_rootdev): Remove unused core_img
8388 parameter. Update all callers.
8389 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
8390 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
8391 GRUB_SETUP_BIOS.
8392
8393 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8394
8395 * util/grub-mkconfig_lib.in (grub_tab): New variable.
8396 (grub_add_tab): New function.
8397 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
8398 * util/grub.d/10_illumos.in: Likewise.
8399 * util/grub.d/10_kfreebsd.in: Likewise.
8400 * util/grub.d/10_linux.in: Likewise.
8401 * util/grub.d/10_netbsd.in: Likewise.
8402 * util/grub.d/10_windows.in: Likewise.
8403 * util/grub.d/10_xnu.in: Likewise.
8404 * util/grub.d/20_linux_xen.in: Likewise.
8405 * util/grub.d/30_os-prober.in: Likewise.
8406
8407 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8408
8409 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8410 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
8411 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
8412 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
8413 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
8414 ieee1275-nocursor.
8415 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
8416 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
8417
8418 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8419
8420 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
8421 le-conversion.
8422 Reported by: BURETTE, Bernard.
8423
8424 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
8425
8426 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
8427 from comment.
8428
8429 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
8430
8431 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
8432 IEEE1275 machines. Fixes powerpc-emu compilation.
8433 * include/grub/terminfo.h: Likewise.
8434
8435 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8436
8437 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
8438 a const pointer.
8439 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
8440 const pointer.
8441 (efiemu_set_variable): Make vendor_guid a const pointer.
8442
8443 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8444
8445 Don't require grub-mkconfig_lib to generate manpages for programs.
8446
8447 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
8448 dependencies, don't add grub-mkconfig_lib.
8449 (program): Pass empty adddeps.
8450 (script): Pass grub-mkconfig_lib as adddeps.
8451
8452 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
8453
8454 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
8455 * util/getroot.c (grub_find_device): Likewise.
8456 (get_mdadm_uuid): Likewise.
8457 (grub_util_is_imsm): Likewise.
8458 (grub_util_pull_device): Likewise.
8459 * util/grub-probe.c (probe): Likewise.
8460
8461 2012-09-10 Benoit Gschwind <gschwind>
8462
8463 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
8464 (devs): Add devpath_8.
8465
8466 2012-09-08 Peter Jones <pjones@redhat.com>
8467
8468 * grub-core/Makefile.core.def (efifwsetup): New module.
8469 * grub-core/commands/efi/efifwsetup.c: New file.
8470 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
8471 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
8472 New define.
8473 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
8474
8475 2012-09-05 Jiri Slaby <jslaby@suse.cz>
8476
8477 * configure.ac: Add SuSe path.
8478
8479 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8480
8481 * NEWS: Fix typo.
8482
8483 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8484
8485 * util/import_gcry.py: Sort cipher_files, to make build system
8486 generation more deterministic.
8487
8488 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8489
8490 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
8491 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
8492 (grub_set_datetime): Likewise.
8493
8494 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8495
8496 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
8497 warnings.
8498
8499 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8500
8501 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
8502
8503 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8504
8505 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
8506
8507 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8508
8509 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
8510 required for checkouts from bzr, but it may be useful for users or
8511 distributors wishing to update translations against a tarball
8512 distribution, and it can be helpful for the tarball to be a superset
8513 of what's in bzr.
8514
8515 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8516
8517 * Makefile.am (EXTRA_DIST): Add
8518 grub-core/tests/boot/linux.init-mips.S,
8519 grub-core/tests/boot/linux.init-ppc.S, and
8520 grub-core/tests/boot/linux-ppc.cfg.
8521
8522 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8523
8524 * grub-core/mmap/mips/loongson: Remove empty directory.
8525
8526 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8527
8528 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
8529 gone.
8530
8531 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8532
8533 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
8534 grub-sparc64-setup.
8535
8536 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
8537
8538 * configure.ac: Strengthen the test for working -nostdinc -isystem.
8539
8540 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8541
8542 * po/POTFILES.in: Regenerated.
8543
8544 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8545
8546 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
8547 (NetBSD): New subsection.
8548
8549 2012-07-22 Ales Nesrsta <starous@volny.cz>
8550
8551 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
8552 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
8553
8554 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8555
8556 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
8557 * util/grub.d/10_hurd.in: Add missing quoting.
8558 * util/grub.d/10_illumos.in: Likewise.
8559 * util/grub.d/10_kfreebsd.in: Likewise.
8560 * util/grub.d/10_linux.in: Likewise.
8561 * util/grub.d/20_linux_xen.in: Likewise.
8562
8563 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8564
8565 New command `lsefi'.
8566
8567 * grub-core/Makefile.core.def (lsefi): New module.
8568 * grub-core/commands/efi/lsefi.c: New file.
8569 * include/grub/efi/api.h: Add more GUIDs.
8570
8571 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8572
8573 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
8574 (grub_bsd_elf32_hook): Likewise.
8575 (grub_bsd_elf64_size_hook): Likewise.
8576 (grub_bsd_elf64_hook): Likewise.
8577 (grub_bsd_load_elf): Likewise.
8578
8579 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8580
8581 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
8582 if hash function is unavailable.
8583 (dec_stream_header): Likewise.
8584
8585 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8586
8587 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
8588 filter state.
8589
8590 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8591
8592 Fix coreboot compilation.
8593
8594 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
8595 (grub_vga_text_init_real): ... this.
8596 (grub_vga_text_fini): Rename to ...
8597 (grub_vga_text_fini_real): ... this.
8598
8599 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
8600
8601 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
8602
8603 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8604
8605 * grub-core/lib/legacy_parse.c: Support clear and testload.
8606
8607 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8608
8609 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
8610
8611 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8612
8613 * grub-core/fs/ext2.c: Experimental support for 64-bit.
8614
8615 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8616
8617 * grub-core/net/tftp.c (ack): Fix endianness problem.
8618 (tftp_receive): Likewise.
8619 Reported by: Michael Davidsaver.
8620
8621 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8622
8623 * gentpl.py: Make mans depend on grub-mkconfig_lib.
8624
8625 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8626
8627 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
8628 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
8629 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
8630
8631 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8632
8633 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
8634 efi_mmap_size.
8635 Reported by: Stuart Hayes.
8636
8637 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
8638
8639 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
8640
8641 * grub-core/Makefile.core.def (mda_text): New module.
8642 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
8643 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
8644 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
8645 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
8646 here.
8647 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
8648 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
8649 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
8650 here.
8651 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
8652 to ..
8653 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
8654 ... here
8655 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
8656 here.
8657 * grub-core/term/i386/vga_common.c: Removed.
8658 * include/grub/i386/vga_common.h: Likewise.
8659 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
8660 (grub_vga_cr_bw_read): Likewise.
8661 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
8662 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
8663 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
8664 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
8665 grub_vga_cr_read/grub_vga_cr_write.
8666 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
8667
8668 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8669
8670 * configure.ac: Bump version to 2.00.
8671 * grub-core/normal/main.c (features): Add feature_200_final.
8672
8673 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8674 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
8675
8676 * NEWS: Fix unclarity and language mistakes.
8677
8678 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8679
8680 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
8681 additional size to 3 pages.
8682 Reported by: Stuart Hayes.
8683
8684 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8685
8686 * NEWS: Add 2.00 entry.
8687
8688 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8689
8690 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
8691 put explicit "/" for empty path.
8692 (wildcard_expand): Improve dprintf.
8693
8694 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8695
8696 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
8697 it's equal to currnode. This can happen with "" symlink.
8698
8699 2012-06-27 Yves Blusseau <blusseau@zetam.org>
8700
8701 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
8702 echo shell command by printf command.
8703
8704 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8705
8706 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
8707 the value returned by firmware is the maximal position, not diumension.
8708 (grub_terminfo_output_state): Use a more sane fallback.
8709
8710 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8711
8712 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
8713
8714 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8715
8716 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
8717 frequency to 150 MHz.
8718
8719 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8720
8721 Apple fixes.
8722
8723 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
8724 __APPLE_
8725 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
8726 definition.
8727 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
8728
8729 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8730
8731 Handle slash in HFS label.
8732
8733 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
8734 (grub_hfs_dir): Tanslate slash.
8735 (grub_hfs_label): Don't translate slash.
8736
8737 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8738
8739 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
8740 network protocol listing since it introduces problematic dependency on
8741 net module.
8742
8743 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8744
8745 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
8746
8747 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8748
8749 Init video early on yeeloong to avoid being rebooted by watchdog.
8750
8751 * grub-core/Makefile.am (gensm712): New target.
8752 (sm712_start.S): Likewise.
8753 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
8754 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
8755 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
8756 description.
8757 * include/grub/vga.h: Move registry definitions to...
8758 * include/grub/vgaregs.h: ... here.
8759
8760 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8761
8762 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
8763 signedness.
8764
8765 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8766
8767 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
8768 platforms with firmware disk drivers in the core.
8769
8770 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8771
8772 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
8773 informative verbose message.
8774 (read_lv): Handle 64-bit segment size.
8775
8776 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8777
8778 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
8779
8780 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8781
8782 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
8783 character but still remove trainling spaces.
8784 (grub_fat_label): Ignore archive flag.
8785
8786 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8787
8788 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
8789 cast between linux_kernel_header and linux_kernel_params.
8790
8791 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8792
8793 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
8794 type for size.
8795 (grub_raid6_recover_func_t): Likewise.
8796 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
8797 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
8798
8799 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8800
8801 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
8802
8803 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
8804
8805 Fix overflow.
8806
8807 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
8808 [__NetBSD__]: Add explicit cast before bitshift.
8809
8810 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8811
8812 * configure.ac: Bump to 2.00~rc1.
8813
8814 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8815
8816 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
8817 half of $a0.
8818
8819 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8820 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
8821
8822 * docs/grub.texi: Fix search syntax.
8823 (Multi-boot manual config): Put msdos rather than GPT example.
8824 Grammar corrections.
8825
8826 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8827
8828 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
8829
8830 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8831
8832 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
8833
8834 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8835
8836 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
8837 message on double free. Put the value of magic in case of mismatch.
8838
8839 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8840
8841 Speed-up video on yeeloong.
8842
8843 * grub-core/video/sm712.c (framebuffer): Remove render_target and
8844 add cached_ptr.
8845 (grub_video_sm712_video_fini): Unmap cached_ptr.
8846 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
8847 (grub_video_sm712_set_active_render_target): Removed.
8848 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
8849 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
8850 sync caches.
8851
8852 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8853
8854 Avoid flushing the same line multiple times on loongson.
8855
8856 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
8857 Step in 32 bytes and not 1 byte.
8858 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
8859 Likewise.
8860
8861 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8862
8863 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
8864 subvolumes.
8865
8866 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8867
8868 Implement flow control for http.
8869
8870 * grub-core/net/http.c (parse_line): Handle response 206.
8871 (http_receive): Stall if too many packets are in the queue.
8872 (http_establish): Fix range header.
8873 (http_seek): Fix double free.
8874 (http_close): Likewise.
8875 (http_packets_pulled): New function.
8876 (grub_http_protocol): Set http_seek
8877 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
8878 (ack_real): Set window depending on i_stall.
8879 (grub_net_send_tcp_packet): Likewise.
8880 (grub_net_tcp_stall): New function.
8881 (grub_net_tcp_unstall): Likewise.
8882 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
8883 (grub_net_tcp_unstall): Likewise.
8884
8885 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8886
8887 * grub-core/net/tftp.c: Decrease stall to 50 packets.
8888
8889 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8890
8891 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
8892
8893 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8894
8895 * tests/util/grub-shell.in: Fix a typo.
8896
8897 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8898
8899 Implement flow control for tftp.
8900
8901 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
8902 packets but stop only if stop condition is satisfied.
8903 (grub_net_fs_read_real): Call packets_pulled after real read. Use
8904 `stall' instead of `eof' as stop condition.
8905 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
8906 (http_err): Likewise.
8907 * grub-core/net/tftp.c (ack): Replace the first argument with data
8908 instead of socket.
8909 (tftp_receive): Stall if too many packets are in wait queue.
8910 (tftp_packets_pulled): New function.
8911 (grub_tftp_protocol): Set packets_pulled.
8912 * include/grub/net.h (grub_net_packets): New field count.
8913 (grub_net_put_packet): Increment count.
8914 (grub_net_remove_packet): Likewise.
8915 (grub_net_app_protocol): New field `packets_pulled'.
8916 (grub_net): New field `stall'.
8917
8918 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8919
8920 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
8921 sync part to handle them.
8922
8923 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8924
8925 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
8926 * grub-core/net/drivers/ieee1275/ofnet.c
8927 (grub_ieee1275_net_config_real): Likewise.
8928
8929 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8930
8931 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
8932 the direct route for server/gateway.
8933
8934 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8935
8936 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
8937 IP address to server name since we may not hame the DNS.
8938
8939 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8940
8941 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
8942 freeing random buffer on failure.
8943 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
8944
8945 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8946
8947 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
8948
8949 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8950
8951 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
8952 reserved bytes.
8953 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
8954 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
8955 Handle malloc error correctly.
8956
8957 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8958
8959 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
8960 blocks.
8961
8962 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8963
8964 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
8965 increment.
8966
8967 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8968
8969 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
8970 none is explicitly specified.
8971
8972 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8973
8974 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
8975 while reallocating.
8976
8977 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8978
8979 Respect netmask from bootp/dhcp.
8980
8981 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
8982 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
8983 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
8984 into ...
8985 (grub_net_add_ipv4_local): ... this.
8986 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
8987 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
8988 (grub_net_add_ipv4_local): New proto.
8989
8990 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8991
8992 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
8993 determining EFI memory map size.
8994
8995 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8996
8997 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
8998
8999 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9000
9001 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
9002 when looking for partition separator.
9003
9004 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9005
9006 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
9007 Escape commas.
9008
9009 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9010
9011 Restructure FAT driver to avoid hook in label reading as it hits a
9012 GCC bug.
9013
9014 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
9015 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
9016 (grub_fat_iterate_dir): Split into ...
9017 (grub_fat_iterate_init): ... this, ...
9018 (grub_fat_iterate_fini): ... this, ...
9019 (grub_fat_iterate_dir_next): ... and this. All users updated.
9020
9021 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9022
9023 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
9024 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
9025 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
9026 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
9027 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
9028 New fields last_key and last_key_time.
9029 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
9030 extended key-esc into extended key-extended key.
9031
9032 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9033
9034 Avoid unnecessary memcpy of whole video buffer.
9035
9036 * grub-core/video/fb/video_fb.c (dirty): New struct.
9037 (framebuffer): Add members current_dirty and previous_dirty.
9038 (dirty): New function.
9039 (grub_video_fb_fill_rect): Update dirty.
9040 (common_blitter): Likewise.
9041 (grub_video_fb_scroll): Likewise.
9042 (doublebuf_blit_update_screen): Copy only dirty part.
9043 (doublebuf_pageflipping_update_screen): Likewise.
9044 (grub_video_fb_doublebuf_blit_init): Init dirty.
9045 (doublebuf_pageflipping_init): Likewise.
9046 (grub_video_fb_setup): Likewise.
9047
9048 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9049
9050 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
9051 poll rate.
9052
9053 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9054
9055 Fix wildcard regexp dot and other special characters handling.
9056 Reported by: Robert Mabee.
9057
9058 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
9059 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
9060 (split_path): Trigger expansion on '?'.
9061 (unescape): New function.
9062 (wildcard_expand): Unescape parts copied without globbing.
9063 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
9064 (grub_script_arglist_to_argv): Don't unescape expansions.
9065
9066 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9067
9068 * include/grub/net.h (grub_net_card): New member txbufsize.
9069 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
9070 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9071 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
9072 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
9073 txbufsize.
9074 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
9075 compatible property to check for macs. Set
9076 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9077 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
9078 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
9079 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
9080 (send_card_buffer): Use txbuf.
9081 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
9082 nested function out of the parent while on it.
9083
9084 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9085
9086 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
9087 presence check.
9088 (grub_ieee1275_net_config_real): Fix config pointer.
9089
9090 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9091
9092 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
9093 filename parsing to non-block devices.
9094
9095 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9096
9097 * grub-core/kern/device.c (grub_device_open): Remove dead code.
9098
9099 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9100
9101 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
9102 All users updated.
9103
9104 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9105
9106 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
9107 UUID search command even if hints probing failed.
9108
9109 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9110
9111 * po/POTFILES.in: Regenerated.
9112
9113 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
9114
9115 Speed-up video on fuloong.
9116
9117 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
9118 New function.
9119 (grub_pci_device_unmap_range): Handle non-cached address.
9120 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
9121 add direct_ptr.
9122 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
9123 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
9124 (grub_video_sis315pro_set_active_render_target): Removed.
9125 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
9126 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
9127 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
9128 sync caches.
9129 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
9130 New proto.
9131
9132 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
9133
9134 * docs/grub.texi (Multi-boot manual config): New section.
9135
9136 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9137
9138 Avoid slow read-back from VRAM.
9139
9140 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
9141 Move from here ...
9142 * grub-core/video/fb/video_fb.c
9143 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
9144 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
9145 (front_target): Remove front_target. Add pages.
9146 (grub_video_fb_init): Skip setting front_pages.
9147 (grub_video_fb_fini): Likewise.
9148 (doublebuf_blit_update_screen): Use pages.
9149 (grub_video_fb_doublebuf_blit_init): Likewise.
9150 (doublebuf_pageflipping_init): Allocate offscreen buffer.
9151 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
9152 (grub_video_fb_setup): Prefer doublebuffing.
9153
9154 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9155
9156 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
9157 gzio.
9158
9159 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9160
9161 Add loongson tests.
9162
9163 * tests/util/grub-shell.in: Handle loongson.
9164 * tests/partmap_test.in: Add loongson to the list of platform using ATA
9165 drivers.
9166 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
9167 Reboot instead of shutdown if REBOOT is defined.
9168
9169 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9170
9171 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
9172 sized ports since unlike on real hardware qemu supports only 32-bit
9173 regs.
9174
9175 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9176
9177 * Makefile.util.def (grub-mkrescue): Enable on loongson.
9178 * util/grub-mkrescue.in: Handle loongson.
9179
9180 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
9181
9182 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
9183 Set is_part appropriately.
9184 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
9185 names. Canonicalize partition without full disk.
9186
9187 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9188
9189 Revert usb-quiesce since it's wrong.
9190
9191 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
9192 (grub_ofdisk_init): Don't do quiesce.
9193
9194 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9195
9196 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
9197 PowerMac workaround to Xserves as well.
9198 Information supplied by: Benjamin Herrenschmidt.
9199
9200 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9201
9202 Don't assume that beginning address is also the entry point on ppc.
9203
9204 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
9205 (grub_linux_boot): Use linux_entry.
9206 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
9207 (grub_linux_load64): Likewise.
9208
9209 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9210
9211 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
9212
9213 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9214
9215 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
9216 needlessly lose the console.
9217
9218 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9219
9220 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
9221 space.
9222
9223 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9224
9225 Remove non-functional EFI grub_get_rtc. Put a better fatal message
9226 than current grub_get_rtc() not implemented when booted with
9227 coreboot without TSC.
9228
9229 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
9230 Add machine/time.h to kernel headers on loongson.
9231 * grub-core/Makefile.core.def (kernel): Remove
9232 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
9233 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
9234 (grub_get_rtc): Likewise.
9235 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
9236 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
9237 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
9238 * grub-core/kern/i386/tsc.c (grub_tsc_init)
9239 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
9240 rather than installing known non-working time source.
9241 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
9242 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
9243 * include/grub/time.h: Don't include machine/time.h.
9244 * include/grub/efi/time.h: Removed.
9245 * include/grub/i386/efi/time.h: Likewise.
9246 * include/grub/i386/ieee1275/time.h: Likewise.
9247 * include/grub/powerpc/ieee1275/time.h: Likewise.
9248 * include/grub/sparc64/ieee1275/time.h: Likewise.
9249 * include/grub/x86_64/efi/time.h: Likewise.
9250
9251 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9252
9253 Remove dot on i and j when combining with above diacritics.
9254
9255 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
9256 value.
9257 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
9258 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
9259 with dotless variants when any combining above is present.
9260
9261 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9262
9263 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
9264 text and not binary.
9265
9266 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9267
9268 Stop polling as soon as we have the packet we were waiting for.
9269
9270 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
9271 All users updated.
9272 * grub-core/net/arp.c (have_pending): New var.
9273 (pending_req): Likewise.
9274 (grub_net_arp_send_request): Fill pending_req and use have_pending as
9275 stop indicator.
9276 (grub_net_arp_receive): Set have_pending.
9277 * grub-core/net/dns.c (recv_data): New field stop.
9278 (recv_hook): Set stop.
9279 (grub_net_dns_lookup): Init stop and use as stop condition.
9280 * grub-core/net/http.c (http_establish): Use headers_recv as stop
9281 condition.
9282 * grub-core/net/net.c (grub_net_poll_cards): New argument
9283 stop_condition. Stop when it goes true.
9284 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
9285 indicator.
9286 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
9287
9288 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9289
9290 Keep TX and RX buffers on EFI rather than always allocate new ones.
9291
9292 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
9293 card. All users updated.
9294 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
9295 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
9296 (get_card_packet): Likewise.
9297 (grub_efinet_findcards): Init new fields.
9298
9299 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9300
9301 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
9302 compilation error on sparc64.
9303
9304 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9305
9306 Use ITC on IA64 rather than broken routine based on daytime.
9307
9308 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
9309 ia64.
9310 (grub_get_rtc) [__ia64__]: Likewise.
9311 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
9312 (get_itc): New function.
9313 (grub_rtc_get_time_ms): Likewise.
9314 (grub_machine_init): Calibrate ITC.
9315 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
9316 Keep only on non-ia64. Don't export since it's broken and used only
9317 if TSC is unavailable.
9318
9319 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9320
9321 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
9322 even if it's used.
9323 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
9324 Skip if parent is unused.
9325
9326 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9327
9328 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
9329
9330 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9331
9332 Fix wildcard escaping.
9333
9334 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
9335 * grub-core/script/execute.c (wildcard_escape): .. to here.
9336 Don't escape dot.
9337 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
9338 * grub-core/script/execute.c (wildcard_unescape): .. to here.
9339 Don't escape dot.
9340 * grub-core/script/execute.c (gettext_append): Always escape.
9341 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
9342 * grub-core/script/yylex.l: Don't cut away the escaping.
9343 * tests/grub_script_echo1.in: Add tests with wildcard.
9344
9345 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9346
9347 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
9348 (ftdi_hw_configure): Likewise.
9349 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
9350 define.
9351 (real_config): Handle 1.5 stop bits.
9352 (pl2303_hw_configure): Likewise.
9353
9354 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9355
9356 * Makefile.am: Add ppc linux bootcheck.
9357 * grub-core/tests/boot/linux-ppc.cfg: New file.
9358 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
9359
9360 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9361
9362 * tests/grub_script_expansion.in: Skip network protocols.
9363
9364 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9365
9366 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
9367
9368 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9369
9370 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
9371 --rom-directory.
9372 Add -graft-points.
9373
9374 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9375
9376 ESCC serial driver for conducting sautomated tests in qemu.
9377 Not tested on real hardware.
9378
9379 * include/grub/serial.h (grub_serial_port): New field escc_desc.
9380 * grub-core/term/ieee1275/escc.c: New file.
9381 * grub-core/Makefile.core.def (escc): New module.
9382
9383 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9384
9385 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
9386 invalid on error.
9387 (serial_hw_fetch): Don't read invalid handle.
9388 (serial_hw_put): Don't write into invalid handle.
9389
9390 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9391
9392 Add a 1.5 stop bits value.
9393
9394 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
9395 * include/grub/serial.h (grub_serial_stop_bits_t): Add
9396 GRUB_SERIAL_STOP_BITS_1_5.
9397
9398 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9399
9400 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
9401 value rather than let it uninited.
9402
9403 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9404
9405 * grub-core/commands/wildcard.c (+check_file): New function.
9406 (wildcard_expand): Don't expand to non-existing files, expand with
9407 suffix and not attempt to expand if not needed.
9408
9409 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9410
9411 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
9412 out of partitions containing other partitions.
9413
9414 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9415
9416 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
9417 on some qemu versions with GRUB.
9418
9419 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
9420 define.
9421 (grub_openbsd_bootarg_pcibios): New struct.
9422 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
9423 Add PCIINFO.
9424
9425 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9426
9427 * tests/util/grub-shell.in: Trim firmware output on EFI.
9428
9429 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9430
9431 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
9432 and coreboot since it's already in kernel.
9433
9434 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9435
9436 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
9437 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
9438 to here. New return value start. All users updated.
9439 Recursively scan linear mappings.
9440 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
9441 proto.
9442 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
9443 Use grub_util_get_dm_node_linear_info.
9444 * util/getroot.c (convert_system_partition_to_system_disk): Use
9445 grub_util_info rather than grub_dprintf.
9446 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
9447
9448 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9449
9450 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
9451
9452 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
9453 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
9454
9455 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9456
9457 * include/grub/types.h (grub_set_unaligned64): New function.
9458 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
9459 (setup): Likewise.
9460
9461 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9462
9463 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
9464 (grub_ofdisk_fini): Quiesce USB devices.
9465
9466 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9467
9468 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
9469 caches.
9470
9471 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9472
9473 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
9474
9475 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9476
9477 * grub-core/disk/pata.c (grub_pata_pio_read)
9478 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
9479 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
9480
9481 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9482
9483 Extend automated tests to qemu-mips.
9484
9485 * Makefile.am: reorganise tests and enable qemu-mips.
9486 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
9487 * grub-core/tests/boot/linux.init-mips.S: New file.
9488 * tests/partmap_test.in: Handle ata0 disks.
9489 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
9490 non-pc i386.
9491
9492 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9493
9494 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
9495 ia64.
9496 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
9497 quotes while on it.
9498
9499 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9500
9501 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
9502 (grub_halt): Likewise.
9503 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
9504
9505 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9506
9507 * grub-core/term/serial.c (grub_serial_register)
9508 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
9509 the behaviour in line with x86 platforms.
9510
9511 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9512
9513 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
9514 (grub_ata_strncpy): Likewise.
9515 (grub_ata_identify): Add missing byteswaps.
9516
9517 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9518
9519 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
9520 byte-swap.
9521 (screen_read_char): Likewise.
9522 (grub_vga_text_cls): Likewise.
9523
9524 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9525
9526 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
9527 filenames.
9528 (make_file_path): Likewise.
9529
9530 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9531
9532 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
9533 machines.
9534 Tested by: Paulo Flabiano Smorigo.
9535 Crucial information about API supplied by: Coleen <Last name unknown>.
9536 Reviewed by: Coleen <Last name unknown>.
9537
9538 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9539
9540 * util/grub-mkimage.c: Disable -Wcast-align.
9541
9542 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9543
9544 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
9545 as they are fatal.
9546
9547 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9548
9549 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
9550
9551 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9552
9553 * util/grub-probe.c (escape_of_path): Fix double free.
9554
9555 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9556
9557 * grub-core/commands/videoinfo.c (hook): Show pitch.
9558
9559 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9560
9561 * util/grub.d/20_linux_xen.in: Skip xen-syms.
9562
9563 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9564
9565 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
9566 (probe): Add ieee1275 to OFW devices.
9567
9568 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9569
9570 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
9571
9572 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9573
9574 Handle IBM OFW path.
9575
9576 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
9577 available.
9578 (of_path_of_scsi): Handle vdevice.
9579
9580 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9581
9582 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
9583 Allocate in multiples of 16 to avoid adding a few bytes free region the
9584 windows bugs upon.
9585
9586 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9587
9588 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
9589 Allocate in multiples of 16 to avoid adding a few bytes free region the
9590 windows bugs upon.
9591 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
9592
9593 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9594
9595 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
9596 resolutions.
9597 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
9598 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
9599
9600 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
9601
9602 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
9603
9604 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9605
9606 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
9607 resulted in \\ at the end of the line.
9608
9609 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9610
9611 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
9612 (grub_parser_cmdline_state): Likewise.
9613 (grub_parser_split_cmdline): Likewise.
9614
9615 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9616
9617 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
9618 /dev/root and /dev/dm-*.
9619
9620 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9621
9622 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
9623 fix partially stale display.
9624
9625 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9626
9627 * grub-core/normal/menu_entry.c (backward_char): Use right line for
9628 substraction.
9629
9630 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9631
9632 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
9633 Fix MBR remapping workaround.
9634 (grub_util_biosdisk_read) [__linux__]: Likewise.
9635
9636 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
9637
9638 * util/grub-install.in: Check for ieee1275 and not ieee1276.
9639
9640 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9641
9642 * configure.ac: Bump to beta6.
9643
9644 2012-05-31 Christer Weinigel <christer@weinigel.se>
9645
9646 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
9647
9648 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9649
9650 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
9651 (grub_cmd_linux): Likewise.
9652
9653 2012-05-31 Christer Weinigel <christer@weinigel.se>
9654
9655 Fix EHCI low-speed.
9656
9657 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
9658 (GRUB_EHCI_MULT_TWO): Likewise.
9659 (GRUB_EHCI_MULT_THREE): Likewise.
9660 (GRUB_EHCI_CMASK_MASK): New enum value.
9661 (GRUB_EHCI_SMASK_MASK): Likewise.
9662 (GRUB_EHCI_CMASK_OFF): Likewise.
9663 (GRUB_EHCI_SMASK_OFF): Likewise.
9664 (grub_ehci_pci_iter): Enable periodic schedule.
9665 (grub_ehci_parse_notrun): Likewise.
9666 (grub_ehci_restore_hw): Likewise.
9667 (grub_ehci_setup_qh): Set flags for low speed transfers.
9668 (grub_ehci_find_qh): Use periodic list for low speed.
9669 (grub_ehci_setup_transfer): Check periodic queue as well.
9670 (grub_ehci_check_transfer): Likewise.
9671 (grub_ehci_cancel_transfer): Cancel periodic transfer.
9672
9673 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
9674
9675 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
9676 parameter is used.
9677
9678 2012-05-31 Peter Jones <pjones@redhat.com>
9679
9680 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
9681 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
9682 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
9683
9684 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9685
9686 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
9687 uninited variable. Allocate at least setup_sects.
9688
9689 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9690
9691 Fix handling of EFI with big memory maps.
9692
9693 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
9694 (real_mode_mem): Likewise.
9695 (real_mode_target): Likewise.
9696 (real_mode_pages): Likewise.
9697 (prot_mode_pages): Likewise.
9698 (linux_params): New var.
9699 (linux_cmdline): Likewise.
9700 (free_pages): Don't set real mode variables.
9701 (allocate_pages): Don't allocate real mode memory.
9702 (grub_e820_add_region): Remove the limit.
9703 (grub_linux_boot): Allocate and copy real mode memory.
9704 (grub_linux_unload): Free linux_cmdline.
9705 (grub_cmd_linux): Use temporary storage for parameters.
9706 (grub_cmd_initrd): Likewise.
9707 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
9708 (linux_kernel_params): Make it 1K big.
9709
9710 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9711
9712 * Makefile.util.def: Remove -Wno-format.
9713 * grub-core/Makefile.core.def: Likewise.
9714
9715 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9716
9717 * tests/cmp_unit_test.c: Add missing failure message.
9718 * tests/example_unit_test.c: Likewise.
9719 * tests/printf_unit_test.c: Likewise.
9720
9721 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9722
9723 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
9724 relaxation of protective MBR requirements.
9725
9726 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9727
9728 * configure.ac: Add condition for COND_HOST_XNU.
9729 * Makefile.util.def (10_xnu): New script.
9730 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
9731
9732 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9733
9734 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
9735 objconv bug.
9736
9737 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9738
9739 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
9740 Binary on other platforms stays identical.
9741
9742 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9743
9744 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
9745 Apple.
9746
9747 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9748
9749 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
9750
9751 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9752
9753 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
9754 rather than defining size_t ourselves to avoid conflict.
9755
9756 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9757
9758 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
9759 initialisation to avoid __bzero reference.
9760
9761 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9762
9763 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
9764 version.
9765 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
9766 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
9767 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
9768 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
9769 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
9770
9771 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9772
9773 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
9774 * grub-core/kern/misc.c: Likewise.
9775 * grub-core/loader/i386/xnu.c: Likewise.
9776 * include/grub/i386/tsc.h: Likewise.
9777 * include/grub/symbol.h: Likewise.
9778
9779 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9780
9781 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
9782 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
9783 on older compiler.
9784
9785 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9786
9787 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
9788 Implement Apple flavour.
9789 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
9790
9791 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9792
9793 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
9794 (memmove) [__APPLE__]: Likewise.
9795 (memcpy) [__APPLE__]: Likewise.
9796 (memset) [__APPLE__]: Likewise.
9797 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
9798 (memmove) [__APPLE__]: Likewise.
9799 (memcpy) [__APPLE__]: Likewise.
9800 (memset) [__APPLE__]: Likewise.
9801
9802 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9803
9804 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
9805 dependency discard.
9806
9807 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9808
9809 * grub-core/normal/main.c (read_config_file): Provide config_file and
9810 config_directory.
9811 * util/grub.d/41_custom.in: Use config_directoy when available.
9812
9813 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9814
9815 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
9816 (grub_bfs_dir): Likewise.
9817
9818 2012-05-27 Peter Jones <pjones@redhat.com>
9819
9820 The old code gives arguments to a printf function which can't work
9821 correctly, and the compiler complains.
9822
9823 * grub-core/tests/example_functional_test.c (example_test): Add
9824 missing text.
9825 * grub-core/tests/lib/test.c (add_failure): Rewrite.
9826 * include/grub/test.h (grub_test_assert_helper): New declaration.
9827 (grub_test_assert): Use grub_test_assert_helper.
9828
9829 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9830
9831 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
9832 (exfctest): ... this to avoid overlong filenames.
9833 All users updated.
9834
9835 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9836
9837 Handle "." and ".." on squashfs.
9838
9839 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
9840 Make inode numbers into stack.
9841 (grub_squash_read_symlink): Use stack.
9842 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
9843 (make_root_node): Fill stack.
9844 (grub_squash_open): Use stack.
9845
9846 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9847
9848 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
9849 freeing.
9850
9851 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9852
9853 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
9854 stderr on test calls.
9855
9856 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9857
9858 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
9859
9860 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9861
9862 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
9863
9864 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9865
9866 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
9867 "..".
9868
9869 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9870
9871 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
9872 (grub_hfsplus_iterate_dir): Add "." and "..".
9873
9874 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9875
9876 * grub-core/fs/cpio.c (canonicalize): Handle "..".
9877 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
9878
9879 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9880
9881 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
9882 (find_path): Handle "." and "..".
9883
9884 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9885
9886 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
9887 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
9888 (grub_affs_iterate_dir): Handle hardlinks.
9889
9890 2012-05-26 Matthew Garrett <mjg@redhat.com>
9891
9892 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
9893 (grub_efi_console_fini): Likewise.
9894 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
9895 (grub_video_gop_fill_mode_info): Rename to ...
9896 (grub_video_gop_fill_real_mode_info): ... this.
9897 (grub_video_gop_fill_mode_info): New function.
9898 (grub_video_gop_setup): Setup double framebuffer.
9899 (grub_video_gop_get_info_and_fini): Use original framebuffer.
9900 Free offscreen.
9901 (grub_video_gop_swap_buffers): Copy framebuffer.
9902 (grub_video_gop_fini): Free offscreen buffer.
9903 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
9904 New enum.
9905 (grub_efi_gop_blt_pixel): New struct.
9906
9907 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
9908
9909 * gentpl.py: Remove error disabling for objconv.
9910
9911 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
9912
9913 * configure.ac: Remove -Wunitialized as it's not available on older
9914 compilers.
9915
9916 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
9917
9918 Fix extent overflow comparator.
9919
9920 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
9921 (grub_hfsplus_read_block): Set type.
9922 (grub_hfsplus_cmp_extkey): Compare type.
9923
9924 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
9925
9926 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
9927
9928 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
9929
9930 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
9931 than 0.
9932
9933 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
9934
9935 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
9936 (dejavu_bold_14.pf2): New target.
9937
9938 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
9939
9940 * configure.ac: Fix djvu font detection.
9941
9942 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9943
9944 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
9945 ext* instead of ext2.
9946
9947 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9948
9949 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
9950 name with \0.
9951
9952 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
9953
9954 * docs/grub-dev.texi: Remove dot from .png.
9955
9956 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
9957
9958 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
9959 protective entry in any slot.
9960 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
9961 if protective entry is found in any slot.
9962
9963 Protective entry in non-first slot make no sense but is a widespread
9964 brain damage.
9965
9966 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
9967
9968 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
9969
9970 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
9971
9972 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
9973 with old reiserfs.
9974 (grub_reiserfs_open): Don't free root.
9975
9976 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
9977
9978 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
9979 after freeing for safety.
9980
9981 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9982
9983 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
9984 Reported by: Jordan Uggla.
9985
9986 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
9987
9988 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
9989 actual implementation. Specifically, clarify that the grub menu will
9990 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
9991 passed.
9992
9993 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
9994
9995 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
9996 of r0.
9997
9998 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9999
10000 Remove unjustified hard dependency of normal.mod on gfxterm.
10001
10002 * include/grub/term.h (grub_term_output): New member fullscreen.
10003 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
10004 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
10005 (grub_gfxterm): Set .fullscreen.
10006 * grub-core/normal/menu.c (menu_init): Use fullscreen.
10007 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
10008
10009 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10010
10011 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
10012 mentioning possible problems with non-ASCII (non-compliant) ISOs.
10013 Mention case-insensitive AFFS, SFS and JFS.
10014
10015 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10016
10017 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
10018
10019 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10020
10021 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10022 a bad FS.
10023
10024 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
10025
10026 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
10027 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
10028
10029 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10030
10031 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
10032 (grub_jfs_mount): Fill caseins.
10033 (grub_jfs_find_file): Respect caseins.
10034
10035 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10036
10037 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
10038 through UTF-16.
10039
10040 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10041
10042 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
10043 New argument origpath. All users updated.
10044
10045 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10046
10047 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
10048 (read_attr): Ensure that we read start of possibly compressed block.
10049
10050 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10051
10052 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
10053 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
10054 All users updated.
10055
10056 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10057
10058 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
10059 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
10060 (dejavu.pf2): Replace with ...
10061 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
10062 this.
10063
10064 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10065
10066 * util/grub.d/20_linux_xen.in: Add missing line.
10067
10068 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10069
10070 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
10071 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
10072 (grub_utf16_to_utf8): Likewise.
10073
10074 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10075
10076 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
10077 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
10078 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
10079 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
10080 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
10081 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
10082
10083 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10084
10085 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10086 a bad FS.
10087
10088 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10089
10090 * grub-core/fs/udf.c (read_string): Bail out on size=0.
10091 (grub_udf_read_symlink): Handle read_string failure.
10092
10093 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10094
10095 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
10096 comment.
10097
10098 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10099
10100 Fix handling of UDF symlinks.
10101
10102 * grub-core/fs/udf.c (read_string): New argument outbuf.
10103 All users updated.
10104 (grub_ufs_read_symlink): Rename to ...
10105 (grub_udf_read_symlink): ... this. All users updated.
10106 Handle symlinks with more than one component.
10107
10108 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10109
10110 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
10111 symlinks. Replace leading colon with a slash.
10112
10113 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10114
10115 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
10116 filename.
10117
10118 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10119
10120 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
10121 match in inner node.
10122
10123 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10124
10125 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
10126 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
10127 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
10128 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
10129 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
10130 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
10131 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
10132 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
10133 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
10134
10135 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10136
10137 Use grub-probe and not cmp to check that disk is empty.
10138
10139 * util/grub-install.in: Use grub-probe for zero-check.
10140 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
10141 (probe): Handle PRINT_ZERO_CHECK.
10142 (argp_parser): Handle -t zero_check.
10143
10144 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10145
10146 Flush block cache on adding disk to device map.
10147
10148 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
10149 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
10150 adding.
10151 (read_device_map): Likewise.
10152 (open_device): Flush on opening.
10153
10154 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10155
10156 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
10157 (handle_symlink): Fix off-by-one error.
10158 Canonicalize the target.
10159 (grub_cpio_dir): Canonicalize the name.
10160 Fix memory leak.
10161 Set directory.
10162 (grub_cpio_open): Canonicalize the name.
10163
10164 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10165
10166 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
10167 handling.
10168
10169 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10170
10171 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
10172 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
10173
10174 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10175
10176 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
10177 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
10178 All users updated.
10179
10180 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10181
10182 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
10183 counterpart.
10184
10185 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10186
10187 Fix UFS1 big file support.
10188
10189 * grub-core/fs/ufs.c (INODE): Removed.
10190 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
10191 64-bit.
10192 (INODE_MODE): Simplify.
10193 (grub_ufs_inode): Use uint64_t for size and not int64_t.
10194 (grub_ufs_lookup_symlink): Don't use INODE.
10195
10196 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10197
10198 Fix minixfs with non-power-of-two blocks since it's supported by minix.
10199
10200 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
10201 (grub_minix_data): Replace log_block_size with block_size.
10202 (grub_minix_read_file): Use block_size but avoid 64-bit division.
10203 (grub_minix_mount): Fill block_size.
10204
10205 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10206
10207 * configure.ac: Bump to beta5.
10208
10209 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10210
10211 Fix wrapped HFS+ handling.
10212
10213 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
10214 blocks_start. All users updated.
10215 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
10216 wrapping offset.
10217 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
10218
10219 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10220
10221 Fix long symlinks on reiserfs.
10222
10223 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
10224 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
10225 (grub_reiserfs_iterate_dir): Save size for non-directories.
10226 (grub_reiserfs_open): Don't reread stat block as we already know the
10227 size.
10228 (grub_reiserfs_read): Split into...
10229 (grub_reiserfs_read_real): ... and ...
10230 (grub_reiserfs_read): ...this.
10231
10232 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10233
10234 Fix non-indexed JFS.
10235
10236 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
10237 (grub_jfs_data): New field namecomponentlen.
10238 (grub_jfs_mount): Fill namecomponentlen.
10239 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
10240
10241 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10242
10243 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
10244 * tests/grub_script_echo1.in: Add tests.
10245
10246 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10247
10248 * util/grub-install.in: Ignore empty devicetree directory.
10249
10250 2012-05-08 Bean <bean123ch@gmail.com>
10251
10252 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
10253 All users updated.
10254 (free_rsm): Free header as well.
10255 (free_old_fragments): Fix memory leak.
10256 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
10257 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
10258 (destroy_pq): Likewise.
10259 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
10260
10261 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10262
10263 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
10264 resulting hash as a precaution.
10265
10266 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10267
10268 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
10269 '_' in variable names.
10270 * grub-core/net/net.c (grub_net_network_level_interface_register):
10271 Likewise.
10272
10273 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10274
10275 Fix AFFS with non-512B blocks.
10276
10277 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
10278 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
10279 (grub_affs_data): Replace blocksize with log_blocksize.
10280 (grub_affs_read_block): Fix non-512B blocks.
10281 (grub_affs_read_symlink): Likewise.
10282 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
10283 (grub_affs_read): Fix non-512B blocks.
10284 (grub_affs_label): Likewise.
10285 (grub_affs_mtime): Likewise.
10286 (grub_affs_mount): Fix block detection routine.
10287
10288 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10289
10290 Add filesystem mtime to AFFS.
10291
10292 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
10293 (aftime2ctime): New function.
10294 (grub_affs_dir): Use aftime2ctime.
10295 (grub_affs_label): Fix return value.
10296 (grub_affs_mtime): New function.
10297 (grub_affs_fs): Add mtime.
10298
10299 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10300
10301 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
10302 UTF-8.
10303
10304 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10305
10306 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
10307 UTF-8.
10308
10309 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10310
10311 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
10312
10313 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10314
10315 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
10316 flags.
10317 (FLAGS_CASE_SENSITIVE): New enum value.
10318 (cache_entry): New struct.
10319 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
10320 cache_size and cache.
10321 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
10322 Add log_blocksize and fshelp_flags.
10323 (grub_sfs_read_extent): Handle non-512 blocks.
10324 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
10325 (grub_sfs_read_file): Handle non-512 blocks.
10326 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
10327 fshelp_flags.
10328 (grub_sfs_read_symlink): Handle non-512 blocks.
10329 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
10330 (grub_sfs_dir): Free cache.
10331 (grub_sfs_close): Likewise.
10332
10333 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10334
10335 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
10336 filesystems.
10337
10338 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10339
10340 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
10341
10342 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10343
10344 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
10345
10346 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10347
10348 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
10349 (grub_sfs_read_extent): Likewise.
10350 (grub_sfs_read_block): Likewise.
10351 (grub_sfs_mount): Likewise.
10352 (grub_sfs_iterate_dir): Likewise.
10353 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
10354 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
10355
10356 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10357
10358 Fix errors on compressed NTFS with 512B clusters.
10359
10360 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
10361 types.
10362 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
10363 not 0.
10364 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
10365 Relax check for inline extents.
10366 (ntfscomp): Return correct -1 on error and not 0.
10367
10368 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10369
10370 * util/grub-install.in: Fix handling of prefix containing spaces.
10371
10372 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10373
10374 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
10375 (grub_squash_read_data): Fix offset byte-swapping.
10376
10377 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10378
10379 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
10380 per common usage and preffered in several parts of code.
10381 (grub_memcmp): Likewise.
10382 (grub_strncmp): Likewise.
10383 * include/grub/misc.h (grub_strcasecmp): Likewise.
10384 (grub_strncasecmp): Likewise.
10385 * Makefile.util.def (cmp_test): New test.
10386 (grub_script_strcmp): Likewise.
10387 * tests/cmp_unit_test.c: New file.
10388 * tests/grub_script_strcmp.in: Likewise.
10389 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
10390
10391 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10392
10393 * include/grub/pci.h: Move enums into no-asm part.
10394
10395 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10396
10397 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
10398
10399 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
10400
10401 * util/getroot.c (find_hurd_root_device): Try to make error message
10402 and comments to translators clearer.
10403
10404 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10405
10406 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
10407
10408 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10409
10410 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
10411 btrfs.
10412
10413 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10414
10415 * docs/grub.cfg: Update.
10416
10417 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10418
10419 * docs/grub.texi (PXE): Remove not present variables.
10420
10421 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10422
10423 * grub-core/net/net.c (defserver_set_env): New function.
10424 (defserver_get_env): Likewise.
10425 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
10426
10427 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10428
10429 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
10430 entries.
10431
10432 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10433
10434 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
10435 * grub-core/kern/emu/hostdisk.c: Likewise.
10436
10437 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
10438
10439 Handle hurd userspace partitions.
10440
10441 * util/getroot.c (find_hurd_root_device): New function.
10442 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
10443
10444 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10445
10446 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
10447 names.
10448 Reported by: Bastian Blank.
10449
10450 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10451
10452 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
10453 crossing page boundary.
10454
10455 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10456
10457 Fix B-tree search in BFS, especially in presence of non-ASCII
10458 characters.
10459
10460 * grub-core/fs/bfs.c (bfs_strcmp): New function.
10461 (find_in_b_tree): Use standard bsearch + btree algorithm.
10462
10463 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10464
10465 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
10466 and so on.
10467
10468 2012-05-03 Matthew Garrett <mjg@redhat.com>
10469 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10470
10471 Suspend broadcom cards in order to stop their DMA.
10472
10473 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
10474 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
10475 (pci): Don't build on x86 EFI.
10476 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
10477 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
10478 New function.
10479 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
10480 stop_broadcom if running on EFI.
10481 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
10482 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
10483 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
10484 (grub_pci_find_capability): New proto.
10485
10486 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10487
10488 * docs/grub.texi: Remove dot from the extension as it apparently
10489 doesn't work with some makeinfo versions.
10490
10491 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10492
10493 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
10494 with GRUB expectance.
10495
10496 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10497
10498 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
10499
10500 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10501
10502 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
10503 zero after directory block since last entry may be not 0-terminated if
10504 it ends on block boundary. Use continue instead of if spanning whole
10505 loop.
10506
10507 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10508
10509 Support 4K sectors UDF inline files.
10510
10511 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
10512 (grub_udf_extended_file_entry): Likewise.
10513 (grub_fshelp_node): Name the anonymous union. Put block at the end.
10514 All users updated.
10515 (get_fshelp_size): New function.
10516 (grub_udf_read_icb): Read whole block.
10517 (grub_udf_iterate_dir): Likewise.
10518 (grub_udf_dir): Likewise.
10519 (grub_udf_open): Likewise.
10520
10521 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10522
10523 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
10524
10525 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10526
10527 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
10528 inline symlinks in addition to workaround.
10529
10530 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10531
10532 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
10533
10534 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10535
10536 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
10537
10538 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10539
10540 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
10541
10542 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10543
10544 Fix reiserfs big seek times.
10545
10546 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
10547 exact. All users updated.
10548 (grub_reiserfs_read): Use nearest btree search for seeking.
10549 Fix return value on error.
10550
10551 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10552
10553 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
10554 entries.
10555 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
10556 * docs/grub.texi: Update menuentry description.
10557
10558 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10559
10560 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
10561 crash when embedding onto filesystem.
10562
10563 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10564
10565 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
10566 name.
10567
10568 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10569
10570 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
10571
10572 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10573
10574 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
10575 commit.
10576
10577 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10578 2012-05-01 Bean <bean123ch@gmail.com>
10579
10580 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
10581
10582 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10583
10584 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
10585 Special behaviour for len = 0 to read whole file isn't used anywhere and
10586 can cause buffer ovewrflows in several places.
10587
10588 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10589
10590 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
10591
10592 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10593
10594 Handle RAIDZ on non-512B sectors.
10595
10596 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
10597 max_children_ashift.
10598 (fill_vdev_info_real): Fill max_children_ashift.
10599 (read_device): Use max_children_ashift.
10600
10601 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10602
10603 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
10604
10605 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10606
10607 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
10608 disk names.
10609 * docs/grub.texi: Update device.map parts.
10610
10611 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10612
10613 Don't scan into non-diskfilter devices having diskfilter names.
10614
10615 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
10616 (scan_disk): New argument accept_diskfilter. Fix recursion depth
10617 handling.
10618 (scan_disk_hook): New function.
10619
10620 2012-04-29 Bean <bean123ch@gmail.com>
10621
10622 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
10623 allocation.
10624
10625 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
10626
10627 * configure.ac: Detect starfield theme font path
10628 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
10629
10630 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10631
10632 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
10633 geometry on serial consoles.
10634
10635 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10636
10637 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
10638 because of network consoles.
10639
10640 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10641
10642 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
10643 handling.
10644
10645 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10646
10647 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
10648 falls on Q syndrom.
10649
10650 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10651
10652 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
10653 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
10654
10655 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10656
10657 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
10658 Allocate at lest 8192 for temporary buffer as required for lzo.
10659
10660 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10661
10662 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
10663 to cluster_bits, since it's already added in.
10664 (grub_fat_read_data): Likewise.
10665
10666 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10667
10668 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
10669 as long as cluster size is multiple of 512 bytes.
10670
10671 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10672
10673 * util/grub-mkrescue.in: Fix locale directory.
10674
10675 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10676
10677 * grub-core/kern/emu/hostdisk.c (map): Make static.
10678
10679 2012-04-23 Bean <bean123ch@gmail.com>
10680
10681 * util/grub-fstest.c (fstest): Add missing break.
10682
10683 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
10684
10685 Fix hurd build.
10686
10687 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
10688 not define nr variable.
10689 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
10690 find_root_devices_from_poolname, find_root_devices_from_libzfs,
10691 grub_find_device): Do not define.
10692
10693 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10694
10695 Fix kfreebsd compile and behaviour.
10696
10697 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
10698 format-security.
10699 * util/getroot.c: Fix wait.h include.
10700 (grub_guess_root_devices): Error if grub_find_device fails.
10701 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
10702 (grub_util_get_dev_abstraction): Likewise.
10703 (grub_util_pull_device): Likewise.
10704 (grub_util_get_grub_dev): Likewise.
10705 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
10706
10707 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10708
10709 Fix and unify wholedisk detection.
10710
10711 * util/getroot.c (convert_system_partition_to_system_disk): New argument
10712 is_part. All users updated.
10713 (device_is_wholedisk): Removed.
10714 (grub_util_biosdisk_get_grub_dev): Use is_part.
10715
10716 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10717
10718 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
10719 mode.
10720
10721 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10722
10723 * configure.ac: Bump to beta4.
10724
10725 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10726
10727 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
10728 --fs-uuid --set UUID syntax.
10729
10730 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10731
10732 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
10733 disunification.
10734
10735 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10736
10737 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
10738
10739 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
10740
10741 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
10742
10743 2012-04-18 Mike Gilbert <floppym@gentoo.org>
10744
10745 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
10746
10747 2012-04-18 Bean <bean123ch@gmail.com>
10748
10749 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
10750 place.
10751
10752 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10753
10754 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
10755 users updated.
10756 (grub_util_biosdisk_read): Handle Linux partitions not exactly
10757 corresponding to GRUB partitions.
10758 (grub_util_biosdisk_write): Likewise.
10759
10760 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10761
10762 Scan mdraid before LVM.
10763
10764 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
10765 (grub_diskfilter_register_front): ... this.
10766 (grub_diskfilter_register_back): New function.
10767 All users of grub_diskfilter_register updated.
10768
10769 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10770
10771 * util/grub-install.in: Fix an automatic target detection bug.
10772
10773 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10774
10775 * util/grub-install.in: New option --efi-directory.
10776
10777 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
10778
10779 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
10780 boot services if we have no other choice.
10781
10782 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
10783
10784 * util/grub-mknetdir.in: Rename --override-directory to --directory and
10785 document it.
10786 * tests/util/grub-shell.in: Update to --directory.
10787
10788 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10789
10790 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
10791
10792 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10793
10794 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
10795 (grub_minix_read_file): Likewise.
10796 (grub_minix_read_inode): Likewise.
10797 (grub_minix_find_file): Likewise.
10798 (grub_minix_dir): Likewise.
10799
10800 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10801
10802 * util/grub-setup.c (setup): Fix partition handling and blocklist
10803 check.
10804
10805 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10806
10807 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
10808 redundant buggy overlap check.
10809
10810 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10811
10812 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
10813 and grub-mknetdir.
10814
10815 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10816
10817 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
10818 kh.loadflags on pre-2.00 kernels.
10819
10820 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10821
10822 Terminate UNDI and PXE before launching the payload to avoid problems
10823 with DMA.
10824
10825 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
10826 (grub_loader_flags): ... this. All users updated.
10827 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
10828 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
10829 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
10830 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
10831 function.
10832 (grub_pxe_restore): Likewise.
10833 (fini_hnd): New var.
10834 (GRUB_MOD_INIT): Register shutdown hook.
10835 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
10836 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
10837 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
10838 (grub_loader_set): Rename second argument to flags.
10839
10840 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10841
10842 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
10843 written bytes.
10844 (grub_get_num_of_utf8_bytes): New function.
10845 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
10846 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
10847 executing it.
10848 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
10849 (grub_ucs4_to_utf8): Change return type.
10850
10851 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10852
10853 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
10854 warning.
10855 * grub-core/fs/bfs.c (hop_level): Likewise.
10856 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
10857
10858 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10859
10860 * grub-core/lib/adler32.c: Recode due to license unclearness.
10861
10862 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10863
10864 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
10865 (test_header): Likewise.
10866
10867 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10868
10869 Fix --help formatting.
10870
10871 * util/grub-mkconfig_lib.in (print_option_help): New function.
10872 (grub_fmt): Likewise.
10873 * util/grub-install.in: Use print_option_help and grub_fmt.
10874 * util/grub-kbdcomp.in: Likewise.
10875 * util/grub-mkconfig.in: Likewise.
10876 * util/grub-mknetdir.in: Likewise.
10877 * util/grub-mkrescue.in: Likewise.
10878 * util/grub-mkstandalone.in: Likewise.
10879 * util/grub-reboot.in: Likewise.
10880 * util/grub-set-default.in: Likewise.
10881 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
10882
10883 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10884
10885 * linguas.sh: Remove autogenerated *.po.
10886
10887 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10888
10889 * po/README: Move language fetcing to ...
10890 * linguas.sh: ... here.
10891 * po/README: Point to linguas.sh.
10892
10893 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10894
10895 * po/README: Exclude ko.po due to disclaimer problems.
10896
10897 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10898
10899 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
10900 len = 0.
10901 (grub_gettext_translate_real): Handle 0th string.
10902 (grub_gettext_translate): Ensure that "" isn't translated.
10903
10904 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10905
10906 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
10907 TRANSLATORS comment.
10908 (grub_diskfilter_print_partmap): Propagate changing of error into
10909 warning.
10910
10911 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10912
10913 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
10914 to uint64_t to prevent overflow.
10915 (grub_diskfilter_lv): Increase start_extent and extent_count
10916 to uint64_t to prevent overflow.
10917
10918 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10919
10920 * configure.ac: Increase version.
10921
10922 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10923
10924 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
10925
10926 * po/Rules-translit: New file.
10927 * po/arabic.sed: Likewise.
10928 * po/cyrillic.sed: Likewise.
10929 * po/greek.sed: Likewise.
10930 * po/hebrew.sed: Likewise.
10931 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
10932 * po/Makefile.in.in: Add extra_dist4.
10933
10934 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10935
10936 Handle big-endian minixfs (fixes minixfs tests on bigendian).
10937
10938 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
10939 modify names. Introduce MODE_BIGENDIAN.
10940 * grub-core/fs/minix_be.c: New file.
10941 * grub-core/fs/minix2_be.c: Likewise
10942 * grub-core/fs/minix3_be.c: Likewise.
10943 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
10944 minix3_be.
10945 * grub-core/Makefile.core.def (minix_be): New module.
10946 (minix2_be): Likewise.
10947 (minix3_be): Likewise.
10948
10949 2012-04-01 Felix <email@hamburg.de>
10950
10951 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
10952 (devs): Add MBP 2011.
10953
10954 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10955
10956 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
10957
10958 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10959
10960 * grub-core/normal/cmdline.c (print_completion): New field
10961 prompt_len.
10962 (grub_cmdline_get): Handle width properly.
10963
10964 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10965
10966 * grub-core/commands/lsacpi.c (options): Add missing terminator.
10967
10968 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10969
10970 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
10971 after 29th of February.
10972
10973 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10974
10975 Fix exfat endianness handling.
10976
10977 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
10978 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
10979 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
10980 Byte-swap utf16 when necessary.
10981 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
10982
10983 2012-03-31 Anton Blanchard <anton@samba.org>
10984 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10985
10986 Fix btrfs endianness handling.
10987
10988 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
10989 (lower_bound): Make root uint64_t. Use root in le.
10990 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
10991 (find_path): Fix template key init.
10992 (grub_btrfs_dir): Fix mtime byteswap.
10993 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
10994
10995 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10996
10997 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
10998 recursion_depth. Break infinite resursions. All users updated.
10999
11000 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11001
11002 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
11003 after free.
11004 Reported by: Peter Jones.
11005
11006 2012-03-31 Anton Blanchard <anton@samba.org>
11007
11008 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
11009 8 bit values.
11010
11011 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11012
11013 * util/grub-install.in: Fix nvram call for PreP.
11014
11015 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11016
11017 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
11018 the error when some elements are missing into a warning.
11019
11020 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11021
11022 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
11023
11024 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
11025
11026 * docs/grub.texi (Invoking grub-probe): New section.
11027 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
11028
11029 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
11030
11031 Fix tab and wide character handling in editor and menu.
11032
11033 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
11034 agglomerate control characters with combining marks.
11035 (bidi_line_wrap): Allow break on tab.
11036 (grub_unicode_get_comb_start): New function.
11037 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
11038 and tab correctly.
11039 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
11040 with a space.
11041 * grub-core/normal/term.c (print_ucs4_terminal): New argument
11042 fixed_tab_size. All users updated.
11043 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
11044 (grub_term_getcharwidth): Handle \t.
11045 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
11046 and copy.
11047
11048 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11049
11050 Handle big-endian mdraid.
11051
11052 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
11053 * grub-core/Makefile.core.def (mdraid09_be): New module.
11054 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
11055 rather than grub_le_to_cpu* and grub_cpu_to_le*.
11056 * grub-core/disk/mdraid_linux_be.c: New file.
11057
11058 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11059
11060 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
11061
11062 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11063
11064 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11065 missing quotes which caused confusion among translators.
11066
11067 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11068
11069 * util/grub-mkconfig_lib.in: Fix typo.
11070
11071 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11072
11073 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
11074 spaces.
11075 * tests/grub_script_leading_whitespace.in: New file.
11076 * Makefile.util.def (grub_script_leading_whitespace): New test.
11077
11078 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11079
11080 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
11081 to work.
11082
11083 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11084
11085 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
11086 starts with control character.
11087
11088 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11089
11090 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
11091 overflow.
11092 (grub_gdb_outbuf): Likewise.
11093
11094 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11095
11096 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
11097 zero terminator. Fixes a crash.
11098
11099 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11100
11101 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
11102 beyond 4 GiB.
11103 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
11104 images independently of preffered adderss field.
11105
11106 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11107
11108 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
11109 * grub-core/commands/regexp.c: Likewise.
11110 * grub-core/loader/i386/linux.c: Likewise.
11111 * grub-core/partmap/msdos.c: Likewise.
11112 * grub-core/script/execute.c: Likewise.
11113 * grub-core/term/gfxterm.c: Likewise.
11114
11115 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11116
11117 Add variable parsing in $"..." and fix several mismatches with bash.
11118
11119 * Makefile.util.def (grub_script_gettext): New test.
11120 * grub-core/script/execute.c (parse_string): New function.
11121 (gettext_append): Likewise.
11122 (grub_script_arglist_to_argv): Use gettext_append.
11123 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
11124 * tests/grub_script_gettext.in: New file.
11125
11126 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11127
11128 Fix handling of leading spaces in scripts.
11129
11130 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
11131 spaces.
11132 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
11133 other than skipping \r. All users updated.
11134 * tests/grub_script_echo1.in: Add space-related tests.
11135 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
11136
11137 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11138
11139 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
11140
11141 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11142
11143 * configure.ac: Bump up the version to beta2.
11144
11145 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11146
11147 Fix gettext reload bugs (e.g. inability to disable gettext
11148 once enabled).
11149
11150 * grub-core/gettext/gettext.c: Encapsulate all static variables in
11151 main_context and secondary_context. All functions updated.
11152 (grub_gettext_translate): Rename to ...
11153 (grub_gettext_translate_real): ... this. Return NULL on failed
11154 translate.
11155 (grub_gettext_translate): Handle secondary context.
11156 (grub_gettext_delete_list): Close file and zero-out the context.
11157 (grub_mofile_open): Don't call grub_gettext_delete_list.
11158 Don't close file.
11159 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
11160 if locale="" to avoid pointless error message.
11161 (grub_gettext_env_write_lang): Update lang even if load fails.
11162 Handle secondary context.
11163 (grub_gettext_reread_prefix): New function.
11164 (read_main): Likewise.
11165 (read_secondary): Likewise.
11166 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
11167 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
11168 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
11169 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
11170
11171 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11172
11173 * configure.ac: Decrease warning level to avoid spurious warnings and
11174 to be able to compile with GCC 4.2.
11175 * Makefile.util.def: Remove -Wno-error=logical-op.
11176
11177 2012-03-10 William Bittner <william.bittner@gmail.com>
11178
11179 * util/import_unicode.py: Add missing brackets around string for
11180 python 3 support.
11181
11182 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11183
11184 Fix efi chainloader on network root.
11185
11186 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
11187 network devices.
11188 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
11189 New function.
11190
11191 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11192
11193 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
11194 unused show_text member.
11195 * docs/grub.texi: Document "text" property.
11196
11197 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11198
11199 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
11200 in dprintf.
11201
11202 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11203
11204 Fix IMSM handling on Fedora.
11205
11206 * util/getroot.c (grub_util_is_imsm): New function.
11207 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
11208
11209 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11210
11211 * Makefile.am: Strip gold section.
11212 * conf/Makefile.common: Likewise.
11213 * gentpl.py: Likewise.
11214 * grub-core/Makefile.core.def: Likewise.
11215 * grub-core/genmod.sh.in: Likewise.
11216
11217 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11218
11219 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
11220 * util/grub.d/20_linux_xen.in: Likewise.
11221 Based on Debian patch.
11222
11223 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11224
11225 * util/grub.d/10_linux.in: Fix syntax error resulting in
11226 Richard Laager's patch.
11227 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
11228
11229 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11230
11231 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
11232 dependencies.
11233
11234 2012-03-10 Richard Laager <rlaager@wiktel.com>
11235
11236 * util/grub.d/10_linux.in: Fix ZFS root passing.
11237
11238 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11239
11240 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11241 * grub-core/commands/xnu_uuid.c: Likewise.
11242 * grub-core/loader/efi/appleloader.c: Likewise.
11243 * grub-core/script/execute.c: Likewise.
11244 * grub-core/script/main.c: Likewise.
11245 * util/grub-mkfont.c: Likewise.
11246
11247 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11248
11249 * util/grub-mkfont.c (options): Use more appropriate "select" that
11250 "set" for face index.
11251
11252 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11253
11254 * util/grub-editenv.c (options): Gettextize command summaries.
11255
11256 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11257
11258 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
11259 "out of memory" error messagge.
11260
11261 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11262
11263 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
11264 of diskfilter for diskfilter on diskfilter support.
11265
11266 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11267
11268 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
11269
11270 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11271
11272 * util/grub-install.in: Check for themes/starfield/theme.txt and not
11273 themes/starfield.
11274
11275 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11276
11277 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
11278
11279 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11280
11281 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
11282
11283 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11284
11285 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
11286 of error message.
11287
11288 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11289
11290 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
11291
11292 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11293
11294 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
11295 message.
11296 * util/grub-install.in: Fix and gettextize error message.
11297
11298 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11299
11300 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
11301 Gettextize.
11302 * util/grub-mount.c (options): Likewise.
11303
11304 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11305
11306 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
11307 gettextize.
11308 * grub-core/commands/search_wrap.c (options): Likewise.
11309
11310 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11311
11312 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
11313
11314 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11315
11316 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
11317 size calculation.
11318 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
11319 none is known.
11320
11321 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11322
11323 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
11324 "temporary" since it's used in identifier and is limited in space.
11325
11326 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11327
11328 * po/POTFILES.in: Regenerate. Include *.h since they contain
11329 translatable strings as well.
11330
11331 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11332
11333 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
11334 byte-swap on big-endian.
11335 Reported by: Lennart Sorensen
11336
11337 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
11338
11339 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
11340 (allocate_pages): Improve dprintf.
11341 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
11342 code32_start. Fill code32_start and kernel_alignment in params.
11343 (grub_cmd_initrd): Use prot_init_space.
11344
11345 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11346
11347 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
11348
11349 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11350
11351 * util/grub-install.in: Add missing dot at the end of sentence.
11352
11353 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11354
11355 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11356 * grub-core/commands/videotest.c: Likewise.
11357 * grub-core/loader/i386/linux.c: Likewise.
11358
11359 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11360
11361 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
11362 sentence.
11363 Reported by: Milo Casagrande.
11364
11365 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11366
11367 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
11368 * grub-core/commands/gptsync.c: Likewise.
11369 * grub-core/commands/hashsum.c: Likewise.
11370 * grub-core/commands/i386/pc/sendkey.c: Likewise.
11371 * grub-core/commands/legacycfg.c: Likewise.
11372 * grub-core/io/gzio.c: Likewise.
11373 * grub-core/net/net.c: Likewise.
11374 * grub-core/term/gfxterm.c: Likewise.
11375 * grub-core/term/terminfo.c: Likewise.
11376 * grub-core/tests/test_blockarg.c: Likewise.
11377 * grub-core/video/video.c: Likewise.
11378 * util/grub-install.in: Likewise.
11379 * util/grub-mkfont.c: Likewise.
11380
11381 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11382
11383 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
11384
11385 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11386
11387 * grub-core/commands/search_wrap.c (options): Fix a typo.
11388 Reported by: David Prévot.
11389
11390 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11391
11392 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
11393 description.
11394
11395 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11396
11397 * util/grub-script-check.c (main): Fix a syntax error message which was
11398 unclear.
11399
11400 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11401
11402 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
11403
11404 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11405
11406 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
11407 messages.
11408
11409 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11410
11411 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
11412 without argument.
11413 * util/grub-mount.c (options): Likewise.
11414
11415 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11416
11417 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
11418
11419 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11420
11421 * grub-core/net/http.c: Add TRANSLATORS comments.
11422 * grub-core/normal/cmdline.c: Likewise.
11423 * grub-core/normal/misc.c: Likewise.
11424 * grub-core/partmap/msdos.c: Likewise.
11425 * grub-core/parttool/msdospart.c: Likewise.
11426 * grub-core/script/execute.c: Likewise.
11427 * grub-core/script/main.c: Likewise.
11428 * grub-core/term/terminfo.c: Likewise.
11429 * grub-core/video/bitmap.c: Likewise.
11430 * util/grub-install.in: Likewise.
11431 * util/grub-mkimage.c: Likewise.
11432 * util/grub-mklayout.c: Likewise.
11433 * util/grub-setup.c: Likewise.
11434
11435 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11436
11437 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
11438 with similar messages in grub-fstest.
11439
11440 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11441
11442 * util/grub-install.in: Unify "option requires an argument" message
11443 with similar messages in other files.
11444 * util/grub-mkconfig.in: Likewise.
11445
11446 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11447
11448 * util/grub-set-default.in: Replace printf with gettext_printf (the
11449 string in in question is already translated from grub-reboot)
11450
11451 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11452
11453 * configure.ac: Bump up the version to beta1.
11454
11455 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11456
11457 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
11458 case when min_align = 0.
11459
11460 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11461
11462 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
11463 and fix a case when line_start overflows.
11464
11465 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11466
11467 * util/grub-reboot.in (usage): Mention id posibility.
11468 * util/grub-set-default.in (usage): Likewise.
11469
11470 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11471
11472 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
11473 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
11474 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
11475 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
11476 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
11477 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11478 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11479
11480 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11481
11482 * grub-core/commands/menuentry.c (options): Remove
11483 GRUB_ARG_OPTION_REPEATABLE.
11484 Reported by: Andreas Vogel
11485
11486 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
11487
11488 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
11489
11490 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
11491
11492 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
11493 error.
11494
11495 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11496
11497 Use sort -V by the idea of Georgi Georgiev.
11498
11499 * util/grub-mkconfig_lib.in (version_sort): New function.
11500 (version_test_numeric): Use version_sort.
11501
11502 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11503
11504 Use submenus in grub-mkconfig.
11505
11506 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
11507 * util/grub-mkconfig_lib.in (grub_quote): New function.
11508 (gettext_printf): Use gettext and not gettext_quoted to fix several
11509 messages.
11510 * util/grub.d/10_hurd.in: Use submenus.
11511 * util/grub.d/10_kfreebsd.in: Likewise.
11512 * util/grub.d/10_linux.in: Likewise.
11513 * util/grub.d/10_netbsd.in: Likewise.
11514 * util/grub.d/20_linux_xen.in: Likewise.
11515 * util/grub.d/30_os-prober.in: Likewise.
11516 * util/grub.d/10_illumos.in: Add missing quoting.
11517 * util/grub.d/10_windows.in: Likewise.
11518
11519 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11520
11521 Fix menu title instability bug.
11522
11523 * grub-core/commands/menuentry.c (options): New option --id.
11524 (grub_normal_add_menu_entry): New argument id. All users updated.
11525 (grub_cmd_menuentry): Handle --id.
11526 (grub_menu_init): Accept unknown arguments.
11527 * grub-core/normal/main.c (features): Add feature_menuentry_id and
11528 feature_menuentry_options.
11529 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
11530 saved_entry.
11531 (get_entry_number): Match with id as well.
11532 * include/grub/menu.h (grub_menu_entry): New member id.
11533 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
11534 * util/grub.d/00_header.in: Define menuentry_id_option.
11535 * util/grub.d/10_hurd.in: Define id.
11536 * util/grub.d/10_illumos.in: Likewise.
11537 * util/grub.d/10_kfreebsd.in: Likewise.
11538 * util/grub.d/10_linux.in: Likewise.
11539 * util/grub.d/10_netbsd.in: Likewise.
11540 * util/grub.d/10_windows.in: Likewise.
11541 * util/grub.d/20_linux_xen.in: Likewise.
11542 * util/grub.d/30_os-prober.in: Likewise.
11543
11544 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11545
11546 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
11547 "scope" with "body".
11548
11549 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11550
11551 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
11552 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
11553 prot_size and prot_file_size.
11554
11555 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11556
11557 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
11558 All users updated. If easily=1 require raid-5/-6 to be full.
11559 (is_node_readable): Likewise.
11560 (scan_devices): Scan incomplete but readable LVs at the end.
11561 (grub_diskfilter_memberlist): Pull missing devices.
11562 (insert_array): Skip scanning until device is complete or scan is
11563 done otherwise.
11564 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
11565 check.
11566 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
11567 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
11568
11569 2012-03-03 Matthew Garrett <mjg@redhat.com>
11570 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11571
11572 Avoid EFI boot services when loading Linux.
11573
11574 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
11575 avoid_efi_bootservices. All users updated.
11576 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
11577 argument avoid_efi_bootservices. All users updated.
11578 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
11579 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
11580 align, min_align, relocatable, prefered_address. All users updated.
11581 Allocate avoiding boot services if kernel is relocatable.
11582 (grub_cmd_linux): Check if kernel is relocatable.
11583 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
11584 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
11585 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
11586 avoid_efi_boot_services.
11587 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
11588 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
11589 (linux_kernel_params): Likewise.
11590
11591 2012-03-03 Matthew Garrett <mjg@redhat.com>
11592 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11593
11594 Use EDID on EFI.
11595
11596 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
11597 datasize_out.
11598 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
11599 modes. Set gop_handle.
11600 (grub_video_gop_get_edid): New function.
11601 (grub_gop_get_preferred_mode): Likewise.
11602 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
11603 (grub_video_efi_gop_adapter): Set .get_edid.
11604 * include/grub/efi/edid.h: New file.
11605 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
11606
11607 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11608
11609 * util/grub-install.in: Load efivars unconditionally.
11610
11611 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11612
11613 * po/Rules-piglatin: Change suffix from .po-update-en to
11614 .po-update-en-piglatin.
11615
11616 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11617
11618 Add a pig farm.
11619
11620 * po/piglatin.sed: New file.
11621 * po/en@piglatin.header: Likewise.
11622 * po/Rules-piglatin: Likewise.
11623 * po/README: Add en@piglatin to autogenerated languages.
11624
11625 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11626
11627 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
11628 "Command for ...".
11629 * grub-core/commands/hdparm.c (options): Use "Display" rather than
11630 "Check" since we don't check anything.
11631 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
11632 is 64-bit one.
11633 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
11634 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
11635 (grub_md_sha512_real): Likewise.
11636
11637 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11638
11639 * grub-core/commands/gptsync.c: Fix typographic quoting.
11640 * grub-core/commands/ieee1275/suspend.c: Likewise.
11641 * grub-core/commands/parttool.c: Likewise.
11642 * grub-core/commands/search_wrap.c: Likewise.
11643 * grub-core/commands/videoinfo.c: Likewise.
11644 * grub-core/gfxmenu/gui_label.c: Likewise.
11645 * grub-core/hello/hello.c: Likewise.
11646 * grub-core/kern/emu/main.c: Likewise.
11647 * grub-core/net/net.c: Likewise.
11648 * grub-core/normal/menu.c: Likewise.
11649 * grub-core/normal/menu_text.c: Likewise.
11650 * grub-core/normal/misc.c: Likewise.
11651 * util/grub-editenv.c: Likewise.
11652 * util/grub-install.in: Likewise.
11653 * util/grub-kbdcomp.in: Likewise.
11654 * util/grub-mkconfig.in: Likewise.
11655 * util/grub-mknetdir.in: Likewise.
11656 * util/grub-mkrescue.in: Likewise.
11657 * util/grub-mkstandalone.in: Likewise.
11658 * util/grub-reboot.in: Likewise.
11659 * util/grub-set-default.in: Likewise.
11660 * util/grub-setup.c: Likewise.
11661 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11662
11663 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11664
11665 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
11666 * grub-core/commands/keystatus.c: Likewise.
11667 * grub-core/commands/loadenv.c: Likewise.
11668 * grub-core/commands/probe.c: Likewise.
11669 * grub-core/commands/regexp.c: Likewise.
11670 * grub-core/commands/true.c: Likewise.
11671 * grub-core/commands/videoinfo.c: Likewise.
11672 * grub-core/disk/cryptodisk.c: Likewise.
11673 * grub-core/disk/ldm.c: Likewise.
11674 * grub-core/disk/loopback.c: Likewise.
11675 * grub-core/disk/luks.c: Likewise.
11676 * grub-core/fs/zfs/zfsinfo.c: Likewise.
11677 * grub-core/kern/disk.c: Likewise.
11678 * grub-core/kern/emu/hostdisk.c: Likewise.
11679
11680 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11681
11682 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
11683 * util/grub-install.in: Add missing quote in the comment.
11684
11685 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11686
11687 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
11688 * grub-core/commands/lsmmap.c: Likewise.
11689 * grub-core/commands/minicmd.c: Likewise.
11690 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
11691 * grub-core/commands/regexp.c: Likewise.
11692 * grub-core/gdb/gdb.c: Likewise.
11693 * grub-core/term/gfxterm.c: Likewise.
11694 * util/grub-mkconfig.in: Likewise.
11695 * util/grub-mkfont.c: Likewise.
11696 * util/grub-mklayout.c: Likewise.
11697 * util/grub-mknetdir.in: Likewise.
11698 * util/grub-mkrescue.in: Likewise.
11699 * util/grub.d/30_os-prober.in: Likewise.
11700
11701 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11702
11703 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
11704 with "Direct color" and "Packed" with "Packed pixel".
11705 (grub_cmd_videoinfo): Simplify legend.
11706
11707 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11708
11709 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11710 absolutely unclear error message.
11711
11712 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11713
11714 * util/grub-mkstandalone.in: Remove confusing leftover print.
11715
11716 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11717
11718 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
11719 comments.
11720 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
11721 (GRUB_MOD_INIT): Likewise.
11722 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
11723 VGA mode.
11724 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
11725 comments.
11726 * util/grub-install.in (usage): Likewise.
11727 Spell ID in whole letters.
11728 Add missing ending dot.
11729 Quote variables.
11730 * util/grub-reboot.in: Fix capitalisation.
11731 * util/grub-set-default.in: Likewise.
11732
11733 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11734
11735 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
11736 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
11737 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
11738 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
11739 Disable -Werror for -Wdeprecated-declarations.
11740 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
11741 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
11742 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
11743 (grub_util_get_grub_dev): Make luks handling dependent on
11744 HAVE_DEVICE_MAPPER and not __linux__.
11745 (get_win32_path): Fix format security.
11746 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
11747 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
11748 Don't try grub_find_zpool_from_dir.
11749 (grub_make_system_path_relative_to_its_root) [!__linux__]:
11750 #ifdef-out paresdir.
11751
11752 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11753
11754 * util/grub-pe2elf.c (usage): Add missing noreturn.
11755 (write_section_data): Rename name to shname to avoid shadowing.
11756 (write_symbol_table): Rename name to symname to avoid shadowing.
11757 Fix write_reloc_section call.
11758
11759 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11760
11761 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
11762 to ensure that it's after the last byte of .text.
11763
11764 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11765
11766 * util/ieee1275/ofpath.c (my_isdigit): New function.
11767 (trailing_digits): Use my_isdigit.
11768 (strip_trailing_digits): Likewise.
11769
11770 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11771
11772 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
11773 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
11774
11775 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11776
11777 * grub-core/kern/i386/pc/startup.S: Define __start.
11778
11779 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11780
11781 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
11782 strip already transforms he format.
11783
11784 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11785
11786 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
11787
11788 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11789
11790 * util/grub-install.in: Add missing gettext init.
11791 * util/grub-kbdcomp.in: Likewise.
11792 * util/grub-mkconfig.in: Likewise.
11793 * util/grub-mknetdir.in: Likewise.
11794 * util/grub-mkrescue.in: Likewise.
11795 * util/grub-mkstandalone.in: Likewise.
11796 * util/grub-reboot.in: Likewise.
11797 * util/grub-set-default.in: Likewise.
11798 * util/grub.d/00_header.in: Likewise.
11799 * util/grub.d/10_hurd.in: Likewise.
11800 * util/grub.d/10_windows.in: Likewise.
11801 * util/grub.d/30_os-prober.in: Likewise.
11802 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11803
11804 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11805
11806 * po/Rules-swiss: Fix header comment.
11807
11808 2012-02-29 Andreas Vogel <anvoit>
11809
11810 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
11811 resulted in leak of arguments.
11812
11813 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11814
11815 * grub-core/boot/i386/pc/startup_raw.S: Use separate
11816 reed_solomon_size const definition instead of computing it since
11817 Apple assembler doesn't support the later.
11818
11819 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11820
11821 * gentpl.py (kernel): Rewrite Apple part.
11822
11823 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11824
11825 * include/grub/kernel.h (FOR_MODULES): Check module magic.
11826
11827 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11828
11829 * util/grub-mkimagexx.c (locate_sections): Support non-standard
11830 ELF section gap.
11831 (load_image): Likewise.
11832
11833 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11834
11835 * configure.ac: Fix a typo in previous commit.
11836
11837 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11838
11839 Don't add -Wl,-N on Apple platform.
11840
11841 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
11842 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
11843
11844 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11845
11846 * grub-core/Makefile.core.def (lzma_decompress): Use
11847 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
11848
11849 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11850
11851 * grub-core/genmod.sh.in: Rewrite the Apple part.
11852
11853 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11854
11855 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
11856 comparison.
11857
11858 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11859
11860 * acinclude.m4 (grub_CHECK_PIC): New test.
11861 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
11862
11863 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11864
11865 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
11866 to avoid the warning.
11867
11868 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11869
11870 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
11871 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
11872 after. All users updated.
11873
11874 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11875
11876 Use the common size routine in hostfs so we can read disks as well.
11877
11878 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
11879 (grub_util_get_fd_size): ... this. Return size in bytes.
11880 All users updated.
11881 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
11882 grub_util_get_fd_size.
11883
11884 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11885
11886 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
11887 Add blocksize retrieval.
11888
11889 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11890
11891 * configure.ac: Restore CFLAGS after efiemu check.
11892
11893 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11894
11895 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
11896 Apple bug.
11897
11898 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11899
11900 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
11901
11902 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11903
11904 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
11905 (grub_cmd_halt): Likewise.
11906
11907 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11908
11909 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
11910 for local arithmetics.
11911 Break %sp init into 2 instructions.
11912 Add 0 byte at the end.
11913
11914 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11915
11916 * grub-core/disk/diskfilter.c (read_segment): Initialise err
11917 before loops.
11918
11919 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11920
11921 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
11922 for context.
11923
11924 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11925
11926 * grub-core/disk/ldm.c (make_vg): Init part.name.
11927 (grub_ldm_detect): Silence spurious warning.
11928 (grub_util_is_ldm): Likewise.
11929
11930 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11931
11932 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
11933 sane value to avoid a spurious warning.
11934
11935 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11936
11937 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
11938 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
11939
11940 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11941
11942 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
11943 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
11944
11945 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11946
11947 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
11948 hardcoding the relevant info.
11949
11950 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11951
11952 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
11953 missing const qualifiers.
11954 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
11955
11956 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11957
11958 * util/getroot.c [__APPLE__]: Add missing includes.
11959 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
11960
11961 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11962
11963 * util/grub-mkimage.c (generate_image): Silence spurious warning.
11964
11965 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11966
11967 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
11968 avoid conflicts.
11969
11970 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11971
11972 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
11973
11974 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11975
11976 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
11977 and grub_file_close call.
11978
11979 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11980
11981 Add LZSS Mach-O support (needed for new xnu kernelcache).
11982
11983 * grub-core/Makefile.core.def (xnu): Add file lzss.c
11984 * grub-core/loader/lzss.c: New file.
11985 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
11986 on Mach-O open failure.
11987 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
11988 Don't free cmdsXX in uncompressedXX is set.
11989 (grub_macho_file): Init new fields.
11990 New argument is_64bit. All users updated.
11991 Handle compressed. Error out if no suitable architecture is found.
11992 Don't close file.
11993 (grub_macho_open): New argument is_64bit. All users updated.
11994 * grub-core/loader/macho32.c: Add defines for new fields.
11995 * grub-core/loader/macho64.c: Likewise.
11996 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
11997 (grub_macho_parse): Handle compressed.
11998 Defer actual processing if compressed.
11999 (grub_macho_cmds_iterate): Decompress if compressed. New argument
12000 "filename". All users updated.
12001 (grub_macho_size): New argument "filename". All users updated.
12002 (grub_macho_get_entry_point): Likewise.
12003 (grub_macho_load): Handle compressed.
12004 * include/grub/macho.h (grub_macho_lzss_header): New struct.
12005 (GRUB_MACHO_LZSS_OFFSET): New define.
12006 (grub_decompress_lzss): New proto.
12007 * include/grub/machoload.h (grub_macho_file): New fields to handle
12008 compressed.
12009 (grub_macho_contains_macho64): Remove proto.
12010 (grub_macho_contains_macho32): Likewise.
12011 * util/grub.d/30_os-prober.in: Use kernel cache if available.
12012
12013 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12014
12015 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
12016
12017 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12018
12019 Fix make dist.
12020
12021 * Makefile.am (starfield_theme_files): New var.
12022 (starfield_DATA): Use starfield_theme_files.
12023 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
12024 Add bootcheck-related files.
12025 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
12026 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
12027 and font_char_metrics.txt.
12028 * grub-core/Makefile.core.def (kernel): Update extra_dist.
12029 (setjmp): Add lib/ia64/longjmp.S.
12030 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
12031 * po/POTFILES.in: Regenerate.
12032 * po/Rules-swiss: use DISTFILES.common.extra2 and not
12033 DISTFILES.common.extra1.
12034 * util/devicemap.c: Removed.
12035 * grub-core/lib/i386/relocator_backward.S: Likewise.
12036 * util/import_gcry.py: Remove unused files. Add extra_dist for
12037 ChangeLog.
12038
12039 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12040
12041 * grub-core/gettext/gettext.c (grub_mofile_open): Call
12042 grub_gettext_delete_list before changing grub_gettext_max to avoid
12043 running out of array bounds.
12044
12045 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12046
12047 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
12048 grub_vga_text_init/grub_vga_text_fini.
12049
12050 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12051
12052 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
12053
12054 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12055
12056 * configure.ac: Bump to 2.00~beta0.
12057
12058 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12059
12060 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
12061 missing initialisation.
12062
12063 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12064
12065 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
12066
12067 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12068
12069 Support v2 xnu boot arguments.
12070
12071 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
12072 New argument fsbfreq_out.
12073 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
12074 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
12075 be used.
12076 * grub-core/loader/machoXX.c (grub_macho_load): New argument
12077 darwin_version.
12078 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
12079 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
12080 (grub_xnu_boot_params): Rename to ...
12081 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
12082 (grub_xnu_boot_params_v2): New struct.
12083
12084 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12085
12086 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
12087 zeroing of CRC field before computing CRC.
12088
12089 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12090
12091 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
12092 Change order of allocations to decrease fragmentation.
12093
12094 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12095
12096 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
12097
12098 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12099
12100 Use write-combining MTRR to speed up video with buggy BIOSes.
12101
12102 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
12103 (cpuid): New define.
12104 (rdmsr): Likewise.
12105 (wrmsr): Likewise.
12106 (mtrr_base): Likewise.
12107 (mtrr_mask): Likewise.
12108 (grub_vbe_enable_mtrr_entry): New function.
12109 (grub_vbe_enable_mtrr): Likewise.
12110 (grub_vbe_disable_mtrr): Likewise.
12111 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
12112 control off to BIOS.
12113 (grub_video_vbe_init): Fill mtrr.
12114 (grub_video_vbe_fini): Disable mtrr.
12115 (grub_video_vbe_get_info_and_fini): Likewise.
12116 (grub_video_vbe_setup): Enable mtrr.
12117
12118 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12119
12120 * include/grub/partition.h (grub_partition_map): Change prototype of
12121 embed to take a maximum value for nsectors.
12122 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
12123 * include/grub/fs.h (grub_fs): Likewise.
12124 * grub-core/partmap/msdos.c (embed_signatures): New array.
12125 (pc_partition_map_embed): Check for and avoid sectors matching any
12126 of the signatures in embed_signatures, up to max_nsectors.
12127 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
12128 returned sector map to max_nsectors.
12129 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
12130 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
12131 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
12132 * util/grub-setup.c (setup): Allow for the embedding area being
12133 split into multiple blocklists. Tell dest_partmap->embed the
12134 maximum number of sectors we care about.
12135
12136 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12137
12138 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
12139 Specify blocklist_install and reserver_first_sector for all fs.
12140 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
12141 blocklists.
12142
12143 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12144
12145 * util/grub-install.in: Clarify strings.
12146 Fix source dir check.
12147
12148 2012-02-27 Richard Laager <rlaager@wiktel.com>
12149
12150 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
12151 "zfs" and "fuse.zfs" as synonyms.
12152
12153 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12154
12155 * configure.ac: Put platform and target_cpu substitutions back since
12156 they are used for directories.
12157
12158 2012-02-27 Richard Laager <rlaager@wiktel.com>
12159 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12160
12161 * util/grub.d/10_linux.in: Add ZFS-related arguments.
12162 * util/grub.d/20_linux_xen.in: Likewise.
12163
12164 2012-02-27 Richard Laager <rlaager@wiktel.com>
12165
12166 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
12167 with full paths.
12168
12169 2012-02-27 Richard Laager <rlaager@wiktel.com>
12170
12171 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
12172 unescape.
12173
12174 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12175
12176 Don't use insecure popen in getroot.
12177
12178 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
12179 (exec_pipe): ... here.
12180 (find_root_devices_from_poolname): Use exec_pipe.
12181
12182 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12183
12184 Remove platform and target_cpu replacement.
12185
12186 * configure.ac: Remove platform and target_cpu substitutions.
12187 * tests/util/grub-shell.in: Use modinfo.
12188 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
12189 explicitly.
12190
12191 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12192
12193 Autodetect platform in grub-install but allow override.
12194
12195 * util/grub-install.in: Autodetect platform. Support --target and
12196 --directory. Read platform from modinfo.sh.
12197
12198 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12199
12200 Support btrfs multi-volume probe.
12201
12202 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
12203 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
12204 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
12205 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
12206 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
12207 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
12208 grub_find_root_devices_from_btrfs if on btrfs.
12209
12210 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12211
12212 Remove any awareness of *.c util files about target.
12213
12214 * Makefile.util.def (grub-setup): Split to ...
12215 (grub-bios-setup): ... and this.
12216 (grub-sparc64-setup): ... and this.
12217 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
12218 * docs/man/grub-setup.h2m: Split into ...
12219 * docs/man/grub-sparc64-setup.h2m: ... this.
12220 * docs/man/grub-bios-setup.h2m: ... and this.
12221 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
12222 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
12223 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
12224 (grub_target_addr_t): Remove.
12225 (grub_target_size_t): Remove.
12226 (grub_target_ssize_t): Remove.
12227 * util/grub-install.in: Use new grub-*-setup.
12228 * util/grub-mkimagexx.c (Elf_Word): New define.
12229 (Elf_Half): Likewise.
12230 (Elf_Section): Likewise.
12231 (ELF_ST_TYPE): Likewise.
12232 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
12233 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
12234
12235 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12236
12237 Replace grub_target_addr with more appropriate types.
12238
12239 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
12240 grub_target_addr with grub_addr.
12241 * grub-core/commands/iorw.c (grub_cmd_read): Replace
12242 grub_target_addr with grub_port.
12243 (grub_cmd_write): Likewise.
12244 * grub-core/commands/memrw.c (grub_cmd_read): Replace
12245 grub_target_addr with grub_addr.
12246 (grub_cmd_write): Likewise.
12247 * grub-core/video/efi_uga.c (find_line_len): Likewise.
12248
12249 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12250
12251 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
12252 const qualifier for vendor_guid.
12253
12254 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12255
12256 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
12257 const qualifier.
12258 (efiemu_memequal): Likewise.
12259 (find_variable): Likewise.
12260
12261 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12262
12263 Fix missing console prototype on qemu-mips.
12264
12265 * include/grub/mips/qemu_mips/console.h: New file.
12266
12267 2012-02-27 Matthew Garrett <mjg@redhat.com>
12268 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12269
12270 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
12271 * include/grub/efi/efi.h: Likewise.
12272 * include/grub/efi/api.h: Add guid for EFI-specified variables.
12273 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
12274 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
12275 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
12276 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
12277 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
12278
12279 2012-02-27 Matthew Garrett <mjg@redhat.com>
12280
12281 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
12282
12283 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12284
12285 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
12286 error.
12287
12288 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12289
12290 * configure.ac: Remove inappropriate use of program_transform_name
12291 on grubdir and bootdir but allow explicit specification of those
12292 variables.
12293
12294 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12295
12296 * util/grub-mknetdir.in (grub_prefix): Removed.
12297 (subdir): Use @bootdirname@ and @grubdirname@.
12298
12299 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12300
12301 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
12302
12303 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12304
12305 * po/POTFILES.in: Regenerated.
12306
12307 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12308
12309 Remove improper use of program_transform_name on pkglibrootdir.
12310
12311 * configure.ac (pkglibrootdir): Removed.
12312 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
12313 * util/grub-mkimage.c: Likewise.
12314
12315 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12316
12317 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
12318 warning.
12319
12320 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12321
12322 * util/grub-install.in: Use file identifier if no UUID is available
12323 or user explicitly prompted for it.
12324
12325 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
12326
12327 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
12328 (freebsd_get_zfs): New function.
12329 (grub_freebsd_boot): Pass zfs UUID.
12330 (grub_cmd_freebsd): Set zfs UUID.
12331
12332 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12333
12334 * conf/Makefile.common (platformdir): Base on pkglibdir and not
12335 pkglibrootdir.
12336
12337 2012-02-27 Mike Gilbert <floppym@gentoo.org>
12338
12339 Add configure flag to control libzfs integration.
12340
12341 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
12342
12343 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12344
12345 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
12346 device.
12347 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
12348 small devices.
12349
12350 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12351
12352 Remove grub_{modname}_init and grub_{modname}_fini. They should never
12353 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
12354 be used on non-modules.
12355
12356 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
12357 Rename to grub_boot_init.
12358 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
12359 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
12360 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
12361 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
12362 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
12363 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
12364 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
12365 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
12366 includes.
12367 (grub_machine_init): Remove empty inits.
12368 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
12369 includes.
12370 (grub_machine_init): Remove empty inits.
12371 * grub-core/term/arc/console.c: Remove explicit proto.
12372 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
12373 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
12374 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12375 grub_at_keyboard_fini.
12376 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
12377 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
12378 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12379 grub_gfxterm_fini.
12380 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
12381 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
12382 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12383 grub_vgatext_fini.
12384 * grub-core/term/ieee1275/console.c: Remove explicit proto.
12385 * grub-core/term/serial.c (GRUB_MOD_INIT)
12386 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
12387 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12388 grub_serial_fini.
12389 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
12390 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
12391 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12392 grub_terminfo_fini.
12393 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
12394 (GRUB_MOD_FINI): Likewise.
12395 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
12396 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
12397 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12398 grub_video_radeon_fuloong2e_fini.
12399 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
12400 [LOONGSON]: Rename to grub_video_sis315pro_init.
12401 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12402 grub_video_sis315pro_fini.
12403 * grub-core/video/sm712.c (GRUB_MOD_INIT)
12404 [LOONGSON]: Rename to grub_video_sm712_init.
12405 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12406 grub_video_sm712_fini.
12407 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
12408 (grub_at_keyboard_fini): Likewise.
12409 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
12410 Don't declare grub_{modname}_init.
12411 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
12412 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
12413 New proto.
12414 (grub_keylayouts_fini) [!EMU]: Likewise.
12415 * include/grub/serial.h (grub_serial_init) [!EMU]:
12416 New proto.
12417 (grub_serial_fini) [!EMU]: Likewise.
12418 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
12419 New proto.
12420 (grub_terminfo_fini) [!EMU]: Likewise.
12421 * include/grub/video.h (grub_font_init) [!EMU]:
12422 New proto.
12423 (grub_font_fini) [!EMU]: Likewise.
12424 (grub_gfxterm_init) [!EMU]: Likewise.
12425 (grub_gfxterm_fini) [!EMU]: Likewise.
12426 (grub_video_sm712_init) [!EMU]: Likewise.
12427 (grub_video_sm712_fini) [!EMU]: Likewise.
12428 (grub_video_sis315pro_init) [!EMU]: Likewise.
12429 (grub_video_sis315pro_fini) [!EMU]: Likewise.
12430 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
12431 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
12432
12433 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12434
12435 Make nand a prefix for nand devices.
12436
12437 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
12438
12439 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12440
12441 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
12442 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
12443
12444 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12445
12446 * include/grub/env.h (grub_env_find): Remove prototype.
12447 * grub-core/kern/env.c (grub_env_find): Make static.
12448 (grub_env_set): Remove useless set.
12449
12450 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12451
12452 * grub-core/kern/i386/realmode.S: Remove useless align.
12453
12454 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12455
12456 * include/grub/dl.h (grub_dl_load_file): Don't export.
12457
12458 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12459
12460 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
12461 grub_dprintf.
12462
12463 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12464
12465 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
12466 grub_errors.
12467 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
12468 not reloading whole superblock but only the part which is really needed.
12469 Remove useless grub_errors.
12470 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
12471 grub_errors.
12472
12473 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12474
12475 Don't export grub_get_rtc.
12476
12477 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
12478 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
12479
12480 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12481
12482 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
12483
12484 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12485
12486 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
12487 argument since it can be deduced from diskfilter. All users updated.
12488
12489 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12490
12491 Remove prio_list.
12492
12493 * include/grub/list.h (grub_prio_list): Removed.
12494 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
12495 GRUB_COMMAND_PRIO_MASK.
12496 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
12497 GRUB_COMMAND_FLAG_ACTIVE.
12498 (grub_prio_list_insert): Removed.
12499 (grub_prio_list_remove): Likewise.
12500 (GRUB_AS_PRIO_LIST): Likewise.
12501 (GRUB_AS_PRIO_LIST_P): Likewise.
12502 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
12503 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
12504 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
12505 * grub-core/kern/command.c (grub_register_command_prio): Inline
12506 the prio_list code.
12507 (grub_unregister_command): Likewise.
12508
12509 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12510
12511 Fix interrupt mixup from previous commit.
12512
12513 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
12514 (grub_realidt): New var.
12515 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
12516 Load idt.
12517 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
12518 New declaration.
12519 (grub_relocator16_boot): Set grub_relocator16_idt.
12520 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
12521 (LOCAL(realidt)): ... this.
12522 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
12523 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
12524 (grub_realidt): New variable.
12525
12526 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12527
12528 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
12529 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
12530 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
12531 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
12532 Gettextize.
12533 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
12534 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
12535 * po/POTFILES.in: Regenerate.
12536
12537 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12538
12539 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
12540 errors.
12541
12542 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12543
12544 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
12545 \0.
12546 (add_length): Likewise.
12547
12548 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12549 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
12550
12551 GDB serial and backtrace support.
12552
12553 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
12554 (prot_to_real): Likewise.
12555 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
12556 * grub-core/Makefile.core.def (backtrace): New module.
12557 (gdb): Likewise.
12558 * grub-core/gdb/cstub.c: New file.
12559 * grub-core/gdb/gdb.c: Likewise.
12560 * grub-core/gdb/i386/idt.c: Likewise.
12561 * grub-core/gdb/i386/machdep.S: Likewise.
12562 * grub-core/gdb/i386/signal.c: Likewise.
12563 * grub-core/lib/i386/backtrace.c: Likewise.
12564 * grub-core/lib/backtrace.c: Likewise.
12565 * include/grub/backtrace.h: Likewise.
12566 * include/grub/gdb.h: Likewise.
12567 * include/grub/i386/gdb.h: Likewise.
12568
12569 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12570
12571 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
12572 New function.
12573 (add_length): Likewise.
12574 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
12575 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
12576 proto.
12577 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
12578 __argp_get_display_len.
12579
12580 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12581
12582 $"..." support in scripts.
12583
12584 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
12585 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
12586 * grub-core/script/yylex.l: Likewise.
12587 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
12588 value.
12589
12590 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12591
12592 * gentpl.py: Remove obsolete pkglib_DATA handling.
12593
12594 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12595
12596 Don't transform PACKAGE_TARNAME following a discussion on autoconf
12597 mailing list.
12598
12599 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
12600 * util/grub-kbdcomp.in: Likewise.
12601 * util/grub-mkconfig.in: Likewise.
12602 * util/grub-mkconfig_lib.in: Likewise.
12603 * util/grub-mknetdir.in: Likewise.
12604 * util/grub-mkrescue.in: Likewise.
12605 * util/grub-mkstandalone.in: Likewise.
12606 * util/grub-reboot.in: Likewise.
12607 * util/grub-set-default.in: Likewise.
12608 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12609
12610 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12611
12612 Remove GRUB_PREFIX.
12613
12614 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
12615 * util/grub.d/00_header.in: Compute prefix in the only place it's still
12616 used for backward compatibility.
12617
12618 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12619
12620 Add new all_video module.
12621
12622 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
12623 * grub-core/Makefile.core.def (all_video): New module.
12624 * grub-core/genmoddep.awk: Generate dependency of all_video from
12625 video.lst.
12626 * grub-core/lib/fake_module.c: New file.
12627 * grub-core/normal/main.c (features): Add feature_all_video_module.
12628 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
12629 don't do explicit search again.
12630 insmod all_video in load_video if available.
12631
12632 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12633
12634 Another round of string clarification and adding TRANSLATORS comments.
12635
12636 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12637
12638 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
12639
12640 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12641
12642 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
12643 to grub_ssize_t.
12644 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
12645 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
12646
12647 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12648
12649 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
12650 trailing newline implicitly. All users updated.
12651
12652 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12653
12654 Implement serial on IEEE1275 and EFI.
12655
12656 * docs/grub.texi (Platform-specific limitations): Fix the columen video
12657 on emu. Mention arc and emu as the only platforms without serial
12658 support.
12659 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
12660 ieee1275 platforms.
12661 * grub-core/term/efi/serial.c: New file.
12662 * grub-core/term/ieee1275/serial.c: Likewise.
12663 * grub-core/term/serial.c (grub_serial_find): Disable direct port
12664 specification if no ns8250 driver is available.
12665 (grub_cmd_serial): Likewise.
12666 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
12667 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
12668 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
12669 (grub_efi_parity_type_t): New type.
12670 (grub_efi_stop_bits_t): Likewise.
12671 (grub_efi_serial_io_interface): New struct.
12672 * include/grub/serial.h (grub_serial_port): Make 'broken' field
12673 available for all interfaces.
12674 Add EFI and IEEE1275 fields.
12675 (grub_ofserial_init): New proto.
12676 (grub_efiserial_init): Likeiwse.
12677 * util/grub.d/00_header.in: Don't check for the presence of serial
12678 module.
12679
12680 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12681
12682 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
12683 name as if it was an alias.
12684
12685 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12686
12687 * grub-core/commands/lsacpi.c (options): Fix typo.
12688
12689 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12690
12691 Convert grub-emu to argp.
12692
12693 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
12694 emu.
12695 * util/argp_common.c: Rename to ...
12696 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
12697 Add missing includes.
12698 * grub-core/kern/emu/main.c: Convert to argp.
12699 * po/POTFILES.in: Regenerate.
12700 * util/grub-install.in (usage): Make first letter lowcase in messages
12701 for uniformity.
12702 * util/grub-setup.c (options): Likewise.
12703
12704 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12705
12706 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
12707 Put back accidently commented-out code.
12708
12709 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12710
12711 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
12712 loop check using Brent algorithm.
12713 (grub_hfsplus_btree_search): Likewise.
12714
12715 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12716
12717 * util/grub-install.in: Fix usage of wrong device for PreP install.
12718
12719 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12720
12721 * conf/Makefile.common (CFLAGS_GNULIB): Add
12722 -Wno-unsafe-loop-optimizations.
12723 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
12724 on tools.
12725 * grub-core/commands/legacycfg.c: Add pragma to skip
12726 -Wunsafe-loop-optimizations.
12727 (check_password_md5_real): Fix loop counter type.
12728 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
12729 reading.
12730 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
12731 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
12732 loop condition.
12733 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
12734 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
12735 * grub-core/net/net.c (grub_net_route_address): Add safety loop
12736 condition.
12737 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
12738 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
12739 avoid possible infinite loops.
12740 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
12741 and -Wunsafe-loop-optimizations.
12742 * grub-core/script/yylex.l: Likewise.
12743 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
12744 (print_glyphs): Avoid infinite loops.
12745 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
12746
12747 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
12748
12749 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
12750 to avoid infinite loop.
12751 (disp_acpi_rsdt_table): Likewise.
12752
12753 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12754
12755 * grub-core/font/font.c (grub_font_load): Add support for default
12756 path for fonts ($prefix/fonts).
12757 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
12758 for checking if string is a path.
12759 * grub-core/normal/main.c (features): Add feature_default_font_path.
12760 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
12761 * util/grub.d/00_header.in: Use default directory if possible.
12762 * util/grub-install.in: Install unicode.pf2.
12763
12764 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12765
12766 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
12767 * po/Rules-swiss: New file.
12768 * po/swiss.sed: Likewise.
12769
12770 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12771
12772 * grub-core/fs/btrfs.c (find_device): Fix typos.
12773 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
12774 * util/grub-mkrelpath.c (argp_parser): Likewise.
12775 Reported by: Yuri Chornoivan.
12776
12777 2012-02-23 Dalet Omega <daletomega@gmail.com>
12778
12779 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
12780 for usual informative messages.
12781
12782 2012-02-23 Dalet Omega <daletomega@gmail.com>
12783
12784 Starfield theme.
12785
12786 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
12787 * conf/Makefile.common: Define starfielddir.
12788 * configure.ac: Configure starfield.
12789 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
12790 * themes/starfield/README: Likewise.
12791 * themes/starfield/blob_w.png: Likewise.
12792 * themes/starfield/boot_menu_c.png: Likewise.
12793 * themes/starfield/boot_menu_e.png: Likewise.
12794 * themes/starfield/boot_menu_n.png: Likewise.
12795 * themes/starfield/boot_menu_ne.png: Likewise.
12796 * themes/starfield/boot_menu_nw.png: Likewise.
12797 * themes/starfield/boot_menu_s.png: Likewise.
12798 * themes/starfield/boot_menu_se.png: Likewise.
12799 * themes/starfield/boot_menu_sw.png: Likewise.
12800 * themes/starfield/boot_menu_w.png: Likewise.
12801 * themes/starfield/slider_c.png: Likewise.
12802 * themes/starfield/slider_n.png: Likewise.
12803 * themes/starfield/slider_s.png: Likewise.
12804 * themes/starfield/src/blob_nw.xcf: Likewise.
12805 * themes/starfield/src/bootmenu/: Likewise.
12806 * themes/starfield/src/bootmenu/center.xcf: Likewise.
12807 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
12808 * themes/starfield/src/bootmenu/side.xcf: Likewise.
12809 * themes/starfield/src/slider_c.xcf: Likewise.
12810 * themes/starfield/src/slider_n.xcf: Likewise.
12811 * themes/starfield/src/slider_s.xcf: Likewise.
12812 * themes/starfield/src/terminalbox/: Likewise.
12813 * themes/starfield/src/terminalbox/center.xcf: Likewise.
12814 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
12815 * themes/starfield/src/terminalbox/side.xcf: Likewise.
12816 * themes/starfield/starfield.png: Likewise.
12817 * themes/starfield/terminal_box_c.png: Likewise.
12818 * themes/starfield/terminal_box_e.png: Likewise.
12819 * themes/starfield/terminal_box_n.png: Likewise.
12820 * themes/starfield/terminal_box_ne.png: Likewise.
12821 * themes/starfield/terminal_box_nw.png: Likewise.
12822 * themes/starfield/terminal_box_s.png: Likewise.
12823 * themes/starfield/terminal_box_se.png: Likewise.
12824 * themes/starfield/terminal_box_sw.png: Likewise.
12825 * themes/starfield/terminal_box_w.png: Likewise.
12826 * themes/starfield/theme.txt: Likewise.
12827
12828 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12829
12830 * util/grub.d/00_header.in: Add missing export theme.
12831
12832 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12833
12834 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
12835 already included.
12836 Reported by: Eren D.
12837
12838 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12839
12840 * conf/Makefile.common (grubdatadir): Removed.
12841 (Makefile.am): Move eveything grubdata to pkgdata.
12842
12843 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12844
12845 * grub-core/commands/acpihalt.c (get_sleep_type):
12846 Remove unused variable.
12847
12848 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12849
12850 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
12851 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
12852 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
12853 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
12854 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
12855 i18n with gettext no-op.
12856 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
12857 GRUB_ACPI_OPCODE_STRING_CONST.
12858 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
12859 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
12860
12861 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12862
12863 * po/POTFILES.in: Regenerate.
12864
12865 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12866
12867 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
12868 -Wno-error=missing-noreturn.
12869
12870 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12871
12872 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
12873 condition to avoid possibly infinite loops.
12874 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
12875 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
12876
12877 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12878
12879 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
12880 condition to avoid possibly infinite loops.
12881
12882 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12883
12884 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
12885 on show_error.
12886
12887 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12888
12889 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
12890
12891 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12892
12893 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
12894
12895 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12896
12897 * util/bin2h.c (usage): Add missing attribute noreturn.
12898
12899 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12900
12901 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
12902 if the size isn't divisible by 512.
12903
12904 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12905
12906 Make list_push and list_remove functions rather than inline functions
12907 to decrease size and avoid aliasing violations.
12908
12909 * include/grub/list.h (grub_list_push): Move to ...
12910 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
12911 * include/grub/list.h (grub_list_remove): Move to ...
12912 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
12913
12914 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12915
12916 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
12917 and -Wunused-result.
12918
12919 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
12920
12921 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
12922 Reported by: Seth Goldberg
12923
12924 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
12925
12926 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
12927
12928 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
12929
12930 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
12931 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
12932 command line.
12933 * docs/grub.texi (Simple configuration): Document
12934 GRUB_CMDLINE_GNUMACH.
12935
12936 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
12937
12938 * conf/Makefile.common (platform_SCRIPTS): New variable.
12939 (platform_PROGRAMS): Likewise.
12940 * gentpl.py: Mark *,module and *.image for install.
12941 * grub-core/gdb_grub.in: Add a notice of expected environment.
12942 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
12943 (gmodule.pl): Likewise.
12944
12945 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
12946
12947 Replace grub_checkkey with grub_getkey_noblock.
12948
12949 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
12950 (grub_getkey_noblock): ... this. All users updated.
12951
12952 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
12953
12954 * grub-core/kern/emu/console.c: Move to ...
12955 * grub-core/term/emu/console.c: ...here.
12956 (grub_ncurses_getkey): Fix return value if no key is detected.
12957
12958 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12959
12960 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
12961 (grub_unit_test_fini): Likewise.
12962 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
12963
12964 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12965
12966 * include/grub/test.h (GRUB_UNIT_TEST)
12967
12968 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12969
12970 * grub-core/script/execute.c (grub_script_break): Clarify logic.
12971 Better error handling.
12972 (grub_script_return): Likewise.
12973 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
12974
12975 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12976
12977 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
12978 rimplicit redifinition.
12979
12980 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12981
12982 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
12983 GRUB.
12984
12985 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12986
12987 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
12988 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
12989 prompt here.
12990
12991 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12992
12993 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
12994 as GRUB_ERR_BUG. Don't malloc if no device is available.
12995
12996 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12997
12998 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
12999 Mark calling with invalid term as GRUB_ERR_BUG.
13000
13001 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13002
13003 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
13004 packets rather than raising an error.
13005
13006 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13007
13008 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
13009 in if.
13010
13011 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13012
13013 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
13014 diagnostic to dprintf.
13015 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
13016
13017 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13018
13019 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
13020 device name.
13021
13022 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13023
13024 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
13025 (grub_ntfs_iterate_dir): Likewise.
13026
13027 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13028
13029 Efiemu stylistic fixes and gettext.
13030
13031 * grub-core/efiemu/i386/loadcore32.c
13032 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
13033 * grub-core/efiemu/i386/loadcore64.c
13034 (grub_arch_efiemu_relocate_symbols64): Likewise.
13035 * grub-core/efiemu/i386/pc/cfgtables.c
13036 (grub_machine_efiemu_init_tables): Likewise.
13037 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
13038 (grub_efiemu_loadcore_initXX): Add a filename argument.
13039 All users updated.
13040 Improved error message.
13041 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
13042 Add a filename argument.
13043 All users updated.
13044 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
13045 Reclassify double relocation as GRUB_ERR_BUG.
13046
13047 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13048
13049 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
13050 handling.
13051
13052 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13053
13054 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
13055 on partition.
13056
13057 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13058
13059 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
13060
13061 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13062
13063 Improve string. Gettextize.
13064
13065 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13066
13067 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
13068 utils.
13069 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
13070
13071 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13072
13073 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
13074 [GRUB_UTIL]: New function.
13075 (insert_array) [GRUB_UTIL]: Store partmaps.
13076 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
13077 partmaps.
13078 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
13079 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
13080 (probe_abstraction): Print diskfilter and not raid.
13081 Reported by: Lennart Sorensen
13082
13083 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13084
13085 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
13086 * util/grub-mkimagexx.c (MASK3): New define.
13087 (add_value_to_slot_20b): Use MASK3.
13088 (add_value_to_slot_21): Likewise.
13089 (relocate_addresses): Fix format specification.
13090 (load_image): Explicitly init symtab_section.
13091
13092 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13093
13094 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
13095 (grub_util_biosdisk_get_grub_dev): Fix format specification.
13096
13097 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13098
13099 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
13100 on powerpc.
13101 Reported by: Lennart Sorensen
13102
13103 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13104
13105 * gentpl.py: Add missing license header.
13106 * docs/grub.texi: Update copyright year.
13107
13108 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
13109
13110 Source grub-mkconfig_lib from the build directory at build time.
13111 Suggested by: Vladimir Serbinenko.
13112
13113 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
13114 * util/grub-install.in: Define pkgdatadir if not already set, and source
13115 grub-mkconfig_lib from there.
13116 * util/grub-kbdcomp.in: Likewise.
13117 * util/grub-mkconfig.in: Likewise.
13118 * util/grub-mknetdir.in: Likewise.
13119 * util/grub-mkrescue.in: Likewise.
13120 * util/grub-mkstandalone.in: Likewise.
13121 * util/grub-reboot.in: Likewise.
13122 * util/grub-set-default.in: Likewise.
13123 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
13124
13125 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13126
13127 Increase warning level.
13128
13129 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
13130 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
13131 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
13132 (TARGET_CFLAGS): Likewise.
13133 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
13134 * grub-core/Makefile.core.def (decompressor_xz): Add
13135 -Wno-unreachable-code.
13136 (normal): Add -Wno-redundant-decls.
13137 (xzio): Add -Wno-unreachable-code.
13138 (lzopio): Add -Wno-redundant-decls -Wno-error.
13139 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
13140 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
13141 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
13142 * grub-core/kern/dl.c: Add exception to -Wcast-align.
13143 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
13144 * grub-core/kern/i386/coreboot/init.c: Add exception to
13145 -Wsuggest-attribute=noreturn.
13146 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
13147 * grub-core/kern/ia64/dl_helper.c: Likewise.
13148 * grub-core/kern/mips/dl.c: Likewise.
13149 * grub-core/kern/sparc64/dl.c: Likewise.
13150 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
13151 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
13152 (memcmp): Likewise.
13153 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
13154 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
13155 * grub-core/loader/mips/linux.c: Likewise.
13156 * grub-core/loader/multiboot_elfxx.c: Likewise.
13157 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
13158 * grub-core/video/sm712.c: Add exception to -Wcast-align.
13159 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
13160 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
13161 fixme.
13162 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
13163 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
13164 Fix prototype.
13165
13166 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13167
13168 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
13169 address.
13170
13171 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13172
13173 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
13174 Avoid improper use of strings.
13175 (grub_cmd_legacy_initrdnounzip): Likewise.
13176
13177 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13178
13179 * include/grub/emu/misc.h (grub_util_warn): Add missing format
13180 attribute.
13181 (grub_util_info): Likewise.
13182 (grub_util_error): Likewise.
13183
13184 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13185
13186 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
13187 * util/grub-fstest.c (fstest): Likewise.
13188
13189 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13190
13191 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
13192 (grub_md_sha512_real): Likewise.
13193 (grub_util_get_geli_uuid): Likewise.
13194 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
13195 (grub_util_biosdisk_open): Fix format specification.
13196 Respect format security.
13197 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
13198 (xrealloc): Likewise.
13199 (xasprintf): Likewise.
13200
13201 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13202
13203 * util/import_gcry.py: Include grub/crypto.h in init.c.
13204
13205 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13206
13207 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
13208 (generate_image): Make prefix a const char *.
13209 Fix format specifications. Respect format security.
13210 Avoid void * arithmetics.
13211 Avoid shadowing.
13212 (argp_parser): Remove unused variable. Respect format security.
13213 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
13214 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
13215 (count_funcs): Remove unused variable.
13216 (relocate_addresses): Fix format specification.
13217 Disable x86-64 with elf32. Remove unused variables.
13218 (add_fixup_entry): Avoid shadowing.
13219 (make_reloc_section): Fix format specification.
13220 Use assert.
13221 (locate_sections): Fix format specifications.
13222 (load_image): Avoid shadowing.
13223
13224 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13225
13226 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
13227 Fix format specifications. Respect format security.
13228 Don't translate already translated grub_errmsg.
13229 (argp_parser): Remove unused variable
13230
13231 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13232
13233 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
13234
13235 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13236
13237 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
13238 (main): Likewise. Use xmalloc. Respect format security.
13239
13240 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13241
13242 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
13243 a const char *.
13244 (argp_parser): Remove unused variable.
13245
13246 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13247
13248 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
13249 (add_pixel): Make static.
13250 (add_font): Likewise.
13251 (write_string_section): Make name and str a const char *.
13252 (write_be16_section): Make name a const char *.
13253 (print_glyphs): Make static.
13254 (write_font_ascii_bitmap): Likewise.
13255 (write_font_width_spec): Likewise.
13256 (write_font_pf2): Likewise.
13257 (argp_parser): Remove unused variable.
13258 Respect format security.
13259 (main): Avoid shadowing. Respect format security.
13260
13261 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13262
13263 * util/grub-editenv.c (argp_parser): Make static.
13264 (create_envblk_file): Use xmalloc.
13265 (open_envblk_file): Likewise.
13266 Resepect format security.
13267 (set_variables): Respect format security.
13268
13269 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13270
13271 * util/getroot.c (grub_find_device): Respect format security.
13272 (get_mdadm_uuid): Remove unused variable.
13273 (grub_util_pull_device): Dont call gettext on already translated
13274 grub_errmsg.
13275 (find_system_device): Remove unused variable.
13276 (grub_util_get_grub_dev): Likewise.
13277 (grub_make_system_path_relative_to_its_root): Respect format security.
13278
13279 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13280
13281 * util/grub-fstest.c (execute_command): Make first argument
13282 a const char *.
13283 (read_file): Avoid shadowing.
13284 Reuse underlying error message if device open fails.
13285 (cmd_cmp): Respect format security.
13286 (root): Make const char *.
13287 (fstest): Remove args argument and use global copy.
13288 Respect format security.
13289 (argp_parser): Make static.
13290 (main): Make default_root const char *.
13291
13292 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13293
13294 * util/grub-mount.c (root): Make const char *.
13295 (execute_command): Make first argument a const char *.
13296 (fuse_init): Respect format security.
13297 (argp_parser): Make static. Remove unused variable.
13298 (main): Make default_root a const char *.
13299 Respect format security.
13300
13301 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13302
13303 * util/grub-probe.c (probe): Don't call gettext on already translated
13304 grub_errmsg.
13305 Remove unused variables.
13306 (argp_parser): Remove unused variable.
13307
13308 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13309
13310 * util/grub-script-check.c (argp_parser): Remove unused variable.
13311 (main): Rename read to curread to avoid shadowing.
13312
13313 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13314
13315 * util/misc.c (grub_util_write_image_at): Fix format specification.
13316 (grub_util_write_image): Likewise.
13317 (grub_script_execute_argument_to_string): Removed (unused).
13318 (grub_script_execute_menuentry): Likewise.
13319 (grub_putchar): Likewise.
13320
13321 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13322
13323 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
13324 (FUNCTION) [GRUB_UTIL]: Likewise.
13325 (VARIABLE) [GRUB_UTIL]: Likewise.
13326
13327 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13328
13329 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
13330 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
13331
13332 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13333
13334 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
13335 buffer.
13336
13337 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13338
13339 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
13340 (LzmaEnc_SaveState): Removed (unused).
13341 (LzmaEnc_RestoreState): Likewise.
13342 (LzmaEnc_InitPriceTables): Made static.
13343 (LzmaEnc_Construct): Likewise.
13344 (LzmaEnc_FreeLits): Likewise.
13345 (LzmaEnc_Destruct): Likewise.
13346 (LzmaEnc_Init): Likewise.
13347 (LzmaEnc_InitPrices): Likewise.
13348 (LzmaEnc_Finish): Likewise.
13349 (LzmaEnc_PrepareForLzma2): Removed (unused).
13350 (LzmaEnc_MemPrepare): Likewise.
13351 (LzmaEnc_GetNumAvailableBytes): Likewise.
13352 (LzmaEnc_GetCurBuf): Likewise.
13353 (LzmaEnc_CodeOneMemBlock): Likewise.
13354
13355 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13356
13357 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
13358 (grub_util_ldm_embed): Likewise.
13359
13360 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13361
13362 * util/grub-editenv.c (print_var): Rename name to varname to
13363 avoid shadowing.
13364 (main): Rename index to curindex to avoid shadowing.
13365 Make filename a const char *.
13366
13367 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13368
13369 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
13370 to arg_getline to avoid shadowing.
13371
13372 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13373
13374 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
13375 disk_ to avoid shadowing.
13376
13377 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13378
13379 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
13380 curindex to avoid shadowing.
13381 Make static.
13382 (MatchFinder_GetNumAvailableBytes): Make static.
13383
13384 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13385
13386 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
13387 avoid shadowing.
13388
13389 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13390
13391 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
13392 argument from encrypt to do_encrypt to avoid shadowing.
13393
13394 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13395
13396 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
13397 incorrect nesting of #if's.
13398
13399 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13400
13401 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
13402 checks which are always false on some platforms.
13403 (grub_cmd_lsacpi): Likewise.
13404 * grub-core/kern/misc.c (grub_strtoul): Likewise.
13405 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
13406 Likewise.
13407
13408 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13409
13410 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
13411 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
13412
13413 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13414
13415 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
13416 re_dfa_t to avoid breaking alignment invariants.
13417 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
13418 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
13419
13420 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13421
13422 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
13423 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
13424
13425 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13426
13427 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
13428 Fix declaration.
13429
13430 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13431
13432 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
13433 conserve alignment invariants.
13434 (grub_ehci_ehcc_read16): Likewise.
13435 (grub_ehci_oper_read32): Likewise.
13436 (grub_ehci_oper_write32): Likewise.
13437 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
13438 Conserve alignment invariants.
13439
13440 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13441
13442 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
13443 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
13444 declarations.
13445
13446 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13447
13448 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
13449 Remove unused variable.
13450
13451 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13452
13453 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
13454 Remove set in if.
13455
13456 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13457
13458 * include/grub/net.h: Remove double declarations.
13459
13460 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13461
13462 Remove "payload" command in ia64 Linux loader since I couldn't
13463 find any evidence of it being used for anything.
13464 Replace "relocate" command with an environment variable
13465
13466 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
13467 fields.
13468 (ia64_boot_payload): Removed.
13469 (last_payload): Likewise.
13470 (RELOCATE_OFF): Likewise.
13471 (RELOCATE_ON): Likewise.
13472 (RELOCATE_FORCE): Likewise.
13473 (relocate): Likewise.
13474 (free_pages): Don't free payloads.
13475 (grub_load_elf64): Use common error messages.
13476 Use "linux_relocate" variable.
13477 Increase the space after boot_params.
13478 (grub_cmd_payload): Removed.
13479 (grub_cmd_relocate): Likewise.
13480 (grub_cmd_fpswa): Improve messages.
13481 (cmd_payload): Removed.
13482 (cmd_relocate): Likewise.
13483 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
13484 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
13485
13486 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13487
13488 Convert UHCI to DMA framework.
13489
13490 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
13491 (grub_uhci_pci_iter): Fill new members
13492 (grub_alloc_td): Use P2V and V2P functions.
13493 (grub_free_queue): Likewise.
13494 (grub_alloc_qh): Likewise.
13495 (grub_uhci_setup_transfer): Likewise.
13496 (grub_uhci_check_transfer): Likewise.
13497
13498 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13499
13500 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
13501 Remove assignment in if while on it.
13502
13503 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13504
13505 * util/grub-mkstandalone.in: Fix modules directory.
13506
13507 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13508
13509 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
13510 on i386-pc target.
13511 (argp_parser): Accept "auto" as compression specification.
13512
13513 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13514
13515 Fix `help' with unloaded modules.
13516
13517 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
13518 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
13519 (grub_dyncmd_dispatcher): Small stylistic fix.
13520 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
13521 explicit help is requested.
13522
13523 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13524
13525 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
13526 Explicitly init restart while on it.
13527
13528 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13529
13530 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
13531 uninited variable.
13532
13533 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13534
13535 * util/grub-mknetdir.in: Use . rather than source for POSIX
13536 compatibility.
13537
13538 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13539
13540 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
13541
13542 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13543
13544 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
13545 variable.
13546
13547 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13548
13549 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
13550 without quotes.
13551
13552 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13553
13554 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
13555
13556 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13557
13558 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
13559 iteration of partitions.
13560
13561 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13562
13563 Improve gettext support. Stylistic fixes and error handling fixes while
13564 on it.
13565
13566 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13567
13568 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
13569 part. Instead setup the correct stack in RM.
13570 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
13571 for stack.
13572 * include/grub/i386/relocator_private.h: New file.
13573
13574 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13575
13576 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
13577 argument.
13578 * util/grub-fstest.c (options): Add missing DEVICE part.
13579
13580 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13581
13582 Clarify and unify messages.
13583
13584 * grub-core/commands/hashsum.c (options): Unify messages.
13585 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
13586 literal-only message as translatable.
13587 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
13588 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
13589 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
13590 commands.
13591 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
13592 key, not the key used to unlock. Clarify what it's used for.
13593 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
13594 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
13595 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
13596 * util/grub-editenv.c (options): Unify "verbose" message.
13597 * util/grub-fstest.c (read_file): Unify error message.
13598 (fstest): Add quotes around commands.
13599 (options): Unify "verbose" message.
13600 * util/grub-install.in: Add quotes around variable name.
13601 * util/grub-kbdcomp.in: Unify error message.
13602 * util/grub-mkfont.c (main): Likewise.
13603 * util/grub-mkrescue.in: Likewise.
13604 * util/grub-mklayout.c (options): Unify "verbose" message.
13605 * util/grub-mkstandalone.in: Unify help and verbose messages.
13606 * util/grub-mount.c (options): Unify "verbose" message.
13607 * util/grub-probe.c (options): Likewise.
13608 * util/grub-script-check.c (options): Likewise.
13609 * util/grub-setup.c (setup): Unify no-terminator message.
13610 (options): Use DEVICE and not DEV.
13611 Unify "verbose" message.
13612 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
13613
13614 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13615
13616 Improve and unify messages.
13617
13618 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
13619 name. All users updated.
13620 Print filename in error.
13621 (read_device_map): Print filename in error.
13622 * util/getroot.c (grub_guess_root_devices): Print filename in error.
13623 (grub_util_get_os_disk): Likewise.
13624 (grub_util_biosdisk_get_grub_dev): Likewise.
13625 (grub_util_check_block_device): Likewise.
13626 (grub_util_check_char_device): Likewise.
13627 (grub_make_system_path_relative_to_its_root): Likewise.
13628 * util/grub-editenv.c (create_envblk_file): Likewise.
13629 (open_envblk_file): Likewise.
13630 (write_envblk): Likewise.
13631 * util/grub-fstest.c (cmd_cp): Likewise.
13632 (cmd_cat): Likewise.
13633 (cmd_cmp): Likewise.
13634 * util/grub-menulst2cfg.c (main): Likewise.
13635 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
13636 (write_font_width_spec): Likewise.
13637 (write_font_pf2): Likewise.
13638 * util/grub-mkimage.c (generate_image): New argument outname.
13639 All users updated.
13640 Remove unreacheable message.
13641 (options): Unify messages.
13642 (help_filter): Likewise.
13643 * util/grub-mklayout.c (usage): Removed (unused).
13644 (main): Print filename in error.
13645 * util/grub-mkrescue.in: Fix wrong quoting.
13646 * util/grub-setup.c (setup): Print filename in error.
13647 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
13648 (check_sas): Likewise.
13649 * util/misc.c (grub_util_get_fp_size): Removed.
13650 (grub_util_get_image_size): Print filename in error.
13651 (grub_util_read_at): Removed.
13652 (grub_util_read_image): Print filename in error.
13653 (grub_util_load_image): Likewise.
13654 (grub_util_write_image_at): New argument filename. All users updated.
13655 Print filename in error.
13656 (grub_util_write_image): New argument filename. All users updated.
13657 Print filename in error.
13658 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
13659 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
13660
13661 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13662
13663 * grub-core/Makefile.core.def (pxechain): New module.
13664 * grub-core/loader/i386/pc/pxechainloader.c: New file.
13665 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
13666 function.
13667 (grub_pc_net_config_real): Use grub_pxe_get_cached.
13668 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
13669
13670 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13671
13672 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
13673 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
13674 * include/grub/err.h (grub_error_saved): New struct.
13675 (grub_errmsg): Make array size explicit.
13676 * include/grub/misc.h (grub_error_save): New function.
13677 (grub_error_load): Likewise.
13678 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
13679 (grub_error_push): Update `errno' member name.
13680 (grub_error_pop): Likewise
13681 * grub-core/net/tftp.c (tftp_data): New member save_err.
13682 (tftp_receive): Save error.
13683 (tftp_open): Restore error.
13684
13685 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13686
13687 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
13688 to real mode down to execute A20-related code in protected mode as
13689 intended.
13690
13691 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
13692
13693 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
13694 NULL when the argument `level' has an unexpected value.
13695
13696 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13697
13698 Move platform-dependent files from $prefix to $prefix/$platform.
13699
13700 * config.h.in (GRUB_TARGET_CPU): New definition.
13701 (GRUB_PLATFORM): Likewise.
13702 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
13703 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
13704 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
13705 * grub-core/kern/dl.c (grub_dl_load): Likewise.
13706 * grub-core/normal/autofs.c (read_fs_list): Likewise.
13707 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
13708 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
13709 * grub-core/normal/term.c (read_terminal_list): Likewise.
13710 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
13711 $prefix/locale.
13712 (grub_gettext_init_ext): Likewise.
13713 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
13714 grub_platform.
13715 * util/grub-install.in: Update directories.
13716 * util/grub-mknetdir.in: Likewise.
13717 * util/grub-mkrescue.in: Likewise.
13718
13719 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13720
13721 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
13722 grub_error framework. All users updated.
13723
13724 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13725
13726 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
13727 lists (by always binsearching), improve caching (cache strings
13728 used for binsearch, not only results), improve
13729 maintainability (by using more structured binary search) and correct
13730 error handling.
13731
13732 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13733
13734 * grub-core/script/execute.c (grub_script_return): Fix warning.
13735
13736 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13737
13738 * grub-core/script/execute.c (grub_script_return): Fix potential
13739 NULL-dereference.
13740 Reported by: Jim Meyering.
13741
13742 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13743
13744 * po/POTFILES.in: Regenerate.
13745 * util/grub-install.in: Gettextize the strings missed in first pass.
13746
13747 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13748
13749 * Makefile.util.def (grub-mkdevicemap): Removed.
13750 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
13751 * include/grub/util/deviceiter.h: Removed.
13752 * util/deviceiter.c: Likewise.
13753 * util/getroot.c (grub_util_get_os_disk): New function.
13754 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
13755 replacement for EFI.
13756 * util/grub-mkdevicemap.c: Removed.
13757 * util/grub-probe.c (probe): Handle PRINT_DISK.
13758 (argp_parser): Handle -t disk.
13759
13760 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13761
13762 * util/grub-mkfont.c: Migrate to argp.
13763 * util/grub-mklayout.c: Likewise.
13764 * util/grub-mkpasswd-pbkdf2.c: Likewise.
13765 * util/grub-mkrelpath.c: Likewise.
13766 * util/grub-probe.c: Likewise.
13767 * util/grub-script-check.c: Likewise.
13768
13769 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13770
13771 * util/grub-reboot.in: Add missing datarootdir.
13772 Add missing newline.
13773 * util/grub-set-default.in: Add missing datarootdir.
13774 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
13775 * util/grub-mkrescue.in: Likewise.
13776
13777 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13778
13779 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
13780
13781 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13782
13783 * util/grub-kbdcomp.in: Add decent help and gettextize.
13784 * docs/man/grub-kbdcomp.h2m: New file.
13785
13786 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13787
13788 Migrate grub-mkimage.c to argp.
13789
13790 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
13791 (grub-setup): Likewise.
13792 * util/grub-setup.c (print_version): Move to ...
13793 * util/argp_common.c (print_version): ... here.
13794 * util/grub-setup.c (argp_program_version_hook): Move to ...
13795 * util/argp_common.c (argp_program_version_hook): ... here.
13796 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
13797 safety.
13798 * util/grub-mkimage.c (main): Migrate to argp.
13799
13800 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13801
13802 * util/grub-mkrescue.in: Use same message as
13803 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
13804 for better translations.
13805
13806 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13807
13808 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
13809 options with generic grub-mkrescue.in with the goal of future
13810 merge.
13811
13812 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13813
13814 * grub-core/kern/mm.c: Add missing include of i18n.h
13815 * grub-core/lib/relocator.c: Likewise.
13816
13817 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13818
13819 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
13820 error.
13821 (allocate_pages): Check return value.
13822 Replace fatal with error.
13823 (grub_linux_boot): Replace printf with dprintf.
13824 Check find_mmap_size return value.
13825 Replace fatal with error.
13826 Don't call grub_machine_fini.
13827 (grub_load_elf64): Replace printf with dprintf.
13828 (grub_cmd_linux): Likewise.
13829 (grub_cmd_initrd): Likewise.
13830 (grub_cmd_payload): Likewise.
13831
13832 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13833
13834 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
13835 message.
13836 * grub-core/video/radeon_fuloong2e.c
13837 (grub_video_radeon_fuloong2e_setup): Likewise.
13838 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
13839 * grub-core/video/video.c (grub_video_set_mode): Don't override
13840 standard out of memory message.
13841
13842 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
13843
13844 NetBSD disk wedge support.
13845
13846 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
13847 [__NetBSD__]: Handle NetBSD disk wedges.
13848 * util/getroot.c (convert_system_partition_to_system_disk)
13849 [__NetBSD__]: Likewise.
13850
13851 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
13852
13853 * util/grub-mkconfig.in: Use umask rather than chmod to create
13854 grub.cfg.new to avoid insecure grub.cfg.
13855
13856 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13857
13858 * grub-core/commands/ls.c: Gettextize.
13859 * grub-core/commands/setpci.c: Likewise.
13860 * grub-core/commands/videotest.c: Likewise.
13861 * grub-core/disk/geli.c: Likewise.
13862 * grub-core/kern/mm.c: Likewise.
13863 * grub-core/lib/relocator.c: Likewise.
13864 * grub-core/loader/efi/appleloader.c: Likewise.
13865 * grub-core/loader/i386/xnu.c: Likewise.
13866 * grub-core/loader/ia64/efi/linux.c: Likewise.
13867 * grub-core/loader/xnu.c: Likewise.
13868 * grub-core/net/dns.c: Likewise.
13869 * grub-core/net/net.c: Likewise.
13870 * grub-core/script/lexer.c: Likewise.
13871 * grub-core/script/parser.y: Likewise.
13872 * grub-core/script/yylex.l: Likewise.
13873 * util/getroot.c: Likewise.
13874 * util/grub-setup.c: Likewise.
13875
13876 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13877
13878 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
13879 number.
13880
13881 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13882
13883 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
13884
13885 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13886
13887 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
13888 macro.
13889 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
13890 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
13891
13892 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13893
13894 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
13895 * util/grub-install.in: Gettextize.
13896 * util/grub-mkconfig.in: Likewise.
13897 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
13898 if not available.
13899 (grub_warn): Gettextize.
13900 * util/grub-mknetdir.in: Gettextize.
13901 * util/grub-mkrescue.in: Likewise.
13902 * util/grub-mkstandalone.in: Likewise.
13903 * util/grub-reboot.in: Likewise.
13904 * util/grub-set-default.in: Likewise.
13905 * util/grub.d/00_header.in: Likewise.
13906 * util/grub.d/10_hurd.in: Likewise.
13907 * util/grub.d/10_kfreebsd.in: Likewise.
13908 * util/grub.d/10_linux.in: Likewise.
13909 * util/grub.d/10_netbsd.in: Likewise.
13910 * util/grub.d/10_windows.in: Likewise.
13911 * util/grub.d/20_linux_xen.in: Likewise.
13912 * util/grub.d/30_os-prober.in: Likewise.
13913 * po/POTFILES-shell.in: Regenerate.
13914
13915 2012-02-03 Richard Laager <rlaager@wiktel.com>
13916
13917 * util/grub-mkimage.c (main): Fix format-security warning.
13918 * util/grub-mkrelpath.c (main): Likewise.
13919 * util/grub-probe.c (main): Likewise.
13920
13921 2012-02-03 Richard Laager <rlaager@wiktel.com>
13922
13923 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
13924 failure.
13925 Put back lost PRINT_DRIVE.
13926
13927 2012-02-03 Richard Laager <rlaager@wiktel.com>
13928
13929 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
13930 (grub_guess_root_devices): Replace strlen with sizeof.
13931 Avoid crash.
13932 (find_root_devices_from_poolname): Remove unused variable.
13933 Handle raidzN.
13934
13935 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13936
13937 Support install on multi-device filesystems.
13938
13939 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
13940 (grub_guess_root_devices): ...this. Return char **. All users updated.
13941 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
13942 Removed.
13943 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
13944 (find_root_devices_from_poolname): ... here.
13945 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
13946 Support zfs-fuse.
13947 (grub_guess_root_device): Rename to ...
13948 (grub_guess_root_devices): ... this. Return char **. All users updated.
13949 * util/grub-install.in: Handle multi-device filesystems.
13950 * util/grub-probe.c (probe). Make device_names a char **. Add delim
13951 argument. All users updated.
13952 Handle multi-device filesystems.
13953 Use 'delim' as separator.
13954 Remove device check to allow filesystems on file.
13955 (main): Support -0 argument. Handle multi-device.
13956 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
13957 Fix a cross-device check while on it.
13958 (arguments): Remove root_dev.
13959 (argp_parser): Remove -r.
13960 (main): Remove root_dev.
13961
13962 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
13963
13964 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
13965
13966 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
13967
13968 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
13969 symbol.
13970 Reported by: NODA, Kai <nodakai>.
13971
13972 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
13973
13974 Fix ehci on amd64.
13975
13976 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
13977 pointers.
13978 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
13979 (grub_ehci_setup_qh): Likewise.
13980 (grub_ehci_find_qh): Likewise.
13981 (grub_ehci_transaction): Likewise.
13982 (grub_ehci_setup_transfer): Likewise.
13983 (grub_ehci_check_transfer): Likewise.
13984 (grub_ehci_portstatus): Likewise.
13985 (grub_ehci_detect_dev): Likewise.
13986 (grub_ehci_transfer_controller_data): New field td_last_phys.
13987 (grub_ehci_setup_transfer): Fill td_last_phys.
13988 (grub_ehci_check_transfer): Use td_last_phys.
13989
13990 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
13991
13992 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
13993 if no submenu is present.
13994
13995 2012-02-01 Aleš Nesrsta <starous@volny.cz>
13996
13997 CBI support.
13998
13999 * include/grub/usb.h (grub_usbms_protocol_t): New values
14000 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
14001 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
14002 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
14003 (grub_usbms_dev): Add subclass, protocol and intrpt.
14004 Remove in_maxsz and out_maxsz.
14005 (grub_usbms_reset): Rename to ...
14006 (grub_usbms_bo_reset): .. this.
14007 (grub_usbms_cbi_cmd): New function.
14008 (grub_usbms_cbi_reset): Likewise.
14009 (grub_usbms_reset): Likewise.
14010 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
14011 (grub_usbms_transfer): Rename to ...
14012 (grub_usbms_transfer_bo): ... this.
14013 (grub_usbms_transfer_cbi): Likewise.
14014 (grub_usbms_transfer): Likewise.
14015
14016 2012-02-01 Aleš Nesrsta <starous@volny.cz>
14017 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14018
14019 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
14020 the support for the CS5536 modification thereos and few bugfixes.
14021
14022 * grub-core/Makefile.core.def (ehci): New module.
14023 * grub-core/bus/usb/ehci.c: New file.
14024 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
14025 port and hubaddr. All users updated.
14026 Save port and hubaddr into dev structure.
14027 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
14028 define.
14029 * include/grub/pci.h (grub_dma_phys2virt): New function.
14030 (grub_dma_virt2phys): Likewise.
14031 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
14032
14033 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14034
14035 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
14036 check as some mkfs implementations omit it.
14037
14038 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14039
14040 * docs/grub.texi (Unicode): Mention identifier and space limitations.
14041
14042 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14043
14044 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
14045 Add new member volname2.
14046 (grub_jfs_label): Use volname2 if available.
14047
14048 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14049
14050 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
14051 over last_mounted as seen in image generated by mkfs.nilfs2.
14052 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
14053
14054 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14055
14056 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
14057 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
14058 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
14059
14060 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14061
14062 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
14063 over the sector.
14064
14065 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14066
14067 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
14068 subvolume name (by removing a bogus and useless check).
14069
14070 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14071
14072 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
14073 sizeof while on it.
14074
14075 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14076
14077 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
14078 (grub_scsi_read_capacity10): ... this.
14079 (grub_scsi_read_capacity16): New function.
14080 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
14081 0xffffffff.
14082 Fix off-by-one error.
14083 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
14084 64-bit unsigned.
14085 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
14086 (grub_scsi_read_capacity10): ... this.
14087 (grub_scsi_read_capacity_data): Rename to ...
14088 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
14089 (grub_scsi_read_capacity16): New struct.
14090 (grub_scsi_read_capacity16_data): Likewise.
14091 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
14092 grub_scsi_cmd_read_capacity10.
14093 New command grub_scsi_cmd_read_capacity16.
14094
14095 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14096
14097 SCSI >2TiB support.
14098
14099 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
14100 (grub_scsi_write16): Likewise.
14101 (grub_scsi_read): Use read16 when necessary.
14102 (grub_scsi_write): Likewise.
14103 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
14104 (grub_scsi_write16): Likewise.
14105 (grub_scsi_cmd_t): Add READ16 and WRITE16.
14106
14107 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14108
14109 SCSI write support (for usbms mainly).
14110
14111 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
14112 a const pointer.
14113 (grub_scsi_write): Implement.
14114 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
14115
14116 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14117
14118 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
14119 variable.
14120
14121 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14122
14123 * grub-core/lib/posix_wrap/string.h (memchr): New function.
14124
14125 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14126
14127 * po/POTFILES.in: Regenerate.
14128
14129 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14130
14131 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
14132 with grub_printf to avoid unnecessary fatal failure.
14133
14134 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14135
14136 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
14137 (INT_MAX): Likewise.
14138 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
14139 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
14140 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
14141 (strcpy): Likewise.
14142 (strstr): Likewise.
14143 (strchr): Likewise.
14144 (strncpy): Likewise.
14145 (strcat): Likewise.
14146 (strncat): Likewise.
14147 (strcoll): Likewise.
14148 * include/grub/types.h (GRUB_SHRT_MAX): New define.
14149 (GRUB_INT_MAX): Likewise.
14150
14151 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14152
14153 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
14154 unexpected error.
14155 (optimize_utf8): Likewise.
14156 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
14157
14158 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14159
14160 * grub-core/boot/i386/pc/lnxboot.S: Use
14161 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
14162 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
14163 location.
14164 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
14165 definition.
14166 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
14167
14168 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14169
14170 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
14171 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
14172 now to avoid double free.
14173 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
14174 hostdisk.
14175 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
14176 * util/grub-probe.c (escape_of_path): Always return a new copy.
14177 (print_full_name): Escape path.
14178 (probe): Don't call grub_util_devname_to_ofpath on NULL.
14179 Fix hints on abstractions.
14180
14181 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14182
14183 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
14184 Don't add "root" line if no compatibility hont is available.
14185 Suggested by: Seth Goldberg.
14186
14187 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14188
14189 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
14190 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
14191 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
14192 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
14193
14194 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14195
14196 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
14197
14198 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14199
14200 * util/grub-pe2elf.c (ehdr): Make static.
14201 (shdr): Likewise.
14202 (num_sections): Likewise.
14203 (offset): Likewise.
14204
14205 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14206
14207 Eliminate ofpath limits and possible overflows.
14208
14209 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
14210 (OF_PATH_MAX): Removed.
14211 (MAX_DISK_CAT): New const.
14212 (find_obppath): Use allocated rather than preallocated buffer.
14213 Return result. Argument of_path removed. All users updated.
14214 Add missing fdstat.
14215 (xrealpath): New function.
14216 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
14217 Allocate rather than use preallocated buffer. All users updated.
14218 (__of_path_common): Use allocated rather than preallocatecd buffer.
14219 Return result. Argument of_path removed. All users updated.
14220 (vendor_is_ATA): Read only needed part form the file.
14221 (check_sas): Allocate depending on contents rather than fixed.
14222 (main) [STANDALONE]: Handle NULL result.
14223
14224 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14225
14226 * grub-core/normal/completion.c (iterate_dev): Close the disk.
14227
14228 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14229
14230 Cryptodisk write support.
14231
14232 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
14233 (grub_cryptodisk_decrypt): Moved logic to ...
14234 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
14235 (grub_cryptodisk_write): Implement.
14236 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
14237 (grub_util_fd_write): ... this. Make global.
14238 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
14239
14240 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14241
14242 * include/grub/list.h (grub_list_remove): Don't crash if element is
14243 removed twice.
14244
14245 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14246
14247 Rename ofconsole to console.
14248
14249 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
14250 as sysnonym to console.
14251 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
14252 * grub-core/term/ieee1275/console.c: ... this. All users updated.
14253 Rename grub_ofconsole_ to grub_console_. All users updated
14254 (grub_console_term_output): Rename "ofconsole" to "console".
14255 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
14256 as "console".
14257
14258 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14259
14260 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
14261 handling.
14262 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
14263 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
14264 GRUB_DISK_DEVICE_FILE_ID.
14265
14266 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14267
14268 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
14269 and improve performance.
14270
14271 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14272
14273 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
14274 missing ieee1275/ prefix on whole disk.
14275
14276 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14277
14278 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
14279 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
14280
14281 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14282
14283 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
14284
14285 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14286
14287 Merge common RAID and LVM logic to an abstract diskfilter.
14288 Add LDM support using the same framework.
14289
14290 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
14291 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
14292 (libgrubmods): Remove grub-core/disk/raid.c and
14293 grub-core/partmap/gpt.c.
14294 * grub-core/Makefile.core.def (ldm): New module.
14295 (raid): Renamed to diskfilter. All users updated.
14296 * grub-core/disk/raid.c: Moved to ...
14297 * grub-core/disk/diskfilter.c: ... here.
14298 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
14299 (lv_num): New var.
14300 (find_array): Renamed to ...
14301 (find_lv): ... this. Support multi-LV. Skip nameless LVs
14302 (grub_is_array_readable): Renamed to ...
14303 (grub_is_lv_readable): ... this. Support multinode hierarchy.
14304 (insert_array): New argument id.
14305 (is_node_readable): New function.
14306 (scan_device): Rename to ...
14307 (scan_disk): .. this. Restrict to one disk.
14308 (scan_devices): New function.
14309 (grub_diskfilter_iterate): Support multi-LV.
14310 Skip invisible and nameless LVs.
14311 (grub_diskfilter_memberlist): Support multi-LV.
14312 (grub_diskfilter_read_node): New function.
14313 (grub_raid_read): Most of logic moved to ...
14314 (read_segment): ... here
14315 (read_lv): New function.
14316 (grub_diskfilter_get_vg_by_uuid): New function.
14317 (grub_diskfilter_make_raid): Likewise.
14318 * grub-core/disk/ldm.c: New file.
14319 * grub-core/disk/lvm.c (vg_list): Removed.
14320 (lv_count): Likewise.
14321 (scan_depth): Likewise.
14322 (is_lv_readable): Likewise.
14323 (grub_lvm_getvalue): Advance pointer past the number.
14324 (find_lv): Removed.
14325 (do_lvm_scan): Refactored into ...
14326 (grub_lvm_detect): ... this. Support raid.
14327 (grub_lvm_iterate): Removed.
14328 (grub_lvm_memberlist): Likewise.
14329 (grub_lvm_open): Likewise.
14330 (grub_lvm_close): Likewise.
14331 (read_lv): Likewise.
14332 (read_node): Likewise.
14333 (is_node_readable): Likewise.
14334 (is_lv_readable): Likewise.
14335 (grub_lvm_read): Likewise.
14336 (grub_lvm_write): Likewise.
14337 (grub_lvm_dev): Use diskfilter
14338 (GRUB_MOD_INIT): Likewise.
14339 (GRUB_MOD_FINI): Likewise.
14340 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
14341 new interface.
14342 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
14343 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14344 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
14345 grub_diskfilter_read_node.
14346 Fix a bug with xor.
14347 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
14348 grub_diskfilter_read_node.
14349 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
14350 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
14351 (grub_disk_dev_iterate): Move from here...
14352 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
14353 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
14354 Make global.
14355 (grub_hostdisk_find_partition_start): Likewise.
14356 (grub_hostdisk_os_dev_to_grub_drive): New function.
14357 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
14358 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
14359 * util/getroot.c (make_device_name): ... here.
14360 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
14361 Move to ...
14362 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
14363 * grub-core/kern/emu/hostdisk.c
14364 (convert_system_partition_to_system_disk): Move to ...
14365 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
14366 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
14367 * util/getroot.c (device_is_wholedisk): ... here.
14368 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
14369 * util/getroot.c (find_system_device): ... here.
14370 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
14371 Move to ...
14372 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
14373 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
14374 Move to ...
14375 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
14376 Handle LDM.
14377 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
14378 Move to ...
14379 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
14380 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
14381 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
14382 DISKFILTER.
14383 * include/grub/raid.h: Renamed to ...
14384 * include/grub/diskfilter.h: ... this.
14385 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
14386 (GRUB_RAID_LAYOUT_*): Make into array.
14387 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
14388 (grub_diskfilter_vg): New struct.
14389 (grub_diskfilter_pv_id): Likewise.
14390 (grub_raid_member): Removed.
14391 (grub_raid_array): Likewise.
14392 (grub_diskfilter_pv): New struct.
14393 (grub_diskfilter_lv): Likewise.
14394 (grub_diskfilter_segment): Likewise.
14395 (grub_diskfilter_node): Likewise.
14396 (grub_diskfilter_get_vg_by_uuid): New proto.
14397 (grub_raid_register): Inline.
14398 (grub_diskfilter_unregister): Likewise.
14399 (grub_diskfilter_make_raid): New proto.
14400 (grub_diskfilter_vg_register): Likewise.
14401 (grub_diskfilter_read_node): Likewise.
14402 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
14403 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
14404 (grub_util_is_ldm): Likewise.
14405 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
14406 (grub_hostdisk_find_partition_start): Likewise.
14407 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
14408 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
14409 New definition.
14410 (grub_gpt_partition_map_iterate): New proto.
14411 * include/grub/lvm.h (grub_lvm_vg): Removed.
14412 (grub_lvm_pv): Likewise.
14413 (grub_lvm_lv): Likewise.
14414 (grub_lvm_segment): Likewise.
14415 (grub_lvm_node): Likewise.
14416 * util/getroot.c [...]
14417 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
14418 (probe_abstraction): Likewise.
14419 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
14420 (main): Remove dead logic.
14421
14422 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
14423
14424 Simplify root device discover and don't fail when trying to open
14425 incorrect devices.
14426
14427 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
14428 function.
14429 (get_diskname_from_path): Likewise.
14430 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
14431 of iterating.
14432
14433 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14434
14435 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
14436
14437 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14438
14439 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
14440 pastthe end.
14441
14442 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14443
14444 * util/grub-install.in: Add missing \.
14445 Reported by: gentoofan
14446
14447 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14448
14449 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
14450 (direct_read): Use correct compressed size.
14451 (grub_squash_read_data): Likewise.
14452
14453 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14454
14455 * docs/grub.texi (Platform limitations): New section.
14456 (Platform-specific operations): Likewise.
14457 * docs/grub-dev.texi (Porting): Likewise.
14458
14459 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14460
14461 IEEE1275 disk write support.
14462
14463 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
14464 const void *.
14465 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
14466 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
14467 and seek loginc to ...
14468 (grub_ofdisk_prepare): ... here.
14469 (grub_ofdisk_write): Implement.
14470
14471 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14472
14473 ARC disk write support.
14474
14475 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
14476 (reopen): New argument writable. All users updated.
14477 Handle required access mode.
14478 (grub_arcdisk_write): Implement.
14479 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
14480 (grub_arc_firmware_vector): Make buffer to write a const buffer.
14481
14482 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14483
14484 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
14485 (read_sblock): Don't attempt to read superblocks outside the disk size.
14486
14487 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14488
14489 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
14490 first superblock to find the second one when possible.
14491
14492 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14493
14494 * util/grub-install.in: Fix an ARC bug.
14495 Print a warning if no platform-specific setup is available.
14496
14497 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14498
14499 Use static allocation rather than scratch pointer in reed_solomon.
14500 It decreases its size significantly and avoids a variable in .text.
14501
14502 * grub-core/lib/reed_solomon.c (scratch): Removed.
14503 (chosenstat): New const or static array.
14504 (sigma): Likewise.
14505 (errpot): Likewise.
14506 (errpos): Likewise.
14507 (sy): Likewise.
14508 (mstat): Likewise.
14509 (errvals): Likewise.
14510 (eqstat): Likewise.
14511 (pol_evaluate): Replace x with log_x argument. All users updated.
14512 (syndroms): Removed.
14513 (gauss_solve): Use statically allocated arrays.
14514 (rs_recover): Likewise.
14515 Calculate syndroms directly.
14516 (decode_block): Use statically allocated arrays.
14517 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
14518 (main) [TEST]: Allow -DTEST -DSTANDALONE.
14519
14520 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14521
14522 Eliminate fixed limit on reed solomon decoder length.
14523
14524 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
14525 rather than hardcoding the address.
14526 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
14527 no_reed_solomon_length.
14528 Move gate_a20 to no-reed-solomon part.
14529 Don't force a particular size of no reed-solomon part.
14530 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
14531 Removed.
14532 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
14533 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
14534
14535 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14536
14537 * grub-core/commands/wildcard.c (match_files): Handle filenames
14538 without explicit device.
14539 (wildcard_expand): Don't add explicit device if not already present.
14540 * tests/grub_script_echo1.in: Add a new expansion test.
14541
14542 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14543
14544 Replace single-linked with double-linked lists. It results in more
14545 compact and more efficient code.
14546
14547 * grub-core/kern/list.c (grub_list_push): Moved from here ...
14548 * include/grub/list.h (grub_list_push): ... to here. Set prev.
14549 (grub_list_remove): Moved from here ...
14550 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
14551 (grub_prio_list_insert): Set prev.
14552 * include/grub/list.h (grub_list): Add prev. All users updated.
14553
14554 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14555
14556 Handle newer autotools. Add some missing quotes while on it.
14557
14558 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
14559 (pkglib_DATA): Move grub-mkconfig_lib from here ...
14560 (pkgdata_DATA): ... here.
14561 * Makefile.util.def (update-grub_lib): Removed.
14562 * conf/Makefile.common (pkglib_DATA): Removed.
14563 (pkglib_SCRIPTS): Likewise.
14564 (pkgdata_DATA): New variable.
14565 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
14566 needed.
14567 Add missing quotes.
14568 Remove unused variable while on it.
14569 * tests/util/grub-shell.in: Likewise.
14570 * util/grub-install.in: Likewise.
14571 * util/grub-mkconfig.in: Likewise.
14572 * util/grub-mknetdir.in: Likewise.
14573 * util/grub-mkrescue.in: Likewise.
14574 * util/grub-mkstandalone.in: Likewise.
14575 * util/grub.d/00_header.in: Likewise.
14576 * util/grub.d/10_hurd.in: Likewise.
14577 * util/grub.d/10_illumos.in: Likewise.
14578 * util/grub.d/10_kfreebsd.in: Likewise.
14579 * util/grub.d/10_linux.in: Likewise.
14580 * util/grub.d/10_netbsd.in: Likewise.
14581 * util/grub.d/10_windows.in: Likewise.
14582 * util/grub.d/20_linux_xen.in: Likewise.
14583 * util/grub.d/30_os-prober.in: Likewise.
14584 * util/update-grub_lib.in: Removed.
14585
14586 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
14587
14588 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
14589 a workaround for intel problem.
14590
14591 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
14592 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14593 2012-01-23 pfsmorigo
14594
14595 * util/grub-install.in: Support dd'in into PreP partition.
14596 * util/grub-probe.c (probe): Support discovering partition type.
14597 (main): Support -t msdos_parttype.
14598
14599 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14600
14601 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
14602 infinite recursion using counter.
14603 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
14604 init to skip it if the magic check fails.
14605 (dec_stream_header): Init s->crc32.
14606
14607 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14608 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
14609 2012-01-22 Richard Laager <rlaager@wiktel.com>
14610
14611 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
14612 All users updated.
14613 (find_bestub): Determine correct size.
14614 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
14615 (scan_disk): Align the size down.
14616 Call check pool before find_bestub to have ashift.
14617
14618 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14619
14620 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
14621 dprintf in no-malloc zone.
14622
14623 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
14624
14625 * configure.ac: Add back in test for limits.h.
14626
14627 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14628
14629 Support 4K-sector NTFS.
14630
14631 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
14632 (grub_ntfs_data): Remove blocksize.
14633 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
14634 Remove data argument. All users updated.
14635
14636 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14637
14638 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
14639 being in .text to avoid dprel references.
14640 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
14641 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
14642 (grub_arch_highmemsize): Likewise.
14643 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
14644 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
14645 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
14646
14647 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14648
14649 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
14650
14651 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
14652 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
14653
14654 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14655
14656 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
14657 GRUB_UTIL.
14658 (grub_set_datetime_cmos): Likewise.
14659
14660 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14661
14662 Make XZ compression parameters dependent on target and not host CPU.
14663
14664 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
14665 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
14666
14667 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14668
14669 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
14670 set but not used variable.
14671
14672 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14673
14674 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
14675 created when no uuid support is compiled into mkfs.reiser.
14676
14677 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14678
14679 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
14680 (utf8_to_macroman): Do the opposite.
14681 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
14682
14683 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14684
14685 * configure.ac: Refise build qemu_mips w/o unifont.
14686
14687 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14688
14689 Eliminate grub_min/grub_max prone to overflow usage.
14690
14691 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
14692 (poll_nonroot_hub): Likewise.
14693 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
14694 (grub_affs_label): Likewise.
14695 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
14696 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
14697 (grub_hfs_label): Likewise.
14698 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
14699 * grub-core/fs/zfs/zfs.c (MIN): Remove.
14700 (zap_leaf_array_equal): Use grub_size. Remove MIN.
14701 (zap_leaf_array_get): Likewise.
14702 (dnode_get_path): Likewise.
14703 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
14704 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
14705 * grub-core/script/execute.c (grub_script_break): Likewise.
14706 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
14707 grub_max.
14708 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
14709 * include/grub/misc.h (grub_min): Removed.
14710 (grub_max): Likewise.
14711
14712 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
14713
14714 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
14715 direct.inode = 0.
14716
14717 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14718
14719 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
14720
14721 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14722
14723 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
14724
14725 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14726
14727 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
14728 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
14729
14730 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14731
14732 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
14733 rather than a hack for grub_strncasemap.
14734
14735 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14736
14737 Support multiple initrds
14738 Note: part of this was accidently committed in r3739.
14739
14740 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
14741 initrd.
14742 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
14743 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
14744 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
14745 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14746 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14747
14748 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14749
14750 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
14751 disks with unknown size.
14752 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
14753
14754 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14755
14756 Remove defines pertaining to arbitrary limits not affecting GRUB
14757 anymore.
14758
14759 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
14760 (EXT2_MAX_SYMLINKCNT): Likewise.
14761 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
14762 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
14763 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
14764 (GRUB_PXE_MAX_BLKSIZE): Likewise.
14765 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
14766 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
14767 (DN_MAX_OBJECT_SHIFT): Likewise.
14768 (DN_MAX_OFFSET_SHIFT): Likewise.
14769 (DN_MAX_OBJECT): Likewise.
14770 (DNODES_PER_LEVEL_SHIFT): Likewise.
14771 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
14772 (SPA_MAXBLOCKSIZE): Likewise.
14773 (SPA_BLOCKSIZES): Likewise.
14774 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
14775 (MZAP_MAX_BLKSZ): Likewise.
14776
14777 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14778
14779 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
14780 handle NULL appropriately.
14781 Remove MIN.
14782
14783 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14784
14785 Fix efiemu.
14786
14787 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
14788 cpu/types.h.
14789 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
14790 * configure.ac: Fix efiemu check.
14791
14792 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14793
14794 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
14795 grub_probe.
14796 Reported by: adamwill
14797
14798 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
14799
14800 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
14801
14802 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14803
14804 Fix handling of wide characters in gfxterm.
14805
14806 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
14807 (clear_char): Likewise.
14808 (paint_char): Skip code == NULL chars.
14809 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
14810
14811 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14812
14813 * grub-core/normal/charset.c: Move comment to right place.
14814
14815 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14816
14817 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
14818 (GRUB_AFFS_FLAG_FFS): Put back where it was.
14819 (grub_affs_mount): Revert the correct version checking.
14820
14821 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14822
14823 * docs/grub.texi (Unicode): Mention several other unsupported features.
14824
14825 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14826
14827 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
14828 case statements as compile-time one.
14829 (direct_read): Prevent spurious warnings.
14830 (grub_squash_read_data): Likewise.
14831
14832 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14833
14834 Various squash4 fixes and LZO and XZ support.
14835
14836 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
14837 Add xzembed source files.
14838 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
14839 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
14840 (grub_squash_inode): New subtype long_dir.
14841 (SQUASH_TYPE_LONG_DIR): New inode type.
14842 (COMPRESSION): New enum.
14843 (XZBUFSIZ): New const.
14844 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
14845 (read_chunk): Use data->decompress.
14846 (zlib_decompress): New function.
14847 (lzo_decompress): Likewise.
14848 (xz_decompress): Likewise.
14849 (squash_mount): Set new data fields.
14850 (grub_squash_iterate_dir): Handle long dir.
14851 (squash_unmount): Free xzdec and xzbuf.
14852 (grub_squash_open): Check ino type.
14853 (direct_read): Stylistic fixes. Use data->decompress.
14854 (grub_squash_read_data): Likewise.
14855 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
14856 (get_byte): Likewise.
14857 (grub_zlib_disk_read): Removed.
14858 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
14859 (GRUB_POSIX_BOOL_DEFINED): New define.
14860 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
14861 * grub-core/lib/xzembed/xz.h: Addmissing includes.
14862 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
14863 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
14864
14865 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14866
14867 Don't override more informative errors.
14868
14869 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
14870 * grub-core/font/font.c (open_section): Likewise.
14871 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
14872 filename. Don't override errors.
14873 (grub_cmd_openbsd_ramdisk): Don't override errors.
14874 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
14875 (grub_cmd_initrd): Likewise.
14876 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
14877 (grub_cmd_initrd): Likewise.
14878 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
14879 (grub_cmd_linux): Likewise.
14880 (grub_cmd_initrd): Likewise.
14881 (grub_cmd_payload): Likewise.
14882 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
14883 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
14884 (grub_cmd_module): Likewise.
14885 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14886 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14887 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
14888 (grub_cmd_xnu_mkext): Likewise.
14889 (grub_cmd_xnu_ramdisk): Likewise.
14890 (grub_xnu_check_os_bundle_required): Likewise.
14891 (grub_xnu_load_kext_from_dir): Likewise.
14892 (grub_cmd_xnu_kextdir): Likewise.
14893 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
14894
14895 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14896
14897 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
14898 as 1024 in block size field. Found on one of my test images.
14899 Small optimisation while on it.
14900
14901 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14902
14903 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
14904 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
14905 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
14906 performance fixes while on it.
14907 (grub_sfs_close): Fix memory leak while on it.
14908 (grub_sfs_label): Convert Latin1 to UTF-8.
14909
14910 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14911
14912 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
14913 space to avoid overflows.
14914 (grub_hfs_label): Convert from macroman to UTF-8.
14915
14916 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14917
14918 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
14919
14920 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14921
14922 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
14923
14924 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14925
14926 * unicode: Import Unicode 6.0 data.
14927
14928 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14929
14930 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
14931 outside of range.
14932
14933 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14934
14935 Avoid cutting in the middle of UTF-8 character.
14936
14937 * include/grub/charset.h (grub_getend): New function.
14938 * grub-core/script/function.c (grub_script_function_find): Use
14939 grub_getend.
14940 * grub-core/normal/completion.c (add_completion): Likewise.
14941
14942 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14943
14944 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
14945 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
14946 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
14947 (GRUB_UNICODE_TAG_END): Likewise.
14948 (GRUB_UNICODE_LAST_VALID): Likewise.
14949
14950 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14951
14952 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
14953 len and make it smaller. All users updated.
14954 * util/import_unicode.py: Put length and not end character.
14955 Check length.
14956
14957 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14958
14959 Make better Unicode-compliant and unify some UTF-8 code pathes.
14960
14961 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
14962 valid character.
14963 (grub_is_valid_utf8): Use grub_utf8_process.
14964 Check resulting code range.
14965 (grub_utf8_to_ucs4): Use grub_utf8_process.
14966 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
14967 valid character.
14968
14969 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14970
14971 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
14972
14973 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14974
14975 * docs/grub.texi (Filesystems): Mention AFS.
14976
14977 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14978
14979 * docs/grub.texi (Filesystems): Clarify restrictions.
14980 (Regexp): Mention non-Unicode regexp behaviour.
14981 (Other): Mention non-Unicode matching behaviour.
14982
14983 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14984
14985 Make HFS implementation use MacRoman.
14986
14987 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
14988 (macroman): New const array.
14989 (macroman_to_utf8): New function.
14990 (utf8_to_macroman): Likewise.
14991 (grub_hfs_find_dir): Use utf8_to_macroman.
14992 (grub_hfs_dir): Use macroman_to_utf8.
14993 Set case_insensitive.
14994
14995 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14996
14997 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
14998
14999 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15000
15001 Integrate hints into autogeneration scripts.
15002
15003 * docs/grub.texi (Filesystems): Add a hostdisk example.
15004 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
15005 (grub-probe): Add ofpath.
15006 * gentpl.py: Remove group nosparc64.
15007 * grub-core/commands/search.c (cache_entry): New struct.
15008 (cache): New var.
15009 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
15010 * grub-core/commands/search_wrap.c (options): Add platform-specific
15011 hint options.
15012 (grub_cmd_search): Handle platform-specific hints.
15013 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
15014 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
15015 (grub_util_biosdisk_data): Likewise.
15016 (grub_util_biosdisk_open): Set device_map.
15017 (read_device_map): Handle "" as indication of no map.
15018 Set device_map.
15019 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
15020 (grub_util_biosdisk_get_compatibility_hint): New function.
15021 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
15022 * include/grub/emu/hostdisk.h
15023 (grub_util_biosdisk_get_compatibility_hint): New proto.
15024 * util/grub-install.in: Don't call grub-mkdevicemap.
15025 Add platform-specific hint to load.cfg.
15026 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
15027 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
15028 hints. Set root preliminary to compatibility hint, not to OS name.
15029 * util/grub-probe.c (PRINT_*): Add hints.
15030 (print): Make static.
15031 (escape_of_path): New function.
15032 (guess_bios_drive): Likewise.
15033 (guess_efi_drive): Likewise.
15034 (guess_baremetal_drive): Likewise.
15035 (print_full_name): Likewise.
15036 (probe): Handle hints.
15037 (main): Likewise.
15038 * util/ieee1275/devicemap.c: Removed.
15039 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
15040 updated.
15041 (grub_util_devname_to_ofpath): Return NULL on failure.
15042
15043 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
15044 resource leak.
15045 * util/getroot.c (grub_util_pull_device): Fix memory leak.
15046
15047 * po/POTFILES.in: Regenerated.
15048
15049 Allow purely long options
15050
15051 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
15052 (SHORT_ARG_USAGE): Likewise.
15053 (grub_arg_show_help): Compare opt with help_options.
15054 (parse_option): Receive opt as argument. If makes big simplificatons.
15055 All users updated
15056
15057 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15058
15059 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
15060 Restructure to avoid warning.
15061
15062 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15063
15064 * util/grub-install.in: Account for possible escaped comma in device
15065 name.
15066
15067 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15068
15069 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
15070 channel.
15071
15072 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15073
15074 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
15075 allocation and zero-setting.
15076 (grub_ieee1275_get_devname): Check that alias is complete.
15077
15078 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15079
15080 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
15081 unaligned segments.
15082
15083 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15084
15085 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
15086 prefix.
15087 (grub_ofdisk_open): Check and discard ieee1275 prefix.
15088 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
15089 Add ieee1275 prefix.
15090
15091 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15092
15093 * docs/grub.texi (Filesystems): Update.
15094
15095 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15096
15097 Support odc, newc and bigendian cpio formats.
15098
15099 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
15100 * grub-core/Makefile.core.def (newc): New module.
15101 (odc): Likewise.
15102 (cpio_be): Likewise.
15103 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
15104 (MAGIC): Likewise.
15105 (MAGIC2): Likewise.
15106 (head) [MODE_ODC]: Adapt for the format.
15107 (head) [MODE_NEWC]: Likewise.
15108 (head) [!MODE_*]: Write fields of interest as arrays.
15109 (MAGIC_USTAR): Removed.
15110 (read_number) [MODE_NEWC]: Change to hex.
15111 (read_number) [!MODE_*]: Parse binary arrays.
15112 (grub_cpio_find_file): Factor out the code for better structure and
15113 always use read_number.
15114 (grub_cpio_mount): Use MAGIC and MAGIC2.
15115 (grub_cpio_dir): Exit on first hook non-0 return.
15116 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
15117 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
15118 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
15119 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
15120 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
15121 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
15122 * grub-core/fs/newc.c: New file.
15123 * grub-core/fs/odc.c: Likewise.
15124 * grub-core/fs/cpio_be.c: Likewise.
15125
15126 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15127
15128 Fix handling of tar numbers occupying the whole field.
15129
15130 * grub-core/fs/cpio.c (read_number): New function.
15131 (grub_cpio_find_file): Use read_number instead of strtoull.
15132
15133 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15134
15135 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
15136 occupying the whole field size.
15137
15138 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
15139
15140 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
15141
15142 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15143
15144 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
15145
15146 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
15147
15148 * grub-core/Makefile.core.def (lzma_decompress): Add missing
15149 TARGET_IMG_LDFLAGS.
15150
15151 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15152
15153 * util/getroot.c (ESCAPED_PATH_MAX): New define.
15154 (mountinfo_entry): Increase the field size to take escaping into
15155 account.
15156 (find_root_device_from_libzfs): Add one byte to size of strings for
15157 security.
15158
15159 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15160
15161 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
15162 an assert.
15163 * util/grub-setup.c (setup): Likewise.
15164
15165 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15166
15167 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
15168 _LzmaDecodeA.
15169
15170 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15171
15172 * docs/grub.texi (Internationalisation): New section.
15173
15174 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15175
15176 * docs/grub.texi (Loopback booting): New section.
15177
15178 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
15179
15180 * util/grub-mkstandalone.in: Fix minor typo errors.
15181
15182 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
15183
15184 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
15185
15186 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
15187 net/icmp.c and net/icmp6.c.
15188 (http): New module.
15189 (priority_queue): Likewise.
15190 * grub-core/io/bufio.c: Rewritten.
15191 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
15192 TYPE_WITH_CONFIGFILE_OPTION.
15193 (legacy_commands): Add bootp and dhcp.
15194 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
15195 (grub_legacy_parse): Likewise.
15196 * grub-core/lib/priority_queue.c: New file.
15197 * grub-core/net/arp.c: Add missing license header.
15198 (arp_find_entry): Removed.
15199 (arp_find_entry): Likewise.
15200 (grub_net_arp_resolve): Rename to ...
15201 (grub_net_arp_send_request): ...this.
15202 (grub_net_arp_receive): New card argument.
15203 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
15204 Set router and DNS server.
15205 (grub_net_configure_by_dhcp_ack): Handle routing information.
15206 (grub_cmd_bootp): Set checksum.
15207 (grub_bootp_init): Remove net_dhcp.
15208 * grub-core/net/dns.c: New file.
15209 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
15210 completion.
15211 (get_card_packet): Handle allocation.
15212 (grub_efinet_findcards): Set mtu.
15213 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
15214 (get_card_packet): Handle allocation.
15215 (emucard): Set mtu.
15216 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
15217 (GRUB_MOD_INIT): Set mtu.
15218 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
15219 mtu.
15220 (get_card_packet): Handle allocation.
15221 (grub_ofnet_findcards): Set mtu.
15222 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
15223 assert.
15224 (grub_net_recv_ethernet_packet): Handle IPv6.
15225 * grub-core/net/http.c: New file.
15226 * grub-core/net/icmp.c: Likewise.
15227 * grub-core/net/icmp6.c: Likewise.
15228 * grub-core/net/ip.c (ip6addr): New type.
15229 (ip6hdr): Likewise.
15230 (reassemble): Likewise.
15231 (cmp): New function.
15232 (reassembles): New variable.
15233 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
15234 (id): New variable.
15235 (send_fragmented): New function.
15236 (grub_net_send_ip_packet): Rename to ...
15237 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
15238 Handle non-UDP.
15239 (grub_net_recv_ip_packets): Rename to ...
15240 (handle_dgram): ... this. Check checksum. Handle non-UDP.
15241 (free_rsm): New function.
15242 (free_old_fragments): Likewise.
15243 (grub_net_recv_ip4_packets): New function.
15244 (grub_net_send_ip6_packet): Likewise.
15245 (grub_net_send_ip_packet): Likewise.
15246 (grub_net_recv_ip6_packets): Likewise.
15247 (grub_net_recv_ip_packets): Likewise.
15248 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
15249 (LINK_LAYER_CACHE_SIZE): New const.
15250 (link_layer_find_entry): New function.
15251 (grub_net_link_layer_add_address): Likewise.
15252 (grub_net_link_layer_resolve_check): Likewise.
15253 (grub_net_link_layer_resolve): Likewise.
15254 (grub_net_ipv6_get_slaac): Likewise.
15255 (grub_net_ipv6_get_link_local): Likewise.
15256 (grub_cmd_ipv6_autoconf): Likewise.
15257 (parse_ip): Handle one number representation.
15258 (parse_ip6): New functoion.
15259 (match_net): Handle IPv6.
15260 (grub_net_resolve_address): Handle IPv6 and DNS.
15261 (grub_net_resolve_net_address): Handle IPv6.
15262 (route_cmp): New function.
15263 (grub_net_route_address): Find best route.
15264 (grub_net_addr_to_str): Handle IPv6.
15265 (grub_net_addr_cmp): New function.
15266 (grub_net_add_addr): Register local route.
15267 (print_net_address): Handle net address.
15268 (grub_net_poll_cards): Retransmit TCP.
15269 (grub_net_poll_cards_idle_real): Likewise.
15270 (have_ahead): New function.
15271 (grub_net_seek_real): Use underlying seek.
15272 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
15273 * grub-core/net/tcp.c: New file.
15274 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
15275 (cmp): New function.
15276 (ack): Likewise.
15277 (tftp_receive): Handle unordered input.
15278 (destroy_pq): New function.
15279 (tftp_close): Close pq.
15280 * grub-core/net/udp.c: Put missing license header.
15281 (grub_net_udp_socket): New function.
15282 (udp_socket_register): Likewise.
15283 (grub_net_udp_close): Likewise.
15284 (grub_net_recv_udp_packet): Check checksum.
15285 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
15286 * include/grub/misc.h (grub_memchr): New function.
15287 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
15288 (grub_net_card_driver): Return buf in recv.
15289 (grub_net_slaac_mac_list): New struct.
15290 (grub_network_level_protocol_id): Add ipv6.
15291 (grub_net_network_level_addr): Likewise.
15292 (grub_net_network_level_net_addr): Likewise.
15293 (grub_net_app_protocol): Add seek.
15294 (grub_net_socket): Removed.
15295 (grub_net_sockets): Likewise.
15296 (grub_net_socket_register): Likewise.
15297 (grub_net_socket_unregister): Likewise.
15298 (FOR_NET_SOCKETS): Likewise.
15299 (grub_net_add_addr): Add const.
15300 (GRUB_NET_BOOTP_*): New enum.
15301 (grub_net_addr_cmp): New proto.
15302 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
15303 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
15304 (grub_net_hwaddr_to_str): NEw proto.
15305 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
15306 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
15307 (grub_dns_init): New proto.
15308 (grub_dns_fini): Likewise.
15309 (grub_net_tcp_retransmit): Likewise.
15310 (grub_net_link_layer_add_address): Likewise.
15311 (grub_net_link_layer_resolve_check): Likewise.
15312 (grub_net_link_layer_resolve): Likewise.
15313 (grub_net_dns_lookup): Likewise.
15314 (grub_net_add_dns_server): Likewise.
15315 (grub_net_remove_dns_server): Likewise.
15316 (GRUB_NET_TRIES): New const.
15317 (GRUB_NET_INTERVAL): Likewise.
15318 * include/grub/net/arp.h: Mostly rewritten.
15319 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
15320 * include/grub/net/ip.h: Mostly rewritten.
15321 * include/grub/net/netbuff.h: Indent.
15322 * include/grub/net/tcp.h: New file.
15323 * include/grub/net/udp.h: Mostly rewritten.
15324 * include/grub/priority_queue.h: New file.
15325 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
15326 (grub_swap_bytes64_compile_time): Likewise.
15327 (grub_cpu_to_be16_compile_time): Likewise.
15328 (grub_cpu_to_be32_compile_time): Likewise.
15329 (grub_cpu_to_be64_compile_time): Likewise.
15330 (grub_be_to_cpu64_compile_time): Likewise.
15331
15332 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
15333
15334 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
15335 UINT_TO_PTR with cast.
15336
15337 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15338
15339 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
15340 don't use them.
15341
15342 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15343
15344 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
15345 already there.
15346
15347 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15348
15349 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
15350 confusing ipxe.
15351
15352 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15353
15354 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
15355 Add missing const attribute.
15356 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
15357 Likewise.
15358 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
15359 Likewise.
15360
15361 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15362
15363 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
15364 misaligned access.
15365 (serpent_setkey): Likewise.
15366 (serpent_encrypt_internal): Likewise.
15367 (serpent_decrypt_internal): Likewise.
15368 (serpent_encrypt): Don't put an alignment-increasing cast.
15369 (serpent_decrypt): Likewise.
15370 (serpent_test): Likewise.
15371
15372 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15373
15374 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
15375
15376 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15377
15378 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
15379
15380 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
15381 grub_addr_t casts.
15382 (PTR_TO_UINT64): Likewise.
15383 (PTR_TO_UINT32): Likewise.
15384
15385 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15386
15387 * util/grub-mkimage.c (generate_image): Decrease the higher limit
15388 because of stack.
15389 * util/grub-setup.c (setup): Don't add redundancy past the higher load
15390 limit.
15391
15392 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15393
15394 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
15395 text_width > available width a bit more gracefully.
15396
15397 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15398
15399 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
15400 current address calculation.
15401
15402 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15403
15404 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
15405 stack.
15406 (encode_block): Likewise.
15407
15408 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15409
15410 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
15411 certainety.
15412
15413 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15414
15415 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
15416 non-RS part to avoid RS messing with GDT.
15417 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
15418 Increase to suit in realmode routines.
15419
15420 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15421
15422 * grub-core/kern/i386/realmode.S: Increase alignment.
15423 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
15424
15425 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15426
15427 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
15428 be deterministic.
15429 (syndroms): Compute 0 syndrom.
15430 (rs_recover): Use 0 syndrom.
15431
15432 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15433
15434 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
15435
15436 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15437
15438 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
15439 brackets.
15440
15441 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15442
15443 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
15444 account.
15445 (get_top_pad): Likewise.
15446 (get_right_pad): Likewise.
15447 (get_bottom_pad): Likewise.
15448
15449 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15450
15451 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
15452
15453 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15454
15455 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
15456 attribute as the structure isn't guaranteed to be properly aligned.
15457 (grub_efi_pci_device_path): Likewise.
15458 (grub_efi_pccard_device_path): Likewise.
15459 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
15460 specify the size of `memory_type'.
15461 (grub_efi_vendor_device_path): Likewise.
15462 (grub_efi_controller_device_path): Likewise.
15463 (grub_efi_acpi_device_path): Likewise.
15464 (grub_efi_expanded_acpi_device_path): Likewise.
15465 (grub_efi_atapi_device_path): Likewise.
15466 (grub_efi_scsi_device_path): Likewise.
15467 (grub_efi_fibre_channel_device_path): Likewise.
15468 (grub_efi_1394_device_path): Likewise.
15469 (grub_efi_usb_device_path): Likewise.
15470 (grub_efi_usb_class_device_path): Likewise.
15471 (grub_efi_i2o_device_path): Likewise.
15472 (grub_efi_mac_address_device_path): Likewise.
15473 (grub_efi_ipv4_device_path): Likewise.
15474 (grub_efi_ipv6_device_path): Likewise.
15475 (grub_efi_infiniband_device_path): Likewise.
15476 (grub_efi_uart_device_path): Likewise.
15477 (grub_efi_vendor_messaging_device_path): Likewise.
15478 (grub_efi_hard_drive_device_path): Likewise.
15479 (grub_efi_cdrom_device_path): Likewise.
15480 (grub_efi_vendor_media_device_path): Likewise.
15481 (grub_efi_file_path_device_path): Likewise.
15482 (grub_efi_protocol_device_path): Likewise.
15483 (grub_efi_piwg_device_path): Likewise.
15484 (grub_efi_bios_device_path): Likewise.
15485
15486 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15487
15488 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
15489 (grub_ucs4_to_utf8_alloc): Likewise.
15490 (grub_ucs4_to_utf8): Likewise.
15491 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
15492 (grub_ucs4_to_utf8_alloc): Likewise.
15493
15494 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15495
15496 AFFS never uses unicode.
15497
15498 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
15499 (grub_latin1_to_utf8): New inline function.
15500 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
15501
15502 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15503
15504 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
15505 overflow.
15506
15507 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15508
15509 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
15510 (grub_squash_dirent_header): Likewise.
15511 (read_chunk): Don't double swap.
15512 (grub_squash_iterate_dir): Fix swap sizes.
15513
15514 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15515
15516 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
15517
15518 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15519
15520 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
15521 (grub_hfs_iterate_dir): Likewise.
15522
15523 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15524
15525 Fix video on platforms where unaligned access is forbidden.
15526 Make several optimisations while on it.
15527
15528 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
15529 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15530 (grub_video_fbblit_replace_32bit_1bit): Likewise.
15531 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15532 Disable.
15533 (grub_video_fbblit_replace_16bit_1bit):
15534 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15535 (grub_video_fbblit_replace_8bit_1bit): Likewise.
15536 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
15537 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
15538 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15539 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15540 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
15541 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
15542 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
15543 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
15544 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
15545 (grub_video_fbblit_replace_index_RGB888): Likewise.
15546 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
15547 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
15548 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
15549 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
15550 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
15551 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
15552 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15553 Disable.
15554 (grub_video_fbblit_blend_XXX565_1bit):
15555 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15556 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
15557 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
15558 void *.
15559 * grub-core/video/fb/video_fb.c (common_blitter)
15560 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
15561 (grub_video_fb_create_render_target_from_pointer)
15562 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
15563 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
15564 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
15565 definition.
15566 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
15567
15568 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15569
15570 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
15571 HH22 and HM10 relocations.
15572
15573 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15574
15575 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
15576
15577 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15578
15579 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
15580 allocation succeeded.
15581
15582 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15583
15584 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
15585 argument a u8 pointer. All users updated.
15586 Handle unaligned buffers.
15587
15588 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15589
15590 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
15591 add_part to workaround compiler bug.
15592
15593 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15594
15595 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
15596
15597 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15598
15599 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
15600 Reserve alignment invariants.
15601 (grub_multiboot_load): Likewise.
15602 (retrieve_video_parameters): Likewise.
15603 (grub_multiboot_make_mbi): Likewise.
15604
15605 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15606
15607 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
15608 incorrect pointer.
15609
15610 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15611
15612 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
15613 (grub_pata_pio_write): Likewise.
15614
15615 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15616
15617 Add noreturn attributes and remove unreachable code.
15618
15619 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
15620 code.
15621 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
15622 code. Mark as noreturn.
15623 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
15624 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
15625 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
15626 unreachable code.
15627 * grub-core/kern/main.c (grub_main): Mark as noreturn.
15628 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
15629 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
15630 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
15631 * include/grub/kernel.h (grub_main): Mark as noreturn.
15632 * include/grub/reader.h (grub_rescue_run): Likewise.
15633
15634 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15635
15636 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
15637 redundant declaration.
15638
15639 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15640
15641 * include/grub/net.h (grub_net_network_level_interfaces): Remove
15642 redundant declaration.
15643 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
15644
15645 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15646
15647 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
15648 to ensure alignment.
15649 (grub_hdparm_print_identify): Make argument uint16 * to ensure
15650 alignment. Ensure tmp alignment.
15651 (grub_cmd_hdparm): Ensure buf alignment.
15652 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
15653 to ensure alignment.
15654 (grub_ata_dumpinfo): Ensure text alignment.
15655 (grub_atapi_identify): Preserve alignment invariant.
15656 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
15657
15658 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15659
15660 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
15661 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
15662 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
15663 * include/grub/misc.h (grub_reboot)
15664 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
15665 (grub_halt) [__mips__]: Likewise.
15666
15667 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15668
15669 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
15670 Remove redundant declaration.
15671 (grub_mmap_get_post64): Likewise.
15672 (grub_mmap_get_upper): Likewise.
15673 (grub_mmap_get_lower): Likewise.
15674
15675 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15676
15677 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
15678 uint32_t * to ensure alignment.
15679 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
15680
15681 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15682
15683 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
15684 uint16_t * to ensure alignment.
15685 (sun_pc_partition_map_iterate): Make `block' a union to ensure
15686 alignment.
15687
15688 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15689
15690 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
15691 to ensure alignment.
15692 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
15693
15694 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15695
15696 * grub-core/fs/ntfs.c (u16at): Make into inline function.
15697 Handle unaligned pointers.
15698 (u32at): Likewise.
15699 (u64at): Likewise.
15700 (fixup): Use byte access instead of v16at.
15701 (find_attr): Fix imporper usage of v32at.
15702 (read_data): Likewise.
15703 (list_file): Handle byte-swapping and unaligned strings.
15704 (grub_ntfs_label): Likewise.
15705
15706 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15707
15708 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
15709 as it's not necessarily aligned.
15710
15711 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15712
15713 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
15714 redundant declaration.
15715 (grub_serial_init): Likewise.
15716 (grub_terminfo_init): Likewise.
15717
15718 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15719
15720 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
15721 function.
15722 (ZAP_HASH_IDX): Likewise.
15723 (ZAP_LEAF_HASH_SHIFT): Likewise.
15724 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
15725 (LEAF_HASH): Likewise.
15726 (ZAP_LEAF_NUMCHUNKS): Likewise.
15727 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
15728 alignment invariants. Return pointer. All users updated.
15729 (ZAP_LEAF_ENTRY): Make into inline function.
15730 (NBBY): Removed.
15731 (xor): LIkewise.
15732 (xor_out): Use grub_crypto_xor.
15733 (dnode_get_path): Use grub_get_unaligned.
15734 (nvlist_find_value): Likewise.
15735 (grub_zfs_nvlist_lookup_uint64): Likewise.
15736 (grub_zfs_nvlist_lookup_string): Likewise.
15737 (get_nvlist_size): Likewise.
15738 (grub_zfs_open): Likewise.
15739 (fill_fs_info): Likewise.
15740 (grub_zfs_dir): Likewise.
15741 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
15742 alignment invariants.
15743 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
15744 necessarily aligned.
15745
15746 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15747
15748 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
15749
15750 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15751
15752 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
15753 arithmetic to conserve alignment invariants.
15754
15755 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15756
15757 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
15758 redundant declaration.
15759 (grub_efiemu_mm_obtain_request): Likewise.
15760 (grub_efiemu_prepare): Likewise.
15761
15762 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15763
15764 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
15765 to match types.
15766
15767 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15768
15769 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
15770 case of aunaligned recptr.
15771 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
15772 alignment.
15773 (grub_hfsplus_btree_search): Handle unaligned index.
15774
15775 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15776
15777 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
15778 to get freetag and skip.
15779
15780 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15781
15782 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
15783 array.
15784 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
15785 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
15786
15787 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15788
15789 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
15790 name for checksum and fix allocation algorithm.
15791
15792 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15793
15794 * include/grub/types.h (grub_properly_aligned_t): New type.
15795 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
15796 (grub_get_unaligned16): Add explicit casts.
15797 (grub_get_unaligned32): Likewise.
15798 (grub_get_unaligned64): Likewise.
15799 (grub_set_unaligned16): New function.
15800 (grub_set_unaligned32): Likewise.
15801
15802 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15803
15804 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
15805
15806 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15807
15808 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
15809 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
15810 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
15811
15812 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15813
15814 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
15815 conditionals.
15816
15817 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15818
15819 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
15820 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
15821
15822 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15823
15824 Unify and improve RAID and crypto xor.
15825
15826 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
15827 changed to grub_crypto_xor
15828 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
15829 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
15830 Use bigger types when possible.
15831
15832 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15833
15834 * grub-core/disk/raid.c (scan_devices): Fix condition.
15835
15836 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15837
15838 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
15839 Make name a const ptr.
15840
15841 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15842
15843 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
15844 first argument a const pointer.
15845 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
15846 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
15847 proto.
15848 (grub_children_iterate): Likewise.
15849 (grub_machine_mmap_iterate): Remove redundant declaration.
15850
15851 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15852
15853 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
15854 (grub_cmd_acpi) [!x86]: Disable EBDA.
15855
15856 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15857
15858 Enable UTF8 in gnulib regexp.
15859
15860 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
15861 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
15862 (isupper): Use grub_isupper.
15863 (isascii): New inline function.
15864 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
15865 * grub-core/lib/posix_wrap/wctype.h: Likewise.
15866 * grub-core/normal/charset.c (grub_utf8_process): New function.
15867 (grub_utf8_to_utf16): Use grub_utf8_process.
15868 (grub_encode_utf8_character): New function.
15869 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
15870 * include/grub/charset.h (grub_utf8_process): New declaration.
15871 (grub_encode_utf8_character): Likewise.
15872 * include/grub/misc.h (grub_islower): New inline function.
15873 (grub_isupper): Likewise.
15874 (grub_strchrsub): Moved down to fix the definitions.
15875
15876 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15877
15878 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
15879 specification.
15880
15881 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15882
15883 * include/grub/loader.h (grub_loader_register_preboot_hook):
15884 Use struct preboot * and not void * for handle. All users updated.
15885 (grub_loader_unregister_preboot_hook): Likewise.
15886
15887 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
15888
15889 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
15890 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
15891 UTF-16-BE. All users updated.
15892 (grub_hfsplus_cmp_catkey): Fix unicode handling.
15893 (grub_hfsplus_iterate_dir): Likewise.
15894 (grub_hfsplus_label): Likewise.
15895
15896 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
15897
15898 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
15899
15900 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
15901
15902 Add missing const qualifiers.
15903
15904 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
15905 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
15906 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
15907 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
15908 (grub_lvm_check_flag): Likewise.
15909 * grub-core/efiemu/i386/coredetect.c
15910 (grub_efiemu_get_default_core_name): Likewise
15911 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
15912 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
15913 * grub-core/fs/ntfs.c (fixup): Likewise.
15914 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
15915 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
15916 (fzap_lookup): Likewise.
15917 (zap_lookup): Likewise.
15918 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
15919 * grub-core/lib/legacy_parse.c (check_option): Likewise.
15920 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
15921 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
15922 (grub_freebsd_add_meta_module): Likewise.
15923 (grub_cmd_freebsd_module): Likewise.
15924 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
15925 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
15926 (grub_xnu_writetree_get_size): Likewise.
15927 (grub_xnu_writetree_toheap_real): Likewise.
15928 (grub_xnu_find_key): Likewise.
15929 (grub_xnu_create_key): Likewise.
15930 (grub_xnu_create_value): Likewise.
15931 (grub_xnu_register_memory): Likewise.
15932 (grub_xnu_check_os_bundle_required): Likewise.
15933 (grub_xnu_scan_dir_for_kexts): Likewise.
15934 (grub_xnu_load_kext_from_dir): Likewise.
15935 * grub-core/normal/color.c (color_list): Likewise.
15936 * grub-core/normal/completion.c (current_word): Likewise.
15937 * grub-core/normal/menu_entry.c (insert_string): Likewise.
15938 * grub-core/term/serial.c (grub_serial_find): Likewise.
15939 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
15940 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
15941 Likewise.
15942 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
15943 (grub_freebsd_add_meta_module): Likewise.
15944 * include/grub/lib/arg.h (grub_arg_option): Likewise.
15945 * include/grub/net.h (grub_net_card_driver): Likewise.
15946 (grub_net_card): Likewise.
15947 (grub_net_app_protocol): Likewise.
15948 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
15949 * include/grub/serial.h (grub_serial_find): Likewise.
15950 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
15951 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
15952 (grub_xnu_create_value): Likewise.
15953 (grub_xnu_find_key): Likewise.
15954 (grub_xnu_scan_dir_for_kexts): Likewise.
15955 (grub_xnu_load_kext_from_dir): Likewise.
15956
15957 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
15958 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
15959 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
15960 Moved from here ...
15961 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
15962
15963 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
15964
15965 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
15966
15967 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
15968
15969 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
15970 (read_device): Fix size calculation.
15971
15972 2011-11-25 Robert Millan <rmh@gnu.org>
15973
15974 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
15975 (find_root_device_from_libzfs): Add zpool output parser to be used
15976 as fallback when libzfs isn't available.
15977
15978 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
15979
15980 * po/Makefile.in.in: Add missing escape-continuation.
15981
15982 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
15983
15984 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
15985
15986 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15987
15988 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
15989
15990 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15991
15992 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
15993
15994 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15995
15996 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
15997
15998 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15999
16000 * grub-core/lib/adler32.c: Add missing license specification.
16001 * grub-core/lib/crc64.c: Likewise.
16002 * grub-core/loader/i386/pc/plan9.c: Likewise.
16003 * grub-core/partmap/plan.c: Likewise.
16004
16005 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
16006
16007 Add facility to debug GRUB with gdb under qemu.
16008
16009 * grub-core/gdb_grub.in: New file.
16010 * grub-core/gmodule.pl.in: Likewise.
16011 * grub-core/Makefile.core.def (gmodule.pl): New script.
16012 (gdb_grub): Likewise.
16013
16014 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16015
16016 * util/grub-mount.c (argp_parser): Accept relative pathes.
16017 * util/grub-fstest.c (argp_parser): Likewise.
16018
16019 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16020
16021 Plan9 support.
16022
16023 * Makefile.util.def (libgrubmods): Add
16024 grub-core/partmap/plan.c.
16025 * docs/grub.texi: Notice Plan9 support.
16026 * grub-core/Makefile.core.def (plan9): New module.
16027 (part_plan): Likewise.
16028 * grub-core/loader/i386/pc/plan9.c: New file.
16029 * grub-core/partmap/plan.c: Likewise.
16030 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
16031 define.
16032 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
16033 * include/grub/mm.h (grub_extend_alloc): New inline function.
16034
16035 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16036
16037 Make Reed-Solomon faster by using power of generator representation of
16038 GF(256)*.
16039
16040 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
16041 (gf_double_t): Likewise.
16042 (gf_invert): Removed.
16043 (gf_powx): New array.
16044 (gf_powx_inv): Likewise.
16045 (scratch): Move higher.
16046 (gf_reduce): Removed.
16047 (gf_mul): Use powx.
16048 (gf_invert): Likewise.
16049 (init_inverts): Replaced with ...
16050 (init_powx): ...this. All users updated.
16051 (pol_evaluate): Replace multiplications with additions.
16052 (rs_encode): Likewise.
16053 (gauss_eliminate): Call gf_invert.
16054 (grub_reed_solomon_add_redundancy): Call init_powx.
16055 (grub_reed_solomon_recover): Call init_powx unconditionally.
16056
16057 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16058
16059 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
16060
16061 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16062
16063 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
16064 disk->partiton for safety.
16065
16066 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16067
16068 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
16069 Fix a memory leak.
16070 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
16071
16072 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16073
16074 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
16075
16076 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16077
16078 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
16079
16080 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16081
16082 Fix spaces handling in proc/self/mountinfo.
16083
16084 * util/getroot.c (unescape): New function.
16085 (grub_find_root_device_from_mountinfo): Use unescape.
16086
16087 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16088
16089 Support ZFS embedding.
16090
16091 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
16092 (grub_zfs_fs): Register grub_zfs_embed.
16093
16094 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16095
16096 Fix MIPS compilation.
16097
16098 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
16099 * include/grub/offsets.h: Rename decompressor fields from
16100 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
16101 * util/grub-mkimage.c (image_targets): Use new names.
16102
16103 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16104
16105 Defer multiboot device parsing until we're in compressed part.
16106
16107 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
16108 bsd_part. setdevice has fallen into disuse.
16109 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
16110 (bsd_part): Likewise.
16111 (boot_dev): New variable.
16112 (multiboot_trampoline): Don't parse multiboot device.
16113 Pass multiboot device in %edx.
16114 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
16115 grub_boot_device.
16116 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
16117 Likewise.
16118 * grub-core/kern/i386/pc/startup.S: Save edx.
16119 (grub_boot_drive): Removed.
16120 (grub_install_dos_part): Likewise.
16121 (grub_install_bsd_part): Likewise.
16122 (grub_boot_device): New variable.
16123 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
16124 (grub_install_bsd_part): Likewise.
16125 (grub_boot_drive): Likewise.
16126 (grub_boot_device): New variable.
16127 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
16128 Removed.
16129 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
16130 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
16131 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
16132 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
16133 * util/grub-install.in: Remove redundant condition.
16134
16135 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16136
16137 Fix bug introduced by previous commit.
16138
16139 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
16140
16141 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16142
16143 Use decompressors framework on i386-pc. It increases core size
16144 by 46 bytes but improves compatibility and maintainability.
16145
16146 * grub-core/Makefile.core.def (lzma_decompress): New image.
16147 (kernel): Add i386_pc_ldflags.
16148 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
16149 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
16150 to real_to_prot, prot_to_real and device info.
16151 * include/grub/offsets.h: Renamed decompressor offsets.
16152 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
16153 (image_target_desc): Remove raw_size and rename decompressor fields.
16154 (compress_kernel): Handle lzma.
16155 (generate_image): Handle decompressors on i386-pc.
16156
16157 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16158
16159 * configure.ac: Add -fno-asynchronous-unwind-tables.
16160
16161 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16162
16163 Move assembly code to C by using intwrap. It increases core size
16164 by 88 bytes but improves compatibility and maintainability.
16165
16166 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
16167 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
16168 ... here. Translated to C.
16169 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
16170 * grub-core/term/i386/pc/console.c (grub_console_getkey):
16171 ... here. Translated to C.
16172 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
16173 * grub-core/term/i386/pc/console.c (grub_console_getxy):
16174 ... here. Translated to C.
16175 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
16176 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
16177 ... here. Translated to C.
16178 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
16179 * grub-core/term/i386/pc/console.c (grub_console_cls):
16180 ... here. Translated to C.
16181 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
16182 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
16183 ... here. Translated to C.
16184 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
16185 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
16186 Translated to C.
16187 * grub-core/term/i386/pc/console.c (int10_9): New function.
16188 (grub_console_putchar): Likewise.
16189 * include/grub/i386/pc/console.h: Removed the not anymore shared
16190 functions.
16191
16192 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16193
16194 Move grub_chainloader_real_boot out of the kernel.
16195
16196 * grub-core/Makefile.am: Remove machine/loader.h.
16197 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
16198 Removed.
16199 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
16200 variable.
16201 (grub_relocator16_keep_a20_enabled): Likewise.
16202 (grub_relocator16_boot): Fill new variables.
16203 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
16204 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
16205 relocator.
16206 (grub_chainloader_unload): Likewise.
16207 (grub_chainloader_cmd): Likewise.
16208 * include/grub/i386/pc/loader.h: Removed.
16209 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
16210 and esi. All initialisers updated.
16211
16212 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16213 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
16214
16215 * Makefile.util.def (grub-mount): New util.
16216 * .bzrignore: Add grub-mount.
16217 * configure.ac: Check for fuse and enable grub-mount if available.
16218 * docs/man/grub-mount.h2m: New file.
16219 * util/grub-mount.c: Likewise.
16220
16221 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16222
16223 * grub-core/commands/efi/fixvideo.c: Gettextize.
16224 * grub-core/commands/hashsum.c: Likewise.
16225 * grub-core/commands/i386/cmostest.c: Likewise.
16226 * grub-core/commands/i386/pc/drivemap.c: Likewise.
16227 * grub-core/commands/i386/pc/lsapm.c: Likewise.
16228 * grub-core/commands/i386/pc/sendkey.c: Likewise.
16229 * grub-core/commands/lsmmap.c: Likewise.
16230 * grub-core/commands/menuentry.c: Likewise.
16231 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
16232 * grub-core/commands/setpci.c: Likewise.
16233 * grub-core/loader/i386/bsd.c: Likewise.
16234 * grub-core/loader/i386/linux.c: Likewise.
16235 * util/getroot.c: Likewise.
16236 * util/grub-editenv.c: Likewise.
16237 * util/grub-fstest.c: Likewise.
16238 * util/grub-mkfont.c: Likewise.
16239 * util/grub-mkimage.c: Likewise.
16240 * util/grub-mkpasswd-pbkdf2.c: Likewise.
16241 * util/grub-pe2elf.c: Likewise.
16242 * util/grub-probe.c: Likewise.
16243 * util/grub-setup.c: Likewise.
16244 * util/ieee1275/ofpath.c: Likewise.
16245 * util/misc.c: Likewise.
16246 * util/raid.c: Likewise.
16247
16248 2011-11-11 Robert Millan <rmh@gnu.org>
16249
16250 * util/getroot.c (grub_util_get_geom_abstraction): Remove
16251 __attribute__((unused)) from `os_dev', which *is* being used.
16252
16253 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16254
16255 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
16256 forgotten define.
16257 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
16258 GRUB_IA64_DL_GOT_ALIGN.
16259 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
16260 GRUB_IA64_DL_TRAMP_ALIGN.
16261
16262 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16263
16264 Replace grub_fatal with normal errors in i386 linux loader.
16265
16266 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
16267 (allocate_pages): Check find_efi_mmap_size return value.
16268 (grub_e820_add_region): Return error.
16269 (grub_linux_boot): Check mmap return value.
16270
16271 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16272
16273 * grub-core/commands/acpihalt.c: Gettextized.
16274 * grub-core/commands/cacheinfo.c: Likewise.
16275 * grub-core/commands/cmp.c: Likewise.
16276 * grub-core/commands/efi/loadbios.c: Likewise.
16277 * grub-core/commands/gptsync.c: Likewise.
16278 * grub-core/commands/ieee1275/suspend.c: Likewise.
16279 * grub-core/commands/legacycfg.c: Likewise.
16280 * grub-core/commands/memrw.c: Likewise.
16281 * grub-core/commands/minicmd.c: Likewise.
16282 * grub-core/commands/parttool.c: Likewise.
16283 * grub-core/commands/time.c: Likewise.
16284 * grub-core/commands/videoinfo.c: Likewise.
16285 * grub-core/disk/geli.c: Likewise.
16286 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
16287 * grub-core/disk/luks.c: Likewise.
16288 * grub-core/disk/lvm.c: Likewise.
16289 * grub-core/font/font_cmd.c: Likewise.
16290 * grub-core/fs/zfs/zfscrypt.c: Likewise.
16291 * grub-core/fs/zfs/zfsinfo.c: Likewise.
16292 * grub-core/gfxmenu/view.c: Likewise.
16293 * grub-core/kern/emu/hostdisk.c: Likewise.
16294 * grub-core/kern/emu/main.c: Likewise.
16295 * grub-core/kern/emu/misc.c: Likewise.
16296 * grub-core/kern/emu/mm.c: Likewise.
16297 * grub-core/kern/mips/arc/init.c: Likewise.
16298 * grub-core/kern/mips/loongson/init.c: Likewise.
16299 * grub-core/kern/partition.c: Likewise.
16300 * grub-core/lib/i386/halt.c: Likewise.
16301 * grub-core/lib/mips/arc/reboot.c: Likewise.
16302 * grub-core/lib/mips/loongson/reboot.c: Likewise.
16303 * grub-core/loader/i386/pc/chainloader.c: Likewise.
16304 * grub-core/loader/i386/xnu.c: Likewise.
16305 * grub-core/loader/multiboot.c: Likewise.
16306 * grub-core/net/bootp.c: Likewise.
16307 * grub-core/net/net.c: Likewise.
16308 * grub-core/normal/term.c: Likewise.
16309 * grub-core/partmap/bsdlabel.c: Likewise.
16310 * grub-core/parttool/msdospart.c: Likewise.
16311 * grub-core/term/gfxterm.c: Likewise.
16312 * grub-core/term/terminfo.c: Likewise.
16313 * grub-core/video/i386/pc/vbe.c: Likewise.
16314 * util/grub-menulst2cfg.c: Likewise.
16315 * util/grub-mkdevicemap.c: Likewise.
16316 * util/grub-mklayout.c: Likewise.
16317 * util/grub-mkrelpath.c: Likewise.
16318 * util/grub-script-check.c: Likewise.
16319 * util/ieee1275/grub-ofpathname.c: Likewise.
16320 * util/resolve.c: Likewise.
16321
16322 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16323
16324 Support %1$d syntax.
16325
16326 * tests/printf_unit_test.c: New file.
16327 * Makefile.util.def (printf_test): New test.
16328 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
16329
16330 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16331
16332 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
16333 fix.
16334
16335 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16336
16337 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
16338 dprintf.
16339 * grub-core/font/font.c (grub_font_load): Likewise.
16340
16341 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16342
16343 * util/grub-macho2img.c: Add comment concerning gettext.
16344 * grub-core/lib/legacy_parse.c: Likewise.
16345
16346 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16347
16348 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
16349 (grub_xvasprintf): Likewise.
16350
16351 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16352
16353 Add const keyword to grub_env_get and gettextize week days.
16354
16355 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
16356 (grub_read_hook_datetime): Return const char *.
16357 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
16358 updated.
16359 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
16360 Mark for gettext.
16361 (grub_get_weekday_name): Return const char *. Call gettext.
16362 * grub-core/script/argv.c (grub_script_argv_append): Receive const
16363 char * and len as the argument. All users updated.
16364 (grub_script_argv_split_append): Receive const char *.
16365 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
16366 * include/grub/env.h (grub_env_get): Likewise.
16367 (grub_env_read_hook_t): Return const char *.
16368 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
16369 (grub_script_argv_split_append): Likewise.
16370
16371 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16372
16373 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
16374
16375 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16376
16377 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
16378 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
16379
16380 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16381
16382 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
16383 Fix prototype.
16384
16385 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16386
16387 Fix mips compilation.
16388
16389 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
16390 normal decoder.
16391 (hashes): Use in embed decoder as well (for sizes).
16392 (dec_stream_header): Fix embed decompressor logic.
16393 (dec_stream_footer): Likewise.
16394
16395 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16396
16397 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
16398 an error and not a fatal on unrecognised relocation types.
16399
16400 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16401
16402 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
16403 Issue error rather than printf on unknown arguments.
16404
16405 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16406
16407 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
16408 Make buf a const.
16409
16410 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16411
16412 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
16413 Fix module name.
16414
16415 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16416
16417 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
16418 leftover debug printf.
16419
16420 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16421
16422 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
16423
16424 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16425
16426 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
16427 A stylistic fix.
16428
16429 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16430
16431 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
16432
16433 2011-11-10 Shea Levy <slevy@tieronedesign.com>
16434
16435 Allow all modules to perform serial IO
16436
16437 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
16438 * include/grub/serial.h (grub_serial_port_configure): New inline
16439 function.
16440 (grub_serial_port_fetch): Likewise.
16441 (grub_serial_port_put): Likewise.
16442 (grub_serial_port_fini): Likewise.
16443 (grub_serial_find): New proto.
16444
16445 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16446
16447 Put symlink at the end of the node and fix a potential
16448 memory corruption.
16449
16450 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
16451 Make symlink into an array.
16452 (set_rockridge): Set have_symlink and alloc_dirents.
16453 (grub_iso9660_read_symlink): Use new layout.
16454 (grub_iso9660_iterate_dir): Fix memory corruption.
16455 Use new layout.
16456 (grub_iso9660_dir): Set have_symlink.
16457 (grub_iso9660_open): Likewise.
16458
16459 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16460
16461 Remove local keyword.
16462
16463 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
16464 (version_test_gt): Likewise.
16465 (version_find_latest): Likewise.
16466 (gettext_printf): Likewise.
16467 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
16468
16469 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16470
16471 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
16472
16473 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16474
16475 Fix ZFS memory and resource leaks.
16476
16477 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
16478 All users updated.
16479 Free type on exit.
16480 (fill_vdev_info): New parameter inserted. All users updated.
16481 (check_pool_label): Likewise.
16482 (scan_disk): Likewise.
16483 (scan_devices): Close non-inserted disks.
16484 (fzap_iterate): Free l.
16485 (unmount_device): Free children descripto memory.
16486
16487 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16488
16489 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
16490 argument (access out of bounds).
16491
16492 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16493
16494 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
16495 >= 6 drives.
16496
16497 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16498
16499 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
16500 Fix declaration.
16501
16502 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16503
16504 Fix several memory leaks.
16505
16506 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
16507 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
16508 (grub_cpio_dir): Likewise.
16509 * grub-core/fs/fat.c (grub_fat_label): Likewise.
16510 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
16511 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
16512 (grub_romfs_label): Likewise.
16513 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
16514 (squash_unmount): New function.
16515 (grub_squash_dir): Fix memory leak.
16516 (grub_squash_open): Likewise.
16517 (grub_squash_read): Likewise.
16518 (grub_squash_mtime): Likewise.
16519 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
16520 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
16521 * util/grub-fstest.c (fstest): Likewise.
16522
16523 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16524
16525 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
16526 avoid accessing beyond the array.
16527
16528 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16529
16530 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
16531
16532 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16533
16534 Several AFFS fixes.
16535
16536 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
16537 (GRUB_AFFS_FLAG_FFS): Removed.
16538 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
16539 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
16540 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
16541 (grub_fshelp_node): Make block 32-bit.
16542 Add block_cache and last_block_cache.
16543 (grub_affs_read_block): Fill and use block cache.
16544 (grub_affs_read_file): Removed.
16545 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
16546 boot block.
16547 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
16548 safety.
16549 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
16550 space.
16551 (grub_affs_close): Free block cache.
16552 (grub_affs_read): Use grub_fshelp_read_file directly.
16553
16554 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16555
16556 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
16557 with no error set.
16558
16559 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16560
16561 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
16562 used variable.
16563 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
16564 Likewise.
16565
16566 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16567
16568 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
16569
16570 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
16571 byteswap when needed.
16572
16573 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16574
16575 Fix FreeBSD compilation.
16576
16577 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
16578 to avoid circular dependency.
16579 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
16580 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
16581 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
16582
16583 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16584
16585 Fix ZFS crypto error types.
16586
16587 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
16588 (grub_gcm_decrypt): Likewise.
16589 (grub_zfs_load_key_real): Fix error code type. Handle possible error
16590 from PBKDF2.
16591
16592 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16593
16594 Illumos support.
16595
16596 * Makefile.util.def (10_illumos): New script.
16597 * configure.ac: Set COND_HOST_ILLUMOS.
16598 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
16599 Support Illumos calls.
16600 (find_partition_start) [__sun__]: Likewise.
16601 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
16602 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
16603 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
16604 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
16605 device.
16606 * util/grub-probe.c (probe) [__sun__]: Do character check.
16607 * util/grub.d/10_illumos.in: New file.
16608
16609 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16610
16611 Support escaped commas in hostdisk.
16612
16613 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
16614 (find_grub_drive): Use unescape_cmp.
16615 (make_device_name): Escape commas.
16616
16617 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16618
16619 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
16620
16621 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16622
16623 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
16624 variable.
16625
16626 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16627
16628 Support trampoline jumps on powerpc.
16629
16630 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
16631 __ia64__ path.
16632 (grub_dl_load_segments): Set mod->sz.
16633 (grub_dl_flush_cache): Flush whole space occupied by module, not just
16634 segments.
16635 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
16636 (jump): Likewise.
16637 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
16638 function.
16639 (trampoline): New struct.
16640 (trampoline_template): New const.
16641 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
16642 * include/grub/dl.h (grub_dl): Add sz element.
16643 [__powerpc__]: Follow __ia64__.
16644 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
16645 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
16646 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
16647 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
16648
16649 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16650
16651 ZFS crypto support.
16652
16653 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
16654 * grub-core/Makefile.core.def (zfscrypt): New module.
16655 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
16656 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
16657 it. All users updated.
16658 (grub_zfs_decrypt): New var.
16659 (grub_zfs_load_key): Likewise.
16660 (zio_checksum_functions): Add SHA256+MAC.
16661 (zio_checksum_verify): Handle incomplete comparison due to MAC.
16662 (zio_read): Handle encrypted blocks.
16663 (zap_verify): Remove incorrect check.
16664 (fzap_iterate): Handle non-standard fzap.
16665 (zap_iterate): Likewise.
16666 (zap_iterate_u64): New function.
16667 (dnode_get_fullpath): Load keys.
16668 * grub-core/fs/zfs/zfscrypt.c: New file.
16669 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
16670 (grub_crypto_ecb_encrypt): Make input const.
16671 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
16672 (grub_crypto_ecb_encrypt): Make input const.
16673 (GRUB_CIPHER_AES): New macro.
16674 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
16675 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
16676 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
16677 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
16678 prefix. All users updated.
16679 (grub_zfs_add_key): New proto.
16680 (grub_zfs_decrypt): Likewise.
16681 (grub_zfs_load_key): Likewise.
16682 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
16683 * util/grub-fstest.c (options): Add -K option.
16684 (argp_parser): Likewise.
16685
16686 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16687
16688 Support zle compression on ZFS.
16689
16690 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
16691 (decomp_table): Add zle.
16692 * include/grub/zfs/zio.h (zio_compress): Add zle.
16693
16694 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16695
16696 Support BtrFS embedding.
16697
16698 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
16699 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
16700 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
16701 * util/grub-setup.c (setup): Use fs embedding if available.
16702 Add additional sanity check.
16703
16704 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16705
16706 * util/grub-install.in: Fix condition for config_opt.
16707
16708 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16709
16710 Support third redundancy strip on raidz3.
16711
16712 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
16713 Return error on singularity. All users updated.
16714 (read_device): Don't stop on 3rd failure on raidz3.
16715
16716 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16717
16718 Support case-insensitive ZFS subvolumes.
16719
16720 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
16721 All users updated.
16722 (zap_hash): Likewise.
16723 (name_cmp): New function.
16724 (zap_leaf_array_equal): New parameter case_insensitive.
16725 All users updated.
16726 (zap_leaf_lookup): Likewise.
16727 (fzap_lookup): Likewise.
16728 (zap_lookup): Likewise.
16729 (dnode_get_path): New parameter case_insensitive. Retrieve case
16730 sensitiviness of a volume. All users updated.
16731 (dnode_get_fullpath): New parameter case_insensitive.
16732 All users updated.
16733 (grub_zfs_dir): Set info.case_insensitiveness.
16734
16735 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16736
16737 Support second redundancy strip on raidz(2,3).
16738
16739 * grub-core/fs/zfs/zfs.c (powx): New array.
16740 (powx_inv): Likewise.
16741 (poly): New const.
16742 (xor_out): New function.
16743 (gf_mul): Likewise.
16744 (recovery): Likewise.
16745 (read_device): Use second redundancy strip.
16746
16747 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16748
16749 Use a power of generator representation of GF(256) multiplication group
16750 to save space time and complexity.
16751
16752 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
16753 (raid6_table2): Likewise.
16754 (powx): New array.
16755 (powx_inv): Likewise.
16756 (poly): New const.
16757 (grub_raid_block_mul): Replace with ...
16758 (grub_raid_block_mulx): ...this.
16759 (grub_raid6_init_table): Rewritten.
16760 (grub_raid6_recover): Use power of generator representation.
16761
16762 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16763
16764 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
16765 for the right device.
16766
16767 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16768
16769 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
16770 expected by grub-mkimage and it's more clear since there is no implicit
16771 padding.
16772
16773 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16774
16775 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
16776 disk.
16777 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
16778
16779 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
16780
16781 * util/grub-mkrescue.in: Fix handling xorriso option.
16782
16783 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16784
16785 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
16786 NULL.
16787
16788 2011-11-03 crocket <crockabiscuit@gmail.com>
16789
16790 * util/grub.d/10_linux.in: Add Slackware initrd naming.
16791
16792 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16793
16794 XZ CRC64 and SHA256 support.
16795
16796 * Makefile.util.def (libgrubmods): Add crc64.c.
16797 * grub-core/Makefile.core.def (crc64): New module.
16798 * grub-core/lib/crc64.c: New file.
16799 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
16800 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
16801 Fix the type.
16802 (MAX_HASH_SIZE): New define.
16803 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
16804 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
16805 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16806 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16807 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
16808 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
16809 Handle non-crc32 hashes.
16810 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
16811 (dec_stream_header): Handle non-crc32 hashes.
16812 (dec_stream_footer): Likewise.
16813 (dec_block_header): Likewise.
16814 (dec_main): Likewise.
16815 (xz_dec_init): Likewise.
16816 (xz_dec_reset): Likewise.
16817 (xz_dec_end): Likewise.
16818 * util/import_gcry.py: Add CRC64 line.
16819
16820 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16821
16822 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
16823 as well.
16824
16825 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16826
16827 Make reiserfs label retrieval similar to other *_label functions.
16828
16829 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
16830 (REISERFS_MAX_LABEL_LENGTH): Removed.
16831 (REISERFS_LABEL_OFFSET): Likewise.
16832 (grub_reiserfs_label): Rewritten.
16833
16834 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16835
16836 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
16837 field.
16838
16839 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16840
16841 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
16842
16843 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
16844
16845 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
16846 drive failure on both raidz and raidz2.
16847
16848 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
16849
16850 Fix RAIDZ(2) for >= 5 devices.
16851
16852 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
16853 asize argument. All users updated.
16854
16855 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16856
16857 Fix RAIDZ(2).
16858
16859 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
16860 (fill_vdev_info_real): Set ashift.
16861 (read_device): Rewrite RAIDZ part based on reverse engineering.
16862
16863 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16864
16865 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
16866 don't report potentially unavialiable fields in debug output.
16867 (find_path): Fix double-free and memory leak.
16868
16869 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16870
16871 Read label on UFS1.
16872
16873 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
16874 (grub_ufs_fs): Always set .label.
16875
16876 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16877
16878 Use shifts in UFS.
16879
16880 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
16881 (grub_ufs_data): New field log2_blksz.
16882 (grub_ufs_read_file): Use shifts.
16883 (grub_ufs_mount): Check block size and logarithm it.
16884
16885 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16886
16887 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
16888 long symlinks.
16889
16890 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16891
16892 Handle symlinks and long names on tar and cpio.
16893
16894 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
16895 (ATTR_FILE): Likewise.
16896 (ATTR_DIR): Likewise.
16897 (ATTR_LNK): Likewise.
16898 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
16899 (grub_cpio_find_file): Fill mode, handle linkname field as well as
16900 L and K entries.
16901 (grub_cpio_mount): Zero-fill data.
16902 (handle_symlink): New function.
16903 (grub_cpio_dir): Handle symlinks.
16904 (grub_cpio_open): Likewise.
16905 (grub_cpio_close) [MODE_USTAR]: Free linkname.
16906
16907 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16908
16909 Fix iso9660 filename limitations and fix memory leaks.
16910
16911 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
16912 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
16913
16914 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16915
16916 Fix JFS file name length limitations.
16917
16918 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
16919 (grub_jfs_diropen): Fix maximum filename length.
16920 (grub_jfs_getent): Fix filename length.
16921 (grub_jfs_lookup_symlink): Fix size checks.
16922
16923 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16924
16925 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
16926 string.
16927
16928 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16929
16930 Leverage BFS implementation to read AFS.
16931
16932 * Makefile.util.def (libgrubmods): Add afs.c.
16933 * grub-core/Makefile.core.def (afs): New module
16934 * grub-core/fs/afs.c: New file.
16935 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
16936
16937 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16938
16939 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
16940
16941 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16942
16943 * grub-core/fs/bfs.c: Run indent.
16944
16945 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16946
16947 BFS implementation based on the specification.
16948
16949 * grub-core/fs/bfs.c: New file.
16950 * Makefile.util.def (libgrubmods): Add bfs.c.
16951 * grub-core/Makefile.core.def (bfs): New module.
16952
16953 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16954
16955 * util/grub-fstest.c (cmd_cp): Clarify error message.
16956 (cmd_cmp): Likewise.
16957
16958 2011-10-30 Yves Blusseau <blusseau@zetam.org>
16959
16960 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
16961 and befs_be.
16962
16963 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
16964
16965 Remove afs and befs because of copyright problem.
16966
16967 * grub-core/fs/afs.c: Removed.
16968 * grub-core/fs/afs_be.c: Removed.
16969 * grub-core/fs/befs.c: Removed.
16970 * grub-core/fs/befs_be.c: Removed.
16971 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
16972 * grub-core/Makefile.core.def (afs): Removed.
16973 (afs_be): Likewise.
16974 (befs): Likewise.
16975 (befs_be): Likewise.
16976
16977 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16978
16979 Prefer rockridge over Joliet.
16980
16981 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
16982 to ...
16983 (set_rockridge): ... here.
16984 (grub_iso9660_mount): Check rockridge on the primary label when
16985 discovering. Ignore Joliet if Rockridge is present.
16986
16987 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16988
16989 Use shifts in nilfs2.
16990
16991 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
16992 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
16993 (grub_nilfs2_palloc_entries_per_group): Replace with ...
16994 (grub_nilfs2_log_palloc_entries_per_group): ... this.
16995 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
16996 (grub_nilfs2_entries_per_block): Replaced with ...
16997 (grub_nilfs2_log_entries_per_block_log): ... this.
16998 (grub_nilfs2_blocks_per_group): Replaced with ...
16999 (grub_nilfs2_blocks_per_group_log): ... this.
17000 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
17001 (grub_nilfs2_blocks_per_desc_block_log): ... this.
17002 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
17003 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
17004 (grub_nilfs2_palloc_entry_offset): Replaced ...
17005 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
17006 (grub_nilfs2_dat_translate): Use shifts.
17007 (grub_nilfs2_read_inode): Likewise.
17008 (GRUB_MOD_INIT): Ensure that logs are correct.
17009
17010 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17011
17012 Use shifts in minix filesystem.
17013
17014 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
17015 (GRUB_MINIX_ZONE2SECT): Likewise.
17016 (grub_minix_data): Replace block_size with log_block_size.
17017 (grub_minix_read_file): Use shifts.
17018 (grub_minix_mount): Check block size and take a logarithm.
17019
17020 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17021
17022 Use shifts in squash4.
17023
17024 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
17025 (squash_mount): Check block size and take logarithm.
17026 (direct_read): Use shifts.
17027
17028 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17029
17030 Correct befs block counting logic.
17031
17032 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
17033 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
17034 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
17035 (grub_afs_read_inode): Use block_shift.
17036 (RANGE_SHIFT): New definition.
17037 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
17038 unexpected conditions, use shifts and appropriate types.
17039 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
17040
17041 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17042
17043 * grub-core/disk/raid.c (scan_devices): Check partition.
17044 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
17045
17046 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17047
17048 Support BFS (befs) UUID.
17049
17050 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
17051 (grub_afs_small_data_element_header): New struct.
17052 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
17053 (grub_afs_read_attribute) [MODE_BFS]: New function.
17054 (grub_afs_iterate_dir): Allocate for complete inode.
17055 (grub_afs_mount): Likewise.
17056 (grub_afs_uuid) [MODE_BFS]: New function.
17057 (grub_afs_fs) [MODE_BFS]: Add .uuid.
17058
17059 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17060
17061 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
17062 (zfs_unmount): Fix memory leak.
17063
17064 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17065
17066 Support NTFS reparse points.
17067
17068 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
17069 (symlink_descriptor): New struct.
17070 (grub_ntfs_read_symlink): New function.
17071 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
17072 (grub_ntfs_open): Likewise.
17073
17074 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17075
17076 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
17077
17078 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17079
17080 fstest xnu_uuid subcommand.
17081
17082 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
17083 grub-core/commands/xnu_uuid.c.
17084 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
17085 (fstest): Handle xnu_uuid.
17086 (options): Document xnu_uuid.
17087 (argp_parser): Parse xnu_uuid.
17088
17089 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17090
17091 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
17092 -l argument. Add newline at the end if printing.
17093 (GRUB_MOD_INIT): Document -l.
17094
17095 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17096
17097 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
17098
17099 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17100
17101 ZFS multi-device and version 33 support.
17102
17103 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
17104 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
17105 (grub_zfs_data): Add multidev-ice-related fields.
17106 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
17107 (dva_get_offset): Make dva const.
17108 (zfs_fetch_nvlist): New function.
17109 (fill_vdev_info_real): Likewise.
17110 (fill_vdev_info): Likewise.
17111 (check_pool_label): Likewise.
17112 (scan_disk): Likewise.
17113 (scan_devices): Likewise.
17114 (read_device): Likewise.
17115 (read_dva): Likewise.
17116 (zio_read_gang): Use read_dva.
17117 (zio_read_data): Likewise.
17118 (zap_leaf_lookup): Add missing endian conversion.
17119 (zap_verify): Add missing endian conversion. All users updated.
17120 (fzap_lookup): Likewise.
17121 (fzap_iterate): Likewise.
17122 (dnode_get_path): Handle SA bonus.
17123 (nvlist_find_value): Make input const. All users updated.
17124 (unmount_device): New function.
17125 (zfs_unmount): Use unmount_device.
17126 (zfs_mount): Use scan_disk.
17127 (zfs_mtime): New function.
17128 (grub_zfs_open): Handle system attributes.
17129 (fill_fs_info): Likewise.
17130 (grub_zfs_dir): Likewise.
17131 (grub_zfs_fs): Add mtime.
17132 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
17133 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
17134 (SA_MTIME_OFFSET): Likewise.
17135 (SA_SYMLINK_OFFSET): Likewise.
17136 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
17137 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
17138 (fstest): Support zfsinfo.
17139 (argp_parser): Likewise.
17140
17141 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17142
17143 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
17144 error.
17145
17146 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17147
17148 ZFS fixes.
17149
17150 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
17151 sharing the same block. Iterate over correct number of indices.
17152 (dnode_get_path): Handle symlinks correctly.
17153
17154 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17155
17156 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
17157
17158 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17159
17160 Read label on HFS+.
17161
17162 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
17163 (grub_hfsplus_btree_search): Fix types.
17164 (grub_hfsplus_label): Implement.
17165
17166 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17167
17168 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
17169
17170 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17171
17172 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
17173
17174 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17175
17176 Fix symlink handling on iso9660.
17177
17178 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
17179 All users updated.
17180 (grub_iso9660_susp_iterate): Accept zero-size iterate.
17181 (grub_iso9660_read_symlink): Moved most of code ...
17182 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
17183
17184 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17185
17186 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17187 Use union to avoid breaking strict-aliasing rules.
17188
17189 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17190
17191 Support multi-extent iso files.
17192
17193 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
17194 Add node.
17195 (grub_fshelp_node): Revamp. All users updated.
17196 (FLAG_*): New enum.
17197 (read_node): New function.
17198 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
17199 All users updated.
17200 (grub_iso9660_mount): Don't attempt to read sua when there is none.
17201 (get_node_size): New function.
17202 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
17203 entries.
17204 Fix memory leak on . and ..
17205 (grub_iso9660_read): Use read_node.
17206 (grub_iso9660_close): Free node.
17207
17208 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17209
17210 Fix tar 4G limit and handle paths containing dot.
17211
17212 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
17213 (canonicalize): New function.
17214 (grub_cpio_find_file): Use canonicalize. Store offs in
17215 grub_disk_addr_t.
17216 (grub_cpio_dir): Use grub_disk_addr_t.
17217 (grub_cpio_open): Likewise.
17218
17219 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17220
17221 Fix handling of uncompressed blocks on squashfs and break 4G limit.
17222
17223 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
17224 unused flags.
17225 (grub_squash_inode): Add long_file and block_size.
17226 (grub_squash_cache_inode): New struct.
17227 (grub_squash_dirent): Make types into enum.
17228 (SQUASH_TYPE_LONG_REGULAR): New type.
17229 (grub_squash_frag_desc): Add field size.
17230 (SQUASH_BLOCK_FLAGS): New enum.
17231 (grub_squash_data): Use grub_squash_cache_inode.
17232 (grub_fshelp_node): Make ino_chunk 64-bit.
17233 (read_chunk): Minor argument change. All users updated.
17234 (squash_mount): Use correct le_to_cpu.
17235 (grub_squash_open): Handle LONG_REGULAR.
17236 (direct_read): New function.
17237 (grub_squash_read_data): Handle blocks correctly.
17238
17239 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17240
17241 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
17242
17243 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17244
17245 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
17246
17247 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17248
17249 Fix 2G limit on ZFS.
17250
17251 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
17252 types.
17253 (uberblock_verify): Likewise.
17254 (dmu_read): Likewise.
17255 (grub_zfs_read): Likewise. Remove invalid cast.
17256
17257 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17258
17259 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
17260 (grub_jfs_blkno): Fix incorrect shift.
17261 (grub_jfs_read_file): Use more appropriate types.
17262
17263 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17264
17265 Support triple indirect on minix2 and minix3.
17266
17267 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
17268 Declare triple_indir_zone.
17269 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
17270 indirect.
17271
17272 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17273
17274 Minix FS fixes.
17275
17276 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
17277 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
17278 Rename ctime to mtime. All users updated.
17279 (grub_minix_get_file_block): Fix types and double indirect computations.
17280
17281 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17282
17283 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
17284 if no label is found.
17285 (grub_fat_iterate_dir): Fix file size type.
17286 (grub_fat_iterate_dir): Likewise.
17287
17288 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17289
17290 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
17291 save some space.
17292 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
17293 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
17294
17295 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17296
17297 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
17298
17299 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17300
17301 * util/import_gcry.py: Accept space between # and include.
17302
17303 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17304
17305 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
17306
17307 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17308
17309 Fine grainely disable warnings on lexer. Remove Wno-error on it.
17310
17311 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
17312 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
17313 yylex_strncpy.
17314 * grub-core/script/yylex.l: Add fine-grained #pragma.
17315
17316 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17317
17318 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
17319 New inline function.
17320 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
17321 Likewise.
17322 (memset) [GRUB_UTIL]: Likewise.
17323 (memcmp) [GRUB_UTIL]: Likewise.
17324
17325 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17326
17327 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
17328 inline function rather than a define.
17329
17330 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17331
17332 * util/grub-setup.c: Add missing include.
17333
17334 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17335
17336 * util/ieee1275/grub-ofpathname.c: Add missing include.
17337
17338 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17339
17340 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
17341 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
17342 Likewise.
17343
17344 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17345
17346 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
17347 grub_memcmp usage.
17348
17349 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17350
17351 * util/grub-install.in: Add datarootdir as per automake manual
17352 suggestion.
17353 * util/grub-mknetdir.in: Likewise.
17354
17355 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17356
17357 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
17358 suggestion.
17359 * util/grub.d/10_kfreebsd.in: Likewise.
17360 * util/grub.d/10_linux.in: Likewise.
17361 * util/grub.d/10_netbsd.in: Likewise.
17362 * util/grub.d/10_windows.in: Likewise.
17363 * util/grub.d/20_linux_xen.in: Likewise.
17364
17365 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
17366
17367 Remove redundant grub_kernel_image_size.
17368
17369 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
17370 _edata and _start.
17371 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
17372 the small code. It moves it only by few bytes but simplifies the code.
17373 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
17374 _start.
17375 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
17376 (grub_kernel_image_size): Removed.
17377 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
17378 (grub_kernel_image_size): Removed.
17379 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
17380 compiled with Apple toolchain.
17381 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
17382 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
17383 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
17384 (grub_total_module_size): Likewise.
17385 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
17386 Removed.
17387 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
17388 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
17389 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
17390 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
17391 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
17392 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
17393 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
17394 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
17395 Removed.
17396 (grub_total_module_size): Removed.
17397 * util/grub-mkimage.c (image_target_desc): Remove image_size.
17398 (image_targets): Likewise.
17399 Set .compressed_size to no field on sparc.
17400 (generate_image): Remove kernel_image_size handling.
17401
17402 2011-10-19 Szymon Janc <szymon@janc.net.pl>
17403
17404 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
17405 NULL pointer dereference.
17406
17407 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17408
17409 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
17410 done with a dedicated section.
17411
17412 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
17413 Ensure the correct position of boot_path.
17414 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
17415 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
17416 other fields.
17417 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
17418 * include/grub/boot.h: Removed. All references removed.
17419 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
17420 Removed.
17421 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
17422
17423 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17424
17425 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
17426 name.
17427
17428 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17429
17430 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
17431
17432 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17433
17434 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
17435 Don't add the bogus brackets.
17436
17437 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17438
17439 ExFAT support.
17440
17441 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
17442 * grub-core/Makefile.core.def (exfat): New module.
17443 * grub-core/fs/exfat.c: New file.
17444 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
17445 (GRUB_FAT_ATTR_*): Make into an enum.
17446 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
17447 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
17448 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
17449 (GRUB_FAT_MAXFILE): Removed.
17450 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
17451 (grub_current_fat_bpb_t): New type.
17452 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
17453 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
17454 (grub_fat_dir_node_t): New type.
17455 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
17456 (fat_log2) [MODE_EXFAT]: Removed.
17457 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
17458 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
17459 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
17460 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
17461 (grub_fat_label) [MODE_EXFAT]: New function.
17462 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
17463 reserved_first_sector to 0.
17464
17465 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17466
17467 Move grub_reboot out of the kernel.
17468
17469 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
17470 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
17471 * grub-core/lib/efi/reboot.c: ... here.
17472 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
17473 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
17474 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
17475 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
17476 * grub-core/lib/i386/reboot_trampoline.S: ... here.
17477 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
17478 * grub-core/lib/ieee1275/reboot.c: ... here.
17479 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
17480 * grub-core/lib/mips/arc/reboot.c: ... here.
17481 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
17482 * grub-core/lib/mips/loongson/reboot.c: ...here.
17483 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
17484 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
17485 * include/grub/emu/misc.h (grub_reboot): New function declaration.
17486 * include/grub/i386/reboot.h: New file.
17487 * include/grub/mips/loongson/ec.h: Fix includes.
17488 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
17489 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
17490 * grub-core/lib/i386/reboot.c: New file.
17491
17492 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
17493
17494 Make grub_prefix into module to fix the arbitrary limit and save
17495 some space.
17496
17497 * grub-core/kern/emu/main.c (grub_prefix): Removed.
17498 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
17499 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
17500 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
17501 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
17502 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
17503 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
17504 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
17505 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
17506 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
17507 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
17508 * include/grub/ia64/efi/kernel.h: Removed.
17509 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
17510 (grub_prefix): Removed.
17511 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
17512 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
17513 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
17514 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
17515 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
17516 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
17517 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
17518 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
17519 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
17520 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
17521 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
17522 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
17523 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
17524 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
17525 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
17526 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
17527 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
17528 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
17529 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
17530 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
17531 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
17532 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
17533 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
17534 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
17535 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
17536 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
17537 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
17538 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
17539 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
17540 from module.
17541 * util/grub-mkimage.c (image_target_desc): Removed prefix and
17542 prefix_end.
17543 (image_targets): Likewise.
17544 (generate_image): Put prefix as a module.
17545
17546 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17547
17548 Replace grub_module_iterate with FOR_MODULES.
17549
17550 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
17551 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
17552 (grub_efi_modules_addr): ...this.
17553 * grub-core/kern/efi/init.c (grub_modbase): New variable.
17554 (grub_efi_init): Set grub_modbase.
17555 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
17556 (grub_modbase): New variable.
17557 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
17558 (grub_modbase): New variable.
17559 (grub_machine_init): Set grub_modbase.
17560 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
17561 (grub_modbase): New variable.
17562 (grub_machine_init): Set grub_modbase.
17563 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
17564 (grub_modbase): New variable.
17565 (grub_machine_init): Set grub_modbase.
17566 * grub-core/kern/main.c (grub_module_iterate): Remove.
17567 (grub_modules_get_end): Use grub_modbase.
17568 (grub_load_modules): Use FOR_MODULES.
17569 (grub_load_config): Likewise.
17570 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
17571 (grub_modbase): New variable.
17572 (grub_machine_init): Set grub_modbase.
17573 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
17574 (grub_modbase): New variable.
17575 (grub_machine_init): Set grub_modbase.
17576 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
17577 Removed.
17578 (grub_modbase): New variable.
17579 (grub_machine_init): Set grub_modbase.
17580 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
17581 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
17582 (grub_module_iterate): Likewise.
17583 (grub_modbase): New variable declaration.
17584 (FOR_MODULES): New macro.
17585
17586 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17587
17588 * configure.ac: Check for __ctzdi2 and __ctzsi2.
17589 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
17590
17591 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17592
17593 Fix few obvious type discrepancies.
17594
17595 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
17596 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
17597 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
17598 variable.
17599 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
17600 and connected types.
17601 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
17602 offset.
17603 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
17604 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
17605 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
17606 and connected types.
17607
17608 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17609
17610 Fix python 3.x incompatibilities.
17611
17612 * gentpl.py: Put brackets around print strings.
17613 * util/import_gcry.py: Open explicitly as utf-8.
17614 Use in instead of has_key.
17615
17616 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17617
17618 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
17619 (GRUB_XFS_INO_AGBITS): Make into inline function.
17620 (GRUB_XFS_INO_INOINAG): Likewise.
17621 (GRUB_XFS_INO_AG): Likewise.
17622 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
17623 (GRUB_XFS_EXTENT_OFFSET): Likewise.
17624 (GRUB_XFS_EXTENT_BLOCK): Likewise.
17625 (GRUB_XFS_EXTENT_SIZE): Likewise.
17626 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
17627 (GRUB_XFS_NEXT_DIRENT): Likewise.
17628 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
17629 (grub_xfs_read_file): Fix offset type.
17630
17631 2011-10-15 Robert Millan <rmh@gnu.org>
17632
17633 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
17634
17635 2011-10-15 Robert Millan <rmh@gnu.org>
17636
17637 Fix build problem on FreeBSD and GNU/kFreeBSD.
17638
17639 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
17640
17641 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17642
17643 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
17644
17645 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
17646 types.
17647 (grub_hfsplus_btree_recoffset): Likewise.
17648 (grub_hfsplus_btree_recptr): Likewise.
17649 (grub_hfsplus_find_block): Likewise.
17650 (grub_hfsplus_btree_search): Likewise.
17651 (grub_hfsplus_read_block): Likewise.
17652 (grub_hfsplus_read_file): Likewise.
17653 (grub_hfsplus_mount): Likewise.
17654 (grub_hfsplus_btree_iterate_node): Likewise.
17655 (grub_hfsplus_btree_search): Likewise.
17656 (grub_hfsplus_iterate_dir): Likewise.
17657 (grub_hfsplus_read): A small code simplification.
17658
17659 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17660
17661 * grub-core/kern/emu/hostdisk.c
17662 (convert_system_partition_to_system_disk): Don't assume that children
17663 of mapper nodes are mapper nodes.
17664
17665 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17666
17667 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
17668 * include/grub/misc.h (grub_isxdigit): New function.
17669 * grub-core/video/colors.c (my_isxdigit): Removed. All users
17670 switched to grub_isxdigit.
17671 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
17672 number starting with a letter.
17673
17674 2011-10-09 Robert Millan <rmh@gnu.org>
17675
17676 LVM support for FreeBSD and GNU/kFreeBSD.
17677
17678 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
17679 GNU/kFreeBSD.
17680 (LVM_DEV_MAPPER_STRING): Move from here ...
17681 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
17682 * util/getroot.c: Include `<grub/util/lvm.h>'.
17683 (grub_util_get_dev_abstraction): Enable
17684 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
17685 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
17686 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
17687 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
17688 support it.
17689 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
17690 GNU/kFreeBSD.
17691 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
17692 when LVM abstraction is required for ${GRUB_DEVICE}.
17693
17694 2011-10-06 Szymon Janc <szymon@janc.net.pl>
17695
17696 Add support for LZO compression in GRUB:
17697 - import of minilzo library,
17698 - LZO decompression for btrfs,
17699 - lzop files decompression.
17700
17701 * grub-core/io/lzopio.c: New file.
17702 * grub-core/lib/adler32.c: Likewise.
17703 * grub-core/lib/minilzo/lzoconf.h: Likewise.
17704 * grub-core/lib/minilzo/lzodefs.h: Likewise.
17705 * grub-core/lib/minilzo/minilzo.c: Likewise.
17706 * grub-core/lib/minilzo/minilzo.h: Likewise.
17707 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
17708 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
17709 grub-core/lib/minilzo/minilzo.c to common.
17710 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
17711 cflags in cppflags.
17712 * grub-core/Makefile.core.def (btrfs): Likewise.
17713 * grub-core/Makefile.core.def (lzopio): New module.
17714 (adler32): Likewise.
17715 * grub-core/fs/btrfs.c: Include minilzo.h.
17716 (GRUB_BTRFS_COMPRESSION_LZO): New define.
17717 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
17718 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
17719 (grub_btrfs_lzo_decompress): New function.
17720 (grub_btrfs_extent_read): Add support for LZO compression type.
17721 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
17722 (GRUB_USHRT_MAX): Likewise.
17723 (GRUB_UINT_MAX): Likewise.
17724 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
17725 (UINT_MAX): Likewise.
17726 (CHAR_BIT): Likewise.
17727 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
17728 grub-core/lib/posix_wrap/limits.h
17729 (UCHAR_MAX): Likewise.
17730 * include/grub/file.h (grub_file_filter_id): New compression filter
17731 GRUB_FILE_FILTER_LZOPIO.
17732 * include/grub/file.h (grub_file_filter_id): Set
17733 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
17734 * include/grub/types.h (grub_get_unaligned16): New function.
17735 (grub_get_unaligned32): Likewise.
17736 (grub_get_unaligned64): Likewise.
17737 * util/import_gcry.py (cryptolist): Add adler32.
17738
17739 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
17740
17741 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
17742 in perspective decreases the complexity of build system and fixes
17743 compilation right now.
17744
17745 2011-10-01 Ales Nesrsta <starous@volny.cz>
17746
17747 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
17748 (fixed problem related to using UHCI with coreboot).
17749
17750 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
17751
17752 * gentpl.py: Use Autogen macros so that the output template file
17753 (Makefile.tpl) size is reduced.
17754
17755 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
17756
17757 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
17758 extra_dist.
17759
17760 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17761
17762 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
17763 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
17764
17765 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17766
17767 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
17768 _fullpath.
17769
17770 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17771
17772 Remove extra declaration of sleep for mingw32.
17773
17774 * util/misc.c (sleep) [__MINGW32__]: Removed.
17775 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
17776
17777 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
17778
17779 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
17780 type and packname.
17781 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
17782 Resurrected.
17783 (NETBSD_BTINFO_BOOTWEDGE): New definition.
17784 (grub_netbsd_btinfo_bootwedge): New struct.
17785 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17786 New function.
17787 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
17788
17789 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
17790
17791 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
17792 loader.
17793
17794 2011-09-28 Andreas Born <futur.andy@googlemail.com>
17795
17796 Fix incorrect identifiers in bash-completion.
17797
17798 * util/bash-completion.d/grub-completion.bash.in
17799 (_grub_mkpasswd-pbkdf2): Rename to ...
17800 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
17801 (_grub_script-check): Rename to ...
17802 (_grub_script_check): ... this. All users updated.
17803
17804 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
17805
17806 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
17807 Return 0 if disk isn't biosdisk.
17808
17809 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17810
17811 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
17812 on NetBSD.
17813 * Makefile.util.def (grub-fstest): Likewise.
17814
17815 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17816
17817 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
17818 Get sector size from disk label.
17819
17820 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
17821
17822 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
17823 */README* as well as README*.
17824 Reported by: Axel Beckert.
17825
17826 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17827
17828 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
17829 case of less than 256 MiB of RAM.
17830
17831 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17832
17833 * grub-core/commands/wildcard.c (make_regex): Handle @.
17834
17835 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17836
17837 * util/grub-install.in: Move cryptodisk logic to appropriate place.
17838
17839 2011-08-21 Szymon Janc <szymon@janc.net.pl>
17840
17841 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
17842 AC_LANG_CONFTEST macros.
17843
17844 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17845
17846 Add grub-fstest option to uncompress data for commands.
17847
17848 * util/grub-fstest.c (uncompress): New var.
17849 (options): New option -u.
17850
17851 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17852
17853 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
17854 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
17855
17856 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17857
17858 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
17859 file type was not recognized correctly (not gzip or corrupted).
17860
17861 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17862
17863 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
17864 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
17865
17866 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17867
17868 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
17869 loongson.
17870 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
17871 video_radeon_fuloong2e.
17872 * grub-core/video/radeon_fuloong2e.c: New file.
17873 * include/grub/video.h (grub_video_id_t): Add new ID
17874 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
17875
17876 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17877
17878 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
17879 define.
17880 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
17881 that PRID matches the detected subplatform and reset the subplatform
17882 if it doesn't.
17883
17884 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17885
17886 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
17887
17888 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17889
17890 Fix PCI iterating on functions >= 4.
17891
17892 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
17893 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
17894 Removed.
17895 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
17896 (grub_pci_read): Fix bitmask.
17897 (grub_pci_read_word): Likewise.
17898 (grub_pci_read_byte): Likewise.
17899 (grub_pci_write): Likewise.
17900 (grub_pci_write_word): Likewise.
17901 (grub_pci_write_byte): Likewise.
17902
17903 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17904
17905 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
17906 can still be specified in TARGET_CFLAGS)
17907
17908 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17909
17910 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
17911
17912 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
17913 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
17914 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
17915 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
17916 (FULOONG): Rename to ...
17917 (FULOONG2F): ... this. All users updated.
17918 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
17919 (machtype_fuloong2f_str): ... this.
17920 (machtype_fuloong2e_str): New string.
17921 Check for machtype_fuloong2e_str.
17922 * grub-core/loader/mips/linux.c (loongson_machtypes)
17923 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
17924 * grub-core/term/serial.c (loongson_defserial)
17925 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
17926 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
17927 loongson_defserial.
17928 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
17929 Rename to ...
17930 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
17931 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
17932 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
17933 to IMAGE_FULOONG2F_FLASH. All users updated.
17934 (image_targets): Rename images.
17935 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
17936
17937 2011-08-19 Szymon Janc <szymon@janc.net.pl>
17938
17939 Make enable of disk cache statistics code configurable.
17940
17941 * configure.ac: --enable-cache-stats added.
17942 * config.h.in (DISK_CACHE_STATS): New define.
17943 * grub-core/Makefile.core.def (cacheinfo): New command.
17944 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
17945 * grub-core/commands/cacheinfo.c: New file.
17946 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
17947 moved to cacheinfo.c.
17948 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
17949 debug code.
17950 * include/grub/disk.h: Likewise.
17951
17952 2011-08-19 Szymon Janc <szymon@janc.net.pl>
17953
17954 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
17955 * grub-core/Makefile.am: Likewise.
17956
17957 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
17958
17959 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
17960 non-zero pull.
17961
17962 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
17963
17964 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
17965 All users updated.
17966 (grub_jfs_lookup_symlink): Use correct starting inode.
17967
17968 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
17969
17970 * util/grub-setup.c (main): Add missing gcry initialisation.
17971
17972 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
17973
17974 Don't accept text modes on EFI when booting Linux.
17975
17976 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
17977 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
17978
17979 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
17980 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
17981
17982 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
17983 use of "/path/.." as in grub-install for EFI as well as handling
17984 symlinks correctly.
17985 Fixes Debian bug #637768.
17986
17987 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
17988
17989 * util/grub-probe.c: Remove duplicate #include.
17990
17991 2011-08-10 Robert Millan <rmh@gnu.org>
17992
17993 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
17994
17995 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
17996 function.
17997 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
17998 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
17999
18000 2011-08-03 Robert Millan <rmh@gnu.org>
18001
18002 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
18003 la_array as packed.
18004 Reported by: Zachary Bedell
18005
18006 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
18007
18008 * configure.ac: The Loongson port requires grub-mkfont due to its
18009 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
18010 be built.
18011
18012 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
18013
18014 * util/grub-install.in: Don't source grub-mkconfig_lib until after
18015 processing arguments (otherwise help2man fails when GRUB has not yet
18016 been installed).
18017
18018 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18019
18020 New script grub-mkstandalone.
18021
18022 * Makefile.util.def (grub-mkstandalone): New script.
18023 * docs/man/grub-mkstandalone.h2m: New file.
18024 * util/grub-mkstandalone.in: Likewise.
18025
18026 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18027
18028 Support ATA disks with 4K sectors.
18029
18030 * include/grub/ata.h (grub_ata): New member log_sector_size.
18031 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
18032 (grub_ata_identify): Read sector size.
18033 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
18034
18035 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18036
18037 * util/grub-install.in: Don't use uhci outside of x86.
18038
18039 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18040
18041 * util/grub-mkrescue.in: Add missing quotes.
18042
18043 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18044
18045 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
18046 dereference.
18047
18048 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18049
18050 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
18051
18052 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18053
18054 * include/grub/video.h: add missing EXPORT_FUND on
18055 grub_video_edid_checksum and grub_video_edid_preferred_mode.
18056
18057 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18058
18059 * include/grub/mips/kernel.h: Fix define conflict.
18060
18061 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18062
18063 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
18064 all four ways.
18065
18066 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
18067
18068 Preferred resolution detection for VBE.
18069
18070 * grub-core/video/video.c (grub_video_edid_checksum): New function.
18071 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
18072 the Flat Panel extension, in line with the X.org VESA driver.
18073 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
18074 New function.
18075 (grub_vbe_bios_get_ddc_capabilities): Likewise.
18076 (grub_vbe_bios_read_edid): Likewise.
18077 (grub_vbe_get_preferred_mode): Likewise.
18078 (grub_video_vbe_setup): When the mode is "auto", try to get the
18079 preferred mode from VBE, and use the largest mode that is no larger
18080 than the preferred mode (some BIOSes expose a preferred mode that is
18081 not in their mode list!). If this fails, fall back to 640x480 as a
18082 safe conservative choice.
18083 (grub_video_vbe_get_edid): New function.
18084 (grub_video_vbe_adapter): Add get_edid.
18085 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
18086 (struct grub_video_adapter): Add get_edid.
18087 (grub_video_edid_checksum): Add prototype.
18088 (grub_video_edid_preferred_mode): Likewise.
18089 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
18090 structure.
18091
18092 * grub-core/commands/videoinfo.c (print_edid): New function.
18093 (grub_cmd_videoinfo): Print EDID if available.
18094
18095 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
18096 is more appropriate on a wider range of platforms than 640x480.
18097 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
18098 documentation.
18099
18100 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18101
18102 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
18103
18104 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18105
18106 * po/POTFILES.in: Regenerate.
18107
18108 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18109
18110 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
18111 incorrect memory usage.
18112
18113 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18114
18115 * util/grub-install.in: Source grub-mkconfig_lib.
18116
18117 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18118
18119 Remove getroot.c from core on emu platform.
18120
18121 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
18122 kern/emu/raid.c.
18123 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
18124 useless.
18125 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
18126 * util/getroot.c (get_win32_path): ... here.
18127 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
18128 * util/getroot.c (fini_libzfs): ... here.
18129 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
18130 * util/getroot.c (grub_get_libzfs_handle): ... here.
18131 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
18132 Moved from here...
18133 * util/getroot.c (grub_find_zpool_from_dir): ... here.
18134 * grub-core/kern/emu/misc.c
18135 (grub_make_system_path_relative_to_its_root): Moved from here...
18136 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
18137 * grub-core/kern/emu/getroot.c: Moved from here ...
18138 * util/getroot.c: ... here. All users updated.
18139 * grub-core/kern/emu/raid.c: Moved from here ...
18140 * util/raid.c: ... here. All users updated.
18141
18142 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18143
18144 * po/POTFILES.in: Regenerate.
18145
18146 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18147
18148 Fix compilation on GNU/Linux.
18149
18150 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
18151 Disable geli.
18152 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
18153 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
18154 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
18155
18156 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18157 2011-07-07 Michael Gorven <michael@gorven.za.net>
18158 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
18159
18160 LUKS and GELI support.
18161
18162 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
18163 grub-core/disk/luks.c, grub-core/disk/geli.c,
18164 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
18165 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
18166 grub-core/lib/arg.c.
18167 (libgrubmods.a): Remove gcrypts cflags and cppflags.
18168 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
18169 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
18170 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
18171 (grub-bin2h): Add libgcry.a.
18172 (grub-mkimage): Likewise.
18173 (grub-mkrelpath): Likewise.
18174 (grub-script-check): Likewise.
18175 (grub-editenv): Likewise.
18176 (grub-mkpasswd-pbkdf2): Likewise.
18177 (grub-pe2elf): Likewise.
18178 (grub-fstest): Likewise.
18179 (grub-mkfont): Likewise.
18180 (grub-mkdevicemap): Likewise.
18181 (grub-probe): Likewise.
18182 (grub-ofpath): Likewise.
18183 (grub-mklayout): Likewise.
18184 (example_unit_test): Likewise.
18185 (grub-menulst2cfg): Likewise.
18186 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
18187 * grub-core/Makefile.core.def (cryptodisk): New module.
18188 (luks): Likewise.
18189 (geli): Likewise.
18190 * grub-core/disk/AFSplitter.c: New file.
18191 * grub-core/disk/cryptodisk.c: Likewise.
18192 * grub-core/disk/geli.c: Likewise.
18193 * grub-core/disk/luks.c: Likewise.
18194 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
18195 grub_util_is_lvm.
18196 (grub_util_get_dm_abstraction): New function.
18197 (grub_util_follow_gpart_up): Likewise.
18198 (grub_util_get_geom_abstraction): Likewise.
18199 (grub_util_get_dev_abstraction): Use new functions.
18200 (grub_util_pull_device): Pull GELI and LUKS.
18201 (grub_util_get_grub_dev): Handle LUKS and GELI.
18202 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
18203 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
18204 (follow_geom_up): Removed.
18205 (grub_util_fd_seek): New function.
18206 (open_device): Use grub_util_fd_seek.
18207 (nread): Rename to ..
18208 (grub_util_fd_read): ... this. All users updated.
18209 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
18210 (grub_crypto_cbc_decrypt): Likewise.
18211 (grub_crypto_hmac_write): Likewise.
18212 (grub_crypto_hmac_buffer): Likewise.
18213 (grub_password_get): Extend to util.
18214 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
18215 New member modname.
18216 (gcry_md_spec) [GRUB_UTIL]: Likewise.
18217 * include/grub/cryptodisk.h: New file.
18218 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
18219 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
18220 LUKS and GELI.
18221 (grub_util_follow_gpart_up): New proto.
18222 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
18223 (grub_util_fd_read): Likewise.
18224 (grub_cryptodisk_cheat_mount): Likewise.
18225 (grub_util_cryptodisk_print_uuid): Likewise.
18226 (grub_util_get_fd_sectors): Likewise.
18227 * util/grub-fstest.c (mount_crypt): New var.
18228 (fstest): Mount crypto if requested.
18229 (options): New option -C.
18230 (argp_parser): Parse -C.
18231 (main): Init and fini gcry.
18232 * util/grub-install.in: Support cryptodisk install.
18233 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
18234 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
18235 cryptodisk.
18236 (prepare_grub_to_access_device): Likewise.
18237 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
18238 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
18239 (probe_cryptodisk_uuid): New function.
18240 (probe_abstraction): Likewise.
18241 (probe): Use new functions.
18242 * util/import_gcry.py: Create Makefile.utilgcry.def.
18243 Add modname member.
18244
18245 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18246
18247 Lazy device scanning.
18248
18249 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
18250 (grub-setup): Remove util/raid.c.
18251 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
18252 * grub-core/disk/lvm.c (scan_depth): New variable.
18253 (grub_lvm_iterate): Rescan if necessary.
18254 (find_lv): New function based on grub_lvm_open.
18255 (grub_lvm_open): Use find_lv. Rescan on error.
18256 (is_node_readable): New function.
18257 (is_lv_readable): Likewise.
18258 (grub_lvm_scan_device): Skip already found disks.
18259 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
18260 Stop if searched device is found and readable.
18261 * grub-core/disk/raid.c (inscnt): New variable.
18262 (scan_depth): Likewise.
18263 (scan_devices): New function based on grub_raid_register. Abort if
18264 looked for device is found.
18265 (grub_raid_iterate): Rescan if needed.
18266 (find_array): NEw function based on -grub_raid_open.
18267 (grub_raid_open): Use find_array and rescan.
18268 (insert_array): Set became_readable_at.
18269 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
18270 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
18271 New function.
18272 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
18273 (grub_util_pull_device): New function.
18274 (grub_util_get_grub_dev): Call grub_util_pull_device.
18275 * util/raid.c: Moved to ..
18276 * grub-core/kern/emu/raid.c: ... here.
18277 (grub_util_raid_getmembers): New parameter "bootable".
18278 All users updated. Support 1.x.
18279 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
18280 All users updated.
18281 * include/grub/disk.h (grub_disk_pull_t): New enum.
18282 (grub_disk_dev): Change iterate prototype.
18283 All users updated.
18284 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
18285 New proto.
18286 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
18287 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
18288 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
18289 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
18290 All users updated.
18291 * include/grub/util/raid.h: Removed.
18292
18293 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18294
18295 * po/POTFILES.in: Regenerate.
18296
18297 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18298
18299 Unify sparc init with other ieee1275.
18300
18301 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
18302 instead of kern/sparc64/ieee1275/init.c.
18303 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
18304 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
18305 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
18306 grub/machine/kernel.h.
18307 (grub_ieee1275_original_stack) [__sparc__]: New variable.
18308 (grub_claim_heap) [__sparc__]: Use sparc version.
18309 (grub_machine_init): Moved args parsing to
18310 (grub_parse_cmdline): ...this.
18311 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
18312 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
18313 New definition.
18314 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
18315
18316 Move BOOTP to separate file.
18317
18318 * grub-core/Makefile.core.def (net): Add net/bootp.c.
18319 * grub-core/net/net.c: Move all BOOTP functions to
18320 * grub-core/net/bootp.c: ... here.
18321
18322 Use frame interface on PXE.
18323
18324 * grub-core/Makefile.core.def (pxecmd): Removed.
18325 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
18326 * grub-core/commands/i386/pc/pxecmd.c: Removed.
18327 * grub-core/i386/pc/pxe.c: Moved from here ...
18328 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
18329 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
18330 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
18331
18332 EFI network support.
18333
18334 * grub-core/Makefile.core.def (efinet): New module.
18335 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
18336 here...
18337 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
18338 All users updated.
18339 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
18340 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
18341 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
18342 * grub-core/net/drivers/efi/efinet.c: New file.
18343 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
18344 (grub_efi_net_config): New extern var.
18345
18346 Various cleanups and bugfixes.
18347
18348 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
18349 error.
18350 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
18351 disk declared as partition.
18352 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
18353 leak on failure.
18354 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
18355 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
18356 (grub_debug_zalloc): Likewise.
18357 (grub_debug_realloc): Likewise.
18358 (grub_debug_memalign): Likewise.
18359 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
18360 Check that target is IPv4.
18361 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
18362 local-mac-address as fallback.
18363 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
18364 memory leak.
18365 * grub-core/net/ip.c (ipchksum): Rename to ...
18366 (grub_net_ip_chksum): ... this. All users updated.
18367 (grub_net_recv_ip_packets): Special handling for DHCP.
18368 * util/grub-mkimage.c (generate_image): Zero-out aout header.
18369
18370 Unify prefix handling
18371
18372 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
18373 (grub_machine_get_bootlocation): ... this.
18374 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
18375 (grub_machine_get_bootlocation): ... this.
18376 (grub_prefix): New variable.
18377 (prefix): Removed.
18378 (root_dev): New variable.
18379 (dir): Likewise.
18380 (main): Use new variables.
18381 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
18382 Revamped into ...
18383 (grub_machine_get_bootlocation): ... this.
18384 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
18385 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
18386 (grub_machine_get_bootlocation): ... this.
18387 (grub_machine_set_prefix): Removed.
18388 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
18389 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
18390 Revamped into ...
18391 (grub_machine_get_bootlocation): ... this.
18392 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
18393 (grub_set_prefix_and_root): ... this. All users updated.
18394 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
18395 Revamped into ...
18396 (grub_machine_get_bootlocation): ... this.
18397 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
18398 (grub_machine_get_bootlocation): New proto.
18399 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
18400
18401 Less intrusive and more reliable seek on network implementation.
18402
18403 * grub-core/kern/file.c (grub_file_net_seek): Removed.
18404 (grub_file_seek): Don't call grub_file_net_seek.
18405 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
18406 (grub_net_fs_read_real): .. this.
18407 (grub_net_seek_real): Use net->offset.
18408 (grub_net_fs_read): Seek if necessary.
18409
18410 Unify IEEE1275 netwotk config with the other platforms.
18411
18412 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
18413 New variable.
18414 (grub_machine_get_bootlocation): Support network.
18415 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
18416 Support type and device parsing.
18417 (grub_ieee1275_get_device_type): New function.
18418 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
18419 into ...
18420 (grub_ieee1275_net_config_real): ... this.
18421 (grub_ofnet_probecards): Removed.
18422 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
18423 * include/grub/ieee1275/ofnet.h: Removed.
18424 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
18425 extern var.
18426 (grub_ieee1275_get_device_type): New function.
18427
18428 Unify network device closing across platforms and make more robust.
18429
18430 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
18431 grub_grubnet_fini.
18432 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
18433 already.
18434 * grub-core/net/net.c (grub_net_network_level_interface_register):
18435 Update num_ifaces.
18436 (grub_net_card_unregister): Close all interfaces.
18437 (receive_packets): Don't poll if no iterfaces are registered.
18438 Open if necessary.
18439 (grub_net_fini_hw): New function.
18440 (grub_net_restore_hw): Likewise.
18441 (fini_hnd): New variable.
18442 (GRUB_MOD_INIT): Register preboot hook.
18443 (GRUB_MOD_FINI): Run and unregister preboot hook.
18444
18445 Poll network cards when idle.
18446
18447 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
18448 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
18449 * grub-core/net/net.c (receive_packets): Save last poll time.
18450 (grub_net_poll_cards_idle_real): New function.
18451 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
18452 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
18453 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
18454
18455 Rename ofnet interfaces.
18456
18457 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
18458 (grub_ofnet_findcards): Use ofnet_%s names.
18459
18460 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
18461
18462 Cleanup socket opening.
18463
18464 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
18465 (grub_net_fs_close): Likewise.
18466 (grub_net_fs_read_real): Use eof member.
18467 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
18468 (+grub_net_udp_close): New inline function.
18469
18470 * include/grub/net/tftp.h: Moved to the top of ...
18471 * grub-core/net/tftp.c: ... here.
18472 * include/grub/net/ip.h: Moved mostly to the top of ...
18473 * grub-core/net/ip.c: ... here.
18474 * include/grub/net/ethernet.h: Moved mostly to the top of ...
18475 * grub-core/net/ethernet.c: ... here.
18476
18477 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
18478
18479 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
18480 FS name.
18481
18482 * include/grub/net/ip.h (ipv4_ini): Removed.
18483 (ipv4_fini): Likewise.
18484
18485 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
18486 (grub_net_send_ip_packets): Likewise.
18487
18488 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18489
18490 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
18491 grub_read_cmos prototype.
18492
18493 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18494
18495 VGA text support in qemu-mips
18496
18497 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
18498 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
18499 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
18500 text.
18501 * grub-core/kern/i386/qemu/init.c: Renamed to ...
18502 * grub-core/kern/vga_init.c: ... this.
18503 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
18504 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
18505 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
18506 Adjust.
18507 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
18508 GRUB_MACHINE_PCI_IO_BASE.
18509
18510 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18511
18512 MIPS qemu flash support.
18513
18514 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
18515 magic.
18516 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
18517 (grub_machine_init): Probe memory if its size isn't known.
18518 * util/grub-mkimage.c (image_targets): Add flash targets.
18519 (generate_image): Handle flash targets.
18520
18521 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18522
18523 MIPS qemu at_keyboard support.
18524
18525 * gentpl.py (videoinkernel): Add qemu-mips.
18526 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
18527 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
18528 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
18529 modules.
18530 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
18531 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
18532 * grub-core/term/serial.c (grub_serial_register)
18533 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
18534
18535 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18536
18537 CMOS support on sparc.
18538
18539 * gentpl.py (cmos): Add powerpc and sparc.
18540 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
18541 powerpc and sparc.
18542 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
18543 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
18544 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
18545 grub_set_datetime_cmos.
18546 * grub-core/lib/ieee1275/cmos.c: New file.
18547 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
18548 (find_rtc): Set no_ieee1275_rtc on error.
18549 (grub_get_datetime): Call grub_get_datetime_cmos on error.
18550 (grub_set_datetime): Call grub_set_datetime_cmos on error.
18551 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
18552 fail. Move value to argument. All users updated
18553 (grub_cmos_write): Likewise.
18554 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
18555 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
18556 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
18557 grub_get_datetime_cmos and grub_set_datetime_cmos.
18558
18559 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
18560
18561 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
18562 sourcing grub-mkconfig_lib.
18563 * util/update-grub_lib.in: Likewise.
18564 * util/grub.d/00_header.in: Likewise.
18565 * util/grub.d/10_hurd.in: Likewise.
18566 * util/grub.d/10_kfreebsd.in: Likewise.
18567 * util/grub.d/10_linux.in: Likewise.
18568 * util/grub.d/10_netbsd.in: Likewise.
18569 * util/grub.d/10_windows.in: Likewise.
18570 * util/grub.d/20_linux_xen.in: Likewise.
18571 * util/grub.d/30_os-prober.in: Likewise.
18572
18573 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
18574
18575 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
18576 default_bg_color rather than black.
18577 (grub_gfxterm_fullscreen): Likewise.
18578 (grub_gfxterm_background_color_cmd): Save new background color in
18579 default_bg_color.
18580
18581 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18582
18583 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
18584
18585 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18586
18587 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
18588 mismerge.
18589
18590 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18591
18592 Chainloading on coreboot support.
18593
18594 * grub-core/Makefile.core.def (chain): Add coreboot.
18595 * grub-core/loader/i386/coreboot/chainloader.c: New file.
18596
18597 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18598
18599 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
18600 if it happens.
18601
18602 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18603
18604 Implement time command.
18605
18606 * grub-core/Makefile.core.def (time): New module.
18607 * grub-core/commands/time.c: New file.
18608 * grub-core/script/parser.y: Remove "time" keyword.
18609 * grub-core/script/yylex.l: Likewise.
18610
18611 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18612
18613 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
18614
18615 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18616
18617 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
18618 when handling leftovers.
18619
18620 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18621
18622 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
18623 so that help2man doesn't fail.
18624
18625 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18626
18627 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
18628 type in pointers on sparc64.
18629 (get_card_packet): Likewise.
18630
18631 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
18632
18633 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
18634 with `*'.
18635 (grub_cmd_videoinfo): Fetch current video mode.
18636
18637 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18638
18639 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
18640 because of underlying system restrictions.
18641
18642 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18643
18644 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
18645 necessary.
18646
18647 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18648
18649 Coreboot video support.
18650
18651 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
18652 (vbe): Likewise.
18653 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
18654 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
18655 here ...
18656 * grub-core/kern/i386/int.S: ... here.
18657 * grub-core/video/i386/pc/vbe.c: Updated includes.
18658 * grub-core/video/i386/pc/vga.c: Likewise.
18659 * include/grub/i386/coreboot/memory.h
18660 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
18661 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
18662 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
18663 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
18664 Disable interrupts.
18665 * include/grub/i386/pc/vga.h: Removed. All users updated.
18666
18667 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18668
18669 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
18670 definitions for dprintf.
18671 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
18672
18673 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18674
18675 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
18676 prototype.
18677 (get_card_packet): Likewise.
18678
18679 2011-06-26 Yves Blusseau <blusseau@zetam.org>
18680
18681 Display the path of the file when file is not found
18682
18683 * grub-core/fs/fat.c: Display the filename when file is not found.
18684 * grub-core/fs/fshelp.c: Likewise.
18685 * grub-core/fs/hfs.c: Likewise.
18686 * grub-core/fs/jfs.c: Likewise.
18687 * grub-core/fs/minix.c: Likewise.
18688 * grub-core/fs/ufs.c: Likewise.
18689 * grub-core/fs/btrfs.c: Likewise.
18690 * grub-core/commands/i386/pc/play.c: Likewise.
18691
18692 2011-06-26 Szymon Janc <szymon@janc.net.pl>
18693
18694 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
18695 pointer checks before calling grub_free().
18696 * grub-core/commands/wildcard.c (match_devices): Likewise.
18697 * grub-core/commands/wildcard.c (match_files): Likewise.
18698 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
18699 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
18700 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
18701 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
18702 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
18703 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
18704 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
18705 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
18706 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
18707
18708 2011-06-25 Patrick <p55@mailinator.com>
18709
18710 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
18711
18712 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
18713
18714 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
18715 (grub_pxe_send): Likewise.
18716 (GRUB_MOD_INIT): Fix types.
18717
18718 2011-06-24 Szymon Janc <szymon@janc.net.pl>
18719
18720 * grub-core/io/xzio.c: Fix code style issues
18721
18722 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18723 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
18724
18725 Network infrastructure.
18726 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
18727
18728 * include/grub/net/arp.h: New file.
18729 * include/grub/net/device.h: Likewise.
18730 * include/grub/net/ethernet.h: Likewise.
18731 * include/grub/net/ip.h: Likewise.
18732 * include/grub/net/netbuff.h: Likewise.
18733 * include/grub/net/tftp.h: Likewise.
18734 * include/grub/net/udp.h: Likewise.
18735 * include/grub/ieee1275/ofnet.h: Likewise.
18736 * include/grub/emu/export.h: Likewise.
18737 * include/grub/net.h: Likewise.
18738 * grub-core/net/arp.c: Likewise.
18739 * grub-core/net/ethernet.c: Likewise.
18740 * grub-core/net/ip.c: Likewise.
18741 * grub-core/net/udp.c: Likewise.
18742 * grub-core/net/tftp.c: Likewise.
18743 * grub-core/net/netbuff.c: Likewise.
18744 * grub-core/net/net.c: Likewise.
18745 * grub-core/net/drivers/emu/emunet.c: Likewise.
18746 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
18747 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
18748 export.h.
18749 * grub-core/Makefile.core.def (net): New module.
18750 (tftp): Likewise.
18751 (ofnet): Likewise.
18752 (emunet): Likewise.
18753 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
18754 network protocols.
18755 * grub-core/kern/device.c (grub_net_open) : New variable.
18756 (grub_device_open): Handle network device.
18757 (grub_device_close): Likewise.
18758 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
18759 (grub_grubnet_fini): Likewise.
18760 (grub_file_seek): Seek in network device.
18761 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
18762 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
18763 network root.
18764 (grub_machine_fini): Call grub_grubnet_fini.
18765 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
18766 network.
18767 (grub_ieee1275_get_aliasdevname): New function.
18768 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
18769 Add unofficial Solaris network info.
18770 (grub_multiboot_make_mbi): Likewise.
18771 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
18772 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
18773 * include/grub/device.h (grub_fs): Removed.
18774 * include/grub/err.h (grub_err_t): Add network-related values.
18775 * include/grub/i386/pc/pxe.h: Removed bootp parts.
18776 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
18777 (grub_ieee1275_get_aliasdevname): New proto.
18778 * include/grub/net.h: Rewritten.
18779
18780 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18781
18782 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
18783 names.
18784
18785 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18786
18787 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
18788 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
18789 it truncates the output.
18790 Reported by: Ximin Luo.
18791
18792 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18793
18794 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
18795
18796 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18797
18798 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
18799 partmap before abstraction.
18800
18801 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
18802
18803 * util/grub-mkconfig_lib.in: Add missing quotes.
18804
18805 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18806
18807 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
18808 old method if mountinfo would return /dev/root and /dev/root doesn't
18809 exist.
18810
18811 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18812
18813 ZFS zlib support
18814
18815 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
18816 (decomp_table): Add zlib entries.
18817 (zio_read): USe 8 bits for compression function rather than 3.
18818 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
18819
18820 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18821
18822 * grub-core/disk/ahci.c: Add missing license statements.
18823 * grub-core/fs/romfs.c: Likewise.
18824 * grub-core/lib/ia64/setjmp.S: Likewise.
18825 * grub-core/loader/i386/pc/freedos.c: Likewise.
18826 * grub-core/loader/ia64/efi/linux.c: Likewise.
18827 * grub-core/video/colors.c: Likewise.
18828 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
18829
18830 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18831
18832 AHCI support.
18833
18834 * grub-core/Makefile.core.def (ata_pthru): Removed.
18835 (ahci): New module.
18836 (pata): Likewise.
18837 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
18838 on unload.
18839 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
18840 readwrite.
18841 (grub_hdparm_do_check_powermode_cmd): Likewise.
18842 (grub_hdparm_do_smart_cmd): Likewise.
18843 (grub_hdparm_set_val_cmd): Likewise.
18844 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
18845 * grub-core/disk/ahci.c: New file.
18846 * grub-core/disk/ata.c: Factor out the low-level part into ...
18847 * grub-core/disk/pata.c: ... here.
18848 * grub-core/disk/ata_pthru.c: Contents moved to ...
18849 * grub-core/disk/pata.c: ... here.
18850 * grub-core/disk/scsi.c (grub_scsi_names): New array.
18851 (grub_scsi_iterate): Use grub_scsi_names.
18852 (grub_scsi_open): Likewise.
18853 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
18854 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
18855 (grub_ata_regs_t): New struct.
18856 (grub_disk_ata_pass_through_parms): Likewise.
18857 (grub_ata_device): Renamed to ...
18858 (grub_ata): ... this.
18859 (grub_ata_dev): New struct.
18860 Removed all low-level inline functions.
18861 * include/grub/scsi.h: Add PATA and AHCI subsystems.
18862 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
18863 iterate hooks and open. All users updated.
18864 * util/grub-install.in: Handle AHCI disk module.
18865
18866 2011-06-23 Szymon Janc <szymon@janc.net.pl>
18867
18868 Add support for DRI and RSTn markers in JPEG files.
18869
18870 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
18871 (JPEG_MARKER_RST0): Likewise.
18872 (JPEG_MARKER_RST1): Likewise.
18873 (JPEG_MARKER_RST2): Likewise.
18874 (JPEG_MARKER_RST3): Likewise.
18875 (JPEG_MARKER_RST4): Likewise.
18876 (JPEG_MARKER_RST5): Likewise.
18877 (JPEG_MARKER_RST6): Likewise.
18878 (JPEG_MARKER_RST7): Likewise.
18879 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
18880 (grub_jpeg_decode_dri): New function.
18881 (grub_jpeg_decode_sos): Move image data related part into
18882 grub_jpeg_decode_data function.
18883 (grub_jpeg_decode_data): New function.
18884 (grub_jpeg_reset): New function.
18885 (grub_jpeg_decode_jpeg): Handle new markers.
18886
18887 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18888
18889 * util/ieee1275/ofpath.c (check_sas): Close fd.
18890 (main): Free of_path.
18891 Reported by: David Volgyes <dvolgyes>.
18892
18893 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18894
18895 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
18896 Reported by: David Volgyes <dvolgyes>.
18897
18898 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18899
18900 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
18901 file after stat.
18902 Reported by: David Volgyes <dvolgyes>.
18903
18904 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18905
18906 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
18907
18908 Reported by: David Volgyes <dvolgyes>.
18909
18910 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18911
18912 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
18913 Prevent memory leak.
18914
18915 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18916
18917 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
18918 (main): Close file.
18919 Reported by: David Volgyes <dvolgyes>.
18920
18921 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18922
18923 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
18924 to continue if allocation is failed.
18925
18926 Reported by: David Volgyes <dvolgyes>.
18927
18928 2011-06-23 David Volgyes <dvolgyes>
18929
18930 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
18931 dereference.
18932
18933 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18934
18935 Fix spurious warning.
18936
18937 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
18938 (acorn_partition_map_find): Use .bin member.
18939
18940 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18941
18942 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
18943 /dev/root as a valid device.
18944
18945 2011-06-23 Jim Meyering <meyering@redhat.com>
18946
18947 Avoid NULL deref in grub_device_open.
18948
18949 * grub-core/kern/device.c (grub_device_open): Don't dereference
18950 a NULL pointer upon failed grub_env_get.
18951
18952 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18953
18954 Support non-512B sectors and agglomerate reads.
18955
18956 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
18957 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
18958 (disk_io_guid): Removed.
18959 (make_devices): Locate solely by BlockIO.
18960 (grub_efidisk_open): Fill log_sector_size and total_sectors.
18961 (grub_efidisk_read): Use read_blocks.
18962 (grub_efidisk_write): Use write_blocks.
18963 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
18964 log_sector_size.
18965 (get_safe_sectors): Handle non-512B sectors.
18966 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
18967 sectors.
18968 (grub_biosdisk_write): Handle non-512B sectors.
18969 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
18970 (grub_scsi_read): Remove special non-512B block handling (now handled
18971 one level up).
18972 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
18973 and do sanity checks.
18974 (grub_disk_adjust_range): Handle non-512B sectors.
18975 (transform_sector): New function.
18976 (grub_disk_read_small): Likewise.
18977 (grub_disk_read): Rewritten.
18978 (grub_disk_write): Handle non-512B sectors.
18979 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
18980 log_sector_size.
18981 (open_device): Use log_sector_size.
18982 (grub_util_biosdisk_read): Likewise.
18983 (grub_util_biosdisk_write): Likewise.
18984 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
18985 non-512B sectors.
18986 (pc_partition_map_embed): Likewise.
18987 * include/grub/disk.h (grub_disk): New field log_sector_size.
18988 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
18989 (GRUB_DISK_CACHE_BITS): Increased to 6.
18990 * util/grub-fstest.c (fstest): New command testload.
18991 (argp_parser): Likewise.
18992
18993 2011-06-16 Robert Millan <rmh@gnu.org>
18994
18995 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
18996 `ata' driver on kernel of FreeBSD 9.
18997
18998 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
18999 (get_ataraid_disk_name): New functions.
19000 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
19001 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
19002 get_ataraid_disk_name() and get_ada_disk_name().
19003
19004 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
19005
19006 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
19007 input format.
19008
19009 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
19010
19011 * docs/grub.texi (Obtaining and Building GRUB): Substitute
19012 `ftp.gnu.org' for `alpha.gnu.org'.
19013
19014 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
19015
19016 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
19017 partitions under /dev/disk/by-id/.
19018
19019 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
19020
19021 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
19022 after ten consecutive open failures. Scanning all the way up to
19023 10000 is excessive and can cause serious performance problems in
19024 some configurations.
19025 Fixes Ubuntu bug #787461.
19026
19027 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19028
19029 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
19030 opening new one.
19031
19032 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
19033 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19034
19035 Don't stat devices unless we have to.
19036
19037 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
19038 dir == /dev/mapper.
19039 (grub_guess_root_device): Use already known os_dev if possible.
19040 * grub-core/kern/emu/hostdisk.c
19041 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
19042 if device is known to be a dm one.
19043
19044 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
19045
19046 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
19047 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
19048 Reported by: Pawel Tecza.
19049
19050 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
19051
19052 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
19053 (lsefisystab): Likewise.
19054 (lssal): Likewise.
19055 (lsefimmap): Likewise.
19056 (hdparm): Enable on qemu-mips.
19057 (setjmp): Add ia64 nodist.
19058 (serial): Simplify tags.
19059
19060 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19061
19062 * Makefile.util.def (grub-ofpathname): Install manual page.
19063
19064 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19065
19066 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
19067
19068 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19069
19070 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
19071
19072 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19073
19074 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
19075 into dprintf.
19076
19077 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19078
19079 Use full 64-bit division.
19080
19081 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
19082 (grub_divmod64): ... this.
19083 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
19084 version.
19085
19086 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19087
19088 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
19089 `source'.
19090
19091 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19092
19093 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
19094 to avoid accidents when debugging with 'sh -x'.
19095 * grub-core/gensyminfo.sh.in: Likewise.
19096 * tests/example_scripted_test.in: Likewise.
19097 * tests/grub_cmd_regexp.in: Likewise.
19098 * tests/grub_script_blanklines.in: Likewise.
19099 * tests/grub_script_dollar.in: Likewise.
19100 * tests/grub_script_expansion.in: Likewise.
19101 * tests/grub_script_final_semicolon.in: Likewise.
19102 * tests/partmap_test.in: Likewise.
19103 * tests/util/grub-shell-tester.in: Likewise.
19104 * tests/util/grub-shell.in: Likewise.
19105
19106 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19107
19108 Move gfxmenu color handling to video, so that gfxterm can use it
19109 too.
19110
19111 * grub-core/gfxmenu/named_colors.c: Move to ...
19112 * grub-core/video/colors.c: ... here. Rename
19113 grub_gui_get_named_color to grub_video_get_named_color.
19114 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
19115 * grub-core/video/colors.c (my_isxdigit): ... here.
19116 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
19117 Move to ...
19118 * grub-core/video/colors.c (parse_hex_color_component): ... here.
19119 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
19120 to ...
19121 * grub-core/video/colors.c (grub_video_parse_color): ... here.
19122
19123 * include/grub/gui.h (grub_gui_color_t): Move to ...
19124 * include/grub/video.h (grub_video_rgba_color_t): ... here.
19125 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
19126 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
19127 * include/grub/gui.h (grub_gui_map_color): Move to ...
19128 * include/grub/video.h (grub_video_map_rgba_color): ... here.
19129 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
19130 to ...
19131 * include/grub/video.h (grub_video_get_named_color): ... here.
19132 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
19133 * include/grub/video.h (grub_video_parse_color): ... here.
19134
19135 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
19136 video/colors.c.
19137 (gfxmenu): Remove gfxmenu/named_colors.c.
19138 (video) [videomodules]: Add video/colors.c.
19139
19140 Add a background_color command.
19141
19142 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
19143 function.
19144 (GRUB_MOD_INIT): Register background_color command.
19145 (GRUB_MOD_FINI): Unregister background_color command.
19146 (redraw_screen_rect): Allow blend/replace of text layer to be
19147 controlled independently from whether there is a background bitmap.
19148 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
19149 changing bitmap.
19150
19151 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19152
19153 Patch BPB in ntldr and chainloader --bpb.
19154
19155 * grub-core/fs/fat.c: Include grub/fat.h.
19156 (grub_fat_bpb): Moved to ...
19157 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
19158 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
19159 grub/ntfs.h.
19160 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
19161 Moved from here...
19162 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
19163 here.
19164 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
19165 New function.
19166 (grub_chainloader_cmd): Patch BPB if --bpb is given.
19167 (GRUB_MOD_INIT): Show --bpb.
19168 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
19169 * grub-core/normal/main.c (features): New variable.
19170 (GRUB_MOD_INIT): Set feature_* variables.
19171 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
19172 proto.
19173 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
19174
19175 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19176
19177 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
19178 for cleanness.
19179
19180 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19181
19182 FreeDOS direct loading support.
19183
19184 * docs/grub.texi (Supported OS): Add FreeDOS.
19185 * grub-core/Makefile.core.def (freedos): New module.
19186 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
19187 variable.
19188 (grub_relocator16_boot): Handle %ebx.
19189 * grub-core/lib/i386/relocator16.S: Likewise.
19190 * grub-core/loader/i386/pc/freedos.c: New file.
19191
19192 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19193
19194 Long Linux command line support.
19195
19196 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19197 (maximal_cmdline_size): New variable.
19198 (allocate_pages): Use maximal_cmdline_size.
19199 (grub_cmd_linux): Set and use maximal_cmdline_size.
19200 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19201 (allocate_pages): Use maximal_cmdline_size.
19202 (grub_cmd_linux): Set and use maximal_cmdline_size.
19203 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
19204 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
19205 and cmdline_size.
19206
19207 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19208 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19209
19210 Improve devmapper support
19211
19212 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
19213 (grub_util_is_lvm): New function.
19214 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
19215 than lvm if not dmraid.
19216 Handle mapped md nodes.
19217 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
19218 (grub_util_device_is_mapped): ... this. Make always available. All users
19219 updated.
19220 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
19221 (convert_system_partition_to_system_disk): Handle lvm, mpath and
19222 dmraid nodes.
19223 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
19224
19225 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19226
19227 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
19228
19229 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
19230 * grub-core/modinfo.sh.in: New file.
19231 * grub-core/Makefile.core.def (modinfo.sh): New script.
19232 * util/grub-mknetdir.in: Use modinfo.sh.
19233 * util/grub-mkrescue.in: Likewise.
19234
19235 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19236
19237 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
19238 Fix potential usage of Elf32 instead of Elf64 when compiling on
19239 32-bit architecture. Add endianness macros while on it.
19240
19241 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19242
19243 Use mipsel- rather than mips- in directories involving mipsel ports to
19244 allow both endiannesses coexist.
19245
19246 * configure.ac: proparate target_cpu=mipsel rather than resetting to
19247 mips. All conditions adjusted.
19248 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
19249 variable.
19250 * util/grub-install.in: Adjust conditions to take renaming into account.
19251 * util/grub-mkimage.c (image_targets): Likewise. New target
19252 mips-qemu_mips-elf for bigendian mips.
19253
19254 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19255
19256 Avoid unnecessary copying on MIPS.
19257
19258 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
19259 early if src == dest.
19260 * util/grub-mkimage.c (generate_image): Arange for src == dest if
19261 compression is none.
19262
19263 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19264
19265 Reduce memory footprint on SGI by putting modules before the kernel
19266 as opposed to after.
19267
19268 * grub-core/Makefile.core.def (kernel): Increase linking address.
19269 (none_decompress): Likewise.
19270 (xz_decompress): Likewise.
19271 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
19272 address.
19273 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
19274 layout change.
19275 (grub_arch_modules_addr): New function.
19276 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
19277 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
19278 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
19279 here.
19280 * grub-core/kern/mips/startup.S (total_size): Rename to ...
19281 (grub_total_modules_size): ... this. Make global.
19282 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
19283 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
19284 New definition.
19285 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
19286 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
19287 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
19288 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
19289 * util/grub-mkimage.c (image_target_desc): New flag
19290 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
19291 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
19292 (generate_image): Handle images with modules before kernel.
19293
19294 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19295
19296 Prevent potential loss of memory map by overwrite on qemu-mips.
19297
19298 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19299 Save ram size in $s4.
19300 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
19301 All users changed to grub_arch_memsize.
19302 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
19303 Loongson.
19304 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
19305 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
19306 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
19307 external variable.
19308
19309 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19310
19311 * .bzrignore: Remove grub-dumpbios.
19312
19313 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19314
19315 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
19316 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
19317 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
19318 existing options which append).
19319 * docs/grub.texi (Simple configuration): Document new options.
19320 Reported by: Ian Jackson. Fixes Debian bug #617538.
19321
19322 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19323
19324 * util/grub-fstest.c (cmd_cat): New function.
19325 (fstest): Handle CMD_CAT.
19326 (options): Add cat.
19327 (argp_parser): Handle cat.
19328
19329 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19330
19331 * Makefile.util.def (grub-bin2h): Don't install.
19332 * docs/man/grub-bin2h.h2m: Remove.
19333
19334 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19335
19336 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
19337 place.
19338
19339 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19340
19341 Reenable qemu-mips port.
19342
19343 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
19344 Fix small arc bug while on it.
19345 * gentpl.py: Handle qemu_mips.
19346 * grub-core/Makefile.am: Likewise.
19347 * grub-core/Makefile.core.def: Likewise.
19348 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
19349 inappropriate includes.
19350 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
19351 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
19352 * grub-core/kern/main.c (grub_modules_get_end)
19353 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
19354 * grub-core/kern/mips/qemu-mips: Moved to ..
19355 * grub-core/kern/mips/qemu_mips: ... this.
19356 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
19357 (grub_machine_init): Call terminfo_init and serial_init.
19358 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
19359 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19360 New variable.
19361 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
19362 parameter passing.
19363 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
19364 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
19365 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
19366 * include/grub/mips/qemu_mips/cmos.h: New file.
19367 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
19368 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
19369 Removed.
19370 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
19371 Use correct mips-style address.
19372 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
19373 (GRUB_TICKS_PER_SECOND): Removed.
19374 (grub_get_rtc): Likewise.
19375 (grub_cpu_idle): Likewise.
19376 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
19377 New definition.
19378 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
19379 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
19380 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
19381 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
19382 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
19383 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
19384 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
19385 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
19386
19387 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19388
19389 SGI ARCS port.
19390
19391 * Makefile.util.def (libgrubmods.a): Add dvh.c.
19392 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
19393 platforms.
19394 * configure.ac: New target mips-arc.
19395 * gentpl.py: Likewise.
19396 * grub-core/Makefile.am: Likewise.
19397 * grub-core/Makefile.core.def: Likewise.
19398 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
19399 (none_decompress): Likewise.
19400 (lsdev): New module.
19401 (datetime): Use lib/arc/datetime.c on ARC.
19402 (part_dvh): New module.
19403 * grub-core/commands/arc/lsdev.c: New file.
19404 * grub-core/disk/arc/arcdisk.c: Likewise.
19405 * grub-core/kern/mips/arc/init.c: Likewise.
19406 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
19407 aligned addresses.
19408 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
19409 support.
19410 (grub_arch_dl_relocate_symbols): Likewise.
19411 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
19412 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
19413 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
19414 platforms.
19415 * grub-core/lib/arc/datetime.c: New file.
19416 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
19417 pci.h on non-loongson.
19418 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
19419 (grub_linux_boot): Set unused registers to 0.
19420 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
19421 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
19422 * grub-core/mmap/mips/uppermem.c: ...here.
19423 * grub-core/partmap/dvh.c: New file.
19424 * grub-core/term/arc/console.c: Likewise.
19425 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
19426 (grub_terminfo_set_current): Add terminal "arc".
19427 (grub_terminfo_readkey): Support ARC sequences.
19428 * include/grub/arc/arc.h: New file.
19429 * include/grub/arc/console.h: Likewise.
19430 * include/grub/disk.h (grub_disk_dev_id): Add
19431 GRUB_DISK_DEVICE_ARCDISK_ID.
19432 * include/grub/mips/arc/kernel.h: New file.
19433 * include/grub/mips/arc/memory.h: Likewise.
19434 * include/grub/mips/arc/time.h: Likewise.
19435 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
19436 * include/grub/mips/kernel.h (grub_halt): ... here.
19437 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
19438 here...
19439 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
19440 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
19441 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
19442 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
19443 proto.
19444 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
19445 from here ...
19446 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
19447 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
19448 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
19449 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
19450 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
19451 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
19452 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
19453 (grub_phys_addr_t): Moved from here ...
19454 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
19455 (grub_vtop): Moved from here ...
19456 * include/grub/mips/memory.h (grub_vtop): ... here.
19457 (grub_map_memory): Moved from here ...
19458 * include/grub/mips/memory.h (grub_map_memory): ... here.
19459 (grub_unmap_memory): Moved from here ...
19460 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
19461 (grub_machine_mmap_iterate): Moved from here ...
19462 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
19463 (grub_mmap_get_lower): Moved from here ...
19464 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
19465 (grub_mmap_get_upper): Moved from here ...
19466 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
19467 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19468 here ...
19469 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19470 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
19471 here ...
19472 * include/grub/mips/time.h (grub_get_rtc): ... here.
19473 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19474 here ...
19475 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19476 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
19477 here ...
19478 * include/grub/mips/time.h (grub_cpu_idle): ... here.
19479 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
19480 definition.
19481 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
19482 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
19483 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
19484 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
19485 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
19486 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
19487 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
19488 (GRUB_MACHINE_LINK_ADDR): Likewise.
19489 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
19490 to 6.
19491 * util/grub-install.in: Run dvhtool on ARC.
19492 * util/grub-mkimage.c (image_targets): Add mips-arc.
19493 (generate_image): Handle ECOFF output for mips-arc.
19494
19495 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19496
19497 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
19498 blocks.
19499
19500 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19501
19502 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
19503 after enabling port.
19504
19505 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19506
19507 Skip incorrect USB devices.
19508
19509 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
19510 configcnt == 0.
19511 * include/grub/usb.h (grub_usb_err_t): New enum value
19512 GRUB_USB_ERR_BADDEVICE.
19513
19514 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19515
19516 Fuloong video init support.
19517
19518 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
19519 well.
19520 (grub_vga_read_arx): New function.
19521 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
19522 definition.
19523 (framebuffer): New members io, mmioptr and mmiobase.
19524 (read_sis_cmd): New function.
19525 (write_sis_cmd): Likewise.
19526 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
19527 rather than 640x400.
19528 * grub-core/video/sis315_init.c: New file.
19529
19530 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19531
19532 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
19533 non-loongson.
19534 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
19535 to grub_dl_register_symbol.
19536
19537 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19538
19539 Fix compilation errors.
19540
19541 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
19542 potentially unused.
19543 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
19544 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
19545 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
19546 to loongson machines.
19547
19548 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19549
19550 Several FS mtime support.
19551
19552 * grub-core/fs/affs.c (grub_affs_time): New struct.
19553 (grub_affs_file): New field mtime.
19554 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
19555 type. Removed 'size'. New field 'di'. All users updated.
19556 (grub_affs_mount): Simplify checsum checking.
19557 (grub_affs_iterate_dir): New helper grub_affs_create_node.
19558 (grub_affs_dir): Handle mtime.
19559 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
19560 (grub_cpio_dir): Likewise.
19561 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
19562 (grub_hfs_filerec): New field mtime.
19563 (grub_hfs_dir): Handle mtime.
19564 (grub_hfs_mtime): New function.
19565 (grub_hfs_fs): Register grub_hfs_mtime.
19566 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
19567 (grub_iso9660_dir): New field mtime.
19568 (grub_fshelp_node): New field dirent.
19569 (iso9660_to_unixtime): New function.
19570 (iso9660_to_unixtime2): Likewise.
19571 (grub_iso9660_read_symlink): Use node->dirent.
19572 (grub_iso9660_iterate_dir): Likewise.
19573 (grub_iso9660_dir): Set mtime.
19574 (grub_iso9660_mtime): New function.
19575 (grub_iso9660_fs): Register grub_iso9660_mtime.
19576 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
19577 (grub_jfs_inode): New fields atime, ctime and mtime.
19578 (grub_jfs_dir): Set mtime.
19579 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
19580 * grub-core/fs/ntfs.c (list_file): Set mtime.
19581 (grub_ntfs_dir): Likewise.
19582 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
19583 (grub_reiserfs_iterate_dir): Set mtime.
19584 (grub_reiserfs_dir): Likewise.
19585 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
19586 (grub_fshelp_node): Likewise.
19587 (grub_sfs_iterate_dir): Set mtime.
19588 (grub_sfs_dir): Likewise.
19589 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
19590 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
19591 (grub_xfs_inode): New fields atime, mtime, ctime.
19592 (grub_xfs_dir): Set mtime.
19593 * include/grub/datetime.h (grub_datetime2unixtime): New function.
19594 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
19595 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
19596
19597 Support UDF symlinks.
19598
19599 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
19600 (grub_ufs_read_symlink): New function. All users updated.
19601
19602 Check amiga partmap checksum.
19603
19604 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
19605 (grub_amiga_partition): Likewise.
19606 (amiga_partition_map_checksum): New function.
19607 (amiga_partition_map_iterate): Check checksum.
19608
19609 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19610
19611 ROMFS support.
19612
19613 * Makefile.util.def (libgrubmods.a): Add romfs.
19614 * grub-core/Makefile.core.def (romfs): New module.
19615 * grub-core/fs/romfs.c: New file.
19616
19617 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19618
19619 Squashfs v4 support.
19620
19621 * Makefile.util.def (libgrubmods.a): Add squash4.
19622 * grub-core/Makefile.core.def (squash4): New module.
19623 * grub-core/fs/squash4.c: New file.
19624 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
19625 disk_input_start, disk_input.
19626 (get_byte): Handle disk_input.
19627 (grub_zlib_disk_read): New function.
19628 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
19629
19630 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19631 2011-05-15 Feiran Zheng <famcool@gmail.com>
19632
19633 * Makefile.util.def (libgrubmods.a): Add minix3.
19634 * grub-core/Makefile.core.def (minix3): New module.
19635 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
19636 (GRUB_MINIX_BSIZE): Removed.
19637 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
19638 (grub_minix_ino_t): New type.
19639 (grub_minix_le_to_cpu_ino): New macro.
19640 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
19641 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
19642 (grub_minix_data): New field block_size.
19643 (grub_minix_read_file): Handle 64-bit correctly.
19644 * grub-core/fs/minix3.c: New file.
19645
19646 2011-05-15 Tristan Gingold <gingold@free.fr>
19647 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
19648 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19649
19650 IA64 support.
19651
19652 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
19653 * configure.ac: Add ia64-efi target.
19654 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
19655 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
19656 * gentpl.py: Add ia64_efi platform.
19657 Rename x86_efi to efi and Add ia64-efi. All users updated.
19658 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
19659 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
19660 Remove kern/generic/rtc_get_time_ms.c on EFI.
19661 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
19662 kern/ia64/dl_helper.c on ia64-efi.
19663 Add kern/emu/cache.c on emu.
19664 (linux): Use on loader/ia64/efi/linux.c on ia64.
19665 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
19666 whether symbol is a function.
19667 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
19668 (grub_symbol): New field 'isfunc'.
19669 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
19670 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
19671 (grub_dl_load_segments): Place all sections into the same region.
19672 [__ia64__]: Create trampolines and got.
19673 [GRUB_MACHINE_EMU]: Call mprotect.
19674 (grub_dl_resolve_symbols): Resolve symbol type as well.
19675 [__ia64__]: Create function descriptors.
19676 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
19677 (grub_rtc_get_time_ms): ... this. Expressions simplified.
19678 (grub_get_rtc): New function.
19679 * grub-core/kern/emu/cache.c [__ia64__]: New file.
19680 * grub-core/kern/emu/cache.S: Renamed to ...
19681 * grub-core/kern/emu/cache_s.S: ... this.
19682 [__ia64__]: Add a nop.
19683 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
19684 [__ia64__]: New function.
19685 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
19686 * grub-core/kern/ia64/dl.c: New file.
19687 * grub-core/kern/ia64/dl_helper.c: Likewise.
19688 * grub-core/kern/ia64/efi/init.c: New file.
19689 * grub-core/kern/ia64/efi/startup.S: Likewise.
19690 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
19691 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
19692 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
19693 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
19694 * grub-core/loader/ia64/efi/linux.c: New file.
19695 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
19696 (GRUB_MOD_DEP): Likewise.
19697 (grub_dl) [__ia64__]: New fields got and tramp.
19698 (grub_dl): New field 'base'.
19699 (grub_dl_register_symbol): New argument isfunc. All users updated.
19700 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
19701 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
19702 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
19703 (grub_ia64_dl_get_tramp_got_size): New proto.
19704 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
19705 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
19706 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
19707 * include/grub/efi/api.h: Skip call wrappers on ia64.
19708 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
19709 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
19710 * include/grub/elf.h (ELF_ST_INFO): New definition.
19711 * include/grub/ia64/efi/kernel.h: New file.
19712 * include/grub/ia64/efi/memory.h: Likewise.
19713 * include/grub/ia64/efi/time.h: Likewise.
19714 * include/grub/ia64/kernel.h: Likewise.
19715 * include/grub/ia64/setjmp.h: Likewise (from glibc).
19716 * include/grub/ia64/time.h: New file.
19717 * include/grub/ia64/types.h: Likewise.
19718 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
19719 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
19720 New protos.
19721 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
19722 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
19723 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
19724 * util/grub-mkimage.c (image_target_desc): New field pe_target.
19725 All users updated.
19726 (EFI64_HEADER_SIZE): New definition. All users updated.
19727 (image_targets): Add ia64-efi.
19728 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
19729 jumpers_addr. All users updated.
19730 Create function descriptors.
19731 (count_funcs): New function.
19732 (unaligned_uint32): New struct.
19733 (MASK20): New definition.
19734 (MASK19): Likewise.
19735 (MASKF21): Likewise.
19736 (add_value_to_slot_20b): New function.
19737 (add_value_to_slot_21_real): Likewise.
19738 (add_value_to_slot_21): Likewise.
19739 (ia64_kernel_trampoline): New struct.
19740 (nopm): New variable.
19741 (jump): Likewise.
19742 (make_trampoline): New function.
19743 (relocate_addresses): Handle ia64.
19744 (make_reloc_section): Likewise.
19745 (load_image): Likewise.
19746
19747 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19748
19749 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
19750 warning. Move variables before code while on it.
19751
19752 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19753
19754 Fuloong support.
19755
19756 * configure.ac: Rename yeeloong platform to loongson. All users updated.
19757 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
19758 * grub-core/boot/mips/loongson/fuloong.S: New file.
19759 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
19760 Explicitly init CS5536.
19761 [FULOONG]: Don't use serial until CS5536 is available.
19762 Set GPIO based on dumps.
19763 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
19764 [FULOONG]: Handle GPIO and memory controller differences.
19765 Parse machine type in $a2.
19766 * grub-core/boot/mips/startup_raw.S: Determine and save the
19767 architecture.
19768 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
19769 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
19770 init on architecture type.
19771 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
19772 SIS315E. Don't init at_keyboard on fuloong.
19773 (grub_halt): Support Fuloong.
19774 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
19775 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
19776 (loongson_machtypes): New array.
19777 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
19778 type.
19779 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
19780 config. All users updated. Handle CS5536 serial.
19781 * grub-core/term/serial.c (grub_serial_register): Conditionalise
19782 default port on machine type. Register serial as inactive.
19783 * grub-core/video/sis315pro.c: New file.
19784 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
19785 definition.
19786 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
19787 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
19788 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
19789 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
19790 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
19791 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
19792 to ...
19793 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
19794 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
19795 definition.
19796 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
19797 (grub_arch_machine): New extern var.
19798 * include/grub/mips/loongson/serial.h
19799 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
19800 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
19801 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
19802 (GRUB_MACHINE_SERIAL_PORT0): ... this.
19803 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
19804 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
19805 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
19806 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
19807 * include/grub/term.h (grub_term_register_input_inactive): New inline
19808 function.
19809 (grub_term_register_output_inactive): Likewise.
19810 * include/grub/video.h (grub_video_driver_id): New value
19811 GRUB_VIDEO_DRIVER_SIS315PRO.
19812 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
19813 New field "names". All users updated.
19814 New field value IMAGE_FULOONG_FLASH.
19815 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
19816
19817 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
19818
19819 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
19820 and add some clarification.
19821
19822 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19823
19824 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
19825 platforms if kernel is compressed.
19826
19827 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19828
19829 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
19830 unused modules since currently referrence counter isn't reliable and
19831 there isn't much memory to recover there anyway.
19832
19833 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19834
19835 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
19836 rather than resetting it to allow modules to reference themselves
19837 in init.
19838
19839 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19840
19841 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
19842 counter on dependencies since grub_dl_unref already handles this.
19843
19844 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19845
19846 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
19847 on error if not already done.
19848
19849 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19850
19851 Fix few potential memory misusage.
19852
19853 * grub-core/font/font.c (load_font_index): Don't free char_index to
19854 avoid double free.
19855 (grub_font_load): Zero-fill font at alloc for safety.
19856 Close file on error.
19857 (free_font): Free bmp_idx.
19858
19859 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19860
19861 * docs/grub.texi (Installation): Fix several outdated claims.
19862
19863 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19864
19865 Handle module_license on windows.
19866
19867 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
19868 sections shifted.
19869 (insert_string): Make argument const char * instead of char *.
19870 (write_section_data): Handle long section names.
19871 Handle module_license.
19872
19873 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19874
19875 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
19876 handle class-free menuentries.
19877 (grub_normal_add_menu_entry): Add a check to be sure.
19878
19879 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19880
19881 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
19882 PgUp and PgDown.
19883
19884 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19885
19886 * configure.ac: Bump version to 1.99.
19887
19888 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19889
19890 Give ATA device a bit more time on first try in order to allow disks
19891 to spin up.
19892
19893 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
19894 if dev->present is 1. Reset dev->present on failure.
19895 (grub_ata_device_initialize): Set dev->present to 1.
19896 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
19897 (grub_ata_device): New member 'present'.
19898
19899 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19900
19901 * util/grub-mkimage.c (generate_image): Update hash.
19902
19903 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19904
19905 Flush caches on DMA memory.
19906
19907 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
19908 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
19909 (grub_dma_free): Likewise.
19910 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
19911
19912 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19913
19914 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
19915 to avoid asm treating ld and sd as macros.
19916
19917 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19918
19919 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
19920 decompressor.
19921
19922 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19923
19924 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
19925 grub_decompress_core since later would fail if grub_decompress_core
19926 is too far.
19927
19928 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19929
19930 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
19931 R_MIPS_JALR since it's used by newer compiler.
19932
19933 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
19934
19935 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
19936
19937 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19938
19939 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
19940 file_path to 0 for surety.
19941 (grub_chainloader_boot): Set exit_data to NULL.
19942 Unset the loader once done.
19943 (grub_cmd_chainloader): Fix confusing error message if file is empty.
19944
19945 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19946
19947 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
19948 unknown key into a dprintf.
19949
19950 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19951
19952 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
19953 on first non-existant partition.
19954
19955 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19956
19957 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
19958 openning fails.
19959 Reported by: Mark Korenberg.
19960
19961 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19962
19963 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
19964 overflow.
19965
19966 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19967
19968 * util/grub-mkimage.c (main): Explicitely flush and sync the output
19969 before closing to ensure that it will be readable by grub-setup.
19970
19971 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19972
19973 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
19974 (devpath_1): Use MAKE_PIWG_PATH.
19975 (devpath_2): Likewise.
19976 (devpath_3): Likewise.
19977 (devpath_4): Likewise.
19978 (devpath_5): Likewise.
19979 (devpath_6): Likewise.
19980
19981 The appleldr.mod was checked that to be binary identical to previous
19982 version.
19983
19984 2011-05-05 Zach <mikezackles>
19985
19986 Support 2010 Macbooks.
19987
19988 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
19989 (devs): Add devpath_6.
19990
19991 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19992
19993 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
19994 /dev/random. /dev/urandom is good enough for our purposes (salting).
19995
19996 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19997
19998 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
19999
20000 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20001
20002 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
20003 hexadecimal.
20004
20005 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20006
20007 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
20008 and not 0 on failure.
20009
20010 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
20011
20012 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
20013 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
20014 disk; otherwise grub_fs_probe will not fall back to the next
20015 filesystem.
20016 (grub_pxefs_open): Likewise, for consistency.
20017 Reported and tested by: Ezekiel Grave.
20018
20019 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
20020
20021 * tests/partmap_test.in: Don't hardcode path to parted.
20022 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
20023
20024 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
20025
20026 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
20027 of `ls' to find out which devices are available.
20028
20029 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20030
20031 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
20032 than source address for efi mmap buffer.
20033
20034 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20035
20036 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
20037 wrong action on non-detecting the magic.
20038
20039 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20040
20041 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
20042 already supplied by another part of the module (fixes compilation on
20043 FreeBSD).
20044
20045 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20046
20047 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
20048 match the one used by mdadm.
20049
20050 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20051
20052 * po/README: Add instructions for creating po/LINGUAS.
20053
20054 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20055
20056 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
20057 #551428.
20058
20059 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
20060 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
20061 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
20062 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
20063 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
20064 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
20065 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
20066 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
20067 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
20068 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
20069 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
20070 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
20071 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
20072 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
20073 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
20074 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
20075 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
20076 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
20077 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
20078 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
20079 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
20080 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
20081
20082 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20083
20084 * grub-core/kern/emu/getroot.c
20085 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
20086 test that was incorrectly reintroduced in r3214.
20087 Reported by: Ian Dall. Fixes Savannah bug #33133.
20088
20089 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20090
20091 Fix stack pointer handling in 16-bit relocator.
20092
20093 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
20094 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
20095 Fixes Ubuntu bug #683904.
20096
20097 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20098
20099 * configure.ac: Bump version to 1.99~rc2.
20100
20101 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20102
20103 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
20104 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
20105 * grub-core/lib/x86_64/setjmp.S: Likewise.
20106 * grub-core/lib/mips/setjmp.S: Likewise.
20107 * grub-core/lib/powerpc/setjmp.S: Likewise.
20108 * grub-core/lib/sparc64/setjmp.S: Likewise.
20109
20110 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20111
20112 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
20113 * grub-core/lib/efi/datetime.c: Likewise.
20114
20115 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20116
20117 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
20118 New function.
20119 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
20120 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
20121 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
20122
20123 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20124
20125 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
20126 bitmap.
20127 (grub_gfxterm_term_init): Likewise.
20128
20129 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20130
20131 Take into account the decorations the computing menu entry width.
20132
20133 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
20134 (grub_gfxmenu_create_box): Register get_border_width.
20135 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
20136 if available.
20137 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
20138 get_border_width.
20139
20140 2011-04-18 Endres Puschner <code@e7p.de>
20141
20142 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
20143 Don't skip first class.
20144
20145 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20146
20147 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
20148 chunks.
20149 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
20150
20151 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20152
20153 Complete 64-bit division support.
20154
20155 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
20156 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
20157 * include/grub/misc.h (grub_divmod64): Rename to ...
20158 (grub_divmod64_full): ... this.
20159 (grub_divmod64): New inline function.
20160
20161 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20162
20163 * util/grub-mkimage.c (generate_image): Add forgotten comma.
20164
20165 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20166
20167 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
20168 performing the necessary test.
20169
20170 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20171
20172 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
20173 (kfreebsd.elf): Likewise.
20174 (pc-chainloader.elf): Likewise.
20175 (ntldr.elf): Likewise.
20176
20177 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20178
20179 Identify RAID by its UUID rather than (guessed) name.
20180
20181 * grub-core/disk/raid.c (ascii2hex): New function.
20182 (grub_raid_open): Accept mduuid/%s specification.
20183 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
20184 (get_mdadm_uuid): ... this.
20185 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
20186
20187 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
20188
20189 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
20190 to negative size.
20191
20192 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20193
20194 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
20195 btrfs subvolume.
20196 * util/grub.d/20_linux_xen.in: Likewise.
20197
20198 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20199
20200 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
20201 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
20202
20203 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
20204 Build a list of relevant visible mounts using the mnt_id and
20205 parent_mnt_id fields, and then scan that list at the end.
20206
20207 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20208
20209 * docs/grub.texi (normal): New section.
20210 (normal_exit): New section.
20211 (Embedded configuration): Add reference to normal.
20212 (GRUB only offers a rescue shell): Likewise.
20213 * docs/grub-dev.texi (Error Handling): Fix typo.
20214
20215 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20216
20217 * NEWS: Drop obsolete entry about probe-only btrfs support.
20218
20219 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20220
20221 * util/import_gcry.py: Fix typo.
20222
20223 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20224
20225 * NEWS: Add btrfs support.
20226
20227 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20228 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20229
20230 BtrFS support. Written by me (Vladimir) with important bugfixes and
20231 even more important testing by Colin.
20232
20233 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
20234 * grub-core/Makefile.core.def (btrfs): Add crc.c.
20235 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
20236 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
20237 mem_input_off and mem_input. All users updated to accept in-RAM input.
20238 (gzio_seek): New function.
20239 (test_zlib_header): Likewise.
20240 (grub_gzio_read): Likewise.
20241 (grub_zlib_decompress): Likewise.
20242 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
20243 Accept partial and non-virtual mounts.
20244 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
20245 avoid receiving /dev/dm-X as device.
20246 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
20247 Handle bind and partial mounts.
20248 * grub-core/lib/crc.c: New file.
20249 * include/grub/deflate.h: Likewise.
20250 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
20251 proto.
20252 * include/grub/lib/crc.h: New file.
20253
20254 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20255
20256 Implement automatic module license checking according to new GNU
20257 guidelines.
20258
20259 * grub-core/kern/dl.c (grub_dl_check_license): New function.
20260 (grub_dl_load_core): Use grub_dl_check_license.
20261 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
20262 (GRUB_MOD_LICENSE): Likewise.
20263 (GRUB_MOD_DUAL_LICENSE): Likewise.
20264 All modules updated.
20265
20266 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20267
20268 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
20269 reserved_first_sector to 1. btrfs reserves plenty of space for boot
20270 loaders.
20271 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
20272
20273 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20274
20275 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
20276
20277 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20278
20279 * util/grub-fstest.c (read_file): Report GRUB error if file opening
20280 failed.
20281
20282 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20283
20284 * grub-core/kern/file.c (grub_file_open): Don't take into account the
20285 parenthesis in the middle of the filename.
20286
20287 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20288
20289 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
20290 rather than trying to put initrd way too high.
20291 Reported by: Ryan Lortie <desrt@desrt.ca>
20292
20293 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20294
20295 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
20296 improperly removed string.
20297
20298 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20299
20300 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
20301 is_disk.
20302 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
20303 (open_device) Likewise.
20304 (grub_util_biosdisk_close): Likewise.
20305 Reported by: Mark Korenberg.
20306
20307 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
20308
20309 * util/grub-mkconfig_lib.in: Add missing quotes.
20310
20311 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
20312
20313 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
20314 is NULL.
20315
20316 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20317
20318 Dynamically count the number of lines for the lower banner.
20319
20320 * grub-core/normal/menu_entry.c (per_term_screen): New member
20321 num_entries.
20322 (print_down): Use num_entries.
20323 (update_screen): Likewise.
20324 (grub_menu_entry_run): Set num_entries.
20325 * grub-core/normal/menu_text.c (menu_viewer_data): New member
20326 num_entries.
20327 (grub_print_message_indented): Move real part to ...
20328 (grub_print_message_indented_real): ... here. Additional argument
20329 dry_run.
20330 (draw_border): Additional argument num_entries.
20331 (print_message): Additional argument dry_run.
20332 (print_entries): Receive menu viewer data.
20333 (grub_menu_init_page): New argment num_entries.
20334 (menu_text_set_chosen_entry): Use num_entries.
20335 (grub_menu_try_text): Likewise.
20336 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
20337 All users updated.
20338 (grub_ucs4_count_lines): New function.
20339 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
20340 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
20341 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
20342 (grub_term_border_height): Likewise.
20343 (grub_term_num_entries): Likewise.
20344
20345 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20346
20347 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
20348 Remove now unused string.
20349
20350 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20351
20352 * docs/grub-dev.texi (Finding your way around): Update for 1.99
20353 build system.
20354 (Getting started): GRUB is developed in Bazaar now, not Subversion.
20355
20356 (Comment): Fix typo.
20357 (Getting started): General copy-editing.
20358 (Typical Development Experience): Likewise.
20359 (Error Handling): Likewise.
20360 (Video API): Likewise.
20361
20362 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20363
20364 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
20365 throughout.
20366
20367 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20368
20369 * util/grub-mkimage.c (main): Handle special naming of yeeloong
20370 directory.
20371
20372 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20373
20374 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
20375 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
20376 "development".
20377
20378 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20379
20380 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
20381 grub_strcpy since the lines aren't necessarily 0-terminated.
20382
20383 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20384
20385 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
20386 root on legacy.
20387
20388 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20389
20390 * grub-core/commands/probe.c (options): Argument to set isn't optional.
20391 (GRUB_MOD_INIT): DEVICE isn't optional.
20392
20393 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20394
20395 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
20396 word on new line if it's too long anyway. Fixes a hang.
20397
20398 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20399
20400 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
20401 const.
20402 * util/grub-setup.c (main): Reuse md device name if available.
20403 * util/raid.c (grub_util_raid_getmembers): Receive device name and
20404 not GRUB name as argument.
20405 Based on patch by: Florian Wagner <fwagner>.
20406
20407 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20408
20409 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
20410 Place mbi on low memory for better compatibility.
20411
20412 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20413
20414 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
20415
20416 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20417 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20418
20419 * autogen.sh: Ensure that collate and ctype locale is C.
20420 * conf/Makefile.common: Likewise.
20421
20422 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20423
20424 * grub-core/normal/menu.c: Add missing include.
20425
20426 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20427
20428 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
20429
20430 2011-04-08 Martin Zuther <mzuther@mzuther.de>
20431
20432 * util/grub-mkconfig.in: Ignore emacsen backup.
20433
20434 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20435
20436 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
20437 on open.
20438 (grub_util_biosdisk_close): Likewise.
20439
20440 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20441
20442 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
20443 const attribute and use grub_isdigit.
20444
20445 2011-04-06 Andrey <dev_null@ukr.net>
20446
20447 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
20448 gcc warning.
20449
20450 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20451
20452 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
20453 useful grub_dprintf's.
20454
20455 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20456
20457 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
20458
20459 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20460
20461 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
20462
20463 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20464
20465 Output errors if theme loading failed.
20466
20467 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
20468 grub_gfxterm_fullscreen on error paths to ...
20469 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
20470 theme loading error.
20471
20472 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20473
20474 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
20475 space for older compilers.
20476 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
20477
20478 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20479
20480 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
20481 and report them as not RAID members since they are useless for GRUB.
20482 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
20483
20484 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20485
20486 Increase LVM implementation robustness in order not to crash on
20487 configurations like pvmove. Previously code assumed that in some places
20488 only lvs or only pvs are used whereas it seems that they are used
20489 interchangeably.
20490
20491 * grub-core/disk/lvm.c (read_node): New function.
20492 (read_lv): Use read_node.
20493 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
20494 Match volumes only at the end when all lvs are found. Take both
20495 pvs (first) and lvs (second) into account.
20496 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
20497 mirror_* into node_*. All users updated.
20498 (grub_lvm_stripe): Merge this ...
20499 (grub_lvm_mirror): ... and this ...
20500 (grub_lvm_node): ... into this. All users updated.
20501
20502 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20503
20504 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
20505 of function to allow further scanning for LVMs.
20506
20507 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20508
20509 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
20510 on failed seek as it breaks open fd reusage.
20511
20512 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20513
20514 * util/grub-install.in: Add a recommendation to use --recheck before
20515 reporting bugs.
20516
20517 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20518
20519 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
20520 are obtained.
20521
20522 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20523
20524 GRUB developper manual based on existing Internals section and
20525 contributions by the various authors with active copyright assignment.
20526
20527 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
20528 * docs/font_char_metrics.png: New file.
20529 * docs/font_char_metrics.txt: Likewise.
20530 * docs/grub-dev.texi: Likewise.
20531 * docs/grub.texi (Internals): Move from here ...
20532 * docs/grub-dev.texi: ... here.
20533
20534 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20535
20536 Store the loopback device as data on loopback grub_disk structures,
20537 rather than the file it points to. This fixes use of freed memory
20538 if an existing loopback device is replaced.
20539
20540 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
20541 disk->data, not dev->file.
20542 (grub_loopback_read): Adjust file assignment to match.
20543 Fixes Ubuntu bug #742967.
20544
20545 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20546
20547 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
20548 when replacing an existing device.
20549
20550 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
20551
20552 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
20553 memory corruptions.
20554
20555 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
20556 unsigned.
20557 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
20558 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
20559 (grub_jfs_read_inode): Likewise.
20560 (grub_jfs_opendir): Likewise. Remove now useless casts.
20561 (grub_jfs_getent): Likewise.
20562 Make ino a grub_uint32_t rather than int.
20563 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
20564 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
20565 division and module with bit operations.
20566 (grub_jfs_find_file): Make ino a grub_uint32_t.
20567 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
20568
20569 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20570
20571 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
20572 warning. (This was in fact always initialised before use, but GCC
20573 wasn't smart enough to prove that.)
20574 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
20575
20576 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
20577
20578 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
20579 stack alignment.
20580 (efi_wrap_1): Likewise.
20581 (efi_wrap_2): Likewise.
20582 (efi_wrap_3): Likewise.
20583 (efi_wrap_4): Likewise.
20584 (efi_wrap_5): Likewise.
20585 (efi_wrap_6): Likewise.
20586 (efi_wrap_10): Likewise.
20587 Based on information by: Red Hat/Peter Jones.
20588
20589 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20590
20591 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
20592 set-but-not-used variable.
20593
20594 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20595
20596 * docs/grub.texi (Simple configuration): Be more explicit about
20597 GRUB_DEFAULT, and add an example.
20598 Reported by: Leslie Rhorer.
20599
20600 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20601
20602 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
20603 shell".
20604
20605 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20606
20607 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
20608 * util/grub.d/20_linux_xen.in: Likewise.
20609
20610 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20611
20612 * util/grub.d/10_linux.in: Try alternative config filenames where
20613 we parse config file.
20614 * util/grub.d/20_linux_xen.in: Likewise.
20615
20616 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20617
20618 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
20619 * util/grub.d/20_linux_xen.in: Likewise.
20620
20621 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20622
20623 * grub-core/disk/raid.c (insert_array): Add few potentially
20624 useful grub_util_info.
20625 (grub_raid_register): Likewise.
20626
20627 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20628
20629 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
20630 Preserve partition number in mdadm code path.
20631
20632 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20633
20634 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
20635 few potentially useful grub_util_info.
20636
20637 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20638
20639 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
20640
20641 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20642
20643 * docs/grub.texi (default): Use @example rather than nested
20644 itemized lists to avoid breaking gendocs.
20645
20646 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20647
20648 * docs/grub.texi (Future): Update.
20649
20650 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20651
20652 * docs/grub.texi (Environment): New chapter.
20653 (Changes from GRUB Legacy): Link to "Environment block" section for
20654 details of limitations.
20655 (Simple configuration): Likewise. Link to documentation of gfxmode
20656 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
20657 respectively.
20658 (Shell-like scripting): Note that normal variables are stored in the
20659 environment.
20660 (gettext): Link to documentation of lang and locale_dir.
20661 (list_env): New section.
20662 (load_env): New section.
20663 (save_env): New section.
20664
20665 (Reporting bugs): Fix typo.
20666
20667 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20668
20669 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
20670 the example.
20671
20672 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20673
20674 * grub-core/term/at_keyboard.c (set_scancodes)
20675 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
20676
20677 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20678
20679 * docs/grub.texi (Menu-specific commands): Remove some semantics
20680 that were true in GRUB Legacy but not in GRUB 2.
20681 (submenu): New section.
20682 (false): New section.
20683 (read): New section.
20684 (true): New section.
20685
20686 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20687
20688 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
20689
20690 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20691
20692 * docs/grub.texi (Simple configuration): Explain some of the
20693 current limitations of grub-mkconfig.
20694 Reported by: Leslie Rhorer.
20695
20696 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20697
20698 Old macs search for boot.efi rather than for bootia32.efi.
20699
20700 * util/grub-install.in: Copy bootia32.efi to boot.efi.
20701 * util/grub-mkrescue.in: Likewise.
20702 Suggested by: Peter Jones.
20703
20704 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20705
20706 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
20707
20708 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20709
20710 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
20711 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
20712 (grub_lvm_mirror): New struct.
20713 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
20714 (grub_lvm_iterate): Iterate only visible volumes.
20715 (grub_lvm_read): Factor out to ..
20716 (read_lv): ... this. Support mirrors.
20717 (grub_lvm_read): New wrapper function.
20718 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
20719 stripped or mirrored.
20720
20721 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20722
20723 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
20724
20725 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20726
20727 * docs/grub.texi (loopback): New section.
20728
20729 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20730
20731 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
20732 removed -p option.
20733
20734 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20735
20736 * docs/grub.texi (BIOS installation): New section, partly based on
20737 previous text in other sections.
20738 (Installing GRUB using grub-install): Replace BIOS discussion with a
20739 cross-reference.
20740 (Images): Likewise.
20741
20742 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20743
20744 * grub-core/kern/emu/hostdisk.c (find_partition_start)
20745 [HAVE_DIOCGDINFO]: Add safety checks.
20746
20747 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20748
20749 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
20750 per default compiled in kernel and prior to 8.0 isn't shipped at all.
20751
20752 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20753
20754 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
20755 real_sb->size is zero (e.g. RAID-0), get the disk size from
20756 real_sb->data_size instead.
20757 Fixes Ubuntu bug #743136.
20758
20759 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20760
20761 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
20762 printf clauses for printing size and start.
20763
20764 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20765
20766 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
20767 Reported and tested by: Timothy Nikkel.
20768
20769 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20770
20771 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
20772 (dirty_region_add_real): ... this.
20773 (dirty_region_add): Don't discard margin refresh when performing
20774 scheduled repaint.
20775
20776 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20777
20778 * grub-core/lib/relocator.c (allocate_regstart)
20779 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
20780 terminals are capabple of malloc-free operation.
20781 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20782 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20783
20784 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
20785
20786 * util/grub-setup.c: Copy the partition table zone if floppy support
20787 is disabled, even if no partition table is found.
20788
20789 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
20790 during POST if an invalid partition table is contained in the PBR
20791 of the active partition when GRUB is installed to a partition.
20792
20793 2011-03-28 Colin Watson <cjwatson@debian.org>
20794
20795 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
20796 comment.
20797
20798 2011-03-28 Colin Watson <cjwatson@debian.org>
20799
20800 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
20801 to be specific about what kind of RAID device we're scanning for.
20802
20803 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
20804
20805 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
20806 return freed string.
20807
20808 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20809
20810 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
20811
20812 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20813
20814 Use libgeom on FreeBSD to detect partitions.
20815
20816 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
20817 (grub-mkrelpath): Likewise.
20818 (grub-script-check): Likewise.
20819 (grub-editenv): Likewise.
20820 (grub-mkpasswd-pbkdf2): Likewise.
20821 (grub-fstest): Likewise.
20822 (grub-mkfont): Likewise.
20823 (grub-mkdevicemap): Likewise.
20824 (grub-probe): Likewise.
20825 (grub-setup): Likewise.
20826 (grub-ofpathname): Likewise.
20827 (grub-mklayout): Likewise.
20828 (example_unit_test): Likewise.
20829 (grub-menulst2cfg): Likewise.
20830 * grub-core/Makefile.core.def (grub-emu): Likewise.
20831 (grub-emu-lite): Likewise.
20832 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
20833 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
20834 define HAVE_DIOCGDINFO.
20835 (follow_geom_up) [FreeBSD]: New function.
20836 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
20837 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
20838 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
20839 unconditionally of HAVE_DIOCGDINFO.
20840
20841 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20842
20843 Fix FreeBSD compilation problem.
20844
20845 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
20846 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
20847
20848 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
20849
20850 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
20851 Switch back to page zero before loading a kernel, since some kernel
20852 drivers expect that.
20853 Thanks to: Felix Kuehling.
20854
20855 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20856
20857 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
20858 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
20859 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
20860
20861 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20862
20863 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
20864 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
20865
20866 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20867
20868 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
20869 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
20870 malloc is disabled.
20871
20872 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20873
20874 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
20875 for modules headers when counting the needed allocation size.
20876
20877 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20878
20879 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
20880 if no ASCII character is found to prevent crash.
20881
20882 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
20883
20884 * grub-core/video/bitmap.c (match_extension): Ignore case.
20885
20886 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20887
20888 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
20889
20890 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20891
20892 * grub-core/script/parser.y: Declare "time" as valid argument.
20893
20894 2011-03-23 Peter Jones <pjones@redhat.com>
20895
20896 Fix incorrect assert failure reporting.
20897
20898 * grub-core/tests/example_functional_test.c (example_test): Add
20899 a failure comment.
20900 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
20901 (failure_start): ...this. Check that malloc succeeded.
20902 Don't call xvasprintf. Return failure struct.
20903 (failure_append_vtext): New function.
20904 (failure_append_text): Likewise.
20905 (add_failure): Likewise.
20906 (grub_test_assert_helper): Likewise.
20907 * include/grub/test.h (grub_test_assert_helper): New declaration.
20908 (grub_test_assert): Macro rewritten.
20909
20910 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20911
20912 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
20913
20914 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20915
20916 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
20917
20918 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20919
20920 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
20921 into GRUB-style one.
20922
20923 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20924
20925 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
20926 error and not grub_errno.
20927 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
20928
20929 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20930
20931 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
20932 GRUB_USB_SPEED_NONE in case of failure and not the error code.
20933
20934 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20935
20936 * grub-core/efiemu/i386/pc/cfgtables.c
20937 (grub_machine_efiemu_init_tables): Make declaration a prototype.
20938 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
20939 (grub_xnu_unlock): Likewise.
20940 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
20941
20942 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20943
20944 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
20945 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
20946 * grub-core/commands/hashsum.c (aliases): Likewise.
20947 * grub-core/commands/setpci.c (pci_registers): Likewise.
20948 * grub-core/disk/usbms.c (attach_hook): Likewise.
20949 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
20950 (zio_checksum_table): Likewise.
20951 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
20952 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
20953 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
20954 * grub-core/lib/relocator.c (leftovers): Likewise.
20955 (extra_blocks): Likewise.
20956 * grub-core/loader/i386/bsd.c (relocator): Likewise.
20957 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
20958 (modules_last): Likewise.
20959 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
20960 (devices): Likewise.
20961 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
20962 (modules_last): Likewise.
20963 * grub-core/normal/auth.c (users): Likewise.
20964 * grub-core/normal/context.c (initial_menu): Likewise.
20965 (current_menu): Likewise.
20966 * grub-core/normal/crypto.c (crypto_specs): Likewise.
20967 * grub-core/term/serial.c (grub_serial_ports): Likewise.
20968 (grub_serial_terminfo_input_template): Likewise.
20969 (grub_serial_terminfo_output_template): Likewise.
20970 (grub_serial_terminfo_input): Likewise.
20971 (grub_serial_terminfo_output): Likewise.
20972 (registered): Likewise.
20973 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
20974
20975 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20976
20977 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
20978 grub_video_mode_type_t.
20979 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
20980 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
20981 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
20982
20983 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20984
20985 * util/grub-install.in: Correct the x86-64 name as x86_64.
20986
20987 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
20988
20989 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
20990 initial chunk read from the kernel always includes GRUB's multiboot
20991 header, which is now outside the first sector.
20992
20993 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
20994
20995 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
20996 cached mmap_size, so that this works correctly when called multiple
20997 times.
20998 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
20999
21000 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
21001
21002 * docs/grub.texi (Simple configuration): Tidy up formatting.
21003
21004 2011-03-07 Szymon Janc <szymon@janc.net.pl>
21005
21006 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
21007 Set-but-not-used variable removed.
21008
21009 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
21010
21011 Workaround yet another IEEE1275 bug.
21012
21013 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
21014 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
21015 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
21016 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
21017 is set.
21018 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
21019 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
21020
21021 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
21022
21023 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
21024 error.
21025
21026 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
21027
21028 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
21029 empty, since in that case we can only generate either nothing or a
21030 syntactically invalid configuration file.
21031 Reported by: Michal Suchanek. Fixes Debian bug #612898.
21032
21033 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
21034
21035 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
21036 (Making a GRUB bootable CD-ROM): Likewise.
21037 (Invoking grub-mkrescue): New section.
21038 Reported by: Yann Dirson. Fixes Debian bug #612585.
21039
21040 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
21041
21042 * util/grub-install.in: Remove unnecessary brackets from tr
21043 arguments.
21044 * util/grub.d/10_hurd.in: Likewise.
21045 * util/grub.d/10_kfreebsd.in: Likewise.
21046 * util/grub.d/10_linux.in: Likewise.
21047 * util/grub.d/20_linux_xen.in: Likewise.
21048 Reported by: Jamie Heilman. Fixes Debian bug #612564.
21049
21050 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
21051
21052 * include/grub/file.h (not_easly_seekable): Rename to ...
21053 (not_easily_seekable): ... this. Update all users.
21054
21055 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
21056
21057 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
21058 grub-mkrescue.
21059
21060 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
21061
21062 * util/grub-mkimage.c (generate_image): Refuse to create the images
21063 bigger than the actual flash (512K) in Loongson machines. 512K is also
21064 the biggest chip supported by them.
21065
21066 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21067
21068 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
21069
21070 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
21071
21072 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
21073 super_offset field.
21074
21075 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21076
21077 * util/grub-install.in: Ignore install device on platforms
21078 where it doesn't make sense. Always use UUIDs except on pc, efi and
21079 sparc64.
21080 Reported by: Daniel Kahn Gillmor.
21081
21082 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21083
21084 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
21085
21086 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21087
21088 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
21089 (iterate_real): Don't rely on partition being non-NULL.
21090
21091 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21092
21093 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
21094 supported platforms. Put a compile time assert for this rather than
21095 generate a warning with 32-bit shift.
21096
21097 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21098
21099 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
21100 logical expression more readable.
21101
21102 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21103
21104 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
21105 even if some elements have a name.
21106 Reported by: Alexander GQ Gerasiov.
21107
21108 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21109
21110 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
21111 path unreadable if `grub-probe -t abstraction' fails, for example if
21112 memberlist fails on an LVM volume group.
21113 Reported by: Darius Jahandarie.
21114
21115 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21116
21117 * docs/grub.texi (Simple configuration): Document
21118 GRUB_PRELOAD_MODULES.
21119
21120 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
21121
21122 * .bzrignore: Remove nonexistent grub-pbkdf2.
21123
21124 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
21125
21126 * configure.ac: Bump version to 1.99~rc1.
21127
21128 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
21129
21130 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
21131 for safety.
21132
21133 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21134
21135 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
21136 module.
21137
21138 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21139
21140 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
21141
21142 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21143
21144 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
21145 diskdevid.
21146
21147 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21148
21149 Fix compilation on cygwin.
21150
21151 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
21152 -R .drectve on cygwin.
21153 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
21154 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
21155 (COND_CYGWIN): New condition.
21156 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
21157 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
21158 not @TARGET_OBJ2ELF@.
21159 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
21160 type to determine whether aux is to be used.
21161
21162 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21163
21164 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
21165 realpath'ed device string.
21166 Handle floppy (somewhat).
21167 Issue error in unknown case rather than garbage.
21168 Reported by: Axel Beckert.
21169
21170 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21171
21172 * util/grub.d/00_header.in (load_video): Handle the case when no video
21173 drivers available.
21174 Thanks to: Axel Beckert.
21175
21176 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21177
21178 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
21179 variable. Fixes problem on big endian platforms.
21180
21181 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21182
21183 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
21184 It doesn't work well there.
21185
21186 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21187
21188 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
21189 warning.
21190 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
21191 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
21192 counter.
21193
21194 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21195
21196 Use alias->path rather than buggy "canon".
21197
21198 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
21199 (ofdisk_hash_add): New argument curcan. All users updated.
21200
21201 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21202
21203 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
21204
21205 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21206
21207 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
21208 loadmask before doing any calculations. Use correct type for offset.
21209 (grub_linux_load64): Likewise.
21210
21211 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21212
21213 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
21214 with NULL.
21215 (console_grub_equivalences_unshift): Likewise.
21216 Reported by: Daniel Dehennin.
21217
21218 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21219
21220 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
21221 (set_env_limn_ro): Likewise.
21222 (GRUB_MOD_INIT): Likewise.
21223 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
21224 ARRAY_SIZE while on it.
21225 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
21226 * grub-core/normal/context.c (grub_env_export): Move from here ...
21227 * grub-core/kern/env.c (grub_env_export): ... here.
21228 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
21229 prefix.
21230 * grub-core/kern/main.c (grub_main): Export root and prefix.
21231 * include/grub/env.h (grub_env_export): Export.
21232 Reported by: Seth Goldberg.
21233
21234 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21235
21236 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21237 Take into account space used by ELF sections and multiboot palette.
21238 Reported by: Grégoire Sutre.
21239
21240 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21241
21242 * BUGS: New file.
21243
21244 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21245
21246 Pass more appropriate video id to Linux.
21247
21248 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
21249 grub_video_get_driver_id and variable gfxpayloadforcelfb to
21250 fill have_vga.
21251 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
21252 shift params->lfb_size.
21253 * include/grub/i386/linux.h: Make an enume out of have_vga values.
21254
21255 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21256
21257 * util/grub-menulst2cfg.c: Add missing include of misc.h.
21258
21259 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21260
21261 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
21262 separator and pass bootpath/devid even if only one of them is available.
21263 Reported by: Seth Goldberg.
21264
21265 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21266
21267 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
21268 implementations bug on them.
21269
21270 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
21271 memory.
21272 (filter_memory_map): Likewise.
21273
21274 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21275
21276 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
21277 Reported by: nebuchadnezzar.
21278
21279 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21280
21281 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
21282 Reported by: nebuchadnezzar.
21283
21284 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21285
21286 Submenu default support.
21287
21288 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
21289 auto_boot. All users updated.
21290 Declared static.
21291 Handle chosen and default with submenus.
21292 (grub_menu_execute_with_fallback): Declared static.
21293 Don't notify failure if autobooted. Upper level does it.
21294 (menuentry_eq): New function.
21295 (get_entry_number): Use menuentry_eq.
21296 (show_menu): New parameter "autobooted". All users updated.
21297 (grub_show_menu): Likewise.
21298 * include/grub/normal.h (grub_show_menu): Likewise.
21299 * include/grub/menu.h (grub_menu_execute_entry): Removed.
21300 (grub_menu_execute_with_fallback): Likewise.
21301
21302 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21303
21304 * util/grub-mklayout.c (usage): Update help text.
21305
21306 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21307
21308 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
21309
21310 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21311
21312 * util/grub-menulst2cfg.c (main): Trim the line.
21313
21314 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21315
21316 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
21317 (grub_machine_init): Don't check amount of low memory as reportedly
21318 INT 12h can be broken and if low memory is too low we wouldn't have
21319 gotten into grub_machine_init anyway.
21320
21321 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21322
21323 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
21324 (grub_machine_mmap_iterate): Take low memory into account
21325
21326 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21327
21328 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
21329 badfs.
21330 Reported by: TiCPU.
21331
21332 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21333
21334 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
21335 members errors.
21336
21337 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21338
21339 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
21340 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
21341
21342 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21343
21344 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
21345 openbsd and netbsd types being in part_bsd module.
21346
21347 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21348
21349 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
21350 (_FILE_OFFSET_BITS): Likewise.
21351 Reported by: Seth Goldberg.
21352
21353 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
21354
21355 * configure.ac: Check for libdevmapper header.
21356
21357 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21358
21359 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
21360 avoid aliasing.
21361 (fzap_lookup): Likewise.
21362 (dnode_get): Likewise.
21363 (make_mdn): Likewise.
21364 (zfs_mount): Likewise.
21365 (fzap_iterate): Use temporary pointer to avoid aliasing.
21366 (grub_zfs_read): Likewise.
21367 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
21368 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
21369 pointers to avoid aliasing.
21370 (grub_cmd_xnu_kernel64): Likewise.
21371 (grub_xnu_load_driver): Likewise.
21372
21373 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21374
21375 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
21376 aliasing warning.
21377 (grub_cmd_terminal_output): Likewise.
21378 Reported and tested by: Grégoire Sutre.
21379
21380 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21381
21382 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
21383 warning.
21384 Reported and tested by: Grégoire Sutre.
21385
21386 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21387
21388 * configure.ac: Do CPU substitution even if it's specified explicitly.
21389 Reported and tested by: Alain Greppin.
21390
21391 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21392
21393 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
21394 Reported and tested by: Alain Greppin.
21395
21396 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21397
21398 Satisfy some bison versions need for inttypes.h.
21399
21400 * grub-core/lib/posix_wrap/inttypes.h: New file.
21401 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
21402 (int16_t): Likewise.
21403 (int32_t): Likewise.
21404 (int64_t): Likewise.
21405 Reported and tested by: Alain Greppin.
21406
21407 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21408
21409 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
21410 Silence spurious warning.
21411 Reported and tested by: Alain Greppin.
21412
21413 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21414
21415 * docs/grub.texi (Support automatic decompression): Update with xz
21416 decompression support.
21417
21418 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21419
21420 Improve loaders' kernel command line handling.
21421
21422 * grub-core/lib/cmdline.c: New file.
21423 * include/grub/lib/cmdline.h: Likewise.
21424 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
21425 grub_create_loader_cmdline to create kernel command line.
21426 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
21427 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
21428 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
21429 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
21430 (linux): Add lib/cmdline.c on common.
21431
21432 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21433
21434 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
21435 inopos might be unaligned.
21436
21437 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21438
21439 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
21440 endian transformations.
21441 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21442 Based on report by: Doug Nazar.
21443
21444 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
21445
21446 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
21447 array->members[i].start_sector.
21448 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
21449
21450 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21451
21452 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
21453 Reported and tested by: Grégoire Sutre.
21454
21455 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21456
21457 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
21458 avoid causing test failures by clearing the screen.
21459
21460 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21461
21462 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
21463 Fix prefix check to handle the case where dir ends with a slash
21464 (most significantly, "/" itself).
21465 Reported by: Michael Vogt.
21466
21467 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21468
21469 Run terminfo_cls on initing terminfo output to clear the screen and
21470 move the cursor to (0,0).
21471
21472 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
21473 Call grub_terminfo_output_init.
21474 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
21475 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
21476 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
21477
21478 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21479
21480 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
21481 only when needed.
21482
21483 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21484
21485 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
21486 CTRL.
21487
21488 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21489
21490 The E820 type 5 is BADRAM, not EXEC_CODE.
21491
21492 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21493 (GRUB_E820_BADRAM): New define.
21494 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
21495 into reserved. Propagate BADRAM.
21496 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21497 (GRUB_E820_BADRAM): New define.
21498
21499 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21500
21501 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
21502 Ignore the memory post-4G.
21503 (grub_relocator_firmware_alloc_region): Additional debug statement.
21504
21505 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21506
21507 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
21508 names.
21509 Reported by: David Pravec.
21510
21511 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21512
21513 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
21514 BIOSes.
21515
21516 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21517
21518 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
21519 Prevent overflow.
21520 (grub_reed_solomon_recover): Likewise.
21521
21522 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21523
21524 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
21525
21526 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21527
21528 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
21529 variable.
21530
21531 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
21532
21533 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
21534 descriptions of extract_legacy_entries_source and
21535 extract_legacy_entries_configfile.
21536 Reported by: Seung Soo, Ha.
21537
21538 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
21539
21540 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
21541 on devices that do not implement function 0.
21542
21543 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
21544
21545 * grub-core/fs/hfsplus.c: Make parent unsigned.
21546 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
21547 overflows.
21548 (grub_hfsplus_cmp_extkey): Likewise
21549
21550 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21551
21552 * util/grub-install.in: Correctly use bootloader_id and not
21553 GRUB_DISTRIBUTOR on efibootmgr line.
21554
21555 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21556
21557 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
21558
21559 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
21560
21561 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
21562 Xen and reorder menu item wording to make it clearer that this entry
21563 will launch Xen. Print separate messages when loading Xen and
21564 Linux.
21565
21566 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21567
21568 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
21569 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
21570 loop in case of incorrect amiga partmap.
21571
21572 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21573
21574 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
21575 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
21576 Reported by:EHeM.
21577
21578 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21579
21580 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
21581 spurious warning.
21582 Reported by: crocket
21583
21584 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21585
21586 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
21587 Preload EFIemu.
21588 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
21589
21590 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21591
21592 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
21593 is loaded
21594 (grub_cmd_xnu_kextdir): Likewise.
21595 (grub_cmd_xnu_splash): Likewise.
21596
21597 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21598
21599 Avoid using Reed-Solomon with 0 redundancy.
21600
21601 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
21602 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
21603 or 0 redundancy.
21604 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
21605 (grub_reed_solomon_recover): Likewise.
21606
21607 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21608
21609 Don't use disk subsystem in freebsd_boot.
21610
21611 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
21612 (freebsd_biosdev): Likewise.
21613 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
21614 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
21615
21616 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
21617
21618 Handling of files of unknown size is currently limited. They can't be
21619 used e.g. for initrd or modules. Moreover gzip handling of not
21620 easily seekable files is buggy. Disable unknown file size for now. May
21621 be inefficient but works.
21622
21623 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
21624 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
21625
21626 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
21627
21628 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
21629 floppy probe.
21630
21631 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
21632
21633 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
21634
21635 2010-12-25 Shea Levy <shlevy>
21636
21637 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
21638
21639 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21640
21641 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
21642 Windows Server 2008.
21643 Reported by: Devin Giddings.
21644
21645 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21646
21647 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
21648 writing an error message because of async power management.
21649 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
21650 (grub_reboot): Likewise.
21651
21652 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
21653
21654 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
21655 keep unit tests from failing when they shouldn't.
21656
21657 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21658
21659 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
21660 previous patch increased the size of the RS code by 20 bytes (at
21661 least with gcc-4.4), so increase this by 20 bytes to match.
21662 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
21663
21664 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21665
21666 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
21667 scratch area. Make sure to initialise chosen in standalone mode as
21668 well as non-standalone.
21669 Reported by: Robert Hooker and Andy Whitcroft.
21670 Tested by: Andy Whitcroft.
21671
21672 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21673
21674 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
21675 constructing a new unescaped string and passing it to grub_xputs in
21676 one go, rather than passing characters to grub_printf one at a time.
21677
21678 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21679
21680 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
21681 initialising utf16.
21682
21683 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21684
21685 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
21686 comment. Add an extra layer of quotation, requiring the output of
21687 this function to be used in a printf format string.
21688 (gettext_printf): New function.
21689 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
21690 Extract translatable strings from here-documents and use a temporary
21691 variable instead, so that xgettext can find them.
21692 * util/grub.d/10_kfreebsd.in: Likewise.
21693 * util/grub.d/10_linux.in: Likewise.
21694 * util/grub.d/20_linux_xen.in: Likewise.
21695
21696 * po/grub.d.sed: New file.
21697 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
21698 arguments. Set c-format flags on all strings extracted from
21699 util/grub.d/ (xgettext refuses to include these itself for strings
21700 it extracted from a shell file, but these really are c-format).
21701
21702 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
21703
21704 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
21705 Avoid next pointing to nowhere.
21706
21707 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21708
21709 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
21710 rather than assuming than rootblock is exactly in the middle.
21711 (grub_affs_label): Likewise.
21712
21713 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21714
21715 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
21716 reserved_first_sector to 0.
21717 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
21718 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
21719 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
21720
21721 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21722
21723 Fix handling of UTF-16 UDF labels.
21724
21725 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
21726 (read_string): .. here.
21727 (grub_udf_label): Use read_string.
21728
21729 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
21730
21731 * grub-core/normal/menu_entry.c (run): Execute commands from menu
21732 editor under argument scope.
21733 Reported by: Jordan Uggla
21734
21735 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21736
21737 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
21738
21739 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
21740
21741 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
21742 line, and other keys scroll an entire page (previous handling was
21743 for \r and \n to scroll a page and other keys to scroll two lines).
21744
21745 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21746
21747 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21748 Set ptrdest to correct get_physical_target_address rather than
21749 incorrect get_virtual_current_address.
21750
21751 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
21752
21753 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
21754 correct cat to grub_uint8_t * rather than grub_uint32_t *.
21755
21756 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21757
21758 * .bzrignore: Ignore grub-core/rs_decoder.S.
21759
21760 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21761
21762 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
21763 .mo/.mo.gz opening sequence to ...
21764 (grub_mofile_open_lang): ... here.
21765 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
21766 * util/grub.d/00_header.in (grub_lang): Include country part of
21767 locale.
21768 Reported by: Mario Limonciello.
21769
21770 2010-12-09 Robert Millan <rmh@gnu.org>
21771
21772 * NEWS: Document addition of ZFS support.
21773
21774 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
21775
21776 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
21777 rather than `/ 2', as the latter requires -Wa,--divide which would
21778 require bumping our minimum binutils version.
21779
21780 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
21781
21782 * util/grub-script-check.c (main): Print script line number on
21783 error.
21784
21785 2010-12-01 Robert Millan <rmh@gnu.org>
21786
21787 * grub-core/fs/zfs/zfs.c: New file.
21788 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
21789 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
21790 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
21791 * grub-core/fs/zfs/zfsinfo.c: Likewise.
21792
21793 * include/grub/zfs/dmu.h: Likewise.
21794 * include/grub/zfs/dmu_objset.h: Likewise.
21795 * include/grub/zfs/dnode.h: Likewise.
21796 * include/grub/zfs/dsl_dataset.h: Likewise.
21797 * include/grub/zfs/dsl_dir.h: Likewise.
21798 * include/grub/zfs/sa_impl.h: Likewise.
21799 * include/grub/zfs/spa.h: Likewise.
21800 * include/grub/zfs/uberblock_impl.h: Likewise.
21801 * include/grub/zfs/vdev_impl.h: Likewise.
21802 * include/grub/zfs/zap_impl.h: Likewise.
21803 * include/grub/zfs/zap_leaf.h: Likewise.
21804 * include/grub/zfs/zfs.h: Likewise.
21805 * include/grub/zfs/zfs_acl.h: Likewise.
21806 * include/grub/zfs/zfs_znode.h: Likewise.
21807 * include/grub/zfs/zil.h: Likewise.
21808 * include/grub/zfs/zio.h: Likewise.
21809 * include/grub/zfs/zio_checksum.h: Likewise.
21810
21811 * Makefile.util.def: Build ZFS into libgrubmods.
21812 * grub-core/Makefile.core.def: Build zfs.mod.
21813
21814 2010-11-30 Szymon Janc <szymon@janc.net.pl>
21815
21816 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
21817 variable.
21818 * grub-core/commands/wildcard.c (match_files): Likewise.
21819
21820 2010-11-30 Robert Millan <rmh@gnu.org>
21821
21822 * grub-core/loader/i386/bsd.c
21823 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
21824 whether kernel is loaded using grub_loader_is_loaded(), rather
21825 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
21826 certain error conditions.
21827
21828 2010-11-30 Robert Millan <rmh@gnu.org>
21829
21830 * grub-core/commands/echo.c: Include `<grub/term.h>'.
21831 (grub_cmd_echo): Call grub_refresh() after printing a message.
21832
21833 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
21834
21835 Avoid using tricks for initialising endian variables.
21836
21837 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
21838 Make const.
21839 (GRUB_MOD_INIT): Don't byte-swap.
21840 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
21841 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
21842 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
21843 (grub_swap_bytes32_compile_time): Likewise.
21844 (grub_cpu_to_le32_compile_time): Likewise.
21845 (grub_cpu_to_le16_compile_time): Likewise.
21846
21847 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
21848
21849 * util/grub-setup.c (setup): Stop recommending --force. People who
21850 understand the dangers of blocklists are able to find this option
21851 anyway and the ones who don't shouldn't use it anyway.
21852
21853 2010-11-26 Robert Millan <rmh@gnu.org>
21854
21855 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
21856 Update all users.
21857
21858 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
21859
21860 Fix LVM-on-RAID probing.
21861
21862 * util/grub-probe.c (probe): Remember which disk was detected as
21863 RAID (perhaps an LVM physical volume). Use that disk's raidname
21864 rather than that of the top-level disk.
21865
21866 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
21867
21868 Fix cmdline argument quotes for setparams command of menuentry
21869 definitions.
21870
21871 * grub-core/commands/menuentry.c (setparams_prefix): Use single
21872 quotes for arguments.
21873 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
21874 grub_strchrsub function instead.
21875
21876 * include/grub/misc.h (grub_strchrsub): New function.
21877
21878 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
21879
21880 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
21881 effort by skipping "." and ".." entries up-front.
21882 Suggested by: Michael Lazarev.
21883
21884 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
21885
21886 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
21887 ldflags to ldadd, to fix link line ordering.
21888 (none_decompress): Likewise.
21889
21890 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
21891
21892 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
21893 platforms.
21894 (grub-emu-lite): Remove kern/emu/cache.S.
21895
21896 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21897
21898 * util/deviceiter.c (compare_devices): If the by-id link for a
21899 device couldn't be resolved, fall back to sorting by the by-id link
21900 rather than segfaulting.
21901 Reported and tested by: Daniel Mierswa.
21902
21903 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21904
21905 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
21906 ldflags, to fix link line ordering.
21907
21908 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21909
21910 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
21911 linkers are picky about this.
21912
21913 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21914
21915 * grub-core/Makefile.am (command.lst): Adjust sed expression
21916 ordering so that extended and priority commands aren't treated as
21917 ordinary commands.
21918
21919 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21920
21921 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
21922 Remove byte-swapping function calls, which are not valid in
21923 structure initialisers.
21924 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
21925 non-const.
21926 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
21927 grub_gpt_partition_type_bios_boot.
21928
21929 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
21930
21931 Fix test program build on GNU/kFreeBSD.
21932
21933 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
21934 $(LIBNVPAIR)' library dependencies.
21935
21936 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
21937
21938 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
21939
21940 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
21941
21942 * util/grub-install.in: Remove excessive quoting that broke
21943 installations to RAID devices.
21944
21945 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
21946
21947 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
21948 bootloader version instead of 0.
21949
21950 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
21951
21952 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
21953 warning.
21954
21955 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
21956
21957 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
21958 retrieve the metadat sector if size isn't known.
21959 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21960
21961 2010-11-18 Robert Millan <rmh@gnu.org>
21962
21963 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
21964 with grub_memcmp().
21965
21966 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
21967
21968 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
21969 arrow.
21970 Reported by: Jordan Uggla.
21971
21972 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
21973
21974 Make better UTF compliant.
21975
21976 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
21977 sequences as incorrect.
21978 (grub_is_valid_utf8): Likewise.
21979 (grub_utf8_to_ucs4): Likewise.
21980 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
21981 (grub_ucs4_to_utf8_alloc): Likewise.
21982 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
21983
21984 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
21985
21986 Make legacy_source behave like source.
21987
21988 * grub-core/commands/legacycfg.c (legacy_file): Don't call
21989 grub_show_menu.
21990 (grub_cmd_legacy_source): Call grub_show_menu if needed.
21991
21992 2010-11-16 Colin Watson <cjwatson@debian.org>
21993
21994 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
21995 (-Wunused implies -Wunused-parameter, but not vice versa).
21996
21997 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
21998
21999 * configure.ac: Make error messages less confusing by testing for
22000 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
22001 accepted, but produces a diagnostic if something else is wrong).
22002
22003 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
22004
22005 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
22006 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
22007 (now unused).
22008 (grub_keyboard_controller_init)
22009 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
22010 read the initial state since controller isn't inited yet.
22011
22012 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
22013
22014 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
22015 allocate_regbeg may need to create new chunk header.
22016
22017 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22018
22019 Fix quoting in legacy parser.
22020
22021 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
22022 single quotes.
22023 (grub_legacy_parse): Likewise.
22024 Reported by: Jordan Uggla.
22025 Tested by: Jordan Uggla.
22026
22027 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22028
22029 Don't add -lgcc on i386 and x86_64.
22030
22031 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
22032 * conf/Makefile.common (LDADD_KERNEL): Likewise.
22033 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
22034
22035 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22036
22037 * configure.ac: Add -Wno-trampolines when supported.
22038
22039 2010-11-14 Modestas Vainius <modax@debian.org>
22040
22041 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
22042 fakeraid.
22043
22044 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22045
22046 Add generic logical block size support for UDF.
22047
22048 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
22049 (GRUB_UDF_BLKSZ): Removed.
22050 (struct grub_udf_data): New field "lbshift" to hold the logical block
22051 size of the file system in log2 format. All users updated.
22052 (sblocklist): Change type to unsigned.
22053 (grub_udf_mount): Change type of "sblklist" to unsigned.
22054 Move AVDP search before VRS recognition, because the latter requires
22055 knowledge of the logical block size, which is detected during the
22056 former.
22057 Detect and validate logical block size during AVDP search, adding
22058 support for block sizes 512, 1024 and 4096.
22059 Make VRS recognition independent of block size.
22060
22061 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22062
22063 Properly handle deleted files on UDF.
22064
22065 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
22066 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
22067 set.
22068
22069 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22070
22071 Support reading files larger than 2 GiB.
22072
22073 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
22074 "offset" to grub_off_t.
22075 (grub_udf_read_file): Likewise for parameter "pos".
22076
22077 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22078
22079 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
22080 unavailable.
22081 (Simple configuration): Refer to Changes from GRUB Legacy about
22082 save_env availability.
22083
22084 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22085
22086 * util/grub-install.in: Ignore empty partition table detection
22087 instead of trying to include part_ module.
22088
22089 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22090
22091 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
22092 LVM on RAID support.
22093
22094 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22095
22096 Properly define WORDS_BIGENDIAN in wrapped environments.
22097
22098 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
22099 definition.
22100 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
22101
22102 Reported by: Manoel Rebelo Abranches.
22103 Tested by: Manoel Rebelo Abranches.
22104
22105 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22106
22107 * util/grub-mkconfig.in: Fix quoting.
22108
22109 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22110
22111 Support big ext2 files.
22112
22113 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
22114 (grub_ext2_read_block): Support triple indirect blocks.
22115 (grub_ext2_read_file): Use 64-bit types and read size_high.
22116 (grub_ext2_open): Read size_high.
22117 Reported by: Ximin Luo.
22118 Tested by: Manoel Rebelo Abranches.
22119
22120 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22121
22122 * util/grub-install.in: Handle filenames containing spaces.
22123 Reported by: Jordan Uggla.
22124 Tested by: Jordan Uggla.
22125
22126 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22127
22128 * util/grub-mkconfig.in (grub_script_check): New variable.
22129 Use grub_script_check instead of grub-script-check.
22130 Reported by: Barry Jackson.
22131
22132 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22133
22134 * docs/grub.texi (menu): Correct the order.
22135 Reported by: D. Hugh Redelmeier.
22136
22137 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
22138
22139 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
22140 jump.
22141
22142 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
22143
22144 * include/grub/elfload.h (grub_elf32_size): New parameter.
22145 All users updated.
22146 Return maximum segments alignment.
22147 (grub_elf64_size): Likewise.
22148 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
22149 Return maximum segments alignment.
22150 (grub_elf64_size): Likewise.
22151 * grub-core/loader/powerpc/ieee1275/linux.c:
22152 (grub_linux_claimmap_iterate): New function. Uses the
22153 "available" property in the "memory" node for memory allocation
22154 for kernel in the PowerPC loader.
22155 (grub_linux_load32): Correctly find linux entry point offset.
22156 (grub_linux_load64): Likewise.
22157
22158 2010-11-07 Robert Millan <rmh@gnu.org>
22159
22160 On mips-yeeloong, build with -march=loongson2f when this flag is
22161 available (GCC >= 4.4).
22162 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
22163 `-march=mips3'.
22164 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
22165 or otherwise add -march=mips3.
22166
22167 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
22168
22169 Suppress shell expansion on echo '*' and echo "*" like cases.
22170 Reported by: Jordan Uggla.
22171
22172 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
22173 string arguments before shell expansion.
22174 * tests/grub_cmd_echo.in: New testcases.
22175
22176 2010-11-07 Robert Millan <rmh@gnu.org>
22177
22178 * conf/mips-qemu-mips.rmk: Remove stale file from previous
22179 transition.
22180
22181 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
22182
22183 * grub-core/kern/emu/hostdisk.c
22184 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
22185
22186 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22187
22188 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
22189 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
22190 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
22191
22192 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22193
22194 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
22195
22196 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22197
22198 * util/grub-install.in: Replace useless recomendation to pass
22199 --modules with a recomendation to report a bug.
22200
22201 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22202
22203 Properly register serial terminfo.
22204 Reported by: Jordan Uggla
22205
22206 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
22207 const.
22208 (grub_serial_terminfo_output_template): Likewise.
22209 (grub_cmd_serial): Register "serial" with terminfo.
22210 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
22211 grub_serial_terminfo_output.
22212
22213 2010-11-05 Robert Millan <rmh@gnu.org>
22214
22215 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
22216 needed).
22217
22218 2010-11-05 Robert Millan <rmh@gnu.org>
22219
22220 On Yeeloong, pass machine type information to Linux.
22221
22222 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
22223 (LOONGSON_MACHTYPE): New macro, set to
22224 "machtype=lemote-yeeloong-2f-8.9inches".
22225 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
22226 additional argument to Linux.
22227
22228 2010-11-04 Robert Millan <rmh@gnu.org>
22229
22230 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
22231 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
22232 (its SATA disks are detected as slaveless IDE master drives on
22233 kFreeBSD).
22234 Reported by Carsten Aulbert.
22235
22236 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
22237
22238 * util/bin2h.c (main): Fix spelling error in generated output.
22239
22240 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
22241
22242 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
22243
22244 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22245
22246 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
22247 vga= option is supplied.
22248
22249 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22250
22251 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
22252 * util/grub.d/10_kfreebsd.in: Likewise.
22253 * util/grub.d/10_linux.in: Likewise.
22254 * util/grub.d/20_linux_xen.in: Likewise.
22255
22256 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22257
22258 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
22259 argument as an argument to no-argument option.
22260
22261 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22262
22263 * util/grub.d/10_linux.in: Add missing load_video with explicit
22264 GRUB_GFXPAYLOAD_LINUX.
22265
22266 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22267
22268 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
22269
22270 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22271
22272 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
22273 elements with invlid index.
22274 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22275 * grub-core/disk/raid.c (insert_array): Automatically reallocate
22276 members.
22277 * include/grub/raid.h (grub_raid_member): New struct.
22278 (grub_raid_array): Transform devices and start_sector into usage of
22279 grub_raid_member. All users updated
22280 (allocated_devs): New member.
22281
22282 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22283
22284 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
22285 is modified
22286
22287 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
22288
22289 NetBSD build fix for getline function conflict from gnulib.
22290
22291 * Makefile.util.def (libgrubkern.a): New library for grub kernel
22292 components that depend on gnulib headers.
22293 (libgrubmods.a): Renamed from earlier libgrub.a.
22294 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
22295
22296 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22297
22298 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
22299 install rather than creating a broken install.
22300
22301 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22302
22303 * util/grub-setup.c (argp): Remove misleading example of installing to
22304 a partition.
22305
22306 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22307
22308 * util/grub-setup.c (setup): Clarify the error message.
22309
22310 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22311
22312 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
22313
22314 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22315
22316 * grub-core/kern/emu/misc.c
22317 (grub_make_system_path_relative_to_its_root)
22318 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
22319
22320 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22321
22322 * grub-core/kern/emu/misc.c
22323 (grub_make_system_path_relative_to_its_root): Revert r2882.
22324
22325 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
22326
22327 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
22328 useless field head. All users updated.
22329 (free_subchunk): Correct handling of IN_REGION subchunk.
22330
22331 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
22332
22333 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
22334 (Supported kernels): Likewise.
22335
22336 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
22337
22338 Make mktemp invocations portable.
22339
22340 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
22341 exit if mktemp fails.
22342 * tests/grub_script_blockarg.in: Likewise.
22343 * tests/partmap_test.in: Likewise.
22344 * tests/util/grub-shell-tester.in: Likewise.
22345 * tests/util/grub-shell.in: Likewise.
22346 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
22347 * Makefile.am: Likewise, and chain shell commands with `&&'
22348 instead of ';'.
22349 * util/grub-mkrescue.in: Use the same explicit template as above, and
22350 exit if mktemp fails.
22351
22352 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
22353
22354 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
22355 Linux kernel, reported by Dennis Schridde.
22356
22357 2010-10-17 Szymon Janc <szymon@janc.net.pl>
22358
22359 * grub-core/normal/auth.c (grub_auth_check_authentication):
22360 Set-but-not-used variable removed.
22361
22362 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22363
22364 * docs/grub.texi (GNU/Linux): Document APM unavailability with
22365 32-bit linux protocol.
22366
22367 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22368
22369 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
22370 cursor shape for sanity.
22371
22372 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22373
22374 * docs/grub.texi (Installation): Document buggy BIOS install.
22375
22376 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22377
22378 * docs/grub.texi (Installation): Indent.
22379
22380 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22381
22382 * util/grub-setup.c (setup): New parameter allow_floppy.
22383 (arguments): New member allow_floppy.
22384 (argp_parser): Handle --allow-floppy.
22385 (main): Pass allow_floppy.
22386 * util/grub-install.in: New option --allow-floppy passed though to
22387 grub-setup.
22388
22389 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22390
22391 * util/grub-install.in: Handle partitionless disks.
22392
22393 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22394
22395 * util/grub-setup.c (setup): Don't clean blocklists before readability
22396 verfification.
22397
22398 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22399
22400 * docs/grub.texi (Installation): Document embedding zone. Remove
22401 obsolete grub-install example.
22402
22403 2010-10-16 Szymon Janc <szymon@janc.net.pl>
22404
22405 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
22406 Set-but-not-used variable ifdef'ed.
22407 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
22408 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
22409 variable removed.
22410 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
22411 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
22412 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
22413 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
22414 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
22415 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
22416 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
22417 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
22418 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
22419 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
22420 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
22421 Likewise.
22422
22423 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22424
22425 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
22426 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
22427 enum value.
22428
22429 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22430
22431 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
22432 synonym to _S5_. Needed for some DSDTs.
22433
22434 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22435
22436 Userspace ACPI parser debugging.
22437
22438 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
22439 headers and add relevant defines. Don't include standard headers.
22440 (main) [GRUB_DSDT_TEST]: New function.
22441 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
22442 Don't declare functions.
22443
22444 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22445
22446 Remove dead grub_efi_mm_fini.
22447
22448 * grub-core/kern/efi/mm.c (allocated_page): Removed.
22449 (ALLOCATED_PAGES_SIZE): Likewise.
22450 (MAX_ALLOCATED_PAGES): Likewise.
22451 (allocated_pages): Likewise.
22452 (grub_efi_allocate_pages): Don't record allocated pages.
22453 (grub_efi_free_pages): Likewise.
22454 (grub_efi_mm_init): Likewise.
22455 (grub_efi_mm_fini): Removed.
22456
22457 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22458
22459 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
22460 (grub_efi_mm_init): Take into account the memory map size increase.
22461
22462 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22463
22464 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
22465 (serial_hw_put): Wait based on real time rather than port reads. Don't
22466 roken ports.
22467 * include/grub/serial.h (grub_serial_port): New field broken.
22468
22469 2010-10-16 Robert Millan <rmh@gnu.org>
22470
22471 * grub-core/kern/emu/misc.c
22472 (grub_make_system_path_relative_to_its_root): Fix premature return
22473 when processing non-root ZFS filesystems.
22474 Reported by Sergio Talens-Oliag.
22475
22476 2010-10-15 Robert Millan <rmh@gnu.org>
22477
22478 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
22479 guarantee compressed ones are processed first.
22480
22481 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22482
22483 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
22484 grub_efiemu_autocore.
22485
22486 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22487
22488 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
22489 rather than 0x1b.
22490 (grub_console_getkey): Use correct jae opcode rather than ja.
22491
22492 2010-10-12 Robert Millan <rmh@gnu.org>
22493
22494 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
22495 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
22496 variable. All references updated.
22497
22498 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
22499
22500 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
22501
22502 Correctly distinguish mdraid flavours.
22503
22504 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
22505 (insert_array): New argument raid.
22506 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
22507 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
22508 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
22509
22510 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
22511
22512 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
22513 handling of special keys.
22514
22515 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22516
22517 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
22518 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
22519
22520 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22521
22522 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
22523 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
22524 users updated.
22525 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
22526 Use right endpoint when querying descriptor.
22527
22528 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22529
22530 Clear out 0x80 color bit on EFI.
22531 Tested by: decoder
22532 Reported by: decoder and meta tech.
22533
22534 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
22535 (grub_console_setcolorstate): Clear out 0x80 bit.
22536 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
22537 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
22538 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
22539
22540 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22541
22542 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
22543 Set to "auto".
22544
22545 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22546
22547 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
22548 mo_file after freeing.
22549
22550 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22551
22552 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
22553
22554 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22555
22556 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
22557 flags.
22558
22559 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22560
22561 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
22562 usage.
22563
22564 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22565
22566 Put terminfo into core on ieee1275 and yeeloong (needed for console).
22567
22568 * gentpl.py: New groups terminfoinkernel and terminfomodule.
22569 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
22570 and terminfo.h when needed.
22571 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
22572 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
22573 (terminfo): Enable only on terminfokernel.
22574 (extcmd): Likewise.
22575 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
22576 * include/grub/lib/arg.h: Likewise.
22577 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
22578 incorrect usage of ->.
22579
22580 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22581
22582 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
22583 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
22584
22585 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22586
22587 Fix coreboot compilation.
22588
22589 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
22590 Take VBE info into account even if only text is supported.
22591 (fill_vbe_info): Take into account the case when only VGA text
22592 is supported.
22593 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
22594 on coreboot, multiboot and qemu.
22595
22596 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22597
22598 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
22599 debug messages.
22600 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
22601
22602 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22603
22604 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
22605 parameters.
22606
22607 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22608
22609 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
22610 if they were BSD-style.
22611
22612 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22613
22614 * grub-core/boot/i386/pc/lnxboot.S: Replace
22615 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
22616 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
22617
22618 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22619
22620 Write embedding zone using Reed-Solomon.
22621
22622 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
22623 * grub-core/Makefile.am (rs_decoder.S): New target.
22624 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
22625 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
22626 (multiboot): Move to RS part.
22627 (post_reed_solomon): New label.
22628 (grub_boot_drive): Move to non-RS part since it's modified in memory
22629 on boot.
22630 Include rs_decoder.S.
22631 * grub-core/lib/reed_solomon.c: New file.
22632 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
22633 New definition.
22634 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
22635 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
22636 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
22637 * include/grub/partition.h (grub_partition_map): Change prototype of
22638 embed to allow returning additional sectors.
22639 * include/grub/reed_solomon.h: New file.
22640 * util/grub-setup.c (setup): Handle Reed-Solomon.
22641
22642 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
22643
22644 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22645 i386 and x86-64 definedness tests.
22646
22647 2010-09-27 Yves Blusseau <blusseau@zetam.org>
22648
22649 Fix generation of kernel_syms.lst
22650
22651 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
22652 ASM_PREFIX
22653
22654 2010-09-26 Robert Millan <rmh@gnu.org>
22655
22656 Support degraded ZFS arrays in "grub-probe -t device" resolution.
22657
22658 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
22659 the pool is an array of devices, iterate through it and return the
22660 first device that passes a stat() test (instead of blindly returning
22661 the first one).
22662
22663 2010-09-26 Robert Millan <rmh@gnu.org>
22664
22665 Build fixes for GNU/kFreeBSD.
22666
22667 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
22668 to programs that require ZFS conversion.
22669 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
22670 kernels that don't have FLOPPY_MAJOR.
22671
22672 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22673
22674 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
22675
22676 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22677
22678 Fix grub-emu build.
22679
22680 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
22681 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
22682 mdraid09 and mdraid1x.
22683
22684 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
22685
22686 Re-enable grub-extras.
22687
22688 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
22689 avoid confusing Automake. Run autogen only twice, once for the top
22690 level and once for grub-core. Add Makefile.util.def and
22691 Makefile.core.def from extra modules to the appropriate autogen
22692 invocations. If Makefile.common exists in an extra module, include
22693 it in both Makefile.util.am and grub-core/Makefile.core.am;
22694 similarly, include any Makefile.util.common file in Makefile.util.am
22695 and any Makefile.core.common file in grub-core/Makefile.core.am.
22696 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
22697 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
22698 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
22699 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
22700
22701 * gentpl.py (gvar_add): Turn GVARS into a set.
22702 (global_variable_initializers): Sort global variables on output.
22703 (vars_init): New function.
22704 (first_time): Likewise.
22705 (library): Ensure that non-global variable initialisations are
22706 emitted before the first time we emit code for a library block.
22707 Append to variables rather than setting them. Only emit
22708 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
22709 each conditional path.
22710 (program): installdir() emits an Autogen macro, so must be passed to
22711 var_add rather than gvar_add.
22712 (data): Likewise.
22713 (script): Likewise.
22714 (rules): New function, centralising handling for different target
22715 types. Set up Guile association lists for first_time and vars_init,
22716 and send most output to a diversion so that variable initialisations
22717 can be emitted first.
22718 (module_rules): Use new rules function.
22719 (kernel_rules): Likewise.
22720 (image_rules): Likewise.
22721 (library_rules): Likewise.
22722 (program_rules): Likewise.
22723 (script_rules): Likewise.
22724 (data_rules): Likewise.
22725
22726 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
22727
22728 * .bzrignore: Add contrib and grub-core/contrib. Remove
22729 grub-core/Makefile.gcry.am.
22730
22731 2010-09-24 Yves Blusseau <blusseau@zetam.org>
22732
22733 * grub-core/lib/LzFind.c: Add missing include.
22734 * grub-core/lib/LzmaEnc.c: Likewise.
22735 * grub-core/script/lexer.c: Likewise.
22736 * grub-core/script/yylex.l: Likewise.
22737 * util/grub-macho2img.c: Likewise.
22738 * util/grub-menulst2cfg.c: Likewise.
22739 * util/grub-mklayout.c: Likewise.
22740 * util/grub-mkpasswd-pbkdf2.c
22741 * util/grub-mkrelpath.c: Likewise.
22742 * util/resolve.c: Likewise.
22743
22744 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
22745
22746 * Makefile.util.def (example_unit_test): Add
22747 grub-core/gnulib/libgnu.a.
22748
22749 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
22750
22751 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
22752
22753 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
22754
22755 Support xz compression on yeeloong.
22756
22757 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
22758 * configure.ac: Check for LZMA.
22759 * grub-core/Makefile.core.def (xz_decompress): New target.
22760 (none_decompress): Likewise.
22761 * grub-core/boot/decompressor/minilib.c: New file.
22762 * grub-core/boot/decompressor/none.c: Likewise.
22763 * grub-core/boot/decompressor/xz.c: Likewise.
22764 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
22765 * grub-core/kern/mips/cache_flush.S: Likewise.
22766 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
22767 * grub-core/kern/mips/startup.S: Move first stage to ...
22768 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
22769 nomacro.
22770 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
22771 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
22772 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
22773 Allocate statically.
22774 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
22775 Allocate statically or use scratch. Don't check CRC32.
22776 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
22777 Allocate statically. Don't check CRC32.
22778 * include/grub/decompressor.h: New file.
22779 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
22780 Removed.
22781 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
22782 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
22783 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
22784 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
22785 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
22786 * util/grub-mkimage.c (grub_compression_t): New type.
22787 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
22788 (image_target_desc): New field default_compression.
22789 (image_targets): Adjust yeeloong targets.
22790 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
22791 (compress_kernel): New parameter comp.
22792 (generate_image): Likewise. Handle new compression case.
22793 (options): New option --compression
22794 (help): Likewise.
22795 (main): Handle new option.
22796
22797 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
22798
22799 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
22800
22801 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
22802
22803 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22804 typo in __i386__ conditional.
22805
22806 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22807
22808 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
22809 include.
22810
22811 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22812
22813 Implement EFI and ACPI multiboot2 extensions.
22814
22815 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
22816 new tags as supported.
22817 (acpiv2_size): New function.
22818 (grub_multiboot_get_mbi_size): Take new tags into account.
22819 (grub_multiboot_make_mbi): Add new tags.
22820 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
22821
22822 2010-09-21 Aleš Nesrsta <starous@volny.cz>
22823
22824 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
22825 Added missing configuration of USB device.
22826
22827 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22828
22829 * grub-core/normal/menu_entry.c (run): Make sure we always return
22830 a value.
22831
22832 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22833
22834 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
22835 NumberOfPages is UINT64 according to the UEFI specification, not
22836 UINTN. Fix printf format.
22837
22838 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22839
22840 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
22841 `err' to grub_usb_err_t.
22842 Reported and tested by: KESHAV P.R.
22843
22844 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22845
22846 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
22847 tpart non-const, so that we can assign to it. (Since this is a
22848 typedef, the constness refers to the pointer rather than what it
22849 points to.)
22850
22851 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22852
22853 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
22854 $(top_srcdir)/grub-core/gnulib as well as
22855 $(top_builddir)/grub-core/gnulib.
22856 Reported by: KESHAV P.R.
22857
22858 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22859
22860 * util/grub-install.in: Fix the bootloader ID option to be
22861 consistently --bootloader-id, not --bootloader_id.
22862 Reported by: KESHAV P.R.
22863
22864 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22865
22866 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
22867 check hash checksum." consistently translatable.
22868
22869 2010-09-21 Yves Blusseau <blusseau@zetam.org>
22870
22871 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
22872 $(top_builddir).
22873
22874 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22875
22876 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
22877 (GRUB_MOD_INIT): Register sha1sum command.
22878 (GRUB_MOD_FINI): Unregister sha1sum command.
22879
22880 2010-09-21 Yves Blusseau <blusseau@zetam.org>
22881
22882 Keep boot and grub directory names in sync with utils scripts
22883
22884 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
22885 * config.h.in: Add previous macros.
22886 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
22887 * util/grub-install.in: Use $bootdir and $grubdir variables.
22888
22889 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22890
22891 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
22892 convert partition names to disk names if the new `convert' parameter
22893 is set.
22894 (grub_util_biosdisk_get_grub_dev): If opening the disk device
22895 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
22896 disk in its own right. This can happen with Xen disk images.
22897
22898 2010-09-21 Yves Blusseau <blusseau@zetam.org>
22899
22900 * util/grub-editenv.c: Update strings to avoid warnings when generating
22901 grub.pot file.
22902 * util/grub-setup.c: Likewise.
22903
22904 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
22905
22906 * configure.ac: Change version to 1.99~beta0.
22907
22908 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
22909
22910 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
22911 Add BADRAM.
22912 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
22913 Likewise.
22914 * include/multiboot.h: Resynced with specification.
22915 * include/multiboot2.h: Likewise.
22916
22917 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22918
22919 Fix po directory handling.
22920
22921 * configure.ac: Create po/Makefile.in rather than po/Makefile.
22922 * grub-core/gnulib/Makefile.am: Import gettext module.
22923 * m4/gnulib-cache.m4: Likewise.
22924 * m4/gnulib-comp.m4: Likewise.
22925 * m4/gettext.m4: New file, from gnulib.
22926 * m4/glibc2.m4: Likewise.
22927 * m4/iconv.m4: Likewise.
22928 * m4/intdiv0.m4: Likewise.
22929 * m4/intl.m4: Likewise.
22930 * m4/intldir.m4: Likewise.
22931 * m4/intlmacosx.m4: Likewise.
22932 * m4/intmax.m4: Likewise.
22933 * m4/inttypes-pri.m4: Likewise.
22934 * m4/lcmessage.m4: Likewise.
22935 * m4/lib-ld.m4: Likewise.
22936 * m4/lib-link.m4: Likewise.
22937 * m4/lib-prefix.m4: Likewise.
22938 * m4/lock.m4: Likewise.
22939 * m4/nls.m4: Likewise.
22940 * m4/po.m4: Likewise.
22941 * m4/printf-posix.m4: Likewise.
22942 * m4/progtest.m4: Likewise.
22943 * m4/threadlib.m4: Likewise.
22944 * m4/uintmax_t.m4: Likewise.
22945 * m4/visibility.m4: Likewise.
22946 * po/Makefile.am: Remove.
22947 * po/Makefile.in.in: New file, from gettext.
22948 ($(DOMAIN).pot-update): Support POTFILES-shell.
22949 * po/Makevars: New file.
22950 * po/POTFILES-shell: Rename to ...
22951 * po/POTFILES-shell.in: ... this. Update.
22952 * po/POTFILES: Rename to ...
22953 * po/POTFILES.in: ... this. Update.
22954 * po/Rules-quot: New file, from gettext.
22955 * po/boldquot.sed: Likewise.
22956 * po/en@boldquot.header: Likewise.
22957 * po/en@quot.header: Likewise.
22958 * po/insert-header.sin: Likewise.
22959 * po/quot.sed: Likewise.
22960 * po/remove-potcdate.sin: Likewise.
22961
22962 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22963
22964 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
22965
22966 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22967
22968 * util/grub.d/20_linux_xen.in: Use submenus.
22969
22970 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22971
22972 Support submenus.
22973
22974 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
22975 parameter submenu. All users updated.
22976 * grub-core/normal/main.c (free_menu): Rename to ...
22977 (grub_normal_free_menu): ... this. Made global.
22978 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
22979 if requested.
22980 * grub-core/normal/menu_entry.c (screen): New field submenu.
22981 (make_screen): Set submenu.
22982 (run): Open new context if requested.
22983 * include/grub/menu.h (grub_menu_entry): New field submenu.
22984 * include/grub/normal.h (grub_normal_free_menu): New proto.
22985
22986 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22987
22988 Menu entries extractor.
22989
22990 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
22991 variants.
22992 (GRUB_MOD_INIT): Register new variants.
22993 (GRUB_MOD_FINI): Unregister new variants.
22994 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
22995 into grub_cmd_legacy_source.
22996 (grub_cmd_legacy_source): Implement extractor variants.
22997 (GRUB_MOD_INIT): Register new variants.
22998 (GRUB_MOD_FINI): Unregister new variants.
22999 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
23000 as an extractor.
23001 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
23002 search as an extractor.
23003 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
23004 test as an extractor.
23005 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
23006 as an extractor.
23007 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
23008 (grub_env_new_context): New function.
23009 (grub_env_context_open): Likewise.
23010 (grub_env_extractor_open): Likewise.
23011 (grub_env_extractor_close): Likewise.
23012 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
23013 grub_extractor_level.
23014 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
23015 * include/grub/env.h (grub_env_extractor_open): New proto.
23016 (grub_env_extractor_close): Likewise.
23017 * include/grub/normal.h (grub_extractor_level): New external variable.
23018
23019 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23020
23021 Make cutmem accept a region specification.
23022 Suggested by: Samuel Thibault
23023
23024 * grub-core/mmap/mmap.c (parsemem): New function.
23025 (grub_cmd_cutmem): Handle new arguments.
23026
23027 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23028
23029 New command cutmem.
23030
23031 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
23032 (GRUB_MOD_INIT): Register new command.
23033 (GRUB_MOD_FINI): Unregister new command.
23034
23035 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23036
23037 Support some annoying BSD and Minix subpartitions.
23038
23039 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
23040 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
23041 Properly handle concatenation.
23042 * grub-core/kern/device.c (grub_device_iterate): Likewise.
23043 * grub-core/normal/completion.c (iterate_partition): Likewise.
23044 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
23045 contain partition. All users updated.
23046 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
23047 struct.
23048 (grub_openbsdlabel_partition_map): Likewise.
23049 (bsdlabel_partition_map_iterate): Rename to ..
23050 (iterate_real): ... this. New arguments sector, freebsd and pmap.
23051 (bsdlabel_partition_map_iterate): New function.
23052 (netopenbsdlabel_partition_map_iterate): Likewise.
23053 (netbsdlabel_partition_map_iterate): Likewise.
23054 (openbsdlabel_partition_map_iterate): Likewise.
23055 (GRUB_MOD_INIT): Register new partmaps.
23056 (GRUB_MOD_FINI): Unregister new partmaps.
23057 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
23058 (grub_partition_msdos_iterate): ... this. All users updated.
23059 Don't support embedding other than in a minix partition.
23060 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
23061 proto.
23062 * include/grub/partition.h (grub_partition): New field msdostype.
23063 * util/grub-install.in: Handle openbsd and netbsd types being in
23064 part_bsd module.
23065
23066 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23067
23068 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
23069
23070 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
23071 * grub-core/Makefile.core.def (mdraid): Renamed to ...
23072 (mdraid09): ... this.
23073 (mdraid1x): New module.
23074 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
23075 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
23076
23077 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23078
23079 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
23080 vsprintf.
23081
23082 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23083
23084 * grub-core/commands/efi/lsefimmap.c: Correct header.
23085 * NEWS: Update.
23086
23087 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23088
23089 * util/grub-editenv.c (argp_parser): Don't pass translated strings
23090 as printf format strings; the translations might contain '%' which
23091 could cause a crash.
23092 (main): Likewise.
23093 * util/grub-fstest.c (argp_parser): Likewise.
23094 * util/grub-setup.c (argp_parser): Likewise.
23095 (main): Likewise.
23096
23097 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23098
23099 Use argp in grub-fstest.
23100
23101 * util/grub-fstest.c: Don't include getopt.h.
23102 Include argp.h.
23103 (root): New variable.
23104 (args_count): Likewise.
23105 (nparm): Likewise.
23106 (num_disks): Likewise.
23107 (images): Likewise.
23108 (cmd): Likewise.
23109 (debug_str): Likewise.
23110 (args): Likewise.
23111 (options): Transformed to argp.
23112 (usage): Removed.
23113 (main): Split argument parsing into ...
23114 (argp_parser): ... this. Changed to argp format.
23115 (argp): New variable.
23116 (main): Use argp_parse.
23117
23118 2010-09-20 Tristan Gingold <gingold@free.fr>
23119 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
23120 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23121
23122 * grub-core/commands/efi/lsefimmap.c: New file.
23123 * grub-core/Makefile.core.def (lsefimmap): New module.
23124 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
23125
23126 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23127
23128 Pause the execution (10s max) if any errors are displayed so the user
23129 has a chance to see them.
23130
23131 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
23132 (grub_print_error): Increment grub_err_printed_errors.
23133 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
23134 execution if any errors were displayed.
23135 (show_menu): Remove old code for pause.
23136 * grub-core/normal/menu_entry.c (run): Likewise.
23137 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
23138 users updated.
23139 (grub_normal_get_char_counter): Likewise.
23140 * include/grub/err.h (grub_err_printed_errors): New external variable.
23141 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
23142
23143 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23144
23145 Support multiboot VBE info.
23146
23147 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
23148 Take VBE info into account.
23149 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
23150 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23151 Call fill_vbe_info when appropriate.
23152 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
23153 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
23154 as supported.
23155 (grub_multiboot_get_mbi_size): Take new tags into account.
23156 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
23157 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23158 Call fill_vbe_tag when appropriate.
23159 (grub_multiboot_make_mbi): Properly align tags.
23160 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
23161 function.
23162 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
23163 proto.
23164 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
23165
23166 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23167
23168 Suport manual terminal geometry specification.
23169
23170 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
23171 Save state in grub_ofconsole_terminfo_output.
23172 (grub_ofconsole_term): Use grub_terminfo_getwh.
23173 (grub_ofconsole_getwh): Removed.
23174 * grub-core/term/serial.c (grub_serial_getwh): Removed.
23175 (grub_serial_term): Use grub_terminfo_getwh.
23176 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
23177 (options): New struct.
23178 (OPTION_*): New enum.
23179 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
23180 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
23181 width and height.
23182 (grub_terminfo_getwh): New proto.
23183 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
23184
23185 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23186
23187 Handle legacy "terminal" command.
23188
23189 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
23190 and FLAG_TERMINAL.
23191 (legacy_commands): Add terminal and title.
23192 (grub_legacy_parse): Handle terminal. Simplify title handling.
23193
23194 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23195
23196 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
23197 parameters overflow.
23198
23199 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23200
23201 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
23202 widthspec.h.
23203
23204 * docs/grub.texi (Shell-like scripting): Document `!'.
23205 (Network): Simplify using new i386-pc-pxe format. Mention
23206 grub-mknetdir.
23207
23208 * NEWS: Update.
23209
23210 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23211
23212 * Makefile.am (SUBDIRS): Restore "."; it's important to force
23213 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
23214 when needed.
23215
23216 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23217
23218 * grub-core/commands/efi/lsefisystab.c: Correct header.
23219 * grub-core/commands/efi/lssal.c: Likewise.
23220 * grub-core/commands/testload.c: Likewise.
23221
23222 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23223
23224 * util/grub-mkrescue.in: Add explicit root argument to --set to
23225 prevent the UUID being interpreted as an argument to --set (matches
23226 previous change to prepare_grub_to_access_device).
23227
23228 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23229
23230 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
23231 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
23232 the verbosity of later #ifs.
23233 (find_partition_start): Define this function on FreeBSD too.
23234 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
23235 function.
23236 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
23237 on FreeBSD.
23238
23239 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23240
23241 * util/grub-editenv.c: Use argp instead of getopt.
23242
23243 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23244
23245 * util/grub-setup.c: Use argp instead of getopt.
23246
23247 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23248
23249 Use gnulib-tool to create gnulib source files.
23250
23251 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
23252 grub-core/gnulib directories
23253 * .bzignore: Add **/.deps and autogenerated gnulib files
23254 * configure.ac: Assign auxiliary directory to build-aux, add invocation
23255 of gnulib macros, add grub-core/gnulib/Makefile
23256 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
23257 include m4 directory to aclocal.
23258 * Makefile.util.def: Remove direct compilation of gnulib source files
23259 and use the new grub-core/gnulib/libgnu.a.
23260 * build-aux/config.rpath: move config.rpath from top directory to
23261 build-aux
23262 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
23263 in gnulib headers
23264 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
23265 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
23266 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
23267 header.
23268 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
23269 string.
23270
23271 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23272
23273 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
23274 grub-core/genmod.sh and grub-core/gensyminfo.sh
23275
23276 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
23277
23278 Add a test for echo command options.
23279
23280 * tests/grub_cmd_echo.in: New test.
23281 * Makefile.util.def: Rules for new test.
23282
23283 2010-09-20 Szymon Janc <szymon@janc.net.pl>
23284
23285 Remove crc.mod and move crc command to hashsum.mod.
23286 Remove lib/crc.c - users updated to use gcrypt implementation.
23287
23288 * grub-core/commands/crc.c: Removed.
23289 * grub-core/Makefile.core.def (crc): Module removed.
23290 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
23291 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
23292 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
23293 * grub-core/lib/crc.c: Removed.
23294 * include/grub/lib/crc.h: Removed.
23295 * Makefile.util.def (crc): Remove lib/crc.c
23296 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
23297 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
23298 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
23299 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
23300 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
23301 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
23302
23303 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23304
23305 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
23306
23307 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23308
23309 Split config.h for util and core.
23310
23311 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
23312 (ADDR32): Likewise.
23313 (DATA32): Likewise.
23314 (BSS_START_SYMBOL): Likewise.
23315 (END_SYMBOL): Likewise.
23316 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
23317 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
23318 * config.h.in: New file.
23319 * configure.ac: Use config-util.h as config define file.
23320 Rename MACHINE into GRUB_MACHINE. All users updated.
23321 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
23322 updated.
23323 (NESTED_FUNC_ATTR): Likewise.
23324 Substitue new variables.
23325 (COND_HAVE_ASM_USCORE): New conditional.
23326 * grub-core/Makefile.am (ASM_PREFIX): New variable.
23327 (kernel_syms.lst): Use ASM_PREFIX.
23328 * grub-core/kern/emu/console.c: Include config-util.h.
23329 * grub-core/kern/emu/misc.c: Likewise.
23330 * grub-core/kern/emu/mm.c: Likewise.
23331 * include/grub/emu/misc.h: Likewise.
23332 * include/grub/libgcc.h: Likewise.
23333
23334 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23335
23336 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
23337 constants usage.
23338 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
23339 Fix GRUB_TERM_KEY_* constants usage.
23340 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
23341
23342 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23343
23344 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
23345 print pointer.
23346 * grub-core/bus/usb/uhci.c: Remove empty define.
23347 (grub_uhci_check_transfer): Add missing cast.
23348 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
23349 print pointer.
23350 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
23351 PRIuGRUB_SIZE.
23352 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
23353
23354 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23355
23356 * grub-core/Makefile.core.def (legacycfg): Add
23357 lib/i386/pc/vesa_modes_table.c on emu.
23358
23359 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23360
23361 Reduce number of temporary files generated by build system.
23362
23363 * grub-core/gencmdlist.sh: Removed.
23364 * grub-core/genfslist.sh: Removed.
23365 * grub-core/genhandlerlist.sh: Removed.
23366 * grub-core/genmodsrc.sh: Removed.
23367 * grub-core/genpartmaplist.sh: Removed.
23368 * grub-core/genparttoollist.sh: Removed.
23369 * grub-core/gentermiinallist.sh: Removed.
23370 * grub-core/genvideolist.sh: Removed.
23371
23372 * grub-core/genmod.sh.in: New file.
23373 * grub-core/gensyminfo.sh.in: New file.
23374
23375 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
23376 * conf/Makefile.extra-dist: Update with new files.
23377 * gentpl.py: Remove rules related to unnecessary temporary files.
23378 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
23379 and und-* files.
23380 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
23381 genmod.sh scripts.
23382 * grub-core/bus/usb/uhci.c: Remove empty #define.
23383 * grub-core/genmoddep.awk: Updated with new syminfo format.
23384 * util/bash-completion.d/Makefile.am: Add config.log to
23385 CLEANFILES.
23386
23387 2010-09-19 Yves Blusseau <blusseau@zetam.org>
23388
23389 * Makefile.util.def: Add forgotten $(LIBINTL) library.
23390
23391 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23392
23393 * util/grub-mkconfig.in: Check the config script for syntax errors
23394 before saving.
23395
23396 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
23397 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23398
23399 * Makefile.util.def (grub-install): Use util/grub-install.in on all
23400 platforms.
23401 * util/grub-install.in: Add EFI and IEEE1275 support.
23402 * util/i386/efi/grub-install.in: Removed.
23403 * util/ieee1275/grub-install.in: Likewise.
23404
23405 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23406
23407 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
23408 (grub_cmd_cmosclean): Likewise.
23409 (GRUB_MOD_INIT): Register command cmosclean.
23410 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
23411 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
23412
23413 2010-09-18 Carles Pina i Estany <carles@pina.cat>
23414 2010-09-18 Aleš Nesrsta <starous@volny.cz>
23415 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23416
23417 Add keyboard layouts support.
23418
23419 * Makefile.util.def (grub-mklayout): New file.
23420 (grub-kbdcomp): New script.
23421 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
23422 Add keyboard_layouts.h.
23423 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
23424 commands/boot.c on yeeloong.
23425 (keylayouts): New module.
23426 * grub-core/bus/usb/ohci.c
23427 * grub-core/bus/usb/uhci.c
23428 * grub-core/bus/usb/usbhub.c (rescan): New variable.
23429 (grub_usb_add_hub): Poll interrupt pipe for device handling.
23430 (attach_root_port): Likewise.
23431 (poll_nonroot_hub): Likewise.
23432 (grub_usb_poll_devices): Likewise.
23433 (detach_device): Close transfer.
23434 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
23435 function.
23436 (grub_usb_bulk_setup_readwrite): Likewise.
23437 (grub_usb_bulk_finish_readwrite): Likewise.
23438 * grub-core/commands/keylayouts.c: New file.
23439 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
23440 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
23441 aliases.
23442 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
23443 support scancode 2.
23444 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
23445 * include/grub/keyboard_layouts.h: New file.
23446 * util/grub-mklayout.c: New file.
23447 * util/grub-kbdcomp.in: Likewise.
23448
23449 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23450
23451 Unify memory types.
23452
23453 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
23454 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
23455 types.
23456 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
23457 (grub_upper_mem): Likewise.
23458 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
23459 * include/grub/memory.h (grub_memory_type_t): New enum.
23460 All users updated.
23461
23462 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23463
23464 * grub-core/Makefile.core.def (lsapm): New module.
23465 * grub-core/commands/i386/pc/lsapm.c: New file.
23466 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
23467 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
23468 Likewise.
23469 * include/grub/i386/pc/apm.h: New file.
23470 * include/multiboot.h (multiboot_apm_info): New struct.
23471
23472 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23473
23474 GRUB-legacy configuration file support.
23475
23476 * Makefile.util.def (grub-menulst2cfg): New util.
23477 * docs/man/grub-menulst2cfg.h2m: New file.
23478 * grub-core/Makefile.core.def (legacycfg): New module.
23479 * grub-core/commands/legacycfg.c: New file.
23480 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
23481 (grub_normal_add_menu_entry): ... this.
23482 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
23483 (grub_normal_set_password): ...this.
23484 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
23485 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
23486 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
23487 * grub-core/lib/legacy_parse.c: New file.
23488 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
23489 * include/grub/i386/pc/vesa_modes_table.h: New file.
23490 * include/grub/legacy_parse.h: Likewise.
23491 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
23492 * util/grub-menulst2cfg.c: New file.
23493
23494 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23495
23496 * grub-core/kern/emu/hostdisk.c
23497 (convert_system_partition_to_system_disk): Initialise node.
23498
23499 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23500
23501 * grub-core/kern/emu/hostdisk.c
23502 (convert_system_partition_to_system_disk): Fix devmapper memory pool
23503 leak.
23504 Reported and based on patch by: Modestas Vainius.
23505
23506 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23507
23508 Fix DM-RAID probing with recent versions of device-mapper udev
23509 rules.
23510
23511 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
23512 canonicalise device paths under /dev/mapper/.
23513 (convert_system_partition_to_system_disk): Compare the
23514 uncanonicalised path to /dev/mapper/ rather than the canonicalised
23515 path, since device nodes under /dev/mapper/ are often symlinks.
23516
23517 2010-09-17 Yves Blusseau <blusseau@zetam.org>
23518
23519 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
23520
23521 2010-09-16 Yves Blusseau <blusseau@zetam.org>
23522
23523 * configure.ac: Avoid some annoying error messages if freetype-config
23524 program is not found.
23525
23526 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23527
23528 Support RAID on virtio devices, and others.
23529
23530 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
23531 Rename to ...
23532 [__MINGW32__] (grub_find_device): ... this.
23533 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
23534 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
23535 reasonable default if dir is NULL.
23536 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
23537 ...
23538 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
23539 (grub_guess_root_device): Update callers.
23540 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
23541
23542 * util/raid.c (grub_util_getdiskname): Remove.
23543 (grub_util_raid_getmembers): Use grub_find_device rather than
23544 grub_util_getdiskname.
23545
23546 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23547
23548 * docs/grub.texi (serial): Remove obsolete comment about GRUB
23549 needing to be compiled with serial support.
23550 (ls): Indicate that multiple files are accepted.
23551 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
23552 indicate that multiple files are accepted.
23553
23554 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23555
23556 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
23557 libgrub_a_init.c, and util/bash-completion.d/grub.
23558
23559 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23560
23561 * util/grub-setup.c (setup): Fix incorrect container semantics.
23562
23563 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23564
23565 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
23566 misusage.
23567 Reported by: J. Nick Terry
23568
23569 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23570
23571 Move embedding routines to partmap sources files.
23572
23573 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
23574 [GRUB_UTIL]: New variable.
23575 (gpt_partition_map_iterate): Set part.parent.
23576 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
23577 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
23578 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
23579 New function.
23580 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
23581 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
23582 (grub_partition_map) [GRUB_UTIL]: New field embed.
23583 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
23584 (setup): Use ->embed.
23585
23586 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23587
23588 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
23589 function.
23590 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
23591 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
23592
23593 2010-09-15 Yves Blusseau <blusseau@zetam.org>
23594
23595 Add function to get completions from usage.
23596
23597 * util/bash-completion.d/grub-completion.bash.in: Add function to get
23598 completions from usage. Use LC_ALL=C to get options properly.
23599
23600 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23601
23602 * grub-core/gnulib/basename-lgpl.c: Imported.
23603 * grub-core/gnulib/basename.c: Likewise.
23604 * grub-core/gnulib/dirname-lgpl.c: Likewise.
23605 * grub-core/gnulib/dirname.c: Likewise.
23606 * grub-core/gnulib/dirname.h: Likewise.
23607 * grub-core/gnulib/stripslash.c: Likewise.
23608
23609 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23610
23611 * grub-core/gnulib/error.c: Resynced.
23612 * grub-core/gnulib/getopt.c: Likewise.
23613 * grub-core/gnulib/getopt_int.h: Likewise.
23614 * grub-core/gnulib/regex.h: Likewise.
23615 * grub-core/gnulib/regex_internal.c: Likewise.
23616 * grub-core/gnulib/regex_internal.h: Likewise.
23617
23618 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23619
23620 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
23621 CRC calculations and validity checks.
23622 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
23623 calculations.
23624
23625 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23626
23627 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
23628
23629 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23630
23631 Fix incorrect echo options handling.
23632 Reported by: Yves Blusseau.
23633
23634 * include/grub/command.h (grub_command_flags_t): New flags
23635 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
23636 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
23637 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
23638
23639 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23640
23641 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
23642 users updated.
23643 (GRUB_COMMAND_FLAG_MENU): Likewise.
23644 (GRUB_COMMAND_FLAG_BOTH): Likewise.
23645 (GRUB_COMMAND_FLAG_TITLE): Removed.
23646 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
23647 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
23648 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
23649 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
23650 (grub_command_flags_t): New enum. All users updated.
23651
23652 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
23653
23654 Fix solaris compilation.
23655
23656 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
23657 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
23658 (grub-emu-list): Likewise.
23659
23660 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23661
23662 Remove deprecated root command.
23663
23664 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
23665 updated.
23666
23667 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23668
23669 * util/i386/pc/grub-setup.c: Merge this ...
23670 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
23671 * util/grub-setup.c: ... into this.
23672 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
23673 New struct.
23674
23675 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23676
23677 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
23678 possible.
23679
23680 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23681
23682 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
23683 allocate p.
23684
23685 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23686
23687 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
23688 explicit root argument to set to prevent UUID to be interpreted as
23689 argument to set.
23690
23691 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23692
23693 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
23694
23695 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23696
23697 Don't export grub_gate_a20.
23698
23699 * grub-core/kern/i386/pc/init.c: Remove leftovers.
23700 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
23701 to ...
23702 (grub_gate_a20): ... this. All users updated.
23703 * include/grub/i386/pc/init.h: Removed. All users updated.
23704
23705 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23706
23707 Create euro.pf2 which supports most European languages.
23708
23709 * Makefile.am (grubdata_DATA): Add euro.pf2.
23710 (euro.pf2): New target.
23711 (CLEANFILES): Add euro.pf2.
23712
23713 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23714
23715 * configure.ac: Disable emu-usb by default to prevent inadvertent
23716 device takeover.
23717
23718 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23719
23720 Disable usbserial on grub-emu since our libusb code isn't good enough
23721 yet.
23722
23723 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
23724 (usbserial_pl2303): Likewise.
23725 (usbserial_ftdi): Likewise.
23726
23727 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23728
23729 * include/grub/disk.h (grub_disk): Remove has_partitions.
23730 All users updated.
23731 * disk/loopback.c (grub_loopback): Remove has_partitions.
23732 All users updated.
23733 (options): Remove partitions. All users updated.
23734 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
23735 * util/i386/pc/grub-setup.c (setup): copy partition table only when
23736 actual partition table is found.
23737
23738 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23739
23740 Remove readability checks (too many false negatives).
23741
23742 * util/grub-install.in: Remove readability checks.
23743 * util/grub-mkconfig.in: Likewise.
23744 * util/grub.d/10_hurd.in: Likewise.
23745 * util/grub.d/10_kfreebsd.in: Likewise.
23746 * util/grub.d/10_linux.in: Likewise.
23747 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
23748 way.
23749
23750 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23751
23752 Enable acpi shutdown on all ACPI platforms.
23753
23754 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
23755 on coreboo, multiboot and EFI.
23756 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
23757 (grub_acpi_halt): Likewise.
23758 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
23759 (grub_cmd_halt): Don't call grub_acpi_halt directly.
23760 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
23761 * grub-core/lib/i386/halt.c (grub_halt)
23762 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
23763
23764 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23765
23766 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
23767 context.
23768
23769 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23770
23771 * grub-core/video/efi_gop.c: Fix over-80-chars line.
23772 * grub-core/video/efi_uga.c: Likewise.
23773
23774 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23775
23776 Filter devaliases and never open same device twice.
23777
23778 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
23779 (last_ihandle): Likewise.
23780 (ofdisk_hash_ent): New member shortest.
23781 (ofdisk_hash_add): Add canonical path too.
23782 (scan): New function.
23783 (grub_ofdisk_iterate): Iterate over hashed entries.
23784 (compute_dev_path): Don't add :0.
23785 (grub_ofdisk_open): Don't really open the disk.
23786 (grub_ofdisk_close): Avoid closing unrelated disk.
23787 (grub_ofdisk_read): Implement reopen logic.
23788 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
23789 New function.
23790 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
23791 New proto.
23792
23793 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23794
23795 Fix sparc64.
23796
23797 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
23798 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
23799 right address. Add sparc64_ieee1275_ldflags.
23800 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
23801 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
23802 to grub_host_to_target_addr
23803 (load_image): Likewise.
23804
23805 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23806
23807 * grub-core/normal/completion.c (complete_file): Handle device
23808 containing slash.
23809 Fix based on patch by Doug Nazar.
23810
23811 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23812
23813 grub-mknetdir script.
23814
23815 * Makefile.util.def (grub-mknetdir): New module.
23816 * tests/util/grub-shell.in: Support boot=net
23817 * util/grub-mknetdir.in: New file.
23818
23819 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23820
23821 videoinfo on non-vbe.
23822
23823 * grub-core/Makefile.core.def (vbeinfo): Removed.
23824 (vbetest): Removed.
23825 (videoinfo): New module.
23826 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
23827 * grub-core/commands/i386/pc/vbetest.c: Removed.
23828 * grub-core/commands/videoinfo.c: New file.
23829 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
23830 specification.
23831 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
23832 as vbetest.
23833 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
23834 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
23835 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
23836 mode_number. New parameter mode. All users updated.
23837 (grub_video_gop_iterate): New function.
23838 (grub_video_efi_gop): New member iterate.
23839 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
23840 (grub_vbe_set_video_mode): Remove setting useless fields.
23841 (vbe2videoinfo): New function.
23842 (grub_video_vbe_iterate): Likewise.
23843 (grub_video_vbe_setup): Use vbe2videoinfo.
23844 (grub_video_vbe_print_adapter_specific_info): New function.
23845 (grub_video_vbe_adapter): New fields iterate and
23846 print_adapter_specific_info.
23847 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
23848 All users updated.
23849 (grub_video_mode_info): New field mode_number.
23850 (grub_video_adapter): New fields iterate and
23851 print_adapter_specific_info.
23852
23853 2010-09-13 Tristan Gingold <gingold@free.fr>
23854 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
23855 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23856
23857 * grub-core/commands/efi/lsefisystab.c: New file.
23858 * grub-core/commands/efi/lssal.c: Likewise.
23859 * grub-core/Makefile.core.def (lsacpi): New module.
23860 (lsefisystab): Likewise.
23861 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
23862 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
23863 (grub_efi_sal_system_table): New struct.
23864 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
23865 (grub_efi_sal_system_table_memory_descriptor): Likewise.
23866 (grub_efi_sal_system_table_platform_features): Likewise.
23867 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
23868 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
23869 (grub_efi_sal_system_table_ap_wakeup): Likewise.
23870 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
23871
23872 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23873
23874 Support explicit user claim that a device is BIOS-visible.
23875
23876 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
23877 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
23878 * grub-core/kern/emu/hostdisk.c
23879 (convert_system_partition_to_system_disk): Support mdX.
23880 (find_system_device): New parameter add. All users updated.
23881 (grub_util_biosdisk_is_present): New function.
23882 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
23883 proto.
23884
23885 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23886
23887 Search hints support.
23888
23889 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
23890 All users updated.
23891
23892 2010-09-13 Yves Blusseau <blusseau@zetam.org>
23893
23894 Bash completion script for util commands
23895
23896 * Makefile.am: Add util/bash-completion.d directory
23897 * configure.ac: Likewise.
23898 * util/bash-completion.d/Makefile.am: New file.
23899 * util/bash-completion.d/grub-completion.bash.in: Likewise.
23900
23901 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23902
23903 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
23904 (print_backlog): set backlog_ucs4 and backlog_glyphs.
23905 Reported by: Yves Blusseau.
23906
23907 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23908
23909 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
23910 partition size and offset.
23911
23912 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23913
23914 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
23915
23916 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23917
23918 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
23919
23920 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23921
23922 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
23923 (grub_xvasprintf): Likewise.
23924
23925 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23926
23927 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
23928
23929 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23930
23931 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
23932 args ending with NULL.
23933
23934 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23935
23936 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
23937 pointer.
23938
23939 2010-09-11 Szymon Janc <szymon@janc.net.pl>
23940
23941 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
23942
23943 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23944
23945 Shutdown using ACPI.
23946
23947 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
23948 * grub-core/commands/acpihalt.c: New file.
23949 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
23950 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
23951 (grub_acpi_halt): New proto.
23952 (GRUB_ACPI_SLP_EN): New const.
23953 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
23954 (GRUB_ACPI_OPCODE_*): New enum.
23955 (GRUB_ACPI_EXTOPCODE_*): Likewise.
23956
23957 2010-09-11 Tristan Gingold <gingold@free.fr>
23958 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
23959 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23960
23961 * commands/lsacpi.c: New file.
23962 * grub-core/Makefile.core.def (lsacpi): New module.
23963 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
23964 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
23965 (grub_acpi_madt_entry_header): New struct.
23966 (grub_acpi_madt): Likewise.
23967 (grub_acpi_madt_entry_interrupt_override): Likewise.
23968 (grub_acpi_madt_entry_sapic): Likewise.
23969 (grub_acpi_madt_entry_lsapic): Likewise.
23970 (grub_acpi_madt_entry_platform_int_source): Likewise.
23971 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
23972 (PRIuGRUB_UINT32_T): Likewise.
23973 (PRIxGRUB_UINT64_T): Likewise.
23974
23975 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23976
23977 Implement loading palette on ieee1275_fb.
23978
23979 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
23980 (have_setcolors): Likewise.
23981 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
23982 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
23983 (grub_video_ieee1275_set_palette): Implement.
23984
23985 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23986 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
23987
23988 * util/grub-install.in (grub_partition): New variable.
23989 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
23990 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
23991 Fixes a bug reported by Yves Blusseau.
23992
23993 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23994
23995 Fix emu on mipsel.
23996
23997 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
23998 =grub_cpu_flush_cache on all mips and not only yeeloong.
23999 * configure.ac (COND_mips): New conditional.
24000 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
24001 platforms.
24002 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
24003 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
24004 [GRUB_LINKER_HAVE_INIT]: New function.
24005 (grub_emu_post_init): Likewise.
24006 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
24007 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
24008 * include/grub/cache.h (_mips): Include mips/cache.h.
24009 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
24010 LVM and RAID prototypes.
24011 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
24012 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
24013 function.
24014
24015 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24016
24017 * util/grub-install.in: Don't try to verify core.img until after
24018 running grub-mkimage to create it.
24019
24020 2010-09-10 Robert Millan <rmh@gnu.org>
24021
24022 * util/grub.d/10_hurd.in: Add misc readability checks.
24023 * util/grub.d/10_kfreebsd.in: Likewise.
24024 * util/grub.d/10_linux.in: Likewise.
24025
24026 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24027
24028 * util/grub-install.in: ${imgext} won't be defined here until the
24029 install branch is merged. For the meantime, only verify core.img on
24030 i386-pc and sparc64-ieee1275 platforms.
24031
24032 2010-09-10 Robert Millan <rmh@gnu.org>
24033
24034 Solaris support in grub_find_zpool_from_dir(). Thanks
24035 Seth Goldberg for referring to getextmntent() facility.
24036
24037 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
24038 `sys/mkdev.h'.
24039 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
24040 `<sys/mnttab.h>'.
24041 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
24042 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
24043 method for finding zpool name.
24044
24045 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24046
24047 grub-fstest needs the host and hostfs modules while other utilities
24048 actively require those modules to be absent, so grub-fstest needs
24049 its own initialisation and finalisation code.
24050
24051 * Makefile.am (grub_fstest.pp): New target.
24052 (grub_fstest_init.lst): Likewise.
24053 (grub_fstest_init.c): Likewise.
24054 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
24055
24056 2010-09-10 Robert Millan <rmh@gnu.org>
24057
24058 * configure.ac: Check for `struct statfs.f_fstypename' and
24059 `struct statfs.f_mntfromname'.
24060
24061 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
24062 kFreeBSD-specific code.
24063
24064 2010-09-10 Robert Millan <rmh@gnu.org>
24065
24066 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
24067 on ZFS. Now non-main filesystems are supported as / too.
24068
24069 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
24070
24071 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
24072 and grub-core/disk/host.c to ...
24073 (grub-fstest): ... here. Having the host disk implementation
24074 present confuses grub-probe and other utility programs.
24075
24076 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
24077 when writing to a file, not when writing to stdout.
24078
24079 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
24080
24081 * tests/partmap_test.in: New test for partitions.
24082 * Makefile.util.def: Rules for new test.
24083
24084 2010-09-09 Robert Millan <rmh@gnu.org>
24085
24086 * util/grub-probe.c (probe): Fix a pair of unhandled error
24087 conditions.
24088
24089 2010-09-09 Robert Millan <rmh@gnu.org>
24090
24091 Basic Btrfs support (detection and UUID).
24092
24093 * grub-core/fs/btrfs.c: New file.
24094 * Makefile.util.def (library): Register btrfs.c.
24095 * grub-core/Makefile.core.def: Likewise.
24096
24097 2010-09-08 Robert Millan <rmh@gnu.org>
24098
24099 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
24100 with (optional) parameters to specify device and relative path.
24101 * util/grub-install.in: Use is_path_readable_by_grub() to
24102 verify readability of a few critical files.
24103 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
24104 verify readability of grub.cfg.new.
24105
24106 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24107
24108 Split minix.mod into minix.mod and minix2.mod.
24109
24110 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
24111 * grub-core/Makefile.core.def (minix2): New module.
24112 * grub-core/fs/minix.c: Use definitions instead of runtime version
24113 checking.
24114 * grub-core/fs/minix2.c: New file.
24115
24116 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24117
24118 Add new --boot-directory option to replace --root-directory
24119
24120 * util/grub-install.in: Add new --boot-directory option
24121 * util/grub-reboot.in: Likewise.
24122 * util/grub-set-default.in: Likewise.
24123
24124 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24125
24126 * util/grub-mkconfig.in: Use new variable.
24127
24128 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24129
24130 * configure.ac: Define some useful variables.
24131
24132 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24133
24134 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
24135 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
24136 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
24137 Use terminfo and don't use cursor-on/cursor-off unless it's known
24138 to work.
24139 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
24140 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
24141
24142 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
24143
24144 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
24145 starts with "(,", fill the drive containing the loaded image in
24146 between those two characters, but expect that a full partition
24147 specification including partition map names will follow.
24148
24149 2010-09-08 Robert Millan <rmh@gnu.org>
24150
24151 * configure.ac: Remove `--enable-grub-fstest' option.
24152 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
24153
24154 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
24155 `grub-fstest' instead of `grub-probe' for readability verification.
24156 * util/grub-probe.c (probe): Remove readability verification kludge.
24157
24158 2010-09-08 Robert Millan <rmh@gnu.org>
24159
24160 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
24161 initializing `GRUB_FS'.
24162
24163 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
24164
24165 Not command (!) support to GRUB script.
24166
24167 * tests/grub_script_not.in: New test.
24168 * Makefile.util.def: Rules for new test.
24169
24170 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
24171 ! command as a special case.
24172 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
24173
24174 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24175
24176 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
24177 grub_free.
24178
24179 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24180
24181 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
24182
24183 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24184
24185 * docs/grub.texi (Shell-like scripting): Documentation for break,
24186 continue, shift and return commands.
24187
24188 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
24189
24190 Rename CD-ROM to cd on BIOS.
24191
24192 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
24193 "cd".
24194 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
24195
24196 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24197
24198 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
24199 * util/grub-probe.c (main): Likewise.
24200 * util/i386/pc/grub-setup.c (main): Likewise.
24201 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
24202 Reported and debugged by: alexxy
24203
24204 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24205
24206 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
24207 diagnostic info.
24208
24209 2010-09-05 Jo Shields <directhex@apebox.org>
24210
24211 * util/grub.d/30_os-prober.in: Add missing classes.
24212
24213 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24214
24215 * docs/grub.texi (Theme file format): Document new position format.
24216
24217 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24218
24219 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
24220 a table. Use @code instead of @verbatim.
24221
24222 2010-09-05 Colin D Bennett <colin@gibibit.com>
24223
24224 Gfxmenu documentation.
24225
24226 * docs/grub.texi (Theme file format): New chapter.
24227
24228 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24229
24230 * grub-core/Makefile.core.def (xzio): New module.
24231 * grub-core/io/xzio.c: New file.
24232 * grub-core/lib/xzembed/xz.h: New file (from xembed).
24233 * grub-core/lib/xzembed/xz_config.h: Likewise.
24234 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
24235 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
24236 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
24237 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
24238 * grub-core/lib/xzembed/xz_private.h: Likewise.
24239 * grub-core/lib/xzembed/xz_stream.h: Likewise.
24240 * include/grub/file.h (grub_file_filter_id): New compression filter
24241 GRUB_FILE_FILTER_XZIO.
24242
24243 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24244
24245 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
24246 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
24247 size.
24248
24249 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24250
24251 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
24252 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
24253
24254 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24255
24256 Uncompressed checksum support.
24257
24258 * grub-core/commands/hashsum.c (options): Add option --uncompress.
24259 (check_list): New parameter uncompress.
24260 (grub_cmd_hashsum): Handle --uncompress.
24261
24262 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24263
24264 Reintroduce testload.
24265
24266 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
24267 from here ...
24268 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
24269 (GRUB_MOD_INIT): New function.
24270 (GRUB_MOD_FINI): Likewise.
24271 * grub-core/Makefile.core.def (testload): New module.
24272
24273 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24274
24275 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
24276 (uint8_t): New type.
24277 (uint16_t): Likewise.
24278 (uint32_t): Likewise.
24279 (uint64_t): Likewise.
24280
24281 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24282
24283 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
24284
24285 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24286
24287 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
24288 Made static.
24289 (grub_gzfile_open): Removed. All users updated.
24290 (GRUB_MOD_INIT): New function.
24291 (GRUB_MOD_FINI): Likewise.
24292 * grub-core/kern/file.c (grub_file_filters_all): New variable.
24293 (grub_file_filters_enabled): Likewise.
24294 (grub_file_open): Handle filters.
24295 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
24296 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
24297 * include/grub/file.h (grub_file_filter_id_t): New type.
24298 (grub_file_filter_t): Likewise.
24299 (grub_file_filters_all): New extern variable.
24300 (grub_file_filters_enabled): Likewise.
24301 (grub_file_filter_register): New inline function.
24302 (grub_file_filter_unregister): Likewise.
24303 (grub_file_filter_disable): Likewise.
24304 (grub_file_filter_disable_compression): Likewise.
24305 * include/grub/gzio.h: Removed.
24306
24307 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24308
24309 Filename expansion support for wildcards in GRUB script.
24310
24311 * tests/grub_script_expansion.in: New test.
24312 * Makefile.util.def: Rule for new test.
24313
24314 * grub-core/commands/wildcard.c: New file, implements filename
24315 expansion support for GRUB script.
24316 * grub-core/Makefile.core.def: Rule update for regexp.mod.
24317 * grub-core/script/argv.c: Cosmetic changes.
24318 * grub-core/script/execute.c (grub_script_arglist_to_argv):
24319 Refactored to perform wildcard expansion on arguments.
24320 * include/grub/script_sh.h (grub_script_wildcard_translator): New
24321 struct.
24322
24323 * tests/util/grub-shell.in: Fix quoting for read input.
24324
24325 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24326
24327 Support for updating environment variables with matched substrings
24328 of regexp.
24329
24330 * tests/grub_cmd_regexp.in: New test.
24331 * Makefile.util.def: Rule for new test.
24332
24333 * grub-core/commands/regexp.c: New option -s to update environment
24334 variables with regexp matches.
24335
24336 2010-09-04 Szymon Janc <szymon@janc.net.pl>
24337
24338 * include/grub/file.h (grub_file): New member not_easly_seekable.
24339 (grub_file_seekable): New inline function.
24340 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
24341 easily seekable.
24342 (grub_gzio_open): Set not_easly_seekable.
24343 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
24344 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
24345
24346 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24347
24348 Support for options to appear multiple times on cmdline.
24349
24350 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
24351 * grub-core/commands/extcmd.c: Support for repeatable option.
24352 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
24353 repeatable option support.
24354
24355 Refactor menuentry into a regular command.
24356
24357 * grub-core/commands/menuentry.c: New file, menuentry command
24358 implementation.
24359 * grub-core/Makefile.core.def: Rule update for normal.mod.
24360 * grub-core/normal/main.c: Moved menuentry creation to
24361 grub-core/commands/menuentry.c.
24362 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
24363 (grub_menu_execute_entry_real): Removed.
24364 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
24365 function.
24366 (grub_script_execute_menuentry): Removed.
24367 * grub-core/script/parser.y (menuentry): Removed.
24368 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
24369 * grub-core/script/yylex.l (menuentry): Removed.
24370 * include/grub/menu.h (grub_menu_init): New prototype.
24371 (grub_menu_fini): New prototype.
24372 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
24373 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
24374 (grub_script_execute_sourcecode): New prototype.
24375
24376 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24377
24378 "return" command for GRUB script functions.
24379
24380 * tests/grub_script_return.in: New test.
24381 * Makefile.util.def: Rules for new test.
24382
24383 * grub-core/script/execute.c (grub_script_return): New function.
24384 * grub-core/script/main.c: Register/unregister return commaond.
24385 * include/grub/script_sh.h (grub_script_return): New prototype.
24386
24387 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24388
24389 "setparams" command to update positional parameters.
24390
24391 * tests/grub_script_setparams.in: New test.
24392 * Makefile.util.def: Rules for new test.
24393
24394 * grub-core/script/argv.c (grub_script_argv_make): New function.
24395 * grub-core/script/execute.c (replace_scope): New function.
24396 (grub_script_setparams): New function.
24397 * grub-core/script/lexer.c: Remove unused variables.
24398 * grub-core/script/main.c: Register/unregister setparams command.
24399 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
24400 (grub_script_setparams): New prototype.
24401
24402 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24403
24404 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
24405 grub_free order.
24406
24407 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24408
24409 Support for passing block of commands as an argument to extcmds.
24410
24411 * Makefile.util.def: Rules for new test.
24412 * tests/grub_script_blockarg.in: New test.
24413 * grub-core/tests/test_blockarg.c: New file, block argument
24414 command used in the test.
24415
24416 * include/grub/extcmd.h (grub_extcmd_context): New struct.
24417 (grub_register_extcmd_prio): New function prototype.
24418 (grub_extcmd_dispatcher): New function prototype.
24419 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
24420 type.
24421 * include/grub/script_sh.h (struct grub_script): New members
24422 `children', `next_siblings' and `refcnt' for block arguments and
24423 reference counting.
24424 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
24425 (grub_script_arg): New member `script' for block argument.
24426 (grub_script_argv): New member `script' for block argument.
24427 (grub_parser_param): New member `scripts' for block argument.
24428 (grub_script_mem_free): New extern function prototype.
24429 (grub_script_ref): New function prototype.
24430 (grub_script_unref): New function prototype.
24431
24432 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
24433 extcmd form to support block arguments.
24434 * grub-core/script/argv.c: Block arguments support.
24435 * grub-core/script/execute.c: Likewise.
24436 * grub-core/script/lexer.c: Likewise.
24437 * grub-core/script/main.c: Likewise.
24438 * grub-core/script/script.c: Likewise.
24439 * grub-core/script/parser.y: Likewise. New `block' and `block0'
24440 non-terminals.
24441
24442 * grub-core/commands/acpi.c: Update extcmd implementations with
24443 grub_extcmd_context_t.
24444 * grub-core/commands/cat.c: Likewise.
24445 * grub-core/commands/echo.c: Likewise.
24446 * grub-core/commands/extcmd.c: Likewise.
24447 * grub-core/commands/hashsum.c: Likewise.
24448 * grub-core/commands/hdparm.c: Likewise.
24449 * grub-core/commands/help.c: Likewise.
24450 * grub-core/commands/hexdump.c: Likewise.
24451 * grub-core/commands/i386/cpuid.c: Likewise.
24452 * grub-core/commands/i386/pc/drivemap.c: Likewise.
24453 * grub-core/commands/i386/pc/halt.c: Likewise.
24454 * grub-core/commands/i386/pc/sendkey.c: Likewise.
24455 * grub-core/commands/iorw.c: Likewise.
24456 * grub-core/commands/keystatus.c: Likewise.
24457 * grub-core/commands/loadenv.c: Likewise.
24458 * grub-core/commands/ls.c: Likewise.
24459 * grub-core/commands/lspci.c: Likewise.
24460 * grub-core/commands/memrw.c: Likewise.
24461 * grub-core/commands/probe.c: Likewise.
24462 * grub-core/commands/search_wrap.c: Likewise.
24463 * grub-core/commands/setpci.c: Likewise.
24464 * grub-core/commands/sleep.c: Likewise.
24465 * grub-core/disk/loopback.c: Likewise.
24466 * grub-core/hello/hello.c: Likewise.
24467 * grub-core/loader/i386/bsd.c: Likewise.
24468 * grub-core/loader/xnu.c: Likewise.
24469 * grub-core/term/gfxterm.c: Likewise.
24470 * grub-core/term/serial.c: Likewise.
24471 * grub-core/tests/lib/functional_test.c: Likewise.
24472
24473 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24474
24475 Multi-line quoted strings support.
24476
24477 * grub-core/script/lexer.c (append_newline): Removed.
24478 (grub_script_lexer_yywrap): Refactored.
24479 (grub_script_lexer_init): Refactored.
24480 * grub-core/script/yylex.l (yywrap): New function.
24481 (grub_lexer_resplit): New function.
24482 (grub_lexer_unput): New function.
24483 * include/grub/script_sh.h (grub_lexer_param): New members, unput
24484 and resplit.
24485 * tests/grub_script_echo1.in: Added few more testcases.
24486
24487 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
24488
24489 * grub-core/kern/misc.c: Don't add abort alias in utils.
24490 Reported by: echoline.
24491
24492 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
24493
24494 Add missing files into "make dist" tarball for other platforms.
24495
24496 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
24497 * conf/Makefile.common (dist_noinst_DATA): New variable.
24498 * conf/Makefile.extra-dist: Added missing make dist files.
24499 * grub-core/Makefile.core.def: Likewise.
24500
24501 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24502
24503 Compress grub_prefix.
24504
24505 * grub-core/boot/i386/pc/lnxboot.S: Use
24506 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
24507 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
24508 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
24509 GRUB_MACHINE_PREFIX_END. All users updated.
24510 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
24511 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
24512 + 0x40.
24513 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
24514 * util/grub-mkimage.c (image_target_desc): Change data_end to
24515 prefix_end. All users updated.
24516
24517 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24518
24519 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
24520 value.
24521 (grub_openbsd_boot): Likewise.
24522 (grub_netbsd_boot): Likewise.
24523 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
24524 (grub_xnu_boot): Likewise.
24525
24526 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24527
24528 * configure.ac: Clean LIBS variable after tests.
24529
24530 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24531
24532 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
24533
24534 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24535
24536 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
24537 echo if libdevmapper will be used.
24538
24539 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
24540
24541 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
24542 constant for the same file.
24543
24544 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24545
24546 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
24547
24548 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24549
24550 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
24551 grub-core/*.pp.
24552
24553 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24554
24555 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
24556 required by the boot protocol.
24557
24558 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
24559 ebp and edi members.
24560 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
24561 state.ebp and state.edi.
24562 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
24563 %ebp and %edi according to grub_relocator32_ebp and
24564 grub_relocator32_edi respectively.
24565 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
24566 and state.edi.
24567
24568 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24569
24570 Add i386-pc-pxe image target.
24571
24572 * util/grub-mkimage.c (image_target_desc): New enum value
24573 IMAGE_I386_PC_PXE.
24574 (image_targets): New target i386-pc-pxe.
24575 (generate_image): Handle i386-pc-pxe image.
24576
24577 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24578
24579 Fix grub_pxe_scan.
24580
24581 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
24582 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
24583 All users updated.
24584 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
24585 (grub_pxe_pxenv): Correct type.
24586
24587 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24588
24589 * NEWS: Document most of the important changes since 1.98.
24590
24591 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24592
24593 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
24594 generated manual page) a little.
24595
24596 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24597
24598 * docs/grub.texi: Add myself as an author.
24599
24600 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
24601
24602 * Makefile.util.def (libgrub.a): Add missing sunpc.
24603 Reported by: Seth Goldberg.
24604
24605 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24606
24607 Interrupt wrapping and code simplifications.
24608
24609 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
24610 x86_noieee1275 which are functionaly equivalent in this case.
24611 (grub-install): Make source on each platform explicit. Enable on
24612 all noemu.
24613 * gentpl.py (x86_efi_pc): Removed group.
24614 (x86_noefi): Likewise.
24615 (i386_noefi): Likewise.
24616 (x86_noieee1275): Likewise.
24617 (i386_noieee1275): Likewise.
24618 (i386_noefi_noieee1275): Likewise.
24619 (i386_pc_qemu_coreboot): Likewise.
24620 (i386_coreboot_multiboot): Likewise.
24621 (i386_pc_coreboot_multiboot_qemu): Likewise.
24622 (x86_noefi_mips): Likewise.
24623 (noieee1275): Likewise.
24624 (ieee1275_mips): Likewise.
24625 (noemu_noieee1275): Likewise.
24626 (cmos): New group.
24627 (usb): Likewise.
24628 (videoinkernel): Likewise.
24629 (videomodules): Likewise.
24630 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
24631 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
24632 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
24633 include/grub/loader.h, include/grub/msdos_partition.h,
24634 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
24635 include/grub/machine/console.h, include/grub/machine/vga.h,
24636 include/grub/machine/vbe.h, include/grub/machine/init.h,
24637 include/grub/machine/kernel.h, include/grub/cpu/time.h,
24638 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
24639 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
24640 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
24641 * grub-core/Makefile.core.def (kernel): Explicit the source for
24642 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
24643 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
24644 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
24645 Use videoinkernel tag.
24646 (usb): Enable on all usb.
24647 (usbserial_common): Likewise.
24648 (usbserial_pl2303): Likewise.
24649 (usbserial_ftdi): Likewise.
24650 (uhci): Enable on all x86.
24651 (ohci): Enable on all pci.
24652 (cmostest): Enable on all CMOS.
24653 (acpi): Include commands/acpi.c on all platforms.
24654 (halt): Add relevant lib/*/halt.c.
24655 (hdparm): Enable on all pci.
24656 (lspci): Likewise.
24657 (usbtest): Enable on all usb.
24658 (ata): Enable on all pci.
24659 (ata_pthru): Likewise.
24660 (usbms): Enable on all usb.
24661 (usb_keyboard): Likewise.
24662 (font): Use tag videomodules.
24663 (bufio): Likewise.
24664 (datetime): Use tag cmos. Enable on all noemu.
24665 (mmap): Use tags common and x86.
24666 (gfxterm): Use tag videomodules.
24667 (bitmap): Likewise.
24668 (bitmap_scale): Likewise.
24669 (video_fb): Likewise.
24670 (video): Likewise.
24671 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
24672 adjust padding accordingly. All users updated.
24673 (grub_ohci_transaction): Fix bad format specification.
24674 (GRUB_MOD_INIT): Add asserts for struct size.
24675 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
24676 (grub_alloc_td): Likewise.
24677 (grub_free_queue): Likewise.
24678 (grub_uhci_transfer): Likewise.
24679 (grub_uhci_transaction): Fix bad format specification.
24680 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
24681 (grub_usb_bulk_readwrite): Likewise.
24682 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
24683 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
24684 Made static.
24685 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
24686 Made static.
24687 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
24688 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
24689 Transformed into C.
24690 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
24691 Moved from here ...
24692 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
24693 ... here. Transformed into C. Made static.
24694 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
24695 Moved from here ...
24696 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
24697 ... here. Transformed into C. Made static.
24698 * grub-core/kern/i386/pc/startup.S
24699 (grub_biosdisk_check_int13_extensions): Moved from here ...
24700 * grub-core/disk/i386/pc/biosdisk.c
24701 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
24702 Made static.
24703 * grub-core/kern/i386/pc/startup.S
24704 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
24705 * grub-core/disk/i386/pc/biosdisk.c
24706 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
24707 Transformed into C. Made static.
24708 * grub-core/kern/i386/pc/startup.S
24709 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
24710 * grub-core/disk/i386/pc/biosdisk.c
24711 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
24712 Transformed into C. Made static.
24713 * grub-core/kern/i386/pc/startup.S
24714 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
24715 * grub-core/disk/i386/pc/biosdisk.c
24716 (grub_biosdisk_get_diskinfo_standard): ... here.
24717 Transformed into C. Made static.
24718 * grub-core/kern/i386/pc/startup.S
24719 (grub_biosdisk_get_num_floppies): Moved from here ...
24720 * grub-core/disk/i386/pc/biosdisk.c
24721 (grub_biosdisk_get_num_floppies): ... here.
24722 Transformed into C. Made static.
24723 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
24724 New function.
24725 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
24726 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
24727 Transformed into C. Made static.
24728 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
24729 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
24730 Transformed into C. Made static.
24731 * grub-core/kern/i386/ieee1275/init.c: Removed.
24732 * grub-core/kern/i386/misc.S: Likewise.
24733 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
24734 Splitted from here ...
24735 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
24736 Transformed into C. Made static. All users updated.
24737 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
24738 Transformed into C. Made static. All users updated.
24739 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
24740 Moved from here...
24741 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
24742 Transformed into C. Made static. All users updated.
24743 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
24744 Moved from here...
24745 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
24746 Transformed into C. Made static. All users updated.
24747 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
24748 Removed (replaced by C version).
24749 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
24750 Moved from here...
24751 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
24752 Transformed into C. Made static.
24753 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
24754 Moved from here...
24755 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
24756 ... here. Transformed into C.
24757 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
24758 Moved from here...
24759 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
24760 ... here. Transformed into C.
24761 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
24762 Moved from here...
24763 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
24764 ... here. Transformed into C. Made static.
24765 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
24766 Moved from here...
24767 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
24768 ... here. Transformed into C.
24769 * grub-core/kern/i386/pc/startup.S
24770 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
24771 * grub-core/video/i386/pc/vbe.c
24772 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
24773 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
24774 Moved from here...
24775 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
24776 ... here. Transformed into C.
24777 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
24778 Moved from here...
24779 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
24780 ... here. Transformed into C.
24781 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
24782 Moved from here...
24783 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
24784 ... here. Transformed into C.
24785 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
24786 Moved from here...
24787 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
24788 ... here. Transformed into C.
24789 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
24790 Moved from here...
24791 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
24792 ... here. Transformed into C. Made static.
24793 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
24794 Moved from here...
24795 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
24796 ... here. Transformed into C. Made static.
24797 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
24798 Moved from here...
24799 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
24800 ... here. Transformed into C. Made static.
24801 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
24802 pxe_rm_entry as third argument.
24803 (grub_bios_interrupt): New function.
24804 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
24805 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
24806 of calling grub_stop.
24807 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
24808 * grub-core/lib/efi/halt.c (grub_halt): ...here.
24809 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
24810 * grub-core/lib/emu/halt.c (grub_halt): ... here.
24811 * grub-core/lib/i386/halt.c: Moved from here ...
24812 * grub-core/lib/i386/halt.c: ... here.
24813 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
24814 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
24815 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
24816 grub_stop_floppy.
24817 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
24818 * include/grub/i386/coreboot/init.h: Removed.
24819 * include/grub/i386/multiboot/init.h: Likewise.
24820 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
24821 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
24822 * include/grub/i386/pc/int.h: New file.
24823 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
24824 (grub_pxe_scan): Removed.
24825 (grub_pxe_call): Update prototype.
24826 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
24827 prototypes.
24828 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
24829 * include/grub/i386/qemu/init.h: Removed.
24830 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
24831 noreturn.
24832 (grub_halt): Likewise.
24833 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
24834 (grub_reboot): Likewise.
24835 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
24836 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
24837 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
24838
24839 2010-08-30 Robert Millan <rmh@gnu.org>
24840
24841 * NEWS: Document addition of ZFS support in `grub-install' and
24842 `grub-mkconfig'.
24843
24844 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
24845
24846 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
24847 dprintf output.
24848
24849 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24850
24851 Remove leftover embedding of font objects.
24852
24853 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
24854 * util/grub-install.in (font): Removed.
24855 * util/grub-mkimage.c (generate_image): Remove font support. All users
24856 updated.
24857
24858 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24859
24860 Remove leftover embedding of font objects.
24861
24862 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
24863 * util/grub-install.in (font): Removed.
24864 * util/grub-mkimage.c (generate_image): Remove font support. All users
24865 updated.
24866
24867 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24868
24869 * docs/grub.texi (Network): Fix reference to pxe_blksize.
24870 Reported by: Ian Turner
24871
24872 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24873
24874 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
24875 timeout to avoid indefinite boot stalling.
24876
24877 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24878
24879 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
24880 (grub_env_write_color_highlight): Likewise.
24881
24882 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24883
24884 * grub-core/normal/term.c (print_more): Return to normal and not
24885 to standard state after printing "---MORE---".
24886
24887 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24888
24889 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
24890 Mask out the bit 0x80 since it has other meaning that specifiing color.
24891
24892 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
24893
24894 New relocator. Allows for more kernel support and more straightforward
24895 loader writing.
24896
24897 * Makefile.am (BOOTTARGET): New variable.
24898 (QEMU32): Likewise.
24899 (linux.init.x86_64): New target.
24900 (linux.init.i386): Likewise.
24901 (multiboot.elf): Likewise.
24902 (kfreebsd.elf): Likewise.
24903 (kfreebsd.aout): Likewise.
24904 (pc-chainloader.elf): Likewise.
24905 (pc-chainloader.bin): Likewise.
24906 (ntldr.elf): Likewise.
24907 (ntldr.bin): Likewise.
24908 (multiboot2.elf): Likewise.
24909 (kfreebsd.init.x86_64): Likewise.
24910 (kfreebsd.init.i386): Likewise.
24911 (knetbsd.init.i386): Likewise.
24912 (kopenbsd.init.i386): Likewise.
24913 (knetbsd.init.x86_64): Likewise.
24914 (kopenbsd.init.x86_64): Likewise.
24915 (linux-initramfs.i386): Likewise.
24916 (linux-initramfs.x86_64): Likewise.
24917 (kfreebsd-mfsroot.i386.img): Likewise.
24918 (knetbsd.image.i386): Likewise.
24919 (kopenbsd.image.i386): Likewise.
24920 (kopenbsd.image.x86_64): Likewise.
24921 (knetbsd.miniroot-image.i386.img): Likewise.
24922 (kfreebsd-mfsroot.x86_64.img): Likewise.
24923 (knetbsd.image.x86_64): Likewise.
24924 (knetbsd.miniroot-image.x86_64.img): Likewise.
24925 (kfreebsd-mfsroot.i386.gz): Likewise.
24926 (bootcheck-kfreebsd-i386): Likewise.
24927 (kfreebsd-mfsroot.x86_64.gz): Likewise.
24928 (bootcheck-kfreebsd-x86_64): Likewise.
24929 (knetbsd.miniroot-image.i386.gz): Likewise.
24930 (bootcheck-knetbsd-i386): Likewise.
24931 (bootcheck-kopenbsd-i386): Likewise.
24932 (bootcheck-kopenbsd-x86_64): Likewise.
24933 (knetbsd.miniroot-image.x86_64.gz): Likewise.
24934 (bootcheck-knetbsd-x86_64): Likewise.
24935 (bootcheck-linux-i386): Likewise.
24936 (bootcheck-linux-x86_64): Likewise.
24937 (bootcheck-linux16-i386): Likewise.
24938 (bootcheck-linux16-x86_64): Likewise.
24939 (bootcheck-multiboot): Likewise.
24940 (bootcheck-multiboot2): Likewise.
24941 (bootcheck-kfreebsd-aout): Likewise.
24942 (bootcheck-pc-chainloader): Likewise.
24943 (bootcheck-ntldr): Likewise.
24944 (CLEANFILES): Add new targets.
24945 (BOOTCHECKS): New variable.
24946 (.PHONY): Add bootchecks.
24947 (SUCCESSFUL_BOOT_STRING): New variable.
24948 (BOOTCHECK_TIMEOUT): Likewise.
24949 (bootcheck): New target
24950 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
24951 * configure.ac: Correct efiemu excuse.
24952 * docs/grub.texi (Supported kernels): New chapter.
24953 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
24954 include/grub/mm_private.h. Simplify inclusion of
24955 include/grub/boot.h, include/grub/loader.h
24956 and include/grub/msdos_partition.h
24957 (KERNEL_HEADER_FILES) [i386_coreboot]:
24958 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
24959 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
24960 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
24961 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
24962 include/grub/machine/loader.h.
24963 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
24964 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
24965 extra_dist.
24966 (pci.mod): Enable on i386-multiboot.
24967 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
24968 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
24969 i386-qemu.
24970 (relocator.mod): Rewritten.
24971 (aout.mod): Enable on all x86.
24972 (bsd.mod): Likewise.
24973 (ntldr.mod): New module.
24974 (linux.mod): Use loader/i386/linux.c on all x86.
24975 (xnu.mod): Enable on all x86.
24976 (vga_text.mod): disable on EFI and QEMU.
24977 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
24978 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
24979 * grub-core/efiemu/loadcore.c: Likewise.
24980 * grub-core/efiemu/main.c: Likewise.
24981 (grub_efiemu_exit_boot_services): Removed.
24982 (grub_efiemu_finish_boot_services): Likewise.
24983 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
24984 function.
24985 * grub-core/efiemu/i386/nocfgtables.c: New file.
24986 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
24987 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
24988 (grub_efi_finish_boot_services): Moved from here ...
24989 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
24990 Fille finish memory map and related data.
24991 (finish_mmap_buf): New variable.
24992 (grub_efi_uintn_t finish_mmap_size): Likewise.
24993 (grub_efi_uintn_t finish_key): Likewise.
24994 (grub_efi_uintn_t finish_desc_size): Likewise.
24995 (grub_efi_uint32_t finish_desc_version): Likewise.
24996 (grub_efi_is_finished): Likewise.
24997 (grub_efi_get_memory_map): Use saved memory map if EFI is already
24998 finished.
24999 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
25000 (grub_elf64_phdr_iterate): Likewise.
25001 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
25002 (grub_os_area_size): Likewise.
25003 (grub_machine_init): Don't reserve os area.
25004 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
25005 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
25006 * grub-core/kern/i386/loader.S: Removed.
25007 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
25008 (grub_os_area_size): Likewise.
25009 (grub_machine_init): Don't reserve os area.
25010 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
25011 Don't call grub_dl_unload_all.
25012 Don't include loader.S.
25013 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
25014 Declare the memory after _end as available.
25015 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
25016 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
25017 (GRUB_MM_ALLOC_MAGIC): Moved from here...
25018 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
25019 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
25020 * include/grub/mm_private.h (grub_mm_header): ... here.
25021 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
25022 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
25023 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
25024 (grub_mm_region): ..here. Removed addr. Added pre_size.
25025 All users updated.
25026 * grub-core/kern/mm.c (base): Renamed to ...
25027 (grub_mm_base): ... this. Made global.
25028 (grub_real_malloc): Alloc from end of region.
25029 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
25030 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
25031 * grub-core/kern/powerpc/cache_flush.S: ... here.
25032 * grub-core/lib/efi/relocator.c: New file.
25033 * grub-core/lib/i386/relocator.c: Rewritten.
25034 * grub-core/lib/i386/relocator16.S: New file.
25035 * grub-core/lib/i386/relocator32.S: Likewise.
25036 * grub-core/lib/i386/relocator64.S: Likewise.
25037 * grub-core/lib/i386/relocator_asm.S: Rewritten.
25038 * grub-core/lib/i386/relocator_common.S: New file.
25039 * grub-core/lib/ieee1275/relocator.c: Likewise.
25040 * grub-core/lib/mips/relocator.c: Rewritten.
25041 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
25042 stylistic adjustments.
25043 * grub-core/lib/powerpc/relocator.c: New file.
25044 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
25045 * grub-core/lib/relocator.c: Rewritten.
25046 * grub-core/lib/x86_64/relocator_asm.S: New file.
25047 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
25048 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
25049 (bsd_tag): New struct.
25050 (tags): New variable.
25051 (tags_last): Likewise.
25052 (netbsd_module): New struct.
25053 (netbsd_mods): New variable.
25054 (netbsd_mods_last): Likewise.
25055 (openbsd_opts): New parameter "serial".
25056 (OPENBSD_SERIAL_ARG): New definition.
25057 (netbsd_opts): New parameter "serial".
25058 (NETBSD_SERIAL_ARG): New definition.
25059 (grub_freebsd_add_meta): Reorganised into ...
25060 (grub_bsd_add_meta): ...this. All users updated.
25061 (grub_freebsd_add_mmap): Reorganised into ...
25062 (generate_e820_mmap): ...this...
25063 (grub_bsd_add_mmap): ...and this. All users updated.
25064 (grub_freebsd_list_modules): Use tags.
25065 (grub_netbsd_add_meta_module): New function.
25066 (grub_netbsd_list_modules): Likewise.
25067 (grub_freebsd_boot): Use relocator and finish EFI.
25068 (grub_openbsd_boot): Likewise.
25069 (grub_netbsd_setup_video): New function.
25070 (grub_netbsd_add_modules): Likewise.
25071 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
25072 and finish EFI.
25073 (grub_bsd_unload): Unload tags.
25074 (grub_bsd_load_aout): Use relocator.
25075 (grub_bsd_elf32_size_hook): New function.
25076 (grub_bsd_elf32_hook): Use relocator.
25077 (grub_bsd_elf64_size_hook): New function.
25078 (grub_bsd_elf64_hook): Use relocator.
25079 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
25080 (grub_bsd_load): Zero-out openbsd_ramdisk.
25081 (grub_bsd_load): Use relocator.
25082 (grub_cmd_openbsd): Support serial.
25083 (grub_cmd_netbsd): Support modules.
25084 (grub_cmd_freebsd_module): Use relocator.
25085 (grub_netbsd_module_load): New function.
25086 (grub_cmd_netbsd_module): Likewise.
25087 (grub_cmd_openbsd_ramdisk): Likewise.
25088 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
25089 kopenbsd_ramdisk.
25090 (GRUB_MOD_FINI): Unregister new commands.
25091 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
25092 (grub_freebsd_load_elfmodule_obj): Use relocator.
25093 (grub_freebsd_load_elfmodule): Likewise.
25094 (grub_freebsd_load_elf_meta): Likewise.
25095 (grub_netbsd_load_elf_meta): New function.
25096 (grub_openbsd_find_ramdisk): Likewise.
25097 * grub-core/loader/i386/bsd_helper.S: Removed.
25098 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
25099 * grub-core/loader/i386/bsd_trampoline.S: Removed.
25100 * grub-core/loader/i386/efi/linux.c: Likewise.
25101 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
25102 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
25103 (DEFAULT_VIDEO_MODE): Likewise.
25104 (real_mode_target): New variable.
25105 (prot_mode_target): Likewise.
25106 (initrd_mem_target): Likewise.
25107 (relocator): Likewise.
25108 (efi_mmap_buf): Likewise.
25109 (efi_mmap_size): Likewise.
25110 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
25111 (free_pages): Use relocator.
25112 (allocate_pages): Account for efi_mmap and use relocator. Return error.
25113 (grub_linux_setup_video): Return error.
25114 (grub_linux_trampoline_start): Removed.
25115 (grub_linux_trampoline_end): Likewise.
25116 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
25117 andd video parameters depending on firmware.
25118 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
25119 [GRUB_MACHINE_EFI]: Pass EFI parameters.
25120 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
25121 (grub_cmd_initrd): Use relocator.
25122 * grub-core/loader/i386/linux_trampoline.S: Removed.
25123 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
25124 (elf_sec_entsize): Likewise.
25125 (elf_sec_shstrndx): Likewise.
25126 (elf_sections): Likewise.
25127 (grub_multiboot_load): Use relocator.
25128 (grub_multiboot_get_mbi_size): Account for sections.
25129 (grub_multiboot_make_mbi): Use relocator and support sections.
25130 (grub_multiboot_add_elfsyms): New function.
25131 (grub_multiboot_free_mbi): Free sections.
25132 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
25133 (grub_linux_real_target): Likewise.
25134 (grub_linux_real_chunk): Likewise.
25135 (grub_linux16_prot_size): Likewise.
25136 (grub_linux16_boot): Use relocator.
25137 (grub_linux_unload): Unload relocator.
25138 (grub_cmd_linux): Use relocator.
25139 (grub_cmd_initrd): Likewise.
25140 * grub-core/loader/i386/pc/ntldr.c: New file.
25141 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
25142 Don't try to guess CPU frequency.
25143 (grub_xnu_set_video): Stretch bitmap.
25144 (grub_xnu_boot): Use relocator.
25145 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
25146 (grub_linux_unload): Free relocator.
25147 (grub_linux_load32): Use relocator.
25148 (grub_linux_load64): Likewise.
25149 (grub_cmd_initrd): Likewise.
25150 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
25151 (grub_multiboot_unload): Unload relocator.
25152 (grub_cmd_multiboot): Use relocator.
25153 (grub_cmd_module): Likewise.
25154 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
25155 Use relocator and support sections.
25156 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
25157 (elf_sec_entsize): Likewise.
25158 (elf_sec_shstrndx): Likewise.
25159 (elf_sections): Likewise.
25160 (grub_multiboot_load): Use relocator.
25161 (grub_multiboot_get_mbi_size): Account for sections.
25162 (grub_multiboot_make_mbi): Use relocator and support sections.
25163 (grub_multiboot_add_elfsyms): New function.
25164 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
25165 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
25166 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
25167 Prototype changed. All users updated.
25168 (grub_xnu_align_heap): Simplified.
25169 (grub_xnu_writetree_toheap): Likewise.
25170 (grub_xnu_unload): Unload relocator.
25171 (grub_cmd_xnu_kernel): Use relocator.
25172 (grub_cmd_xnu_kernel64): Likewise.
25173 (grub_xnu_register_memory): Simplified.
25174 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
25175 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
25176 EFI is finished.
25177 (grub_console_checkkey): Likewise.
25178 (grub_console_getkey): Likewise.
25179 (grub_console_getwh): Likewise.
25180 (grub_console_getxy): Likewise.
25181 (grub_console_gotoxy): Likewise.
25182 (grub_console_cls): Likewise.
25183 (grub_console_setcolorstate): Likewise.
25184 (grub_console_setcursor): Likewise.
25185 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
25186 * grub-core/tests/boot/kbsd.init-i386.S: New file.
25187 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
25188 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
25189 * grub-core/tests/boot/kernel-8086.S: Likewise.
25190 * grub-core/tests/boot/kernel-i386.S: Likewise.
25191 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
25192 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
25193 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
25194 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
25195 * grub-core/tests/boot/knetbsd.cfg: Likewise.
25196 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
25197 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
25198 * grub-core/tests/boot/linux.cfg: Likewise.
25199 * grub-core/tests/boot/linux.init-i386.S: Likewise.
25200 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
25201 * grub-core/tests/boot/linux16.cfg: Likewise.
25202 * grub-core/tests/boot/multiboot.cfg: Likewise.
25203 * grub-core/tests/boot/multiboot2.cfg: Likewise.
25204 * grub-core/tests/boot/ntldr.cfg: Likewise.
25205 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
25206 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
25207 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
25208 New definition.
25209 * include/grub/dl.h (grub_dl_unload_all): Removed.
25210 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
25211 (grub_efi_finish_boot_services): Change prototype.
25212 (grub_efi_is_finished): New variable.
25213 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
25214 Changed prototype.
25215 (grub_efiemu_finish_boot_services): Removed.
25216 (grub_machine_efiemu_init_tables): New prototype.
25217 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
25218 (grub_elf64_phdr_iterate): Likewise.
25219 * include/grub/i386/bsd.h: Include relocator.h.
25220 (freebsd_tag_header): New struct.
25221 (grub_openbsd_bios_mmap): Removed.
25222 (grub_unix_real_boot): Removed.
25223 (grub_freebsd_load_elfmodule32): Changed prototype.
25224 (grub_freebsd_load_elfmodule_obj64): Likewise.
25225 (grub_freebsd_load_elf_meta32): Likewise.
25226 (grub_freebsd_load_elf_meta64): Likewise.
25227 (grub_freebsd_add_meta): Removed.
25228 (grub_netbsd_load_elf_meta32): New prototype.
25229 (grub_netbsd_load_elf_meta64): Likewise.
25230 (grub_bsd_add_meta): Likewise.
25231 (grub_openbsd_ramdisk_descriptor): New struct.
25232 (grub_openbsd_find_ramdisk32): New prototype.
25233 (grub_openbsd_find_ramdisk64): Likewise.
25234 * include/grub/i386/coreboot/loader.h: Removed.
25235 * include/grub/i386/efi/loader.h: Likewise.
25236 * include/grub/i386/ieee1275/loader.h: Likewise.
25237 * include/grub/i386/linux.h (linux_kernel_header): Change void *
25238 to grub_uint32_t.
25239 * include/grub/i386/loader.h: Removed.
25240 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
25241 value.
25242 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
25243 (grub_phys_addr_t): New type.
25244 (grub_vtop): New inline function.
25245 (grub_map_memory): Likewise.
25246 (grub_unmap_memory): Likewise.
25247 * include/grub/i386/multiboot/loader.h: Removed.
25248 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
25249 (NETBSD_BTINFO_CONSOLE): New definition.
25250 (NETBSD_BTINFO_SYMTAB): Likewise.
25251 (NETBSD_BTINFO_MODULES): Likewise.
25252 (NETBSD_BTINFO_FRAMEBUF): Likewise.
25253 (grub_netbsd_bootinfo): New struct.
25254 (grub_netbsd_btinfo_common): Use explicit bitsize.
25255 (grub_netbsd_btinfo_mmap_entry): Removed.
25256 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
25257 (grub_netbsd_btinfo_bootdisk): New struct.
25258 (grub_netbsd_btinfo_symtab): Likewise.
25259 (grub_netbsd_btinfo_serial): Likewise.
25260 (grub_netbsd_btinfo_modules): Likewise.
25261 (grub_netbsd_btinfo_framebuf): Likewise.
25262 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
25263 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
25264 Likewise.
25265 (grub_openbsd_bootargs): Use explicit bitsize.
25266 (grub_openbsd_bootarg_console): New struct.
25267 (GRUB_OPENBSD_COM_MAJOR): New definition.
25268 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
25269 * include/grub/i386/pc/efiemu.h: Removed.
25270 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
25271 * include/grub/i386/qemu/loader.h: Removed.
25272 * include/grub/i386/relocator.h: Rewritten.
25273 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
25274 * include/grub/mips/memory.h: New file.
25275 * include/grub/mips/multiboot.h: Rewritten.
25276 * include/grub/mips/relocator.h: Rewritten.
25277 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
25278 (grub_vtop): New function.
25279 (grub_map_memory): Likewise.
25280 (grub_unmap_memory): Likewise.
25281 * include/grub/misc.h (ALIGN_DOWN): New definition.
25282 * include/grub/mm.h (grub_mm_check_real): New proto.
25283 (GRUB_MM_CHECK): New definition.
25284 * include/grub/mm_private.h: New file.
25285 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
25286 (grub_multiboot_get_mbi_size): Removed.
25287 (grub_multiboot_make_mbi): Change prottype.
25288 (grub_multiboot_set_accepts_video): New proto.
25289 (grub_multiboot_add_elfsyms): Likewise.
25290 (grub_multiboot_payload_eip): New variable.
25291 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
25292 New prototype.
25293 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
25294 New definition.
25295 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
25296 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
25297 * include/grub/powerpc/ieee1275/loader.h: Removed.
25298 * include/grub/powerpc/memory.h: New file.
25299 * include/grub/powerpc/relocator.h: Likewise.
25300 * include/grub/relocator.h: Likewise.
25301 * include/grub/relocator_private.h: Likewise.
25302 * include/grub/sparc64/ieee1275/loader.h: Removed.
25303 * include/grub/x86_64/memory.h: New file.
25304 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
25305 (grub_xnu_heap_malloc): Likewise.
25306 (grub_xnu_heap_real_start): Removed.
25307 (grub_xnu_heap_start): Likewise.
25308 (grub_xnu_relocator): New variable.
25309 (grub_xnu_heap_target_start): Likewise.
25310 * tests/util/grub-shell.in: Support non-pc.
25311 * util/grub-mkimage.c (image_targets): Fix multiboot target.
25312
25313 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25314
25315 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
25316 on malloc error.
25317 (grub_bidi_logical_to_visual): Check that malloc succeded.
25318 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
25319 puts.
25320 (grub_xputs_normal): Likewise.
25321
25322 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25323
25324 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
25325 extra_dist.
25326
25327 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25328
25329 * grub-core/efiemu/runtime/efiemu.sh: Removed.
25330
25331 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25332
25333 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
25334
25335 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25336
25337 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
25338 dprintf.
25339
25340 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
25341
25342 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
25343
25344 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25345
25346 * grub-core/normal/term.c (print_more): Fix a memory leak.
25347 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
25348 (grub_xputs_normal): Likewise.
25349
25350 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25351
25352 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
25353 the begining of the string
25354
25355 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25356
25357 * grub-core/script/script.c (grub_script_parse): Free parsed on
25358 failure.
25359
25360 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25361
25362 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
25363 on failure.
25364
25365 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25366
25367 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
25368 return.
25369
25370 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25371
25372 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
25373 (scroll_up): Fix a memory leak.
25374
25375 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25376
25377 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
25378 errors.
25379
25380 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
25381
25382 Handle USB pendrives exposed as floppies.
25383
25384 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
25385 floppy.
25386 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
25387 Check for partitions on all devices.
25388
25389 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
25390
25391 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
25392 (readkey): Likewise.
25393
25394 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
25395
25396 Multiple variable names support to "export" command.
25397
25398 * normal/context.c (grub_cmd_export): "export" command supports
25399 multiple variable names.
25400
25401 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
25402
25403 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
25404 --target=drive output to Mach device name.
25405
25406 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25407
25408 New Automake based build system for GRUB.
25409
25410 * ABOUT-NLS: New file.
25411 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
25412 in Makefile.util.def file.
25413 * Makefile.util.def: New file. Autogen build definitions file for
25414 GRUB host utils.
25415 * conf/Makefile.common: New file. Common variables for GRUB host
25416 utils and target modules.
25417 * conf/Makefile.extra-dist: New file. Extra files for make dist.
25418 * docs/Makefile.am: New file. Automake file for docs.
25419 * gentpl.py: New file. Python script to generate Autogen
25420 template.
25421 * grub-core/Makefile.am: New file. GRUB target modules' rules
25422 that doesn't fit in Makefile.core.def file.
25423 * grub-core/Makefile.core.def: New file. Autogen build
25424 definitions file for GRUB target modules.
25425 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
25426 specific setjmp.S file.
25427 * po/Makefile.am: New file.
25428
25429 * .bzrignore: New ignores.
25430 * INSTALL: New requirements, without Ruby.
25431 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
25432 * autogen.sh: Updated to invoke autogen as necessary.
25433 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
25434 and defines for Automake conditionals.
25435 * geninit.sh: Refactoring.
25436
25437 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
25438 necessary.
25439 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
25440 New prototype.
25441
25442 * include/grub/test.h: Fix functional test modules' naming.
25443 * grub-core/tests/example_functional_test.c: Fix test module name.
25444
25445 * util/misc.c: Hosted versions' of grub functions for libgrub.a
25446 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
25447 * util/grub-editenv.c: Likewise.
25448 * util/grub-fstest.c: Likewise.
25449 * util/grub-mkdevicemap.c: Likewise.
25450 * util/grub-mkfont.c: Likewise.
25451 * util/grub-mkimage.c: Likewise.
25452 * util/grub-mkpasswd-pbkdf2.c: Likewise.
25453 * util/grub-probe.c: Likewise.
25454 * util/grub-script-check.c: Likewise.
25455 * util/i386/pc/grub-setup.c: Likewise.
25456 * util/sparc64/ieee1275/grub-setup.c: Likewise.
25457
25458 * tests/util/grub-shell.in: Fix override directory path.
25459 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
25460 * util/import_gcry.py: Create Makefile.gcry.def file instead.
25461
25462 * util/lvm.c: Update #includes.
25463 * util/raid.c: Likewise.
25464 * util/resolve.c: Likewise.
25465 * grub-core/bus/emu/pci.c: Likewise.
25466 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
25467 * grub-core/lib/posix_wrap/string.h: Likewise.
25468 * grub-core/kern/emu/main.c: Likewise.
25469
25470 * grub-core/gensymlist.sh: New file. Script for generating kernel
25471 symbols file.
25472 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
25473
25474 * grub-core/gentrigtables.c: Fix unused variable warnings.
25475
25476 * Makefile.in: Removed.
25477 * conf/any-emu.rmk: Removed.
25478 * conf/common.rmk: Removed.
25479 * conf/i386-coreboot.rmk: Removed.
25480 * conf/i386-efi.rmk: Removed.
25481 * conf/i386-ieee1275.rmk: Removed.
25482 * conf/i386-multiboot.rmk: Removed.
25483 * conf/i386-pc.rmk: Removed.
25484 * conf/i386-qemu.rmk: Removed.
25485 * conf/i386.rmk: Removed.
25486 * conf/mips-yeeloong.rmk: Removed.
25487 * conf/mips.rmk: Removed.
25488 * conf/powerpc-ieee1275.rmk: Removed.
25489 * conf/sparc64-ieee1275.rmk: Removed.
25490 * conf/tests.rmk: Removed.
25491 * conf/x86-efi.rmk: Removed.
25492 * conf/x86_64-efi.rmk: Removed.
25493 * gendistlist.sh: Removed.
25494 * geninitheader.sh: Removed.
25495 * genkernsyms.sh.in: Removed.
25496 * genmk.rb: Removed.
25497 * gensymlist.sh.in: Removed.
25498 * mkinstalldirs: Removed.
25499 * boot: Moved ...
25500 * grub-core/boot: ... to here.
25501 * bus: Moved ...
25502 * grub-core/bus: ... to here.
25503 * commands: Moved ...
25504 * grub-core/commands: ... to here.
25505 * disk: Moved ...
25506 * grub-core/disk: ... to here.
25507 * efiemu: Moved ...
25508 * grub-core/efiemu: ... to here.
25509 * font: Moved ...
25510 * grub-core/font: ... to here.
25511 * fs: Moved ...
25512 * grub-core/fs: ... to here.
25513 * gencmdlist.sh: Moved ...
25514 * grub-core/gencmdlist.sh: ... to here.
25515 * genemuinit.sh: Moved ...
25516 * grub-core/genemuinit.sh: ... to here.
25517 * genemuinitheader.sh: Moved ...
25518 * grub-core/genemuinitheader.sh: ... to here.
25519 * genfslist.sh: Moved ...
25520 * grub-core/genfslist.sh: ... to here.
25521 * genhandlerlist.sh: Moved ...
25522 * grub-core/genhandlerlist.sh: ... to here.
25523 * genmoddep.awk: Moved ...
25524 * grub-core/genmoddep.awk: ... to here.
25525 * genmodsrc.sh: Moved ...
25526 * grub-core/genmodsrc.sh: ... to here.
25527 * genpartmaplist.sh: Moved ...
25528 * grub-core/genpartmaplist.sh: ... to here.
25529 * genparttoollist.sh: Moved ...
25530 * grub-core/genparttoollist.sh: ... to here.
25531 * genterminallist.sh: Moved ...
25532 * grub-core/genterminallist.sh: ... to here.
25533 * gentrigtables.c: Moved ...
25534 * grub-core/gentrigtables.c: ... to here.
25535 * genvideolist.sh: Moved ...
25536 * grub-core/genvideolist.sh: ... to here.
25537 * gettext: Moved ...
25538 * grub-core/gettext: ... to here.
25539 * gfxmenu: Moved ...
25540 * grub-core/gfxmenu: ... to here.
25541 * gnulib: Moved ...
25542 * grub-core/gnulib: ... to here.
25543 * hello: Moved ...
25544 * grub-core/hello: ... to here.
25545 * hook: Moved ...
25546 * grub-core/hook: ... to here.
25547 * io: Moved ...
25548 * grub-core/io: ... to here.
25549 * kern: Moved ...
25550 * grub-core/kern: ... to here.
25551 * lib: Moved ...
25552 * grub-core/lib: ... to here.
25553 * loader: Moved ...
25554 * grub-core/loader: ... to here.
25555 * mmap: Moved ...
25556 * grub-core/mmap: ... to here.
25557 * normal: Moved ...
25558 * grub-core/normal: ... to here.
25559 * partmap: Moved ...
25560 * grub-core/partmap: ... to here.
25561 * parttool: Moved ...
25562 * grub-core/parttool: ... to here.
25563 * script: Moved ...
25564 * grub-core/script: ... to here.
25565 * term: Moved ...
25566 * grub-core/term: ... to here
25567 * tests/example_functional_test.c: Moved ...
25568 * grub-core/tests/example_functional_test.c: ... to here.
25569 * tests/lib/functional_test.c: Moved ...
25570 * grub-core/tests/lib/functional_test.c: ... to here.
25571 * tests/lib/test.c: Moved ...
25572 * grub-core/tests/lib/test.c: ... to here.
25573 * video: Moved ...
25574 * grub-core/video: ... to here.
25575
25576 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25577
25578 Replace --enable-grub-emu-modules with grub-emu-lite.
25579
25580 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
25581 cache.S.
25582
25583 * include/grub/emu/misc.h (grub_emu_init): New prototype.
25584 * kern/emu/full.c: New file. For grub-emu specific initialization.
25585 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
25586 * kern/emu/main.c: Call initialization function grub_emu_init.
25587
25588 * Makefile.in: Include grub-emu-lite in install.
25589 * commands/parttool.c: Use grub_no_autoload to differentiate
25590 between grub-emu and grub-emu-lite.
25591 * include/grub/misc.h: New variable grub_no_autoload.
25592
25593 * conf/any-emu.rmk: New rules for grub-emu-lite.
25594 * configure.ac: Remove --enable-grub-emu-modules.
25595 * genmk.rb: Cleanup unnecessary rules.
25596 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
25597
25598 * normal/main.c: Don't load list files on grub-emu-lite.
25599 * util/misc.c (grub_arch_sync_caches): Removed.
25600
25601 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
25602
25603 * kern/mips/startup.S (grub_prefix): Update comment to refer to
25604 grub-mkimage rather than grub-mkelfimage.
25605 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
25606
25607 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
25608
25609 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
25610 a key after CapsLock or NumLock. It's just a qemu bug.
25611
25612 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25613
25614 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
25615 needed by libusb wrapper.
25616
25617 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
25618
25619 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
25620
25621 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25622
25623 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
25624 --nounzip is passed.
25625
25626 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
25627
25628 USB hotunplugging and USB serial support.
25629
25630 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
25631 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
25632 (grub_uhci_transfer): Respect timeout and set *actual.
25633 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
25634 non-standard length.
25635 (grub_usb_device_attach): Autoload modules.
25636 (GRUB_MOD_INIT): Set grub_term_poll_usb.
25637 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
25638 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
25639 users updated.
25640 (grub_usb_add_hub): Fill nports and children.
25641 (attach_root_port): Receive hub instead of controller.
25642 All users updated. Fill hub->devices.
25643 (grub_usb_root_hub): Allocate hub->devices.
25644 (detach_device): New function.
25645 (poll_nonroot_hub): Fill children and detach devices.
25646 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
25647 actual arguments. All users updated.
25648 (grub_usb_bulk_read_extended): New function.
25649 * bus/usb/serial/common.c: New file.
25650 * bus/usb/serial/ftdi.c: Likewise.
25651 * bus/usb/serial/pl2303.c: Likewise.
25652 * commands/terminal.c (handle_command): Support wildcard.
25653 * commands/usbtest.c: Output "Unknown" instead of empty string.
25654 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
25655 (usbserial_common_mod_SOURCES): New variable.
25656 (usbserial_common_mod_CFLAGS): Likewise.
25657 (usbserial_common_mod_LDFLAGS): Likewise.
25658 (pkglib_MODULES): Add usbserial_pl2303.mod.
25659 (usbserial_pl2303_mod_SOURCES): New variable.
25660 (usbserial_pl2303_mod_CFLAGS): Likewise.
25661 (usbserial_pl2303_mod_LDFLAGS): Likewise.
25662 (pkglib_MODULES): Add usbserial_ftdi.mod.
25663 (usbserial_ftdi_mod_SOURCES): New variable.
25664 (usbserial_ftdi_mod_CFLAGS): Likewise.
25665 (usbserial_ftdi_mod_LDFLAGS): Likewise.
25666 (pkglib_MODULES): Add serial.mod.
25667 (serial_mod_SOURCES): New variable.
25668 (serial_mod_CFLAGS): Likewise.
25669 (serial_mod_LDFLAGS): Likewise.
25670 * conf/i386-pc.rmk: Likewise.
25671 * conf/mips-yeeloong.rmk: Likewise.
25672 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
25673 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
25674 * disk/usbms.c (first_available_slot): New variable.
25675 (grub_usbms_attach): Don't reuse free slots due to potential cache
25676 problems.
25677 * include/grub/serial.h: Moved to ..
25678 * include/grub/ns8250.h: ...this.
25679 * include/grub/serial.h: New file.
25680 * include/grub/term.h (grub_term_poll_usb): New variable.
25681 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
25682 readkey. All users updated.
25683 (grub_terminfo_output_state): Pass term to put.
25684 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
25685 (grub_usb_controller_dev): Add timeout and actual arguments to
25686 transfer. All users updated.
25687 (grub_usb_interface): New field detach_data.
25688 (grub_usb_device): New fields children and nports.
25689 (grub_usb_ep_type_t): New type.
25690 (grub_usb_get_ep_type): New function.
25691 (grub_usb_bulk_read_extended): Likewise.
25692 * include/grub/usbdesc.h (grub_usb_desc): New type.
25693 * include/grub/usbserial.h: New file.
25694 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
25695 * kern/term.c (grub_term_poll_usb): New variable.
25696 (grub_getkey): Call grub_term_poll_usb if set.
25697 (grub_checkkey): Likewise.
25698 (grub_getkeystatus): Likewise.
25699 * term/serial.c: Moved controller-specific parts to ...
25700 * term/ns8250.c: ... here.
25701 * term/serial.c: Mostly rewritten.
25702 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
25703 according to spec.
25704
25705 2010-08-20 Robert Millan <rmh@gnu.org>
25706
25707 Make kFreeBSD code more generic to support ext2fs as root, ufs as
25708 a separate module and maybe other interesting combinations.
25709
25710 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
25711 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
25712 (kfreebsd_entry): Add generic filesystem module load routine.
25713 Map GRUB `ext2' to kFreeBSD `ext2fs'.
25714
25715 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25716
25717 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
25718 "numcenter" (I misunderstood the purpose of this entry).
25719 * docs/grub.texi (sendkey): Likewise.
25720
25721 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25722
25723 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
25724 status flag options; simply omitting the option is equivalent and
25725 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
25726 (keysym_table): Rename "num5numlock" to "numlock".
25727 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
25728 can uniformly say that only the last of multiple `sendkey'
25729 invocations has any effect.
25730 * docs/grub.texi (sendkey): New section.
25731
25732 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
25733
25734 * commands/i386/pc/sendkey.c (options): Fix three typos.
25735
25736 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
25737
25738 Implement sendkey support.
25739
25740 * commands/i386/pc/sendkey.c: New file.
25741 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
25742 (sendkey_mod_SOURCES): New variable.
25743 (sendkey_mod_CFLAGS): Likewise.
25744 (sendkey_mod_LDFLAGS): Likewise.
25745
25746 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25747
25748 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
25749 fix warnings from Autoconf.
25750
25751 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25752
25753 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
25754 to avoid false positives with some assemblers that output things
25755 like "someprefix_func" as part of their output.
25756
25757 2010-08-15 Robert Millan <rmh@gnu.org>
25758
25759 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
25760 errors.
25761 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
25762 grub_get_libzfs_handle() errors.
25763
25764 2010-08-14 Robert Millan <rmh@gnu.org>
25765
25766 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
25767 filesystem is not ZFS.
25768
25769 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25770
25771 Fix for misspelled color names defaulting to black/black (bug
25772 reported by Doug Nazar)
25773
25774 * include/grub/normal.h (grub_parse_color_name_pair): Add return
25775 status to prototype.
25776 * normal/color.c (grub_parse_color_name_pair): Return failure
25777 status.
25778 (grub_env_write_color_normal): Ignore bad color names.
25779 (grub_env_write_color_highlight): Likewise.
25780 * normal/main.c (GRUB_MOD_INIT): Set default color names.
25781
25782 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25783
25784 "shift" command support to GRUB script.
25785
25786 * include/grub/script_sh.h (grub_script_shift): New prototype.
25787 * script/execute.c (grub_script_shift): New function.
25788 * script/main.c (grub_script_init): Register shift command.
25789 (grub_script_fini): Unregister shift command.
25790 * util/grub-script-check.c (grub_script_cmd_shift): New function.
25791
25792 * tests/grub_script_shift.in: New testcase.
25793 * conf/tests.rmk: Rules for new testcase.
25794
25795 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25796
25797 "continue" command support to GRUB script.
25798
25799 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
25800 (grub_script_break): Continue support.
25801 * script/main.c (grub_script_init): Register continue command.
25802 (grub_script_fini): Unregister continue command.
25803
25804 * tests/grub_script_continue.in: New testcase.
25805 * conf/tests.rmk: Rules for new testcase.
25806
25807 2010-08-12 BVK Chaitanya <bvk@dbook>
25808
25809 "break" command support to GRUB script.
25810
25811 * conf/common.rmk: Rule updates to grub-script-check.
25812 * include/grub/misc.h (grub_min): New function.
25813 * include/grub/script_sh.h (grub_script_init): New prototype.
25814 (grub_script_fini): New prototype.
25815 (grub_script_break): New prototype.
25816 * script/main.c (grub_script_init): New function.
25817 (grub_script_fini): New function.
25818 * script/execute.c (grub_script_break): New function.
25819 * normal/main.c: Calls to grub_script_{init,fini}.
25820 * util/grub-script-check.c (grub_script_break): New function.
25821
25822 * tests/grub_script_break.in: New testcase.
25823 * conf/tests.rmk: Rules for new test case.
25824
25825 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25826
25827 Function parameters support to GRUB script.
25828
25829 * script/yylex.l (VARIABLE): Regular expression update.
25830 * script/function.c (grub_script_function_call): Moved ...
25831 * script/execute.c (grub_script_function_call): ... to here.
25832 (grub_script_execute_arglist_to_argv): Removed.
25833 (grub_script_arglist_to_argv): New function.
25834 * script/argv.c: New file.
25835 (grub_script_argv_free): New function.
25836 (grub_script_argv_next): Likewise.
25837 (grub_script_argv_append): Likewise.
25838 (grub_script_argv_split_append): Likewise.
25839 * include/grub/script_sh.h (grub_script_argv): New struct.
25840 (grub_script_argv_free): New function.
25841 (grub_script_argv_next): Likewise.
25842 (grub_script_argv_append): Likewise.
25843 (grub_script_argv_split_append): Likewise.
25844
25845 * conf/common.rmk (normal.mod): New source script/argv.c.
25846
25847 * tests/grub_script_echo1.in: More tests.
25848 * tests/grub_script_vars1.in: Likewise.
25849 * tests/grub_script_functions.in: New test case.
25850 * conf/tests.rmk: Rules for new testcase.
25851
25852 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25853
25854 Remove grub_script_cmdblock struct.
25855
25856 * include/grub/script_sh.h: Remove grub_script_cmdblock.
25857 * script/parser.y: Likewise.
25858 * script/execute.c: Rename cmdblock suffix to cmdlist.
25859 * script/script.c: Likewise.
25860 * util/grub-script-check.c: Likewise.
25861
25862 2010-08-11 Yves Blusseau <blusseau@zetam.org>
25863
25864 * .bzrignore: add grub-macho2img
25865
25866 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
25867
25868 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
25869
25870 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
25871
25872 Remove the dump of sm712 initialisation sequence.
25873
25874 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
25875 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
25876 (GRUB_VGA_IO_MISC_WRITE): Likewise.
25877 (GRUB_VGA_CR_*): Added many registers.
25878 (GRUB_VGA_SR_*): Likewise.
25879 (GRUB_VGA_GR_*): Likewise.
25880 (grub_vga_write_arx): New function.
25881 (grub_video_hw_config): New struct.
25882 (grub_vga_set_geometry): New function.
25883 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
25884 GRUB_PCI_CLASS_SUBCLASS_VGA.
25885 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
25886 * video/sm712.c (grub_sm712_write_reg): New function
25887 (grub_sm712_read_reg): Likewise.
25888 (grub_sm712_sr_write): Likewise.
25889 (grub_sm712_gr_write): Likewise.
25890 (grub_sm712_cr_write): Likewise.
25891 (grub_sm712_write_arx): Likewise.
25892 (grub_sm712_cr_shadow_write): Likewise.
25893 (grub_sm712_write_dda_lookup): Likewise.
25894 (grub_video_sm712_setup): Initialise the video rather then
25895 blindly replay the dump.
25896 (main) [TEST]: Add a routine to be able to compile as standalone for
25897 tests.
25898 * video/sm712_init.c (sm712_init): Removed.
25899 (sm712_sr_seq1): New array.
25900 (sm712_sr_seq2): Likewise.
25901
25902 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
25903
25904 * include/grub/vga.h: Add missing grub/pci.h include.
25905
25906 2010-08-10 Yves Blusseau <blusseau@zetam.org>
25907
25908 * util/grub-macho2img.c (main): fix typo
25909
25910 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
25911
25912 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
25913 (grub_vga_gr_read): Likewise.
25914 (grub_vga_cr_write): Likewise.
25915 (grub_vga_cr_read): Likewise.
25916 (grub_vga_sr_write): Likewise.
25917 (grub_vga_sr_read): Likewise.
25918 (grub_vga_palette_read): Likewise.
25919 (grub_vga_palette_write): Likewise.
25920 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
25921 (grub_sm712_sr_read): New function.
25922 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
25923 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
25924
25925 2010-08-09 Robert Millan <rmh@gnu.org>
25926
25927 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
25928 out unused variables on non-ZFS build.
25929
25930 2010-08-08 Robert Millan <rmh@gnu.org>
25931
25932 Fix path generation for sub-filesystems in ZFS.
25933
25934 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
25935 missing slash.
25936
25937 2010-08-08 Robert Millan <rmh@gnu.org>
25938
25939 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
25940
25941 2010-08-08 Robert Millan <rmh@gnu.org>
25942
25943 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
25944 exist, issue a proper error message (rely on `ls' for translated
25945 strings).
25946
25947 2010-08-08 Robert Millan <rmh@gnu.org>
25948
25949 Fix grub-probe invocation.
25950
25951 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
25952
25953 2010-08-04 Robert Millan <rmh@gnu.org>
25954
25955 * configure.ac: Remove checks for getfsstat() and getmntany().
25956 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
25957 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
25958 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
25959 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
25960 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
25961 function.
25962 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
25963 via find_mount_point_from_dir() and getfsstat() / getmntany().
25964
25965 2010-08-04 Robert Millan <rmh@gnu.org>
25966
25967 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
25968 (grub_find_zpool_from_mount_point): Merge into ...
25969 (grub_find_zpool_from_dir): ... this.
25970 * kern/emu/misc.c: Likewise.
25971
25972 * kern/emu/misc.c
25973 (grub_make_system_path_relative_to_its_root): Replace
25974 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
25975 with grub_find_zpool_from_dir().
25976 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
25977
25978 2010-08-04 Robert Millan <rmh@gnu.org>
25979
25980 Support OpenSolaris in ZFS device resolution.
25981
25982 * configure.ac: Check for getmntany().
25983 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
25984 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
25985 support.
25986
25987 2010-08-03 Robert Millan <rmh@gnu.org>
25988
25989 Fix grub-emu build.
25990
25991 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
25992 * include/grub/emu/misc.h: ... here.
25993
25994 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
25995 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
25996
25997 * util/misc.c: Remove `<grub/util/libzfs.h>'.
25998 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
25999 (grub_get_libzfs_handle): Move to ...
26000 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
26001 (grub_get_libzfs_handle): ... here.
26002
26003 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
26004
26005 * script/execute.c (grub_script_execute_cmdline): Check for NULL
26006 as command name case.
26007
26008 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
26009
26010 * disk/raid.c (insert_array): Select unique numbers for named arrays
26011 as well, for use as keys in the disk cache.
26012
26013 2010-08-01 Robert Millan <rmh@gnu.org>
26014
26015 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
26016 kFreeBSD device name, except on ZFS where the filesystem label is
26017 used.
26018 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
26019 `/boot/zfs/zpool.cache'.
26020 Set mountfrom kernel variable using ${kfreebsd_device}.
26021
26022 2010-08-01 Robert Millan <rmh@gnu.org>
26023
26024 Make it even harder to use uninitialized `libzfs_handle' (and
26025 make the interface a bit simpler).
26026
26027 * include/grub/util/misc.h (grub_util_init_libzfs)
26028 (libzfs_handle): Remove.
26029 (grub_get_libzfs_handle): New prototype.
26030
26031 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
26032 attribute.
26033 (grub_util_init_libzfs): Remove.
26034 (grub_get_libzfs_handle): New function.
26035
26036 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
26037 grub_get_libzfs_handle() to obtain a libzfs handle instead of
26038 accessing `libzfs_handle' directly.
26039
26040 2010-08-01 Robert Millan <rmh@gnu.org>
26041
26042 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26043 (grub_find_zpool_from_mount_point): New function prototypes.
26044
26045 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26046 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26047
26048 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26049 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26050 `static' attribute.
26051
26052 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26053 finding zpool from mount point into ...
26054 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26055
26056 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26057 requested path is part of a ZFS pool, use
26058 grub_find_zpool_from_mount_point() to detect its filesystem name,
26059 and generate a path with `/fsname@path' syntax.
26060
26061 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26062
26063 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
26064 (void) rather than () so that this is a proper prototype.
26065
26066 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26067
26068 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
26069
26070 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26071
26072 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
26073 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
26074
26075 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26076
26077 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
26078
26079 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26080
26081 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
26082
26083 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26084
26085 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
26086 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
26087 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
26088 disable gfxpayload.
26089 (Shell-like scripting): Add real content.
26090 (Serial terminal): Suggest `terminal_input serial; terminal_output
26091 serial' rather than putting the two commands on separate lines,
26092 since console input will be inoperative after the first command.
26093 (menuentry): Document --class, --users, and --hotkey options.
26094 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
26095 Vladimir Serbinenko).
26096
26097 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26098 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26099
26100 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
26101
26102 2010-08-01 Robert Millan <rmh@gnu.org>
26103
26104 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26105 (grub_find_zpool_from_mount_point): New function prototypes.
26106
26107 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26108 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26109
26110 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26111 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26112 `static' attribute.
26113
26114 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26115 finding zpool from mount point into ...
26116 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26117
26118 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26119 requested path is part of a ZFS pool, use
26120 grub_find_zpool_from_mount_point() to detect its filesystem name,
26121 and generate a path with `/fsname@path' syntax.
26122
26123 2010-08-01 Robert Millan <rmh@gnu.org>
26124
26125 Prevent accidental use of uninitialized libzfs_handle.
26126
26127 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
26128 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
26129 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
26130
26131 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26132
26133 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
26134 util/grub.d/10_linux.in). Fixes Debian bug #591093.
26135
26136 2010-08-01 Robert Millan <rmh@gnu.org>
26137
26138 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
26139
26140 2010-07-31 Robert Millan <rmh@gnu.org>
26141
26142 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
26143
26144 2010-07-31 Robert Millan <rmh@gnu.org>
26145
26146 * kern/emu/misc.c: Add missing license header.
26147
26148 2010-07-31 Robert Millan <rmh@gnu.org>
26149
26150 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
26151
26152 * include/grub/util/libnvpair.h: Include `<config.h>'.
26153 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
26154 declaring libnvpair prototypes ourselves.
26155 * include/grub/util/libzfs.h: Include `<config.h>'.
26156 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
26157 declaring libzfs prototypes ourselves.
26158
26159 (libzfs_handle): Moved to ...
26160 * include/grub/util/misc.h (libzfs_handle): ... here.
26161 Include `<grub/util/libzfs.h>'.
26162
26163 2010-07-30 Robert Millan <rmh@gnu.org>
26164
26165 * include/grub/emu/misc.h: Add missing license header.
26166
26167 2010-07-30 Robert Millan <rmh@gnu.org>
26168
26169 Enable `grub-probe -t device' resolution on ZFS.
26170
26171 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
26172 * include/grub/util/libnvpair.h: New file.
26173 * include/grub/util/libzfs.h: New file.
26174
26175 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
26176 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
26177 `<grub/util/libnvpair.h>'.
26178 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
26179
26180 (find_mount_point_from_dir): New static function.
26181 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
26182 function.
26183 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
26184 find_root_device_from_libzfs() before ressorting to find_root_device().
26185
26186 * include/grub/util/misc.h (grub_util_init_libzfs): New function
26187 prototype.
26188 * util/misc.c: Include `<grub/util/libzfs.h>'.
26189 (grub_util_init_libzfs): New function.
26190 [HAVE_LIBZFS] (libzfs_handle): New global variable.
26191 [HAVE_LIBZFS] (fini_libzfs): New static function.
26192 (grub_util_init_libzfs): New function.
26193 * util/grub-probe.c (main): Call grub_util_init_libzfs().
26194
26195 2010-07-30 Robert Millan <rmh@gnu.org>
26196
26197 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
26198 (xmalloc, xrealloc, xstrdup, xasprintf): Add
26199 `warn_unused_result' attribute.
26200 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
26201 (grub_xasprintf, grub_xvasprintf): Likewise.
26202 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
26203
26204 2010-07-29 Robert Millan <rmh@gnu.org>
26205
26206 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
26207 (probe): Handle `PRINT_FS_LABEL'.
26208 (main): Handle `-t fs_label'.
26209
26210 2010-07-29 Robert Millan <rmh@gnu.org>
26211
26212 * configure.ac: Remove grub-mkisofs checks.
26213
26214 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
26215
26216 * util/ieee1275/grub-install.in: Don't use empty grub_device.
26217 Reported by: Lennart Sorensen.
26218
26219 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26220
26221 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
26222 prior to terminal_input/terminal_output separation. It's been over 1.5
26223 years and those versions weren't widely deployed.
26224
26225 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
26226
26227 * disk/raid.c (insert_array): Don't count named arrays when looking
26228 for unused array numbers.
26229 Reported and tested by: Michael Guntsche.
26230
26231 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26232
26233 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
26234 implementation of this so that grub-emu links again, with a note
26235 that this should support hotplugging in the future.
26236
26237 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26238
26239 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
26240
26241 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26242
26243 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
26244 handle on failure.
26245 (grub_loopback_close): Remove empty function.
26246 (grub_loopback_dev): Remove close method.
26247
26248 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26249
26250 Disable EFI cursor when the EFI console becomes inactive.
26251
26252 * term/efi/console.c (grub_efi_console_init): New function.
26253 (grub_efi_console_fini): New function.
26254 (grub_console_term_output): Register init and fini methods.
26255
26256 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26257
26258 * tests/util/grub-shell-tester.in: Remove bashism and declare as
26259 sh script.
26260
26261 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26262
26263 * disk/loopback.c (grub_loopback): Replace filename with file.
26264 (delete_loopback): Handle new semantics.
26265 (grub_cmd_loopback): Likewise.
26266 (grub_loopback_iterate): Likewise.
26267 (grub_loopback_close): Likewise.
26268
26269 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26270
26271 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
26272 with -p "".
26273 Reported by: Tito Keitel.
26274
26275 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26276
26277 * docs/grub.texi (Naming convention): Document new naming convention.
26278
26279 2010-07-20 Vadim Solomin <vadic052@gmail.com>
26280 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26281
26282 Generate device.map in something closer to the old ordering.
26283
26284 * util/deviceiter.c (struct device): New declaration.
26285 (compare_file_names): Rename to ...
26286 (compare_devices): ... this. Sort by kernel name in preference to
26287 the stable by-id name, but keep the latter as a fallback comparison.
26288 Update header comment.
26289 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
26290 of `struct device' rather than of plain file names.
26291
26292 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
26293
26294 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
26295 on i386.
26296
26297 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26298
26299 * commands/acpi.c (setup_common_tables): Use sizeof instead of
26300 hardcoding size.
26301 (setv1table): Likewise.
26302
26303 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26304
26305 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
26306 removing the homehost if present.
26307 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
26308 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
26309 removing the homehost if present.
26310 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
26311 if possible.
26312 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
26313
26314 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
26315 parameter. Set its pointer target to 0.
26316 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
26317 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
26318 `data_offset' value from the superblock for 1.x metadata.
26319 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
26320 data on the device.
26321 (insert_array): Record the start sector of data on the device.
26322 (grub_raid_register): Pass start_sector parameters to
26323 grub_raid_list->detect and insert_array.
26324 * include/grub/raid.h (struct grub_raid_array): Add start_sector
26325 member.
26326 (struct grub_raid): Add start_sector parameter to `detect'.
26327
26328 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
26329 __attribute__ ((packed)), leaving a comment.
26330 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
26331 (grub_mdraid_detect_09): ... here and ...
26332 (grub_mdraid_detect_1x): ... here.
26333
26334 2010-07-20 Peter Henn <peter.henn@web.de>
26335
26336 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
26337 chunk size and disk size, which are already given as sector counts
26338 as distinct from the 0.90 units. Fetch the correct device number
26339 from the role table instead of using the table index.
26340
26341 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
26342
26343 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
26344 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
26345 (WriteMostly1): New macro.
26346 Set array->name to NULL for metadata format 0.90. Add support for
26347 metadata 1.x. Fix some comments.
26348 * disk/raid.c (): Add support for name based RAID arrays. Fix a
26349 few comments.
26350 * util/getroot.c (grub_util_get_grub_dev): Add support for
26351 /dev/md/name style devices.
26352
26353 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26354
26355 * .bzrignore: Ignore 20_linux_xen.
26356
26357 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
26358
26359 * util/import_unicode.py: Remove unnecessary imports.
26360
26361 2010-07-17 Aleš Nesrsta <starous@volny.cz>
26362
26363 Hotplugging and USB hub support.
26364
26365 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
26366 (grub_ohci): Likewise.
26367 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
26368 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
26369 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
26370 (GRUB_OHCI_CTRL_EDS): Likewise.
26371 (GRUB_OHCI_BULK_EDS): Likewise.
26372 (GRUB_OHCI_TDS): Likewise.
26373 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
26374 (grub_ohci_ed_phys2virt): New function.
26375 (grub_ohci_virt_to_phys): Likewise.
26376 (grub_ohci_td_phys2virt): Likewise.
26377 (grub_ohci_td_virt2phys): Likewise.
26378 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
26379 attachment.
26380 (grub_ohci_find_ed): New function.
26381 (grub_ohci_alloc_td): Likewise.
26382 (grub_ohci_free_td): Likewise.
26383 (grub_ohci_free_tds): Likewise.
26384 (grub_ohci_transfer): Use previously allocated memory.
26385 (grub_ohci_portstatus): Reset status changed bit.
26386 (grub_ohci_detect_dev): Supply status changed.
26387 (grub_ohci_fini_hw): Free memory.
26388 (grub_ohci_restore_hw): Reallocate memory.
26389 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
26390 Reset status change.
26391 (grub_uhci_detect_dev): Supply status_change.
26392 * bus/usb/usb.c (attach_hooks): New var.
26393 (grub_usb_device_attach): New function.
26394 (grub_usb_register_attach_hook_class): Likewise.
26395 (grub_usb_unregister_attach_hook_class): Likewise.
26396 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
26397 (grub_usb_add_hub): Reset connection changed bit.
26398 (attach_root_port): New function.
26399 (grub_usb_root_hub): Likewise.
26400 (poll_nonroot_hub): Likewise.
26401 (grub_usb_poll_devices): Likewise.
26402 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
26403 * disk/usbms.c (grub_usbms_open): Use device hooks.
26404 (grub_usbms_iterate) :Poll devices.
26405 (grub_usbms_finddevs): Split into ...
26406 (grub_usbms_attach): ... this ...
26407 (grub_usbms_attach): ... and this.
26408 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
26409 in detect_dev.
26410 (grub_usb_interface): New fields attached and detach_hook.
26411 (grub_usb_attach_hook_class): New type.
26412 (grub_usb_attach_desc): New struct.
26413 (grub_usb_register_attach_hook_class): New function.
26414 (grub_usb_unregister_attach_hook_class): Likewise.
26415 (grub_usb_poll_devices): Likewise.
26416 (grub_usb_device_attach): Likewise.
26417 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
26418 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
26419
26420 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26421
26422 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
26423 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
26424 delta determination style. Works with most NetBSD partitions too.
26425
26426 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26427
26428 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
26429 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
26430
26431 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26432
26433 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
26434
26435 2010-07-14 Anton Blanchard <anton@samba.org>
26436
26437 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
26438 ET_DYN files.
26439
26440 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26441
26442 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
26443
26444 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26445
26446 * kern/partition.c (grub_partition_check_containment): New function to
26447 check that a partition is physically contained in a parent. Since
26448 offsets are relative (and non-negative), this reduces to checking that
26449 the partition ends before its parent.
26450 (grub_partition_map_probe): Discard out-of-range sub-partitions.
26451 (grub_partition_iterate): Likewise.
26452 * include/grub/partition.h (grub_partition_map): Slightly more detailed
26453 comments.
26454 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
26455 partitions that start before their parent, and add debug printfs.
26456
26457 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26458
26459 * Makefile.in (.SUFFIX): Spell correctly, as ...
26460 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
26461 bare module name without `.mod', e.g. `test') tried to invoke a
26462 Modula-2 compiler.
26463
26464 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26465
26466 * README: Point to the Info manual.
26467
26468 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
26469
26470 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
26471 2nd superblock position from partition size.
26472
26473 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
26474
26475 * Makefile.in (MAINTAINER_CLEANFILES): Remove
26476 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
26477 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
26478 outputs.
26479
26480 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26481
26482 Restructure SCSI .id handling.
26483 Reported and tested by: Aleš Nesrsta.
26484
26485 * disk/ata.c (grub_atapi_close): Removed. All users updated.
26486 (grub_atapi_dev): Changed .name to "ata". New field .id.
26487 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
26488 (grub_usbms_dev): New field .id.
26489 * disk/scsi.c (grub_scsi_iterate): Generate name.
26490 (grub_scsi_open): Parse name.
26491 * include/grub/scsi.h (grub_make_scsi_id): New function.
26492 (grub_scsi_dev): Change iterate and open to number instead of naming
26493 busses. All users updated.
26494 (grub_scsi): Remove name. Add .bus.
26495
26496 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26497
26498 * commands/help.c (grub_cmd_help): Fix a typo.
26499
26500 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26501
26502 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
26503 Reported and tested by: Colin Watson.
26504
26505 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26506
26507 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
26508 in this context.
26509
26510 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
26511
26512 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
26513
26514 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
26515
26516 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
26517 indentation.
26518
26519 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26520
26521 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
26522 and disk/raid6_recover.c.
26523 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
26524 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
26525
26526 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26527
26528 * term/gfxterm.c (repaint_schedulded): Rename to ...
26529 (repaint_scheduled): ... this. Update all callers.
26530 (repaint_was_schedulded): Rename to ...
26531 (repaint_was_scheduled): ... this. Update all callers.
26532
26533 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26534
26535 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
26536 which we expect to be handled by upper layers.
26537
26538 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
26539
26540 * bus/usb/usbhub.c: #include time.h header.
26541
26542 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26543
26544 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
26545 entry_name also for entries without stat blocks (e.g. ".."); fixes
26546 corruption of the first entry in a directory.
26547
26548 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26549
26550 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
26551 after setting gfxterm as the active terminal. GRUB_BACKGROUND
26552 doesn't work otherwise.
26553
26554 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26555
26556 * docs/grub.texi (Features): Update list of supported file systems.
26557 (GNU/Linux): Update for GRUB 2.
26558 (Serial terminal): Remove mention of --disable-serial, which was a
26559 GRUB Legacy configure option. Update instructions to use
26560 `terminal_input' and `terminal_output' rather than `terminal'.
26561 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
26562 configuration' and `Installing GRUB using grub-install'.
26563 (Menu entry editor): Update for GRUB 2.
26564 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
26565 Document new -a, -u, and -v options.
26566 (initrd): New section.
26567 (initrd16): New section.
26568 (linux): New section.
26569 (linux16): New section.
26570 (search): The `var' argument to `--set' is optional.
26571 (GRUB only offers a rescue shell): Go into a little more detail on
26572 drive ordering.
26573
26574 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26575
26576 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
26577
26578 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26579
26580 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
26581 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
26582
26583 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26584
26585 * util/i386/pc/grub-setup.c (setup): Rename prefix to
26586 install_prefix, in line with install_dos_part and install_bsd_part.
26587 Add new prefix variable, which is copied to install_prefix after
26588 comparing core.img in memory with the one read from disk in the
26589 no-embedding case, and use that rather than overwriting
26590 install_prefix immediately when installing to a partition.
26591 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
26592 Bicakci.
26593
26594 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26595
26596 * configure.ac: Avoid == in test command, it's not portable.
26597 * util/grub.d/30_os-prober.in: Likewise.
26598
26599 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
26600
26601 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
26602
26603 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26604
26605 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
26606 multiple (top-level) partmaps.
26607
26608 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26609
26610 * util/i386/efi/grub-install.in: Don't use empty grub_device.
26611 Reported by: Tino Keitel.
26612
26613 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26614
26615 Bidi and diacritics support.
26616
26617 * Makefile.in (widthspec.bin): New target.
26618 (widthspec.h): Likewise.
26619 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
26620 * autogen.sh: Generate unidata.c.
26621 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
26622 * commands/ls.c (grub_ls_list_devices): Likewise.
26623 (grub_ls_list_files): Likewise.
26624 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
26625 (grub_mini_cmd_lsmod): Likewise.
26626 * commands/read.c: Likewise.
26627 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
26628 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
26629 * lib/arg.c (grub_arg_show_help): Likewise.
26630 * lib/crypto.c (grub_password_get): Likewise.
26631 * normal/auth.c (grub_username_get): Likewise.
26632 * normal/misc.c (grub_normal_print_device_info): Likewise.
26633 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
26634 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
26635 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
26636 (normal/charset.c_DEPENDENCIES): New variable.
26637 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
26638 (pkglib_MODULES): Remove charset.mod.
26639 (charset_mod_SOURCES): Removed.
26640 (charset_mod_CFLAGS): Likewise.
26641 (charset_mod_LDFLAGS): Likewise.
26642 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
26643 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
26644 and term/tparm.c.
26645 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26646 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26647 (kernel_img_HEADERS): Add terminfo.h.
26648 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
26649 Fill ->font. Reverse ascii bitmaps.
26650 (grub_font_get_xheight): New function.
26651 * font/font.c (grub_font_get_string_width): Moved from here ...
26652 * gfxmenu/font.c (grub_font_get_string_width): ... here.
26653 * font/font.c (grub_font_draw_string): Moved from here ...
26654 * gfxmenu/font.c (grub_font_draw_string): ... here.
26655 * font/font.c (grub_font_dup_glyph): New function.
26656 (grub_font_blit_glyph): Likewise.
26657 (grub_font_blit_glyph_mirror): Likewise.
26658 (blit_comb): Likewise.
26659 (grub_font_construct_dry_run): Likewise.
26660 (grub_font_get_constructed_device_width): Likewise.
26661 (grub_font_construct_glyph): Likewise.
26662 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
26663 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
26664 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
26665 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
26666 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
26667 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
26668 (grub_font_get_xheight): New proto.
26669 (grub_font_get_constructed_device_width): Likewise.
26670 (grub_font_construct_glyph): Likewise.
26671 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
26672 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
26673 * include/grub/font.h (grub_font_draw_string): Moved from here ...
26674 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
26675 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
26676 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
26677 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
26678 (grub_console_getcharwidth): Likewise.
26679 * include/grub/misc.h (grub_xputs): New proto.
26680 (grub_puts): Inlined.
26681 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
26682 (grub_normal_get_line_counter): Removed.
26683 (grub_install_newline_hook): Likewise.
26684 (grub_normal_get_char_counter): New proto.
26685 (grub_normal_reset_more): Likewise.
26686 (grub_xputs_normal): Likewise.
26687 * include/grub/powerpc/ieee1275/console.h: Removed.
26688 * include/grub/sparc64/ieee1275/console.h: Likewise.
26689 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
26690 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
26691 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
26692 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
26693 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
26694 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
26695 (grub_term_input): Pass reference to self. All users updated.
26696 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
26697 Pass reference to self. New fields normal_color, highlight_color and
26698 data. All users updated.
26699 (grub_putchar): Removed.
26700 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
26701 (grub_unicode_estimate_width): New function.
26702 (grub_term_getcharwidth): Add defaults.
26703 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
26704 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
26705 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
26706 (grub_cls): Remove EXPORT_FUNC.
26707 (grub_setcolorstate): Inline.
26708 (grub_newline_hook): Removed.
26709 * include/grub/terminfo.h: Rewritten. All users updated.
26710 * include/grub/unicode.h: New file.
26711 * include/grub/video.h (grub_video_signed_rect): New type.
26712 * kern/emu/console.c (grub_console_highlight_color): Removed.
26713 (grub_console_normal_color): Likewise.
26714 (grub_console_standard_color): Made static.
26715 (grub_ncurses_putchar): Remove mapping.
26716 (grub_ncurses_getcharwidth): Removed.
26717 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26718 (grub_ncurses_setcolor): Removed.
26719 (grub_ncurses_getcolor): Likewise.
26720 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
26721 (grub_console_putchar): ... this.
26722 (grub_console_putchar): Handle argument difference.
26723 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
26724 console_init_early and console_init_lately.
26725 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
26726 * kern/misc.c (grub_puts): Removed.
26727 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
26728 (grub_vsnprintf_real): Remove str = NULL support.
26729 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
26730 * normal/charset.c (grub_utf8_to_ucs4): ... here.
26731 * kern/term.c (grub_putcode): Renamed to ...
26732 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
26733 (grub_putchar): Removed.
26734 (grub_xputs_dumb): New function.
26735 (grub_xputs): New variable.
26736 * lib/charset.c: Move from here ...
26737 * normal/charset.c: ... to here.
26738 (grub_ucs4_to_utf8): New function.
26739 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
26740 (join_types): New variable.
26741 (unpack_join): New function.
26742 (bidi_types): New variable.
26743 (unpack_bidi): New function.
26744 (get_bidi_type): Likewise.
26745 (get_join_type): Likewise.
26746 (is_mirrored): Likewise.
26747 (grub_unicode_get_comb_type): Likewise.
26748 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
26749 (is_type_after): Likewise.
26750 (grub_unicode_aglomerate_comb): Likewise.
26751 (bidi_line_wrap): Likewise.
26752 (grub_bidi_line_logical_to_visual): Likewise.
26753 (grub_bidi_logical_to_visual): Likewise.
26754 (grub_unicode_mirror_code): Likewise.
26755 (grub_unicode_shape_code): Likewise.
26756 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
26757 Don't use grub_putchar.
26758 * normal/main.c (grub_normal_init_page): Use grub_putcode.
26759 (grub_normal_reader_init): Likewise.
26760 (grub_xputs_saved): New variable.
26761 (GRUB_MOD_INIT): Set grub_xputs.
26762 (GRUB_MOD_FINI): Restore grub_xputs.
26763 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
26764 (menu_init): Avoid printing gfxmenu error.
26765 (show_menu): Use grub_normal_get_char_counter.
26766 * normal/menu_entry.c (update_screen): Fix out-of-array.
26767 (complete): Avoid NULL dereferencing.
26768 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
26769 * normal/menu_text.c (print_spaces): Removed.
26770 (grub_print_ucs4): Likewise.
26771 (grub_print_message_indented): Use grub_print_ucs4.
26772 (print_message): Use grub_putcode.
26773 (print_entry): Hanlde diacritics.
26774 * normal/term.c (term_state): New type.
26775 (grub_more_lines): Removed.
26776 (term_states): New variable.
26777 (grub_normal_line_counter): Renamed to ..
26778 (grub_normal_char_counter): ...this. All users updated.
26779 (grub_normal_get_line_counter): Renamed to ...
26780 (grub_normal_get_char_counter): ... this.
26781 (grub_normal_reset_more): New function.
26782 (process_newline): Removed.
26783 (print_more): New function.
26784 (grub_install_newline_hook): Removed.
26785 (map_code): New function.
26786 (grub_puts_terminal): Use grub_print_ucs4.
26787 (putglyph): New function.
26788 (putcode_real): Likewise.
26789 (grub_putcode): Use putcode_real.
26790 (get_maxwidth): New function.
26791 (get_startwidth): Likewise.
26792 (print_ucs4_terminal): Likewise.
26793 (find_term_state): Likewise.
26794 (put_glyphs_terminal): Likewise.
26795 (print_backlog): Likewise.
26796 (print_ucs4_real): Likewise.
26797 (grub_print_ucs4): Likewise.
26798 (grub_xputs_normal): Likewise.
26799 * term/efi/console.c (grub_console_putchar): Output diacritics.
26800 (grub_console_getcharwidth): Removed.
26801 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26802 * term/gfxterm.c (clear_char): Free chars.
26803 (scroll_up): Avoid leaking memory.
26804 (grub_gfxterm_putchar): Support diacritics.
26805 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26806 * term/i386/pc/console.c (grub_console_term_output): Declare as
26807 GRUB_TERM_CODE_TYPE_VGA.
26808 * term/i386/pc/vga.c (grub_vga_term): Declare as
26809 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
26810 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
26811 GRUB_TERM_CODE_TYPE_VGA.
26812 * term/i386/vga_common.c (map_char): Removed.
26813 (grub_console_putchar): Likewise.
26814 (grub_console_getcharwidth): Likewise.
26815 * term/ieee1275/ofconsole.c: Simplify using terminfo.
26816 (colors): Reordered to match terminfo.
26817 (grub_ofconsole_normal_color): Removed.
26818 (grub_ofconsole_writeesc): Likewise.
26819 (grub_ofconsole_highlight_color): Likewise.
26820 (grub_ofconsole_getcharwidth): Likewise.
26821 (grub_ofconsole_setcolorstate): Likewise.
26822 (grub_ofconsole_setcolor): Likewise.
26823 (grub_ofconsole_getcolor): Likewise.
26824 (grub_ofconsole_readkey): Renamed to ...
26825 (readkey): ... this. Remove escape sequence handling. Return -1 on no
26826 key.
26827 (grub_ofconsole_checkkey): Removed.
26828 (grub_ofconsole_getkey): Likewise.
26829 (grub_ofconsole_getxy): Likewise.
26830 (grub_ofconsole_gotoxy): Likewise.
26831 (grub_ofconsole_cls): Likewise.
26832 (grub_ofconsole_refresh): Likewise.
26833 (grub_ofconsole_terminfo_input): New struct.
26834 (grub_ofconsole_terminfo_output): Likewise.
26835 (grub_ofconsole_term_input): Use terminfo.
26836 (grub_ofconsole_term_output): Likewise.
26837 (grub_console_init): Split into ...
26838 (grub_console_init_early): ...this and ...
26839 (grub_console_init_lately): ...this. Use terminfo.
26840 (grub_ofconsole_putchar): Renamed to ...
26841 (put): ... this. Remove mapping.
26842 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26843 * term/serial.c: Simplify using terminfo.
26844 (xpos): Removed.
26845 (ypos): Likewise.
26846 (keep_track): Likewise.
26847 (registered): Likewise.
26848 (input_buf): Likewise.
26849 (npending): Likewise.
26850 (serial_translate_key_sequence): Likewise.
26851 (fill_input_buf): Likewise.
26852 (grub_serial_checkkey): Likewise.
26853 (grub_serial_getkey): Likewise.
26854 (grub_serial_getxy): Likewise.
26855 (grub_serial_gotoxy): Likewise.
26856 (grub_serial_putchar): Likewise.
26857 (grub_serial_cls): Likewise.
26858 (grub_serial_setcolorstate): Likewise.
26859 (grub_serial_setcursor): Likewise.
26860 (serial_hw_init): Use serial_hw_fetch.
26861 (grub_serial_terminfo_input): New variable.
26862 (grub_serial_terminfo_output): Likewise.
26863 (grub_serial_term_input): Use terminfo.
26864 (grub_serial_term_output): Likewise.
26865 * term/terminfo.c (putstr): Use put.
26866 (grub_terminfo_all_free): New function
26867 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
26868 (grub_terminfo_output_register): New function.
26869 (grub_terminfo_output_unregister): Likewise.
26870 (grub_terminfo_getxy): Likewise.
26871 (grub_terminfo_readkey): Likewise.
26872 (grub_terminfo_checkkey): Likewise.
26873 (grub_terminfo_getkey): Likewise.
26874 (grub_terminfo_input_init): Likewise.
26875 (print_terminfo): Likewise.
26876 (grub_cmd_terminfo): Handle encoding.
26877 (grub_terminfo_gotoxy): Track position.
26878 (grub_terminfo_cls): Likewise.
26879 (grub_terminfo_putchar): Likewise.
26880 (grub_terminfo_setcolorstate): Handle colors
26881 (grub_terminfo_cursor_on): This ...
26882 (grub_terminfo_cursor_off): ... and this merged into ...
26883 (grub_terminfo_setcursor): ... this.
26884 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
26885 * unicode/ArabicShaping.txt: New file (imported from Unicode).
26886 * unicode/BidiMirroring.txt: Likewise.
26887 * unicode/UnicodeData.txt: Likewise.
26888 * unicode/COPYING: Likewise.
26889 * util/grub-editenv.c (grub_putchar): Removed.
26890 (grub_xputs_real): New function.
26891 (grub_xputs): New variable.
26892 * util/grub-fstest.c (grub_putchar): Removed.
26893 (grub_xputs_real): New function.
26894 (grub_xputs): New variable.
26895 * util/grub-mkdevicemap.c (grub_putchar): Removed.
26896 (grub_xputs_real): New function.
26897 (grub_xputs): New variable.
26898 * util/grub-probe.c (grub_putchar): Removed.
26899 (grub_xputs_real): New function.
26900 (grub_xputs): New variable.
26901 * util/grub-script-check.c (grub_putchar): Removed.
26902 (grub_xputs_real): New function.
26903 (grub_xputs): New variable.
26904 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
26905 (grub_xputs_real): New function.
26906 (grub_xputs): New variable.
26907 * util/import_unicode.py: New file.
26908 * util/grub-mkfont.c (ft_errmsgs): New array.
26909 (grub_glyph_info): Make bitmap a pointer.
26910 (file_formats): New type WIDTH_SPEC.
26911 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
26912 (options): Add width-spec.
26913 (help): Likewise.
26914 (add_char): Renamed to ...
26915 (add_glyph): ... this.
26916 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
26917 (glyph_replace): New type.
26918 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
26919 (add_char): New function.
26920 (add_subst): Likewise.
26921 (process_cursive): Likewise.
26922 (add_font): Handle GSUB.
26923 (write_font_width_spec): New function.
26924 (main): Sort glyphs.
26925 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
26926 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
26927 * kern/term.c (grub_cls): Moved from here...
26928 * normal/term.c (grub_cls): ... here.
26929
26930 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26931
26932 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
26933 suitable for using within the format argument of printf when
26934 converting grub_size_t.
26935 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
26936 "x" to convert grub_size_t arguments.
26937
26938 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26939
26940 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
26941 too long captions.
26942 (list_get_minimal_size): Take selection box into account.
26943
26944 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26945
26946 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
26947 NULL font.
26948
26949 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26950
26951 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
26952 devices when iterating over /dev/disk/by-id; they will be handled
26953 later if appropriate, which they aren't always (e.g. LVM).
26954
26955 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26956
26957 * include/grub/misc.h (grub_reboot): Declare as noreturn.
26958 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
26959 fails.
26960 (grub_halt): Likewise.
26961 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
26962 reset-all fails.
26963 (grub_halt): Don't return, even if all of shut-down, power-off, and
26964 poweroff fail.
26965
26966 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26967
26968 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
26969 arguments, not three.
26970
26971 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26972
26973 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
26974 * util/grub.d/10_linux.in: Use it to check for LVM, so that
26975 LVM-on-RAID is handled correctly.
26976
26977 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26978
26979 * docs/grub.texi (Changes from GRUB Legacy): New section.
26980 (Future): Fix typo.
26981
26982 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26983
26984 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
26985 grub.d/README accidentally ends up executable for one reason or
26986 another. Ignore it.
26987
26988 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26989
26990 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
26991 (gpt_partition_map_iterate): Support non-512B sectors.
26992
26993 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26994
26995 * kern/efi/init.c (grub_efi_init): Disable watchdog.
26996 Tested by: Seth Goldberg.
26997
26998 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26999
27000 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
27001 Properly align mbi.
27002 Reported by: Seth Goldberg.
27003
27004 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27005
27006 * util/grub-mkrescue.in: Avoid module duplication.
27007
27008 2010-07-01 Sean Finney <seanius@seanius.net>
27009
27010 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
27011
27012 2010-07-01 Sean Finney <seanius@seanius.net>
27013
27014 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
27015
27016 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27017
27018 * disk/lvm.c (grub_lvm_checkvalue): New function.
27019 (grub_lvm_check_flag): Likewise.
27020
27021 2010-07-01 Robert Millan <rmh@gnu.org>
27022
27023 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
27024 Support 'p' as partition separator on kernel of FreeBSD (used
27025 with GPT labels).
27026 (grub_util_biosdisk_get_grub_dev): Likewise.
27027
27028 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27029
27030 Yeeloong firmware port.
27031
27032 * boot/mips/yeeloong/fwstart.S: New file.
27033 * bus/cs5536.c (gpiodump): New const.
27034 (set_io_space): New function.
27035 (set_iod): Likewise.
27036 (set_p2d): Likewise.
27037 (grub_cs5536_init_geode): Likewise.
27038 * commands/mips/yeeloong/lsspd.c: New file.
27039 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
27040 (serial_mod_SOURCES): New variable.
27041 (serial_mod_CFLAGS): Likewise.
27042 (serial_mod_LDFLAGS): Likewise.
27043 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
27044 term/terminfo.c and term/tparm.c.
27045 (pkglib_IMAGES): Add fwstart.img.
27046 (fwstart_img_SOURCES): New variable.
27047 (fwstart_img_CFLAGS): Likewise.
27048 (fwstart_img_ASFLAGS): Likewise.
27049 (fwstart_img_LDFLAGS): Likewise.
27050 (fwstart_img_FORMAT): Likewise.
27051 (pkglib_MODULES): Add lsspd.mod.
27052 (lsspd_mod_SOURCES): New variable.
27053 (lsspd_mod_CFLAGS): Likewise.
27054 (lsspd_mod_LDFLAGS): Likewise.
27055 (pkglib_MODULES): Add halt.mod.
27056 (halt_mod_SOURCES): New variable.
27057 (halt_mod_CFLAGS): Likewise.
27058 (halt_mod_LDFLAGS): Likewise.
27059 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
27060 (serial_mod_SOURCES): Removed.
27061 (serial_mod_CFLAGS): Likewise.
27062 (serial_mod_LDFLAGS): Likewise.
27063 * disk/ata.c (check_device): New function.
27064 (grub_ata_device_initialize): Use check_device.
27065 (grub_ata_iterate): Recheck devices.
27066 (grub_ata_open): Likewise.
27067 (grub_atapi_iterate): Likewise.
27068 (grub_atapi_open): Likewise.
27069 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
27070 (GRUB_ATA_CH1_PORT1): Likewise.
27071 (GRUB_ATA_CH0_PORT2): Likewise.
27072 (GRUB_ATA_CH1_PORT2): Likewise.
27073 * include/grub/mips/loongson.h: New file.
27074 * include/grub/mips/yeeloong/ec.h: Likewise.
27075 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
27076 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
27077 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
27078 * include/grub/misc.h (grub_halt): Declare as noreturn.
27079 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
27080 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
27081 (UART_ENABLE_FIFO_TRIGGER1): New definition.
27082 (UART_ENABLE_DTRRTS): Likewise.
27083 (UART_ENABLE_MODEM): Removed.
27084 (UART_ENABLE_OUT2): New const.
27085 * include/grub/term.h (grub_term_register_input_active): New function.
27086 (grub_term_register_output_active): Likewise.
27087 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
27088 argument.
27089 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
27090 (init_pci): New function.
27091 (grub_machine_init): Execute platform init when firmware. Init serial.
27092 (grub_halt): Implement.
27093 (grub_exit): Likewise.
27094 (grub_reboot): Likewise.
27095 * term/serial.c (serial_hw_init): Update macros.
27096 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
27097 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
27098 (image_targets): New target mipsel-yeeloong-flash.
27099 (generate_image): Support IMAGE_YEELOONG_FLASH.
27100 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
27101 (grub_video_sm712_setup): Init card.
27102 (grub_video_sm712_set_palette): Removed.
27103 * video/sm712_init.c: New file.
27104
27105 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
27106
27107 * Makefile.in (install-local): Temporarily prepend $(builddir) to
27108 PATH when running help2man and then run it on the unadorned
27109 executable names, rather than passing $(builddir)/* paths to
27110 help2man. This avoids the build directory ending up in generated
27111 manual pages.
27112
27113 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27114
27115 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
27116 to avoid accidents when debugging with 'sh -x'.
27117 * util/grub-mkrescue.in: Likewise.
27118 * util/grub.d/00_header.in: Likewise.
27119 * util/grub.d/10_hurd.in: Likewise.
27120 * util/grub.d/10_kfreebsd.in: Likewise.
27121 * util/grub.d/10_linux.in: Likewise.
27122 * util/grub.d/10_netbsd.in: Likewise.
27123 * util/grub.d/10_windows.in: Likewise.
27124 * util/grub.d/20_linux_xen.in: Likewise.
27125 * util/grub.d/30_os-prober.in: Likewise.
27126 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27127
27128 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27129
27130 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
27131 last character in the buffer.
27132 Reported by: Vladimir Serbinenko.
27133
27134 2010-06-29 Robert Millan <rmh@gnu.org>
27135
27136 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
27137 (Command-line and menu entry commands): Document `badram' command.
27138
27139 2010-06-28 Robert Millan <rmh@gnu.org>
27140
27141 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
27142 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
27143 command using ${GRUB_BADRAM} as parameter.
27144
27145 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27146
27147 * docs/grub.texi (Device map): New section.
27148 (Themes): New section (stub).
27149 * Makefile.in (docs/grub.info): The info documentation now builds
27150 without errors. Make sure it stays that way.
27151
27152 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27153
27154 Use normal parser for menu entries.
27155 Reported by: Thomas Frauendorfer
27156
27157 * include/grub/parser.h (grub_parser_execute): Don't export.
27158 * normal/menu.c (grub_menu_execute_entry_real): New function.
27159 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
27160
27161 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27162
27163 * docs/grub.texi (Embedded configuration): New section (replacing
27164 old "Preset Menu" stub).
27165 (Images): New section.
27166 (configfile): Note that any menu entries defined in `file' are shown
27167 immediately.
27168
27169 2010-06-28 Josh Triplett <josh@joshtriplett.org>
27170
27171 * mmap/i386/pc/mmap_helper.S: Set CF on return.
27172
27173 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27174
27175 * util/grub-install.in: Add --debug-image= option.
27176
27177 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27178
27179 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
27180 possible on Linux.
27181
27182 * util/deviceiter.c (check_device): Rename to ...
27183 (check_device_readable_unique): ... this. Update all callers.
27184 Maintain and check a list of which devices (by canonicalized name)
27185 have already been seen.
27186 (clear_seen_devices): New function.
27187 (compare_file_names) [__linux__]: New function.
27188 (grub_util_iterate_devices): Clear the list of seen devices on exit
27189 and (just in case) on entry.
27190 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
27191 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
27192 seen-devices list, superseded by general code in check_device.
27193
27194 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27195
27196 * commands/cat.c (options): New variable.
27197 (grub_cmd_cat): Parse options. If the --dos option is given, print
27198 DOS-style "\r\n" line endings as simple newlines (Debian bug
27199 #586358).
27200 (GRUB_MOD_INIT): Use extcmd.
27201 (GRUB_MOD_FINI): Likewise.
27202 * docs/grub.texi (cat): Document --dos.
27203
27204 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27205
27206 XEN with Linux grub-mkconfig support.
27207
27208 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
27209 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
27210 GRUB_CMDLINE_XEN_DEFAULT.
27211 * util/grub.d/20_linux_xen.in: New file.
27212
27213 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27214
27215 Initialise VGA video on qemu ourselves.
27216
27217 * boot/i386/qemu/boot.S: Don't call 0xc000.
27218 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
27219 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
27220 (kernel_img_HEADERS): Add pci.h.
27221 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
27222 * configure.ac: Force unifont on qemu and yeeloong.
27223 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
27224 (grub_vga_palette_write): Use correct register.
27225 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
27226 Call grub_qemu_init_cirrus.
27227 * kern/i386/qemu/init.c: New file.
27228 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
27229
27230 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
27231
27232 2010-06-26 Pavel Roskin <proski@gnu.org>
27233
27234 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
27235 13.
27236
27237 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27238
27239 * docs/grub.texi (Simple configuration): Explain that
27240 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
27241 set to `true' to disable their respective recovery entries, not
27242 merely set.
27243
27244 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27245
27246 Make the `source' command slightly faster.
27247
27248 * normal/main.c (grub_normal_execute): Don't re-read list files when
27249 nested.
27250
27251 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27252
27253 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
27254 field position and mask size to red fields from mode_info, not
27255 green.
27256 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
27257 Remove redundant tag->common.framebuffer_type assignment.
27258 Reported by: Seth Goldberg.
27259
27260 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27261
27262 Sync up other versions of the Linux loader with Robert Millan's
27263 change of 2010-01-09, "Make loader output a bit more user-friendly".
27264
27265 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
27266 grub_dprintf().
27267 (grub_cmd_linux): Likewise.
27268 (grub_cmd_initrd): Likewise.
27269 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
27270 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
27271
27272 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
27273
27274 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
27275 larger than MEMORY_MAP_SIZE.
27276
27277 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
27278
27279 Fix parallel build.
27280
27281 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
27282 dependency.
27283 * script/parser.y: #include grub_script.tab.h header.
27284
27285 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27286
27287 Support >3GiB and <16MiB RAM in i386-qemu.
27288
27289 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
27290 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
27291 (grub_lower_mem): Removed.
27292 (grub_upper_mem): Likewise.
27293 (mem_size): Made static.
27294 (above_4g): New variable.
27295 (grub_machine_mmap_init): Detect small mem_size and above_4g.
27296 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
27297 support.
27298
27299 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27300
27301 Cirrus 5446 and Bochs video cards support.
27302
27303 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
27304 video_bochs.mod
27305 (video_cirrus_mod_SOURCES): New variable.
27306 (video_cirrus_mod_CFLAGS): Likewise.
27307 (video_cirrus_mod_LDFLAGS): Likewise.
27308 (video_bochs_mod_SOURCES): Likewise.
27309 (video_bochs_mod_CFLAGS): Likewise.
27310 (video_bochs_mod_LDFLAGS): Likewise.
27311 * include/grub/vga.h: New file.
27312 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
27313 (grub_video_fb_set_page_t): New type.
27314 (grub_video_fb_setup): New prototype.
27315 (grub_video_fb_swap_buffers): Likewise.
27316 (grub_video_fb_get_info_and_fini): Likewise.
27317 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
27318 (CRTC_DATA_PORT): Likewise.
27319 (CRTC_CURSOR): Likewise.
27320 (CRTC_CURSOR_ADDR_HIGH): Likewise.
27321 (CRTC_CURSOR_ADDR_LOW): Likewise.
27322 (CRTC_CURSOR_DISABLE): Likewise.
27323 (update_cursor): Use grub_vga_cr_write.
27324 (grub_vga_text_setcursor): Likewise.
27325 * video/bochs.c: New file.
27326 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
27327 (palette): Likewise.
27328 (palette_size): Likewise.
27329 (framebuffer): New variable.
27330 (grub_video_fb_init): Use 'framebuffer'.
27331 (grub_video_fb_fini): Likewise.
27332 (grub_video_fb_get_info): Likewise.
27333 (grub_video_fb_get_palette): Likewise.
27334 (grub_video_fb_set_palette): Likewise.
27335 (grub_video_fb_set_viewport): Likewise.
27336 (grub_video_fb_get_viewport): Likewise.
27337 (grub_video_fb_map_color): Likewise.
27338 (grub_video_fb_map_rgb): Likewise.
27339 (grub_video_fb_map_rgba): Likewise.
27340 (grub_video_fb_unmap_color): Likewise.
27341 (grub_video_fb_unmap_color_int): Likewise.
27342 (grub_video_fb_fill_rect): Likewise.
27343 (grub_video_fb_blit_bitmap): Likewise.
27344 (grub_video_fb_blit_render_target): Likewise.
27345 (grub_video_fb_scroll): Likewise.
27346 (grub_video_fb_create_render_target): Likewise.
27347 (grub_video_fb_doublebuf_blit_init): Likewise.
27348 (grub_video_fb_set_active_render_target): Handle doublebuffering.
27349 (doublebuf_pageflipping_update_screen): New function.
27350 (doublebuf_pageflipping_init): Likewise.
27351 (grub_video_fb_setup): Likewise.
27352 (grub_video_fb_swap_buffers): Likewise.
27353 (grub_video_fb_get_info_and_fini): Likewise.
27354 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
27355 All users updated.
27356 (doublebuf_pageflipping_commit): Restructured into ...
27357 (doublebuf_pageflipping_set_page): ... this.
27358 (doublebuf_pageflipping_update_screen): Removed.
27359 (doublebuf_pageflipping_init): Likewise.
27360 (double_buffering_init): Likewise.
27361 (grub_video_vbe_setup): Use grub_video_fb_setup.
27362 (grub_video_vbe_swap_buffers): Removed.
27363 (grub_video_vbe_set_active_render_target): Likewise.
27364 (grub_video_vbe_get_active_render_target): Likewise.
27365 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
27366 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
27367 grub_video_fb_set_active_render_target and
27368 grub_video_fb_get_active_render_target.
27369 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
27370 (SEQUENCER_DATA_PORT): Likewise.
27371 (MAP_MASK_REGISTER): Likewise.
27372 (CRTC_ADDR_PORT): Likewise.
27373 (CRTC_DATA_PORT): Likewise.
27374 (START_ADDR_HIGH_REGISTER): Likewise.
27375 (START_ADDR_LOW_REGISTER): Likewise.
27376 (GRAPHICS_ADDR_PORT): Likewise.
27377 (GRAPHICS_DATA_PORT): Likewise.
27378 (READ_MAP_REGISTER): Likewise.
27379 (INPUT_STATUS1_REGISTER): Likewise.
27380 (INPUT_STATUS1_VERTR_BIT): Likewise.
27381 (get_map_mask): Use grub_vga_sr_read.
27382 (set_map_mask): Use grub_vga_sr_write.
27383 (set_read_map): Use grub_vga_gr_write.
27384 (set_start_address): Use grub_vga_cr_write.
27385 * video/sm712.c (framebuffer): Remove leftover fields.
27386
27387 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
27388
27389 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
27390 setting GRUB_VIDEO_BACKEND. Make it available as a user override
27391 instead. Replace the gfxterm backend check with a check that
27392 ${GRUB_PREFIX}/video.lst is non-empty.
27393 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
27394 again.
27395 (load_video): New generated function. Call it before loading
27396 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
27397 * util/grub.d/10_linux.in (linux_entry): Call load_video.
27398 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
27399 * docs/grub.texi (Simple configuration): Document
27400 GRUB_VIDEO_BACKEND.
27401
27402 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27403
27404 Use video functions in linux and xnu loaders.
27405
27406 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
27407 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
27408 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
27409 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
27410 loader/i386/pc/linux.c.
27411 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
27412 (find_line_len): Removed.
27413 (find_framebuf): Likewise.
27414 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
27415 * loader/i386/efi/xnu.c: Removed.
27416 * loader/i386/pc/xnu.c: Moved from here...
27417 * loader/i386/xnu.c: ...here.
27418
27419 Enable priorities in video drivers.
27420
27421 * include/grub/video.h (grub_video_adapter_prio_t): New type.
27422 (grub_video_adapter): New field prio.
27423 (grub_video_register): Respect prio when inserting.
27424 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
27425 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
27426 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
27427 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
27428 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
27429 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
27430 * video/sm712.c (grub_video_sm712_adapter): Likewise.
27431
27432 Fix SDL driver ID.
27433
27434 * include/grub/video.h (grub_video_driver_id_t): New value
27435 GRUB_VIDEO_DRIVER_SDL.
27436 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
27437
27438 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27439
27440 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
27441 argument to printf.
27442 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27443
27444 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27445
27446 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
27447 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27448
27449 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27450
27451 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
27452 directly, and recommend grub-install instead.
27453 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27454
27455 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27456
27457 Fix i386-pc prefix handling with nested partitions (Debian bug
27458 #585068). Note that the case where the core image is booted using
27459 multiboot and relocated from its original location still requires
27460 more work.
27461
27462 * kern/i386/pc/init.c (make_install_device): If the prefix starts
27463 with "(,", fill the boot drive in between those two characters, but
27464 expect that a full partition specification including partition map
27465 names will follow.
27466 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
27467 specified, write a prefix without the drive name but including a
27468 full partition specification.
27469
27470 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
27471
27472 * util/grub-mkconfig.in: Ignore non-option arguments, for
27473 compatibility with older versions (before 2010-06-12) which did the
27474 same. In particular, this makes it easier to ship an update-grub
27475 wrapper which is compatible with that used with GRUB Legacy (Debian
27476 bug #586056).
27477
27478 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27479
27480 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
27481 for manual page generation.
27482
27483 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27484
27485 * po/POTFILES: Remove leftover commands/handler.c.
27486
27487 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27488
27489 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
27490 left this script non-functional.
27491
27492 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27493
27494 * docs/man/grub-emu.h2m: New file.
27495
27496 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
27497
27498 * docs/grub.texi (Commands): Document reduced command set in rescue
27499 mode.
27500 (cpuid): New section.
27501
27502 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
27503
27504 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
27505 new partition naming style.
27506 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
27507
27508 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
27509
27510 Add "-o grub.iso" like cmdline options support.
27511
27512 * util/grub-install.in: Improve cmdline option parsing.
27513 * util/grub-mkconfig.in: Likewise.
27514 * util/grub-mkrescue.in: Likewise.
27515 * util/grub-reboot.in: Likewise.
27516 * util/grub-set-default.in: Likewise.
27517 * util/i386/efi/grub-install.in: Likewise.
27518 * util/ieee1275/grub-install.in: Likewise.
27519 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27520
27521 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27522
27523 * .bzrignore: Ignore 41_custom.
27524
27525 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27526
27527 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
27528
27529 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27530
27531 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
27532 prototype declarations.
27533
27534 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
27535 generating fs, partmap, and video lists.
27536 * include/grub/fs.h (grub_fs_register): Omit prototype if
27537 GRUB_LST_GENERATOR is defined.
27538 * include/grub/partition.h (grub_partition_map_register): Likewise.
27539 * include/grub/video.h (grub_video_register): Likewise.
27540
27541 2010-06-12 Javier Martín <lordhabbit@gmail.com>
27542
27543 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
27544
27545 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27546
27547 * util/grub-mkrescue.in: Support --xorriso argument.
27548
27549 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27550
27551 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
27552 Suggested by: Thomas Schmitt.
27553
27554 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27555
27556 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
27557 Suggested by: Thomas Schmitt.
27558
27559 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27560
27561 custom.cfg support.
27562
27563 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
27564 * util/grub.d/41_custom.in: New file.
27565
27566 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27567
27568 * util/grub-mkrescue.in (make_image): Remove sh module, which has
27569 been merged back into normal.
27570
27571 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27572
27573 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
27574 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
27575
27576 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27577
27578 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
27579 when generating manual pages.
27580 * docs/man/grub-bin2h.h2m: New file.
27581 * docs/man/grub-editenv.h2m: New file.
27582 * docs/man/grub-fstest.h2m: New file.
27583 * docs/man/grub-install.h2m: New file.
27584 * docs/man/grub-macho2img.h2m: New file.
27585 * docs/man/grub-mkconfig.h2m: New file.
27586 * docs/man/grub-mkdevicemap.h2m: New file.
27587 * docs/man/grub-mkfont.h2m: New file.
27588 * docs/man/grub-mkimage.h2m: New file.
27589 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
27590 * docs/man/grub-mkrelpath.h2m: New file.
27591 * docs/man/grub-mkrescue.h2m: New file.
27592 * docs/man/grub-ofpathname.h2m: New file.
27593 * docs/man/grub-pe2elf.h2m: New file.
27594 * docs/man/grub-probe.h2m: New file.
27595 * docs/man/grub-reboot.h2m: New file.
27596 * docs/man/grub-script-check.h2m: New file.
27597 * docs/man/grub-set-default.h2m: New file.
27598 * docs/man/grub-setup.h2m: New file.
27599
27600 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
27601
27602 Use FOR_* macros instead of *_iterate whenever possible.
27603
27604 * commands/handler.c: Removed.
27605 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
27606 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
27607 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27608 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
27609 (grub_probe_SOURCES): Remove kern/parser.c.
27610 (util/grub-script-check.c_DEPENDENCIES): Removed.
27611 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
27612 and grub_script_check_init.c.
27613 (grub_script_check_init.lst): Removed.
27614 (grub_script_check_init.h): Likewise.
27615 (grub_script_check_init.c): Likewise.
27616 (pkglib_MODULES): Remove handler.mod and sh.mod.
27617 (handler_mod_SOURCES): Removed.
27618 (handler_mod_CFLAGS): Likewise.
27619 (handler_mod_LDFLAGS): Likewise.
27620 (normal_mod_SOURCES): Remove normal/handler.c.
27621 Add script/main.c, script/script.c, script/execute.c,
27622 script/function.c, script/lexer.c, grub_script.tab.c
27623 and grub_script.yy.c.
27624 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27625 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27626 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
27627 (grub_setup_SOURCES): Remove kern/parser.c.
27628 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27629 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
27630 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
27631 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27632 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27633 (grub_setup_SOURCES): Remove kern/parser.c.
27634 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27635 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
27636 * include/grub/command.h (grub_command_iterate): Removed.
27637 (FOR_COMMANDS): New macro.
27638 * include/grub/dl.h (grub_dl): New member next.
27639 (grub_dl_iterate): Removed.
27640 (grub_dl_head): New variable declaration.
27641 (FOR_DL_MODULES): New macro.
27642 * include/grub/fs.h: Include list.h.
27643 (grub_fs): Make next first element.
27644 (grub_fs_list): New variable declaration.
27645 (grub_fs_register): Make inline.
27646 (grub_fs_unregister): Likewise.
27647 (grub_fs_iterate): Removed.
27648 (FOR_FILESYSTEMS): New macro.
27649 * include/grub/handler.h: Removed.
27650 * include/grub/list.h (grub_list_hook_t): Removed.
27651 (grub_list_test_t): Likewise.
27652 (grub_list_pop): Likewise.
27653 (grub_list_iterate): Likewise.
27654 (grub_list_insert): Likewise.
27655 (FOR_LIST_ELEMENTS): New macro.
27656 * include/grub/parser.h (grub_parser_class): Removed.
27657 (grub_parser_register): Likewise.
27658 (grub_parser_unregister): Likewise.
27659 (grub_parser_get_current): Likewise.
27660 (grub_parser_set_current): Likewise.
27661 (grub_register_rescue_parser): Likewise.
27662 (grub_rescue_parse_line): New function.
27663 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
27664 * include/grub/script_sh.h (grub_script_function_list): New variable
27665 declaration.
27666 (FOR_SCRIPT_FUNCTIONS): New macro.
27667 (grub_script_function_iterate): Removed.
27668 (grub_normal_parse_line): New prototype.
27669 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
27670 (FOR_DISABLED_TERM_INPUTS): Likewise.
27671 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
27672 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
27673 * include/grub/video.h (grub_video_adapter): Move 'next' to first
27674 element.
27675 (grub_video_register): Inline.
27676 (grub_video_unregister): Likewise.
27677 (grub_video_adapter_list): New variable declaration.
27678 (grub_video_iterate): Removed.
27679 (FOR_VIDEO_ADAPTERS): New macro.
27680 * kern/dl.c (grub_dl_list): Removed. All users updated.
27681 (grub_dl_iterate): Removed.
27682 * kern/fs.c (grub_fs_list): Make global.
27683 (grub_fs_register): Removed.
27684 (grub_fs_unregister): Likewise.
27685 (grub_fs_iterate): Likewise.
27686 * kern/handler.c: Removed.
27687 * kern/list.c (grub_list_pop): Removed.
27688 (grub_list_iterate): Likewise.
27689 (grub_list_insert): Likewise.
27690 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
27691 (grub_prio_list_insert): Don't use grub_list_insert.
27692 * kern/main.c (grub_register_rescue_parser): Don't call
27693 grub_register_rescue_parser.
27694 * kern/parser.c (grub_parser_class): Removed.
27695 (grub_parser_execute): Use grub_rescue_parse_line.
27696 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
27697 (grub_rescue_parser): Removed.
27698 (grub_register_rescue_parser): Likewise.
27699 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
27700 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
27701 (grub_auth_check_authentication): Likewise.
27702 * normal/completion.c (iterate_command): Removed.
27703 (grub_normal_do_completion): Use FOR_COMMANDS.
27704 * normal/handler.c: Removed.
27705 * normal/main.c (read_config_file): Remove parser changing.
27706 (grub_normal_execute): Don't call read_handler_list.
27707 (grub_normal_read_line_real): Statically allocate prompt.
27708 (grub_cmdline_run): Use grub_normal_parse_line.
27709 (GRUB_MOD_FINI): Don't call free_handler_list.
27710 * normal/menu_entry.c (run): Likewise.
27711 * script/function.c (grub_script_function_list): Make global.
27712 (grub_script_function_iterate): Removed.
27713 * script/main.c (grub_normal_parse_line): Make global.
27714 (grub_sh_parser): Removed.
27715 (GRUB_MOD_INIT): Likewise.
27716 (GRUB_MOD_FINI): Likewise.
27717 * tests/lib/functional_test.c (grub_functional_test): Use
27718 FOR_LIST_ELEMENTS.
27719 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
27720 (grub_test_run): Use FOR_LIST_ELEMENTS.
27721 * tests/lib/unit_test.c (main): Likewise.
27722 * util/deviceiter.c (grub_util_iterate_devices): Don't use
27723 grub_list_pop.
27724 * util/grub-fstest.c (grub_term_input_class): Removed.
27725 (grub_term_output_class): Likewise.
27726 * util/grub-probe.c: Likewise.
27727 * util/i386/pc/grub-setup.c: Likewise.
27728 * util/sparc64/ieee1275/grub-setup.c: Likewise.
27729 * util/grub-script-check.c (main): Don't call grub_init_all and
27730 grub_fini_all.
27731 * video/video.c (grub_video_adapter_list): Make global.
27732 (grub_video_register): Removed.
27733 (grub_video_unregister): Likewise.
27734 (grub_video_iterate): Likewise.
27735
27736 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
27737
27738 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
27739 reported by Henrique Ferreiro.
27740
27741 2010-06-09 Robert Millan <rmh@gnu.org>
27742
27743 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
27744 ones, when both are available.
27745
27746 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27747
27748 Make --version uniform and avoid hard-coded program name.
27749
27750 * util/grub-mkimage.c (main): Use `program_name' instead of
27751 hard-coded string.
27752 * util/i386/pc/grub-setup.c (main): Likewise.
27753 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
27754 * util/grub-install.in: Save the basename of $0 in $self, and use the
27755 latter in informational messages. Use the same format for --version
27756 as the binary programs.
27757 * util/grub-mkconfig.in: Likewise.
27758 * util/grub-mkrescue.in: Likewise.
27759 * util/grub-reboot.in: Likewise.
27760 * util/grub-set-default.in: Likewise.
27761 * util/i386/efi/grub-install.in: Likewise.
27762 * util/ieee1275/grub-install.in: Likewise.
27763 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27764
27765 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27766
27767 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
27768 embedding area. Use <= instead of == when checking for non-emptiness.
27769
27770 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27771
27772 * configure.ac: Add `.' to the directories searched for unifont.
27773
27774 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27775
27776 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
27777 grub_script.yy.h.
27778
27779 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27780
27781 * docs/grub.texi (History): Expand to cover GRUB 2.
27782 (Serial terminal): Refer to `terminal_input' and `terminal_output'
27783 commands, not `terminal'.
27784 (serial): Likewise.
27785 (terminal_input): New section.
27786 (terminal_output): New section.
27787 (uppermem): New section (stub).
27788 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
27789
27790 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27791
27792 * docs/grub.texi (Security): Menu entries are unrestricted by
27793 default, not restricted to superusers as I had previously thought.
27794 Reword to account for this.
27795
27796 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27797
27798 * kern/emu/misc.c (device_mapper_null_log): New function.
27799 (grub_device_mapper_supported): New function.
27800 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
27801 prototype.
27802 * kern/emu/hostdisk.c (find_partition_start): Check whether
27803 device-mapper is supported before trying to use it.
27804 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
27805
27806 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27807
27808 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
27809 (File name syntax): Likewise.
27810 (help): --all is no longer supported in GRUB 2. Be more precise
27811 about pattern matching.
27812
27813 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27814
27815 * normal/completion.c (grub_normal_do_completion): When completing
27816 arguments to "set" and the current word contains an equals sign,
27817 skip to after the equals sign before starting completion.
27818
27819 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27820
27821 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
27822
27823 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27824
27825 * docs/grub.texi (Network): New section.
27826 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
27827 `(nd)' as in GRUB Legacy.
27828 (pxe_unload): New section.
27829
27830 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27831
27832 * docs/grub.texi (Troubleshooting): `echo' is not usually available
27833 in the rescue shell, so recommend using `set' instead. Thanks,
27834 Jordan Uggla.
27835
27836 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27837
27838 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
27839 (password): New section.
27840 (password_pbkdf2): New section.
27841 (search): New section.
27842 (Security): New section.
27843 (Troubleshooting): New section, currently very incomplete.
27844 (Invoking grub-mkpasswd-pbkdf2): New section.
27845 (Internals): New section, currently very incomplete.
27846
27847 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27848
27849 * util/grub.d/00_header.in: Add some more quoting (of
27850 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
27851 work again.
27852 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
27853
27854 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27855
27856 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
27857 to `count', fixing variable shadowing that broke the -c option.
27858
27859 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
27860
27861 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
27862 in case they contain spaces.
27863
27864 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
27865
27866 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
27867 "part_" to partmap module names, in line with grub-install.
27868 Reported by: Jindřich Makovička (Debian bug #584426).
27869
27870 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
27871
27872 * util/grub-mkimage.c: Make target-related error messages slightly
27873 more helpful; -O talks about "format". Explicitly point to the use
27874 of -O if no target is specified.
27875 Reported by: Didier Raboud (Debian bug #584415).
27876
27877 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
27878
27879 * INSTALL: Document several build requirements for optional features
27880 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
27881
27882 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
27883
27884 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
27885 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
27886 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
27887
27888 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27889
27890 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
27891 Thanks to Jordan Uggla for spotting this.
27892
27893 2010-06-02 Aleš Nesrsta <starous@volny.cz>
27894
27895 Finally make USB usable.
27896
27897 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
27898 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
27899 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
27900 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
27901 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
27902 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
27903 (GRUB_OHCI_FSMPS): Likewise.
27904 (GRUB_OHCI_PERIODIC_START): Likewise.
27905 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
27906 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
27907 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
27908 (GRUB_OHCI_SET_PORT_RESET): Likewise.
27909 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
27910 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
27911 (grub_ohci_transaction): Likewise.
27912 (grub_ohci_transfer): Improve condition detection algorithms.
27913 Handle toggle property. Program the transactions correctly.
27914 Improve error handling. Various important fixups.
27915 (grub_ohci_portstatus): Put register writes in right order.
27916 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
27917 (grub_uhci_transfer): Don't show "failed" message on success.
27918 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
27919 array.
27920 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
27921 determine its size.
27922 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
27923 before initialization is completed. Use IN direction for empty
27924 transfers. Use last_trans and compute toggle.
27925 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
27926 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
27927 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
27928 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
27929 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
27930 (grub_usb_device): Increase toggle to 256.
27931 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
27932 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
27933 GRUB_USBMS_SUBCLASS_SFF8070.
27934 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
27935 (grub_scsi_inquiry): New member page and alloc_length.
27936 (grub_scsi_request_sense): New structure.
27937 (grub_scsi_request_sense_data): Likewise.
27938 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
27939 control.
27940 * disk/scsi.c (grub_scsi_request_sense): New function.
27941 (grub_scsi_test_unit_ready): Likewise.
27942 (grub_scsi_inquiry): Fill new fields.
27943 (grub_scsi_read_capacity): Likewise.
27944 (grub_scsi_read10): Add request sense at the end.
27945 (grub_scsi_read12): Likewise.
27946 (grub_scsi_write10): Likewise.
27947 (grub_scsi_write12): Likewise.
27948 (grub_scsi_open): Add Test Unit Ready.
27949 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
27950 Support additional subclasses. Con't clear halt yet. Activate the
27951 proper config. Calculate LUNs correctly.
27952 (grub_usbms_transfer): Various important fixups.
27953
27954 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
27955
27956 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
27957 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
27958 (grub_ohci_fini_hw): New function.
27959 (grub_ohci_restore_hw): Likewise.
27960 (GRUB_MOD_INIT(ohci)): Register preboot hook.
27961 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
27962 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
27963
27964 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
27965
27966 Dedicated DMA allocations.
27967
27968 * bus/pci.c (grub_memalign_dma32): New function
27969 (grub_dma_free): Likewise.
27970 (grub_dma_get_virt): Likewise.
27971 (grub_dma_get_phys): Likewise.
27972 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
27973 (grub_ohci_pci_iter): Use dma32_alloc.
27974 (grub_ohci_transfer): Likewise.
27975 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
27976 (grub_usb_bulk_readwrite): Likewise.
27977 * include/grub/pci.h: Add declarations.
27978
27979 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
27980
27981 CS5536 support.
27982
27983 * bus/cs5536.c: New file.
27984 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
27985 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
27986 (cs5536_mod_SOURCES): New variable.
27987 (cs5536_mod_CFLAGS): Likewise.
27988 (cs5536_mod_LDFLAGS): Likewise.
27989 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
27990 machine/pci.h.
27991 (kernel_img_SOURCES): Add bus/cs5536.c.
27992 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
27993 usb_keyboard.mod.
27994 (usb_mod_SOURCES): New variable.
27995 (usb_mod_CFLAGS): New variable.
27996 (usb_mod_LDFLAGS): New variable.
27997 (usbtest_mod_SOURCES): New variable.
27998 (usbtest_mod_CFLAGS): New variable.
27999 (usbtest_mod_LDFLAGS): New variable.
28000 (ohci_mod_SOURCES): New variable.
28001 (ohci_mod_CFLAGS): New variable.
28002 (ohci_mod_LDFLAGS): New variable.
28003 (usbms_mod_SOURCES): New variable.
28004 (usbms_mod_CFLAGS): New variable.
28005 (usbms_mod_LDFLAGS): New variable.
28006 (usb_keyboard_mod_SOURCES): New variable.
28007 (usb_keyboard_mod_CFLAGS): New variable.
28008 (usb_keyboard_mod_LDFLAGS): New variable.
28009 * include/grub/smbus.h: New file.
28010 * include/grub/cs5536.h: New file.
28011
28012 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28013
28014 * util/grub.d/00_header.in: Add safety check to make sure that
28015 ${locale_dir} exists before trying to probe it.
28016
28017 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28018
28019 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
28020 per the GNU Coding Standards; this is now too obscure to be worth
28021 documenting.
28022 (QNX): Likewise.
28023 (chainloader): Remove cross-reference to `SCO UnixWare'.
28024
28025 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28026
28027 * docs/grub.texi (Chain-loading): New section.
28028 (DOS/Windows): New section, borrowed from GRUB Legacy with details
28029 adjusted for GRUB 2.
28030 (SCO UnixWare): Likewise.
28031 (QNX): Likewise.
28032 (chainloader): Add reference to `Block list syntax'.
28033 (drivemap): New section.
28034 (parttool): New section.
28035
28036 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28037
28038 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
28039 the grub shell'.
28040 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
28041 (Installing GRUB using grub-install): Remove reference to the grub
28042 shell; mention `grub-mkimage' and `grub-setup' instead.
28043 (Invoking grub-install): Likewise.
28044 (Interface): Add reference to `Menu entry editor'.
28045 (serial): Remove `--device' option.
28046
28047 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28048
28049 * docs/grub.texi (Configuration): New section, documenting
28050 configuration file generation using grub-mkconfig. I've left a slot
28051 for documenting the full shell scripting format but have not yet
28052 started on writing that up.
28053 (Invoking grub-mkconfig): New section.
28054
28055 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28056
28057 * docs/grub.texi (direntry): Remove grub-terminfo reference.
28058 (GNU GRUB manual): Likewise.
28059 (General commands): Update description of `terminfo' for GRUB 2.
28060
28061 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28062
28063 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
28064 (GRUB_MOD_INIT): Fix capitalisation.
28065 * docs/grub.texi (Command-line and menu entry commands): Document
28066 gettext and gptsync commands.
28067
28068 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28069
28070 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
28071 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
28072
28073 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
28074
28075 Add btrfs probing support, currently only in the single-device case.
28076
28077 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
28078 function.
28079 (grub_guess_root_device): Call find_root_device_from_mountinfo
28080 before looking in /dev.
28081
28082 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28083
28084 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
28085 GRUB_DISK_SIZE_UNKNOWN.
28086 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
28087
28088 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
28089
28090 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
28091 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
28092 corrupted or not synced properly.
28093
28094 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28095
28096 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
28097 Reported by: Seth Goldberg.
28098
28099 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28100
28101 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
28102 addition of dest.
28103 Reported by: Seth Goldberg.
28104
28105 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28106
28107 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
28108 Reported by: Seth Goldberg.
28109
28110 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28111
28112 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
28113 64-bit address as signed on MIPS.
28114
28115 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28116
28117 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
28118 to the empty string.
28119
28120 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
28121
28122 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
28123
28124 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
28125 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
28126 * kern/misc.c (__enable_execute_stack): Disable on
28127 GRUB_MACHINE_EMU.
28128
28129 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28130
28131 Make grub-probe work with symbolic links under /dev/mapper as well
28132 as with real block devices. The Linux world seems to be (at best)
28133 in transition here, and GRUB shouldn't get caught in the middle.
28134
28135 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
28136 /dev/mapper.
28137
28138 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28139
28140 * util/grub-script-check.c (main): Ensure defined behaviour on empty
28141 input files (in which case exit zero).
28142
28143 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28144
28145 * kern/emu/misc.c (canonicalize_file_name): realpath can still
28146 return NULL for various reasons even if it has a maximum-length
28147 buffer: for example, there might be a symlink loop, or the path
28148 might exceed PATH_MAX. If this happens, return NULL.
28149
28150 2010-05-27 Robert Millan <rmh@gnu.org>
28151
28152 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
28153 partmap module to handle cross-partmap setups.
28154 Reported by Orestes Mas. Gràcies!
28155
28156 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28157
28158 * util/grub-mkrescue.in: Initialise override_dir rather than
28159 assuming that it's unset or empty in the environment.
28160
28161 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
28162
28163 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
28164 variable index into p_index to suppress a warning with -Wshadow.
28165
28166 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
28167
28168 * INSTALL: Added flex >= 2.5.35 requirement.
28169
28170 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28171
28172 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
28173
28174 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28175
28176 cmostest support.
28177
28178 * commands/i386/cmostest.c: New file.
28179 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
28180 (cmostest_mod_SOURCES): New variable.
28181 (cmostest_mod_CFLAGS): Likewise.
28182 (cmostest_mod_LDFLAGS): Likewise.
28183 * conf/i386-pc.rmk: Likewise.
28184 * docs/grub.texi (Vendor power-on keys): New section.
28185 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
28186 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
28187 and GRUB_BUTTON_CMOS_ADDRESS.
28188 * util/grub.d/00_header.in: Handle powering-on by separate button.
28189
28190 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28191
28192 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
28193 Removed drawing_scrollbar argument. All users updated
28194 Fixes #29792.
28195 Reported by Jo Shields
28196
28197 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28198
28199 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
28200 buffer since gfxterm handles double repaint.
28201
28202 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28203
28204 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
28205 * term/gfxterm.c (real_scroll): Likewise.
28206
28207 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28208
28209 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
28210 before calling BIOS.
28211
28212 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28213
28214 * include/grub/i18n.h: Always enable grub_gettext.
28215
28216 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28217
28218 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
28219 partition naming style.
28220
28221 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
28222
28223 * util/grub-mkconfig.in: Fix handling of -o so that it works when
28224 not the first option.
28225
28226 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28227
28228 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
28229
28230 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28231
28232 * util/misc.c: Move inclusion of <limits.h> to ...
28233 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
28234
28235 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
28236
28237 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
28238 Fix merge error in NetBSD code.
28239 (find_partition_start) [__NetBSD__]: Likewise.
28240
28241 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
28242
28243 Fix grub-mkrescue usage unit testing.
28244
28245 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
28246
28247 2010-05-18 Christian Franke <franke@computer.org>
28248
28249 * util/grub.d/10_windows.in: Use path names instead of
28250 drive letters to prevent warning from Cygwin 1.7.
28251 Add drivemap command to menuentry if needed.
28252
28253 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
28254
28255 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
28256 gnumach and gnumach.gz.
28257
28258 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28259
28260 * include/grub/i18n.h (gettext): Inline instead of using #define.
28261 (grub_gettext): Likewise.
28262 (_): Likewise.
28263
28264 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28265
28266 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
28267 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
28268 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
28269 (main): Add a slash after pkglibdirroot.
28270
28271 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28272
28273 * util/grub-install.in: Add missing "in" keyword.
28274
28275 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28276
28277 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
28278 Reported by: Seth Goldberg.
28279
28280 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28281
28282 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
28283
28284 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28285
28286 * configure.ac: Check for Linux device-mapper support.
28287
28288 * util/hostdisk.c (device_is_mapped): New function.
28289 (find_partition_start): New function, partly broken out from
28290 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
28291 device-mapper support added.
28292 (linux_find_partition): Use find_partition_start.
28293 (convert_system_partition_to_system_disk): Add `st' argument.
28294 Support Linux /dev/mapper/* devices if device-mapper support is
28295 available; only DM-RAID devices are understood at present.
28296 (find_system_device): Add `st' argument. Pass it to
28297 convert_system_partition_to_system_disk.
28298 (grub_util_biosdisk_get_grub_dev): Pass stat result to
28299 find_system_device and convert_system_partition_to_system_disk. Use
28300 find_partition_start.
28301
28302 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
28303 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
28304 * util/deviceiter.c [__linux__]: Define MINOR.
28305 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
28306 * util/mkdevicemap.c (grub_putchar): New function.
28307 (grub_getkey): New function.
28308 (grub_refresh): New function.
28309 (main): Set debug=all if -v -v is used.
28310
28311 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28312
28313 Fix build with non-GNU libcs.
28314
28315 * util/misc.c (canonicalize_file_name): Move to ...
28316 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
28317 grub_make_system_path_relative_to_its_root.
28318
28319 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28320
28321 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
28322 we handle finding grub-mkimage. Default to finding grub-mkimage in
28323 ${bindir} with program_transform_name applied, and provide a
28324 --grub-mkimage option to override this.
28325
28326 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28327
28328 Remove grub-mkisofs.
28329
28330 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
28331 (grub_mkisofs_SOURCES): Removed.
28332 (grub_mkisofs_CFLAGS): Removed.
28333 * util/mkisofs/defaults.h: Removed.
28334 * util/mkisofs/eltorito.c: Likewise.
28335 * util/mkisofs/exclude.h: Likewise.
28336 * util/mkisofs/hash.c: Likewise.
28337 * util/mkisofs/include/: Likewise.
28338 * util/mkisofs/include/fctldefs.h: Likewise.
28339 * util/mkisofs/include/mconfig.h: Likewise.
28340 * util/mkisofs/include/prototyp.h: Likewise.
28341 * util/mkisofs/include/statdefs.h: Likewise.
28342 * util/mkisofs/iso9660.h: Likewise.
28343 * util/mkisofs/joliet.c: Likewise.
28344 * util/mkisofs/match.c: Likewise.
28345 * util/mkisofs/match.h: Likewise.
28346 * util/mkisofs/mkisofs.c: Likewise.
28347 * util/mkisofs/mkisofs.h: Likewise.
28348 * util/mkisofs/msdos_partition.h: Likewise.
28349 * util/mkisofs/multi.c: Likewise.
28350 * util/mkisofs/name.c: Likewise.
28351 * util/mkisofs/rock.c: Likewise.
28352 * util/mkisofs/tree.c: Likewise.
28353 * util/mkisofs/write.c: Likewise.
28354
28355 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28356
28357 Unify grub-mkimage accross platforms.
28358
28359 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
28360 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
28361 (grub_mkelfimage_SOURCES): Removed.
28362 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
28363 (util/grub-mkimage.c_DEPENDENCIES): .. this.
28364 (bin_UTILITIES): Add grub-mkimage.
28365 (grub_mkimage_SOURCES): New variable.
28366 (kernel_img_HEADERS): Remove machine/kernel.h.
28367 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
28368 (pkglib_PROGRAMS): Add kernel.img.
28369 (kernel_img_HEADERS): Add machine/kernel.h.
28370 (kernel_img_FORMAT): Removed.
28371 (bin_UTILITIES): Remove grub-mkimage.
28372 (grub_mkimage_SOURCES): Removed.
28373 (grub_mkimage_CFLAGS): Likewise.
28374 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28375 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
28376 (pkglib_PROGRAMS): Add kernel.img.
28377 (bin_UTILITIES): Remove grub-mkimage.
28378 (grub_mkimage_SOURCES): Removed.
28379 (grub_mkimage_CFLAGS): Likewise.
28380 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28381 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
28382 (pkglib_PROGRAMS): Add kernel.img.
28383 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
28384 (pkglib_PROGRAMS): Add kernel.img.
28385 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
28386 (grub_mkimage_SOURCES): Removed.
28387 (grub_mkimage_CFLAGS): Likewise.
28388 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28389 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
28390 (pkglib_PROGRAMS): Add kernel.img.
28391 (bin_UTILITIES): Remove grub-mkimage.
28392 (grub_mkimage_SOURCES): Removed.
28393 (grub_mkimage_CFLAGS): Likewise.
28394 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28395 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
28396 (grub_mkimage_SOURCES): Removed.
28397 (grub_mkimage_CFLAGS): Likewise.
28398 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28399 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
28400 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
28401 (grub_pe32_optional_header): ... this.
28402 (grub_pe64_optional_header): ... and this. All users updated.
28403 (GRUB_PE32_PE32_MAGIC): Split into ..
28404 (GRUB_PE32_PE32_MAGIC): .. this.
28405 (GRUB_PE32_PE64_MAGIC): .. and this.
28406 (GRUB_PE32_SIGNATURE_SIZE): New definition.
28407 * include/grub/elf.h (PT_GNU_STACK): New definition.
28408 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
28409 * include/grub/i386/efi/kernel.h: Likewise.
28410 * include/grub/i386/kernel.h: Likewise.
28411 * include/grub/i386/pc/kernel.h: Likewise.
28412 * include/grub/i386/qemu/boot.h: Likewise.
28413 * include/grub/mips/kernel.h: Likewise.
28414 * include/grub/mips/qemu-mips/kernel.h: Likewise.
28415 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
28416 * include/grub/powerpc/kernel.h: Likewise.
28417 * include/grub/sparc64/ieee1275/boot.h: Likewise.
28418 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
28419 * include/grub/sparc64/kernel.h: Likewise.
28420 * include/grub/x86_64/efi/kernel.h: Likewise.
28421 * include/grub/x86_64/kernel.h: Likewise.
28422 * include/grub/offsets.h: New file.
28423 * include/grub/kernel.h (grub_module_info): Split into ...
28424 (grub_module_info32): ... this.
28425 (grub_module_info64): ... and this.
28426 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
28427 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
28428 (grub_boot_blocklist): Moved from here ...
28429 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
28430 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
28431 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
28432 * include/grub/types.h (grub_target_to_host16): Removed.
28433 (grub_target_to_host32): Likewise.
28434 (grub_target_to_host64): Likewise.
28435 (grub_host_to_target16): Likewise.
28436 (grub_host_to_target32): Likewise.
28437 (grub_host_to_target64): Likewise.
28438 (grub_host_to_target_addr): Likewise.
28439
28440 Support grub-mkrescue for efi, coreboot and qemu.
28441
28442 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
28443 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
28444 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
28445 * util/grub-mkrawimage.c: Moved from here ...
28446 * util/grub-mkimage.c: ... here. All users updated.
28447 (ALIGN_ADDR): Use image_target.
28448 (TARGET_NO_FIELD): New const.
28449 (image_target_desc): New type.
28450 (image_targets): New array.
28451 (grub_target_to_host64): Use image_target.
28452 (grub_target_to_host32): Likewise.
28453 (grub_target_to_host16): Likewise.
28454 (grub_host_to_target64): Likewise.
28455 (grub_host_to_target32): Likewise.
28456 (grub_host_to_target16): Likewise.
28457 (grub_host_to_target_addr): Likewise.
28458 (generate_image): Handle multiimage.
28459 (main): Require -O parameter. All users updated.
28460 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
28461 util/efi/grub-mkimage.c
28462 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
28463 New option --rom-directory.
28464 Use xorriso.
28465 * util/i386/efi/grub-mkimage.c: Removed.
28466 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
28467 (grub_target_to_host32): Likewise.
28468 (grub_target_to_host64): Likewise.
28469 (grub_host_to_target16): Likewise.
28470 (grub_host_to_target32): Likewise.
28471 (grub_host_to_target64): Likewise.
28472 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
28473 (grub_target_to_host32): Likewise.
28474 (grub_target_to_host64): Likewise.
28475 (grub_host_to_target16): Likewise.
28476 (grub_host_to_target32): Likewise.
28477 (grub_host_to_target64): Likewise.
28478
28479 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
28480
28481 Source tree is reorganized for emu build.
28482
28483 * include/grub/util/console.h: Move from here...
28484 * include/grub/emu/console.h: ...to here.
28485 * include/grub/util/getroot.h: Move from here...
28486 * include/grub/emu/getroot.h: ...to here.
28487 * include/grub/util/hostdisk.h: Move from here...
28488 * include/grub/emu/hostdisk.h: ...to here.
28489 * util/console.c: Move from here...
28490 * kern/emu/console.c: ...to here.
28491 * util/getroot.c: Move from here...
28492 * kern/emu/getroot.c: ...to here.
28493 * util/grub-emu.c: Move from here...
28494 * kern/emu/main.c: ...to here.
28495 * util/hostdisk.c: Move from here...
28496 * kern/emu/hostdisk.c: ...to here.
28497 * util/hostfs.c: Move from here...
28498 * kern/emu/hostfs.c: ...to here.
28499 * util/mm.c: Move from here...
28500 * kern/emu/mm.c: ...to here.
28501 * util/pci.c: Move from here...
28502 * bus/emu/pci.c: ...to here.
28503 * util/sdl.c: Move from here...
28504 * video/emu/sdl.c: ...to here.
28505 * util/time.c: Move from here...
28506 * kern/emu/time.c: ...to here.
28507 * util/usb.c: Move from here...
28508 * bus/usb/emu/usb.c: ...to here.
28509
28510 * include/grub/emu/misc.h: New header for grub-emu functions.
28511 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
28512
28513 * conf/any-emu.rmk: Rule updates for above renames.
28514 * conf/common.rmk: Likewise.
28515 * conf/i386-pc.rmk: Likewise.
28516 * conf/i386-qemu.rmk: Likewise.
28517 * conf/mips.rmk: Likewise.
28518 * conf/sparc64-ieee1275.rmk: Likewise.
28519 * conf/x86-efi.rmk: Likewise.
28520
28521 * disk/lvm.h: #include updates for above renames.
28522 * util/grub-mkrelpath.c: Likewise.
28523 * util/grub-probe.c: Likewise.
28524 * util/i386/pc/grub-setup.c: Likewise.
28525 * util/sparc64/ieee1275/grub-setup.c: Likewise.
28526 * kern/emu/console.c: Likewise.
28527 * kern/emu/getroot.c: Likewise.
28528 * kern/emu/hostdisk.c: Likewise.
28529 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
28530
28531 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
28532 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
28533 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
28534 * util/misc.c: Remove grub-emu functions.
28535
28536 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
28537
28538 Fix gfxmenu crash.
28539 Reported by: Thorsten Grützmacher.
28540
28541 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
28542 timeout hook.
28543 (circprog_set_property): Register and unregister timeout hook.
28544 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
28545 (label_destroy): Free template. and unregister hook.
28546 (label_set_state): New function.
28547 (label_set_property): Handle templates and hooks.
28548 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
28549 timeout hook.
28550 (progress_bar_set_property): Register and unregister timeout hook.
28551 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
28552 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
28553 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
28554 (update_timeout_visit): Removed.
28555 (update_timeouts): New function.
28556 (redraw_timeouts): Likewise.
28557 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
28558 (grub_gfxmenu_clear_timeout): Likewise.
28559 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
28560 (grub_gfxmenu_timeout_notify): Likewise.
28561 (grub_gfxmenu_timeout_notifications): New external variable.
28562 (grub_gfxmenu_timeout_register): New function.
28563 (grub_gfxmenu_timeout_unregister): Likewise.
28564
28565 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
28566
28567 Transform (broken) vga terminal into (working) vga video driver.
28568
28569 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
28570 video/i386/pc/vga.c.
28571 * include/grub/video.h (grub_video_driver_id):
28572 Add GRUB_VIDEO_DRIVER_VGA.
28573 * term/i386/pc/vga.c: Renamed to ...
28574 * video/i386/pc/vga.c: ...this
28575 (DEBUG_VGA): Removed.
28576 (CHAR_WIDTH): Likewise.
28577 (CHAR_HEIGHT): Likewise.
28578 (TEXT_WIDTH): Likewise.
28579 (TEXT_HEIGHT): Likewise.
28580 (DEFAULT_FG_COLOR): Likewise.
28581 (DEFAULT_BG_COLOR): Likewise.
28582 (colored_char): Likewise.
28583 (xpos): Likewise.
28584 (ypos): Likewise.
28585 (cursor_state): Likewise.
28586 (fg_color): Likewise.
28587 (bg_color): Likewise.
28588 (text_buf): Likewise.
28589 (page): Likewise.
28590 (font): Likewise.
28591 (framebuffer): New variable.
28592 (set_read_map): Disabled.
28593 (setup): New variable.
28594 (is_target): Likewise.
28595 (grub_vga_mod_init): Likewise.
28596 (grub_vga_mod_fini): Likewise.
28597 (check_vga_mem): Likewise.
28598 (write_char): Likewise.
28599 (write_cursor): Likewise.
28600 (scroll_up): Likewise.
28601 (grub_vga_putchar): Likewise.
28602 (grub_vga_getcharwidth): Likewise.
28603 (grub_vga_getwh): Likewise.
28604 (grub_vga_getxy): Likewise.
28605 (grub_vga_gotoxy): Likewise.
28606 (grub_vga_cls): Likewise.
28607 (grub_vga_setcolorstate): Likewise.
28608 (grub_vga_setcursor): Likewise.
28609 (grub_video_vga_init): New function.
28610 (grub_video_vga_setup): Likewise.
28611 (grub_video_vga_fini): Likewise.
28612 (update_target): Likewise.
28613 (grub_video_vga_blit_bitmap): Likewise.
28614 (grub_video_vga_blit_render_target): Likewise.
28615 (grub_video_vga_set_active_render_target): Likewise.
28616 (grub_video_vga_get_active_render_target): Likewise.
28617 (grub_video_vga_swap_buffers): Likewise.
28618 (grub_video_vga_set_palette): Likewise.
28619 (grub_video_vga_get_info_and_fini): Likewise.
28620 (grub_vga_term): Removed.
28621 (grub_video_vga_adapter): New variable.
28622 (GRUB_MOD_INIT): Register a video driver instead of terminal.
28623 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
28624
28625 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28626
28627 * video/readers/jpeg.c: Indented.
28628
28629 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28630
28631 Various jpeg cleanups.
28632
28633 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
28634 (grub_jpeg_decode_quan_table): Use sizeof.
28635 (grub_jpeg_decode_du): Use ARRAY_SIZE.
28636
28637 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
28638
28639 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
28640 tables. Ignore non-last ac bit.
28641 (grub_jpeg_decode_quan_table): Likewise.
28642
28643 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28644
28645 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
28646 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
28647 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
28648 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
28649 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
28650 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
28651
28652 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28653
28654 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
28655 error.
28656
28657 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28658
28659 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
28660
28661 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28662
28663 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
28664 condition.
28665
28666 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28667
28668 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
28669 part.
28670
28671 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28672
28673 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
28674 pointers.
28675
28676 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28677
28678 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
28679
28680 2010-05-01 Christian Franke <franke@computer.org>
28681
28682 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
28683 Remove broken Cygwin path conversion.
28684 * util/misc.c: [__CYGWIN__] Add include and define.
28685 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
28686 for Cygwin 1.7.
28687 (make_system_path_relative_to_its_root): Simplify loop, replace early
28688 return by break.
28689 [__CYGWIN__] Add conversion to win32 path.
28690 Include "/" case in trailing slash removal.
28691
28692 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28693
28694 * kern/main.c (grub_load_config): Fix copy-pasted comment.
28695 Reported by: Seth Goldberg
28696
28697 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28698
28699 * commands/help.c (grub_cmd_help): Fix a typo.
28700 Reported by: Seth Goldberg
28701
28702 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28703
28704 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
28705 name and add N_.
28706 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
28707 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
28708 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
28709 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
28710 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
28711 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
28712 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
28713 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
28714 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
28715 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
28716 * normal/context.c (GRUB_MOD_INIT): Likewise.
28717 * normal/main.c (GRUB_MOD_INIT): Likewise.
28718 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
28719 * term/serial.c (GRUB_MOD_INIT): Likewise.
28720 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
28721
28722 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28723
28724 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
28725 extra == 0.
28726
28727 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28728
28729 * commands/iorw.c: New file.
28730 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
28731 (iorw_mod_SOURCES): New variable.
28732 (iorw_mod_CFLAGS): Likewise.
28733 (iorw_mod_LDFLAGS): Likewise.
28734
28735 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28736
28737 Hotkey support
28738
28739 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
28740 * normal/main.c (hotkey_aliases): New variable.
28741 (grub_normal_add_menu_entry): Parse "--hotkey".
28742 * normal/menu_text.c (run_menu): Handle hotkeys.
28743
28744 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28745
28746 * kern/i386/coreboot/init.c (grub_machine_init): Call
28747 grub_machine_mmap_init on qemu.
28748
28749 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28750
28751 * boot/i386/qemu/boot.S: Add a missing .code16.
28752
28753 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28754
28755 Use LBIO on coreboot.
28756
28757 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
28758 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
28759 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
28760 New declaration.
28761 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
28762 grub_machine_mmap_init on coreboot.
28763 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
28764 GRUB_LINUXBIOS_MEMBER_LINK.
28765 (grub_machine_mmap_iterate): Fix declaration.
28766 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
28767
28768 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28769
28770 Split coreboot and multiboot ports.
28771
28772 * conf/i386-multiboot.rmk: New file.
28773 * configure.ac: Add multiboot port.
28774 * include/grub/i386/multiboot/boot.h: New file.
28775 * include/grub/i386/multiboot/console.h: Likewise.
28776 * include/grub/i386/multiboot/init.h: Likewise.
28777 * include/grub/i386/multiboot/kernel.h: Likewise.
28778 * include/grub/i386/multiboot/loader.h: Likewise.
28779 * include/grub/i386/multiboot/memory.h: Likewise.
28780 * include/grub/i386/multiboot/serial.h: Likewise.
28781 * include/grub/i386/multiboot/time.h: Likewise.
28782 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
28783 * loader/multiboot.c: Likewise.
28784 * loader/multiboot_mbi2.c: Likewise.
28785 * util/grub-mkrescue.in: Generate multiboot rescue.
28786
28787 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28788
28789 * kern/parser.c (grub_parser_execute): Cope with read-only config.
28790
28791 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28792
28793 Merge handling of input and output terminals. Fix a hang.
28794
28795 * commands/terminal.c (abstract_terminal): New struct.
28796 (handle_command): New function. Based on grub_cmd_terminal_input.
28797 (grub_cmd_terminal_input): Use handle_command.
28798 (grub_cmd_terminal_output): Use handle_command.
28799
28800 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
28801
28802 Fix comment handling.
28803
28804 * tests/grub_script_comments.in: New testcase.
28805 * conf/tests.rmk: Rules for new testcase.
28806 * script/yylex.l: Updated flex rules.
28807
28808 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
28809
28810 * docs/grub.texi (play): Document that zero pitches produce rests.
28811 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
28812 if argc is 1.
28813
28814 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
28815
28816 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
28817 autogen issues.
28818
28819 2010-04-26 Christian Franke <franke@computer.org>
28820
28821 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
28822 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
28823 (grub_get_prefix): Remove function.
28824 * util/grub-emu.c (main): Replace grub_get_prefix () call by
28825 make_system_path_relative_to_its_root ().
28826 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
28827
28828 2010-04-24 Christian Franke <franke@computer.org>
28829
28830 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
28831 (kernel_img_LDFLAGS): Remove -static-libgcc.
28832
28833 2010-04-24 Christian Franke <franke@computer.org>
28834
28835 * configure.ac: Do not CHECK_BSS_START_SYMBOL
28836 and CHECK_END_SYMBOL if grub-emu is built.
28837 Unset TARGET_OBJ2ELF if grub-emu is built
28838 without module support.
28839
28840 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
28841
28842 Nilfs2 support.
28843
28844 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
28845 (grub_fstest_SOURCES): Likewise.
28846 (pkglib_MODULES): Add nilfs2.mod.
28847 (nilfs2_mod_SOURCES): New variable.
28848 (nilfs2_mod_CFLAGS): Likewise.
28849 (nilfs2_mod_LDFLAGS): Likewise.
28850 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
28851 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
28852 * fs/nilfs2.c: New file.
28853
28854 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
28855
28856 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
28857 is not supported.
28858
28859 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
28860
28861 Add grub-mkconfig support for NetBSD.
28862
28863 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
28864 * util/grub-mkconfig.in: export new NetBSD specific variables.
28865 * po/POTFILES-shell: added 10_netbsd.in.
28866 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
28867
28868 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
28869
28870 Fix emu build with grub-emu-pci and grub-emu-modules.
28871
28872 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
28873 functions.
28874 * include/grub/libpciaccess.h: New file.
28875 * conf/any-emu.rmk: Update kernel headers for emu build.
28876
28877 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
28878
28879 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
28880
28881 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
28882
28883 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
28884
28885 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
28886
28887 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
28888 Retrieve chosen/bootpath if bootpath isn't hardcoded.
28889 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
28890 util/ieee1275/ofpath.c.
28891 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
28892 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
28893 * include/grub/sparc64/ieee1275/boot.h
28894 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
28895 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
28896 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
28897 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
28898 const char *.
28899 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
28900 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
28901 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
28902 install.
28903
28904 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
28905
28906 * util/grub-mkconfig.in: Corrected two == equality tests.
28907 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
28908 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
28909 expect a number appended to it.
28910 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
28911 expects a number appended to it.
28912
28913 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
28914
28915 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
28916
28917 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
28918
28919 * util/hostdisk.c (make_device_name): Change to new partition naming.
28920
28921 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
28922
28923 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
28924
28925 2010-04-17 Christian Franke <franke@computer.org>
28926
28927 * Makefile.in: Add missing localedir setting.
28928
28929 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
28930
28931 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
28932 mistake in r2156. Noticed by Anthony Fok.
28933
28934 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
28935 @localedir@.
28936 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
28937
28938 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
28939
28940 Fix a spurious, uninitialized variable warning.
28941
28942 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
28943 Initialize variable, shdr.
28944 (grub_freebsd_load_elfmodule): Likewise.
28945 (grub_freebsd_load_elf_meta): Likewise.
28946
28947 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
28948
28949 Fix for escaped dollar in double quoted strings.
28950
28951 * script/yylex.l: Updated flex rules.
28952 * conf/tests.rmk: Rule for new testcase.
28953 * tests/grub_script_dollar.in: New testcase.
28954
28955 2010-04-13 Carles Pina i Estany <carles@pina.cat>
28956 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
28957
28958 Enclose all translated strings in grub.cfg in single quotes, and
28959 escape them appropriately (Ubuntu bug #552921).
28960
28961 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
28962 * util/grub.d/10_hurd.in: Use it.
28963 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
28964 * util/grub.d/10_linux.in (linux_entry): Likewise.
28965
28966 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
28967
28968 Fix cygwin compilation.
28969
28970 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
28971 * include/grub/misc.h (__register_frame_info)
28972 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
28973 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
28974 * kern/misc.c (__register_frame_info)
28975 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
28976 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
28977
28978 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
28979
28980 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
28981
28982 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
28983
28984 Unify libgcc processing.
28985
28986 * Makefile.in (kernel_img_LDFLAGS): New variable.
28987 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
28988 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
28989 overwriting.
28990 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
28991 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
28992 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
28993 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
28994 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
28995 overwriting. Remove -lgcc and -static-libgcc
28996 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
28997 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
28998 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
28999 (kernel_img_LDFLAGS): Append instead of overwriting.
29000 Remove -lgcc and -static-libgcc
29001 * conf/sparc64-ieee1275.rmk: Likewise.
29002 * include/grub/powerpc/libgcc.h: Move to ...
29003 * include/grub/libgcc.h: .. this.
29004 * include/grub/libgcc.h: Don't export most of the function on x86.
29005 (__bswapsi2): New export.
29006 (__bswapdi2): Likewise.
29007 * include/grub/mips/libgcc.h: Removed.
29008 * include/grub/sparc64/libgcc.h: Likewise.
29009
29010 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29011
29012 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
29013 disk_info_msg (conflicts with gettexting into languages with cases).
29014
29015 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
29016
29017 Add grub-probe support for NetBSD.
29018
29019 * util/getroot.c (find_root_device): Convert block device to
29020 character device on NetBSD.
29021 * util/probe.c (probe): Require character device on NetBSD.
29022 * util/hostdisk.c: NetBSD specific headers.
29023 (configure_device_driver): new function to tune device driver
29024 parameters (currently only for NetBSD floppy driver).
29025 (grub_util_biosdisk_open): NetBSD specific code (get disk size
29026 via disklabel ioctl).
29027 (open_device): call configure_device_driver on NetBSD.
29028 (convert_system_partition_to_system_disk): NetBSD specific code.
29029 (device_is_wholedisk): Likewise.
29030 (grub_util_biosdisk_get_grub_dev): Likewise.
29031 (make_device_name): Fixed a typo in bsd_part_str.
29032 * configure.ac: check for opendisk() and getrawpartition() on
29033 NetBSD and set LIBUTIL.
29034 * Makefile.in: add LIBUTIL to LIBS.
29035
29036 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29037
29038 Documentation fix.
29039
29040 * util/grub-script-check.c: Better help message.
29041
29042 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29043
29044 Fix FreeBSD build.
29045
29046 * configure.ac: Flex version check.
29047 * conf/common.rmk: Add -Wno-error to sh.mod.
29048 * script/yylex.l: Remove all #pragma.
29049
29050 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29051
29052 * include/grub/util/misc.h (canonicalise_file_name): Add missing
29053 prototype.
29054 Reported by: Seth Goldberg.
29055
29056 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29057
29058 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
29059 Rename "module" to "module2".
29060 Reported by: Seth Goldberg.
29061
29062 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29063
29064 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
29065 EXPORT_FUNC.
29066 Reported by: Seth Goldberg.
29067
29068 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29069
29070 * lib/posix_wrap/locale.h: Add missing file.
29071 Reported by: Seth Goldberg.
29072
29073 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29074
29075 grub-emu module load support.
29076
29077 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
29078 NO_DYNAMIC_MODULES switched to this.
29079 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
29080 (CFLAGS): Likewise.
29081 * conf/any-emu.rmk: Generate symlist.
29082 (kernel_img_HEADERS): Add util/datetime.h.
29083 (kernel_img_HEADERS) [sdl]: Add sdl.h.
29084 (kernel_img_HEADERS) [libusb]: Add libusb.h.
29085 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
29086 kern/$(target_cpu)/cache.S.
29087 * configure.ac (grub-emu-modules): New option.
29088 * genmk.rb: Handle multiple source lists.
29089 * include/grub/sdl.h: New file.
29090 * include/grub/libusb.h: Likewise.
29091 * util/grub-emu.c (main): Hanle (host) root.
29092 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
29093 GRUB_ERR_UNKNOWN_DEVICE.
29094 * util/misc.c: Move mm functions to ...
29095 * util/mm.c: ... here. All users updated.
29096
29097 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29098
29099 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
29100 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
29101 missing files.
29102 (maintainer-clean): Remove libgcrypt-grub.
29103
29104 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29105
29106 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
29107
29108 2010-04-09 EFI Coder <eficoder@hotmail.com>
29109
29110 * normal/menu_text.c (print_message): Clean up the message and show
29111 the Fn information when on EFI
29112 * term/efi/console.c (grub_console_checkkey): Add F4 support.
29113
29114 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29115
29116 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
29117 All users updated.
29118 * normal/crypto.c (read_crypto_list): Likewise.
29119 * normal/dyncmd.c (read_command_list): Likewise.
29120 * normal/term.c (read_terminal_list): Likewise.
29121 * normal/main.c (read_lists): Use explicit prefix.
29122 (read_lists_hook): Use read_lists.
29123 (grub_normal_execute): Likewise.
29124
29125 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29126
29127 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
29128 Reported by: Thomas Schmitt.
29129 Add -no-emul-boot to grub-mkisofs parameters.
29130
29131 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29132
29133 * font/font.c: Indented.
29134
29135 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29136
29137 Elif support to GRUB script (by Deepak Vankadaru).
29138
29139 * tests/grub_script_if.in: New testcase.
29140 * conf/tests.rmk: Rule for new testcase.
29141 * script/parser.y: Grammar rules for elif.
29142
29143 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29144
29145 While and until loops support to GRUB script.
29146
29147 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
29148 (grub_script_create_cmdwhile): New function prototype.
29149 (grub_script_execute_cmdwhile): New function prototype.
29150 * script/execute.c (grub_script_execute_cmdwhile): New function.
29151 * script/parser.y (command): New commands.
29152 (whilecmd): New grammar rule.
29153 (untilcmd): New grammar rule.
29154 * script/script.c (grub_script_create_cmdwhile): New function.
29155 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
29156 function.
29157
29158 * tests/grub_script_while1.in: New testcase.
29159 * conf/tests.rmk: Rule for new testcase.
29160
29161 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29162
29163 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
29164 as *.jpg.
29165
29166 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
29167
29168 GRUB_BACKGROUND support.
29169
29170 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
29171 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
29172
29173 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29174
29175 Load fonts and modules for gfxmenu in grub-mkconfig.
29176 Idea by: Mario Vazquez
29177
29178 * util/grub.d/00_header.in: Load pf2 and image modules.
29179
29180 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29181
29182 grub-mkconfig multiple terminal support.
29183
29184 * util/grub-mkconfig.in: Handle multiple terminals correctly.
29185 * util/grub.d/00_header.in: Likewise.
29186
29187 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29188
29189 * Makefile.in: Specify files explicitly instead of using $< and $@ since
29190 we use cd $(srcdir).
29191
29192 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
29193
29194 * util/grub.d/10_linux.in: Only use the first word of
29195 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
29196 spaces in GRUB_DISTRIBUTOR.
29197 * util/grub.d/10_kfreebsd.in: Likewise.
29198 * util/grub.d/10_hurd.in: Likewise.
29199
29200 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
29201
29202 Fix unit testing framework for Qemu 0.12.
29203
29204 * tests/util/grub-shell.in: Remove -serial stdio option.
29205
29206 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
29207
29208 POSIX header file wrappers.
29209
29210 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
29211 equivalents.
29212 * lib/posix_wrap/ctype.h: Likewise.
29213 * lib/posix_wrap/errno.h: Likewise.
29214 * lib/posix_wrap/langinfo.h: Likewise.
29215 * lib/posix_wrap/limits.h: Likewise.
29216 * lib/posix_wrap/localcharset.h: Likewise.
29217 * lib/posix_wrap/stdint.h: Likewise.
29218 * lib/posix_wrap/stdio.h: Likewise.
29219 * lib/posix_wrap/stdlib.h: Likewise.
29220 * lib/posix_wrap/string.h: Likewise.
29221 * lib/posix_wrap/sys/types.h: Likewise.
29222 * lib/posix_wrap/unistd.h: Likewise.
29223 * lib/posix_wrap/wchar.h: Likewise.
29224 * lib/posix_wrap/wctype.h: Likewise.
29225 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
29226 (grub_script.yy.h): Likewise.
29227 * script/yylex.l: Remove POSIX emulation #defines.
29228 * Makefile.in (POSIX_CFLAGS): New variable.
29229 (GNULIB_UTIL_CFLAGS): Likewise.
29230
29231 Regexp support.
29232
29233 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
29234 (regexp_mod_SOURCES): New variable.
29235 (regexp_mod_CFLAGS): Likewise.
29236 (regexp_mod_LDFLAGS): Likewise.
29237 * commands/regexp.c: New file.
29238 * gnulib/regcomp.c: New file. Imported from gnulib.
29239 * gnulib/regex.c: Likewise.
29240 * gnulib/regex_internal.c: Likewise.
29241 * gnulib/regex_internal.h: Likewise.
29242 * gnulib/regexec.c: Likewise.
29243 * gnulib/regex.h: Likewise.
29244
29245 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29246
29247 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
29248 unsupported video mode types.
29249
29250 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29251
29252 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
29253
29254 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29255
29256 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
29257 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
29258
29259 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
29260
29261 Remove unused grub_vga_get_font.
29262
29263 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
29264 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
29265
29266 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29267
29268 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
29269 * include/grub/misc.h: Likewise.
29270
29271 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29272
29273 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
29274 for which failure is fatal.
29275
29276 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29277
29278 * util/grub-install.in: Use mkdir -p to create grub directory.
29279 * util/i386/efi/grub-install.in: Likewise.
29280 * util/ieee1275/grub-install.in: Likewise.
29281
29282 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29283
29284 * Makefile.in (LEX): new variable.
29285
29286 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29287
29288 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
29289 `=' and added double quotes on operands of this equality test.
29290
29291 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29292
29293 * Makefile.in (uninstall): Remove a leftover debug echo.
29294 Reported by: Grégoire Sutre
29295
29296 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29297
29298 MIPS multiboot2 support.
29299
29300 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
29301 (multiboot2_mod_SOURCES): New variable.
29302 (multiboot2_mod_CFLAGS): Likewise.
29303 (multiboot2_mod_LDFLAGS): Likewise.
29304 (multiboot2_mod_ASFLAGS): Likewise.
29305 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
29306 definition.
29307 (MULTIBOOT_ENTRY_REGISTER): Likewise.
29308 (MULTIBOOT_MBI_REGISTER): Likewise.
29309 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
29310 (MULTIBOOT_ELF32_MACHINE): Likewise.
29311 (MULTIBOOT_ELF64_MACHINE): Likewise.
29312 * include/grub/mips/multiboot.h: New file.
29313 * include/grub/video.h (grub_video_driver_id): New type
29314 GRUB_VIDEO_DRIVER_SM712.
29315 (grub_video_get_info_and_fini): Export.
29316 (grub_video_get_palette): Likewise.
29317 (grub_video_get_driver_id): Likewise.
29318 * include/multiboot2.h: Resynced with spec.
29319 * loader/i386/multiboot.c: Moved from here ...
29320 * loader/multiboot.c: ... here. All users updated.
29321 (grub_multiboot_boot): Use platform-specific macros.
29322 * loader/i386/multiboot_elfxx.c: Moved from here ...
29323 * loader/multiboot_elfxx.c: ... here. All users updated.
29324 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
29325 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
29326 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
29327
29328 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
29329
29330 Import gnulib argp module.
29331
29332 * gnulib/argp-ba.c: New file.
29333 * gnulib/argp-eexst.c: Likewise.
29334 * gnulib/argp-fmtstream.c: Likewise.
29335 * gnulib/argp-fmtstream.h: Likewise.
29336 * gnulib/argp-fs-xinl.c: Likewise.
29337 * gnulib/argp-help.c: Likewise.
29338 * gnulib/argp-namefrob.h: Likewise.
29339 * gnulib/argp-parse.c: Likewise.
29340 * gnulib/argp-pin.c: Likewise.
29341 * gnulib/argp-pv.c: Likewise.
29342 * gnulib/argp-pvh.c: Likewise.
29343 * gnulib/argp-version-etc.c: Likewise.
29344 * gnulib/argp-version-etc.h: Likewise.
29345 * gnulib/argp-xinl.c: Likewise.
29346 * gnulib/argp.h: Likewise.
29347
29348 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29349
29350 * kern/device.c (grub_device_iterate): Clear errors after failed
29351 opening device.
29352
29353 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29354
29355 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
29356 returned by firmware.
29357
29358 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
29359
29360 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
29361 compilation on coreboot and qemu
29362
29363 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29364
29365 * include/multiboot2.h: Resync with spec.
29366
29367 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29368
29369 Multiboot2 tag support
29370
29371 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
29372 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
29373 Remove loader/multiboot_loader.c.
29374 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
29375 (grub_multiboot2_real_boot): Likewise.
29376 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
29377 (grub_get_multiboot_mmap_count): New proto.
29378 (grub_fill_multiboot_mmap): Likewise.
29379 (grub_multiboot_set_video_mode): Likewise.
29380 (grub_multiboot_set_console): Likewise.
29381 (grub_multiboot_load): Likewise.
29382 (grub_multiboot_load_elf): Likewise.
29383 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
29384 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
29385 * include/multiboot.h: Resynced with specification.
29386 * include/multiboot2.h: Resynced with specification.
29387 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
29388 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
29389 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
29390 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
29391 users updated.
29392 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
29393 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
29394 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
29395 Removed.
29396 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
29397 Moved from here...
29398 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
29399 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
29400 Moved from here...
29401 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
29402 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
29403 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
29404 All users updated.
29405 * loader/i386/multiboot_mbi2.c: New file.
29406
29407 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29408
29409 Resync with gnulib.
29410
29411 * Makefile.in (GNULIB_CFLAGS): New variable.
29412 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
29413 (grub_script_check_CFLAGS): New variable.
29414 * gnulib/alloca.h: Resync with gnulib.
29415 * gnulib/error.c: Likewise.
29416 * gnulib/error.h: Likewise.
29417 * gnulib/fnmatch.c: Likewise.
29418 * gnulib/fnmatch_loop.c: Likewise.
29419 * gnulib/getdelim.c: Likewise.
29420 * gnulib/getline.c: Likewise.
29421 * gnulib/getopt.c: Likewise.
29422 * gnulib/getopt1.c: Likewise.
29423 * gnulib/getopt_int.h: Likewise.
29424 * gnulib/gettext.h: Likewise.
29425 * gnulib/progname.c: Likewise.
29426 * gnulib/progname.h: Likewise.
29427
29428 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
29429
29430 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
29431 which is the case with --disabled-nls.
29432
29433 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
29434 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
29435 * util/misc.c: Likewise.
29436 * util/mkisofs/mkisofs.c: Likewise.
29437 * util/mkisofs/mkisofs.h: Likewise.
29438
29439 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29440
29441 Simplify Apple CC support.
29442
29443 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
29444 Add 0 byte at the end not to have a symbol with empty target.
29445 * mmap/i386/pc/mmap_helper.S: Likewise.
29446 * genmk.rb: Ignore errors 2030 and 2050.
29447 * kern/i386/pc/startup.S: Use LOCAL when possible.
29448
29449 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
29450
29451 Testcase and the fix for final semicolon on cmdline.
29452
29453 * tests/grub_script_final_semicolon.in: New testcase.
29454 * conf/tests.rmk: Rules for the new testcase.
29455 * script/parser.y: Grammar fix.
29456
29457 2010-03-26 BVK Chaitanya <bvk@localhost>
29458
29459 Blank lines testcase for GRUB script.
29460
29461 * tests/grub_script_blanklines.in: New testcase.
29462 * conf/tests.rmk: Rules for the new testcase.
29463
29464 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29465
29466 Don't use __FILE__.
29467
29468 * genmk.rb: Add -DGRUB_FILE to all C targets.
29469 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
29470 * include/grub/list.h: Likewise.
29471 * include/grub/misc.h: Likewise.
29472 * include/grub/mm.h: Likewise.
29473 * include/grub/test.h: Likewise.
29474 * kern/mm.c: Likewise.
29475 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
29476
29477 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29478
29479 Sunpc partitions support.
29480
29481 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
29482 (grub_fstest_SOURCES): Likewise.
29483 (pkglib_MODULES): Add part_sunpc.mod.
29484 (part_sunpc_mod_SOURCES): New variable.
29485 (part_sunpc_mod_CFLAGS): Likewise.
29486 (part_sunpc_mod_LDFLAGS): Likewise.
29487 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
29488 * partmap/sunpc.c: New file.
29489
29490 2010-03-26 BVK Chaitanya <bvk@localhost>
29491
29492 For loop support to GRUB script.
29493
29494 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
29495 (grub_script_create_cmdfor): New function prototype.
29496 (grub_script_execute_cmdfor): New function prototype.
29497 * script/execute.c (grub_script_execute_cmdfor): New function.
29498 * script/parser.y (command): New for command.
29499 (forcmd): New grammar rule.
29500 * script/script.c (grub_script_create_cmdfor): New function.
29501 * util/grub-script-check.c (grub_script_execute_cmdfor): New
29502 function.
29503 * tests/grub_script_for1.in: New testcase.
29504 * conf/tests.rmk: Rules for new testcase.
29505
29506 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29507
29508 Nested partitions
29509
29510 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
29511 'partition' is NULL, grub_partition_get_start already does that.
29512 * commands/loadenv.c (check_blocklists): Likewise.
29513 (write_blocklists): Likewise.
29514 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
29515 (grub_fstest_SOURCES): Likewise.
29516 (pkglib_MODULES): Add part_bsd.mod.
29517 (part_bsd_mod_SOURCES): New variable.
29518 (part_bsd_mod_CFLAGS): Likewise.
29519 (part_bsd_mod_LDFLAGS): Likewise.
29520 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
29521 (grub_emu_SOURCES): Likewise.
29522 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29523 * include/grub/bsdlabel.h: New file.
29524 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
29525 'get_name'.
29526 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
29527 (grub_partition_map_list): New variable.
29528 (grub_partition_map_register): Inline.
29529 (grub_partition_map_unregister): Likewise.
29530 (FOR_PARTITION_MAPS): New macro.
29531 (grub_partition_map_iterate): Removed.
29532 (grub_partition_get_start): Handle nested partitions.
29533 * include/grub/msdos_partition.h: Remove bsd-related entries.
29534 (grub_pc_partition): Remove.
29535 * kern/disk.c (grub_disk_close): Free partition data.
29536 (grub_disk_adjust_range): Handle nested partitions.
29537 * kern/partition.c (grub_partition_map_probe): New function.
29538 (grub_partition_probe): Parse name to number, handle subpartitions.
29539 (get_partmap): New function.
29540 (grub_partition_iterate): Handle subpartitions.
29541 (grub_partition_get_name): Likewise.
29542 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
29543 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
29544 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
29545 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
29546 Set 'number'.
29547 (acorn_partition_map_probe): Remove.
29548 (acorn_partition_map_get_name): Likewise.
29549 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
29550 Set 'number'.
29551 Set 'index' to 0 since there can be only one partition entry per sector.
29552 (amiga_partition_map_probe): Remove.
29553 (amiga_partition_map_get_name): Likewise.
29554 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
29555 Set 'number'.
29556 Set 'offset' and 'index' to real positions of partitions.
29557 (apple_partition_map_probe): Remove.
29558 (apple_partition_map_get_name): Likewise.
29559 * partmap/bsdlabel.c: New file.
29560 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
29561 Set 'number'.
29562 Allocate 'data' so it can be correctly freed.
29563 Set 'index' to offset inside sector.
29564 (gpt_partition_map_probe): Remove.
29565 (gpt_partition_map_get_name): Likewise.
29566 * partmap/msdos.c (grub_partition_parse): Remove.
29567 (pc_partition_map_iterate): Don't force raw access.
29568 Set 'number'.
29569 Make 'ext_offset' a local variable.
29570 (pc_partition_map_probe): Remove.
29571 (pc_partition_map_get_name): Remove.
29572 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
29573 Set 'number'.
29574 (sun_partition_map_probe): Remove.
29575 (sun_partition_map_get_name): Likewise.
29576 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
29577 (grub_pcpart_type): Likewise.
29578 * util/hostdisk.c (open_device): Handle new numbering scheme.
29579 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
29580 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
29581 * util/grub-probe.c (probe_partmap): Handle nested paritions.
29582 * util/grub-install.in: Insert all subpartition modules.
29583 * util/ieee1275/grub-install.in: Likewise.
29584
29585 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
29586
29587 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
29588 grammar.
29589
29590 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
29591
29592 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
29593
29594 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
29595
29596 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
29597 match where 'make install' puts them.
29598 * util/i386/efi/grub-install.in: Likewise.
29599
29600 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
29601
29602 * .bzrignore: Add gentrigtables, grub-script-check,
29603 grub_script_check_init.c, grub_script_check_init.h, and
29604 trigtables.c.
29605
29606 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
29607
29608 * kern/parser.c: Indented.
29609
29610 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29611
29612 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
29613
29614 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29615
29616 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
29617 alpha_mask_size == 0 case.
29618
29619 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
29620
29621 GRUB shell lexer and parser improvements.
29622
29623 * conf/any-emu.rmk: Build rule updates.
29624 * conf/common.rmk: Likewise.
29625 * conf/i386-coreboot.rmk: Likewise.
29626 * conf/i386-efi.rmk: Likewise.
29627 * conf/i386-ieee1275.rmk: Likewise.
29628 * conf/i386-pc.rmk: Likewise.
29629 * conf/powerpc-ieee1275.rmk: Likewise.
29630 * conf/x86_64-efi.rmk: Likewise.
29631
29632 * configure.ac: Configure check for flex.
29633
29634 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
29635 types.
29636 (grub_lexer_param): Struct member updates.
29637 (grub_parser_param): Likewise.
29638 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
29639 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
29640 (grub_script_lexer_init): Prototype update.
29641 (grub_script_lexer_record_start): Likewise.
29642 (grub_script_lexer_record_stop): Likewise.
29643 (grub_script_lexer_yywrap): New function prototype.
29644 (grub_script_lexer_fini): Likewise.
29645 (grub_script_execute_argument_to_string): Removed by...
29646 (grub_script_execute_argument_to_argv): ...better version.
29647
29648 * script/execute.c (ROUND_UPTO): New macro.
29649 (grub_script_execute_cmdline): Out of memory fixes.
29650 (grub_script_execute_menuentry): Likewise.
29651 (grub_script_execute_argument_to_string): Removed. Update all
29652 users by...
29653 (grub_script_execute_argument_to_argv): ...better version.
29654 * script/function.c (grub_script_function_create): Use
29655 grub_script_execute_argument_to_argv instead of
29656 grub_script_execute_argument_to_string.
29657
29658 * script/lexer.c (check_varstate): Removed.
29659 (check_textstate): Removed.
29660 (grub_script_lexer_record_start): Likewise.
29661 (grub_script_lexer_record_stop): Likewise.
29662 (recordchar): Replaced with...
29663 (grub_script_lexer_record): ...new function.
29664 (nextchar): Removed.
29665 (grub_script_lexer_init): Rewritten.
29666 (grub_script_yylex): Rewritten.
29667 (append_newline): New function.
29668 (grub_script_lexer_yywrap): New function.
29669 (grub_script_lexer_fini): New function.
29670 (grub_script_yyerror): Sets error flag.
29671
29672 * script/yylex.l: New file.
29673 (grub_lexer_yyfree): Wrapper for flex yyffre.
29674 (grub_lexer_yyalloc): Likewise.
29675 (grub_lexer_yyrealloc): Likewise.
29676 * script/parser.y: Refactored.
29677
29678 * script/script.c (grub_script_arg_add): Out of memory fixes.
29679 (grub_script_add_arglist): Likewise.
29680 (grub_script_create_cmdline): Likewise.
29681 (grub_script_create_cmdmenu): Likewise.
29682 (grub_script_add_cmd): Likewise.
29683 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
29684 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
29685 unnecessary code.
29686
29687 * tests/grub_script_echo1.in: New testcase.
29688 * tests/grub_script_vars1.in: New testcase.
29689 * tests/grub_script_echo_keywords.in: New testcase.
29690
29691 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29692
29693 Remove some redundancy in build system.
29694
29695 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
29696 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
29697 (TARGET_LDFLAGS): Add -nostdlib.
29698 (TARGET_IMG_LDFLAGS): Likewise.
29699 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
29700 anything since mmap isn't available.
29701 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
29702 Add util/time.c.
29703 (pkglib_MODULES): Remove reboot.mod.
29704 (reboot_mod_SOURCES): Removed.
29705 (reboot_mod_CFLAGS): Likewise.
29706 (reboot_mod_LDFLAGS): Likewise.
29707 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
29708 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
29709 (DEFSYMFILES): Add kernel_syms.lst.
29710 (kernel_img_HEADERS): Add common headers.
29711 (symlist.c): New target.
29712 (kernel_syms.lst): Likewise.
29713 (pkglib_MODULES): Add memdisk.mod.
29714 (memdisk_mod_SOURCES): New variable.
29715 (memdisk_mod_CFLAGS): Likewise.
29716 (memdisk_mod_LDFLAGS): Likewise.
29717 (pkglib_MODULES): Add reboot.mod.
29718 (reboot_mod_SOURCES): New variable.
29719 (reboot_mod_CFLAGS): Likewise.
29720 (reboot_mod_LDFLAGS): Likewise.
29721 (pkglib_MODULES): Add date.mod.
29722 (date_mod_SOURCES): New variable.
29723 (date_mod_CFLAGS): Likewise.
29724 (date_mod_LDFLAGS): Likewise.
29725 (pkglib_MODULES): Add datehook.mod.
29726 (datehook_mod_SOURCES): New variable.
29727 (datehook_mod_CFLAGS): Likewise.
29728 (datehook_mod_LDFLAGS): Likewise.
29729 (pkglib_MODULES): Add lsmmap.mod.
29730 (lsmmap_mod_SOURCES): New variable.
29731 (lsmmap_mod_CFLAGS): Likewise.
29732 (lsmmap_mod_LDFLAGS): Likewise.
29733 (pkglib_MODULES): Add boot.mod.
29734 (boot_mod_SOURCES): New variable.
29735 (boot_mod_CFLAGS): Likewise.
29736 (boot_mod_LDFLAGS): Likewise.
29737 * conf/i386-coreboot.rmk: Removed redundant parts.
29738 * conf/i386-ieee1275.rmk: Likewise.
29739 * conf/i386-pc.rmk: Likewise.
29740 * conf/mips-yeeloong.rmk: Likewise.
29741 * conf/mips.rmk: Likewise.
29742 * conf/powerpc-ieee1275.rmk: Likewise.
29743 * conf/sparc64-ieee1275.rmk: Likewise.
29744 * conf/x86_64-efi.rmk: Likewise.
29745 * conf/i386-coreboot.rmk: Moved qemu parts ..
29746 * conf/i386-qemu.rmk: ... here
29747 * conf/i386-efi.rmk: Moved common parts to...
29748 * conf/x86-efi.rmk: ... here.
29749 * conf/i386.rmk: Added modules common to all x86 variants.
29750 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
29751 * disk/memdisk.c: Remove grub/machine/kernel.h.
29752 * gensymlist.sh.in: Include symbol.h.
29753 * hook/datehook.c: Correct module name.
29754 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
29755 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
29756 * include/grub/i386/efi/serial.h: New file.
29757 * include/grub/x86_64/efi/serial.h: Likewise.
29758 * util/time.c: Likewise.
29759 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
29760
29761 2010-03-14 Colin King <colin.king@ubuntu.com>
29762 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29763
29764 Shrink the pre-partition-table part of boot.img by eight bytes.
29765
29766 * boot/i386/pc/boot.S (ERR): New macro.
29767 (chs_mode): Use ERR.
29768 (geometry_error): Likewise.
29769 (hd_probe_error): Remove. This is only used once, so we wrwite
29770 it inline instead.
29771 (read_error): Instead of printing read_error_string, just set up
29772 %si and fall through to ...
29773 (error_message): ... this new function, also used by ERR.
29774
29775 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29776
29777 Speed up consecutive hostdisk operations on the same device.
29778
29779 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
29780 (grub_util_biosdisk_open): Initialise disk->data.
29781 (struct linux_partition_cache): New structure.
29782 (linux_find_partition): Cache partition start positions; these are
29783 expensive to compute on every read and write.
29784 (open_device): Cache open file descriptor in disk->data, so that we
29785 don't have to reopen it and flush the buffer cache for consecutive
29786 operations on the same device.
29787 (grub_util_biosdisk_close): New function.
29788 (grub_util_biosdisk_dev): Set `close' member.
29789
29790 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
29791 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
29792 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
29793 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
29794 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
29795
29796 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29797
29798 Compile parts of grub-emu as modules.
29799
29800 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
29801 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
29802 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
29803 (all-local): Add $(GRUB_EMU).
29804 (install-local): Install $(GRUB_EMU).
29805 (uninstall): Uninstall $(GRUB_EMU).
29806 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
29807 * kern/dl.c: Likewise.
29808 * commands/sleep.c: Not include machine/time.h.
29809 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
29810 (COMMON_CFLAGS): Likewise.
29811 (sbin_UTILITIES): Remove grub-emu.
29812 (grub_emu_SOURCES): Removed.
29813 (kernel_img_RELOCATABLE): New variable.
29814 (pkglib_PROGRAMS): Add kernel.img.
29815 (kernel_img_SOURCES): New variable
29816 (kernel_img_CFLAGS): Likewise.
29817 (kernel_img_LDFLAGS): Likewise.
29818 (TARGET_NO_STRIP): Likewise.
29819 (TARGET_NO_DYNAMIC_MODULES): Likewise.
29820 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
29821 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
29822 (grub-emu): New target.
29823 (GRUB_EMU): New variable.
29824 * configure.ac: Whitelist -emu as possible x86_64 architecture.
29825 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
29826 * loader/xnu.c: Likewise.
29827 * include/grub/pci.h: Likewise.
29828 * genemuinit.sh: New file.
29829 * genemuinitheader.sh: Likewise.
29830 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
29831 Support TARGET_NO_DYNAMIC_MODULES.
29832 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
29833 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
29834 * disk/loopback.c: Likewise.
29835 * font/font_cmd.c: Likewise.
29836 * partmap/acorn.c: Likewise.
29837 * partmap/amiga.c: Likewise.
29838 * partmap/apple.c: Likewise.
29839 * partmap/gpt.c: Likewise.
29840 * partmap/msdos.c: Likewise.
29841 * partmap/sun.c: Likewise.
29842 * parttool/msdospart.c: Likewise.
29843 * term/gfxterm.c: Likewise.
29844 * video/bitmap.c: Likewise.
29845 * video/readers/jpeg.c: Likewise.
29846 * video/readers/png.c: Likewise.
29847 * video/readers/tga.c: Likewise.
29848 * video/video.c: Likewise.
29849 * util/grub-emu.c (read_command_list): Removed.
29850 (main): Don't call util_init_nls.
29851 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
29852 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
29853
29854 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29855
29856 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
29857 date.mod, datehook.mod.
29858 (datetime_mod_SOURCES): New variable.
29859 (datetime_mod_CFLAGS): Likewise.
29860 (datetime_mod_LDFLAGS): Likewise.
29861 (date_mod_SOURCES): Likewise.
29862 (date_mod_CFLAGS): Likewise.
29863 (date_mod_LDFLAGS): Likewise.
29864 (datehook_mod_SOURCES): Likewise.
29865 (datehook_mod_CFLAGS): Likewise.
29866 (datehook_mod_LDFLAGS): Likewise.
29867 * conf/sparc64-ieee1275.rmk: Likewise.
29868 * lib/ieee1275/datetime.c: New file.
29869
29870 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29871
29872 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
29873 (ieee1275_fb_mod_SOURCES): New variable.
29874 (ieee1275_fb_mod_CFLAGS): Likewise.
29875 (ieee1275_fb_mod_LDFLAGS): Likewise.
29876 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
29877 New proto.
29878 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
29879 (HEAP_MAX_ADDR): Likewise.
29880 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
29881 type.
29882 Correct stop condition.
29883 (grub_ieee1275_devices_iterate): New function.
29884 * video/ieee1275.c: New file.
29885
29886 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29887
29888 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
29889
29890 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
29891 as scratch.
29892 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
29893 SCRATCH_PAD_DISKBOOT as scratch.
29894 (bootit): Pass Openfirmware pointer in %o4.
29895 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
29896 of 0x200000.
29897 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
29898 with util/grub-mkrawimage.c.
29899 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
29900 * include/grub/aout.h (AOUT_MID_SUN): New definition.
29901 (grub_aout_get_type) [GRUB_UTIL]: Removed.
29902 (grub_aout_load) [GRUB_UTIL]: Likewise.
29903 * include/grub/kernel.h (grub_modules_get_end): New proto.
29904 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
29905 (SCRATCH_PAD_BOOT): New definition.
29906 (SCRATCH_PAD_DISKBOOT): Likewise.
29907 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
29908 * include/grub/sparc64/ieee1275/ieee1275.h
29909 (grub_ieee1275_original_stack): New variable
29910 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
29911 New definition
29912 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
29913 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
29914 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
29915 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
29916 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
29917 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
29918 (grub_platform_image_format_t): New type.
29919 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
29920 * kern/main.c (grub_modules_get_end)
29921 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
29922 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
29923 (codestart): Switch stacks.
29924 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
29925 variable.
29926 (grub_heap_init): Use grub_modules_get_end.
29927 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
29928 stack.
29929 * util/grub-mkrawimage.c (generate_image): Support sparc64.
29930 (main): Likewise.
29931 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
29932
29933 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
29934
29935 * util/grub-mkrescue.in: Base ISO UUID on UTC.
29936
29937 2010-03-08 Matt Kraai <kraai@ftbfs.org>
29938
29939 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
29940 bug #559005).
29941
29942 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
29943
29944 * genmoddep.awk: Output all missing symbols and not only first.
29945
29946 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29947
29948 * NEWS: Put the date of 1.98 release.
29949
29950 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29951
29952 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
29953 ft2build.h.
29954
29955 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29956
29957 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
29958 completition in the middle of string.
29959
29960 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29961
29962 * util/grub-mkrescue.in: Use mktemp with explicit template.
29963
29964 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29965
29966 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
29967
29968 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29969
29970 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
29971 right pointer.
29972
29973 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
29974
29975 Fix FreeBSD compilation.
29976
29977 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
29978 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
29979
29980 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
29981
29982 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
29983
29984 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29985
29986 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
29987
29988 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29989
29990 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
29991
29992 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
29993
29994 Support relative image path in theme file.
29995
29996 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
29997 (image_set_property): Handle theme_dir and relative path.
29998
29999 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30000
30001 * configure.ac: Alias amd64 to x86_64.
30002
30003 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30004
30005 * NEWS: mention multiboot on EFI.
30006
30007 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30008
30009 * kern/main.c (grub_load_modules): Handle errors from init functions of
30010 embeded modules.
30011
30012 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30013
30014 * normal/autofs.c (autoload_fs_module): Handle errors.
30015
30016 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30017
30018 Disable linux.mod on qemu-mips since it's not functional and leads
30019 to compilation failure.
30020
30021 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
30022 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
30023 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
30024 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
30025 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
30026 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
30027 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
30028 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
30029 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
30030 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
30031 Reported by: BVK Chaitanya
30032
30033 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
30034
30035 * INSTALL: Add gettext as a dependency and add qemu to a new section
30036 "Prerequisites for make-check".
30037
30038 2010-03-04 Christian Franke <franke@computer.org>
30039
30040 * util/grub-pe2elf.c: Add missing include "progname.h".
30041
30042 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30043
30044 * normal/crypto.c (read_crypto_list): Fix a typo.
30045 Reported by: Seth Goldberg.
30046
30047 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30048
30049 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
30050 Reported by: Seth Goldberg.
30051
30052 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30053
30054 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
30055 ascii.bitmaps.
30056
30057 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30058
30059 * genmk.rb: Remove terminal*.lst in make clean.
30060 Reported by: Seth Goldberg.
30061
30062 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30063
30064 * util/i386/efi/grub-install.in: Copy gettext files.
30065
30066 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30067
30068 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
30069
30070 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30071
30072 Wait for user entry basing on presence of output rather than on errors.
30073
30074 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
30075 (grub_install_newline_hook): Likewise.
30076 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
30077 * normal/menu.c (show_menu): Check line_counter to determine presence
30078 of output.
30079 * normal/term.c (grub_normal_line_counter): New variable.
30080 (grub_normal_get_line_counter): New function.
30081 (grub_install_newline_hook): Likewise.
30082
30083 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30084
30085 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
30086
30087 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30088
30089 * configure.ac: Update version to 1.98.
30090
30091 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
30092
30093 * util/grub.d/10_linux.in (linux_entry): Don't default to
30094 gfxpayload=keep if Linux doesn't support video handover.
30095
30096 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
30097
30098 Don't compile video modules on yeeloong since video subsystem is part
30099 of kernel.
30100
30101 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
30102 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
30103 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
30104 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
30105 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
30106 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
30107 * include/grub/bitmap_scale.h: Likewise.
30108 * include/grub/bufio.h: Likewise.
30109 * include/grub/font.h: Likewise.
30110 * include/grub/gfxterm.h: Likewise.
30111 * include/grub/video.h: Likewise.
30112 * include/grub/vbe.h: Don't include video_fb.h.
30113 * video/i386/pc/vbe.c: Include video_fb.h.
30114 * commands/i386/pc/vbetest.c: Include video.h.
30115
30116 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
30117
30118 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
30119 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
30120 default entry if GRUB_SAVEDEFAULT=true. This allows using
30121 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
30122 saving a new default on every boot.
30123
30124 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30125
30126 * normal/crypto.c (read_crypto_list): Fix a memory leak.
30127 * normal/term.c (read_terminal_list): Likewise.
30128 * normal/main.c (grub_normal_init_page): Likewise.
30129 (grub_normal_read_line_real): Likewise.
30130
30131 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30132
30133 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
30134 memory leak.
30135 Reported by: Seth Goldberg.
30136
30137 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
30138
30139 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
30140 duplicate declaration of `start'.
30141
30142 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30143
30144 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
30145 filename.
30146 Reported by: Georgy Buranov
30147
30148 2010-02-20 Carles Pina i Estany <carles@pina.cat>
30149
30150 * util/grub-mkrawimage.c (usage): Change string formatting to
30151 improve gettext.
30152
30153 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
30154
30155 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
30156 backspace keys.
30157
30158 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30159
30160 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
30161 Reported by: Michael Suchanek.
30162
30163 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
30164
30165 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
30166 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
30167
30168 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
30169
30170 Remove any reference to non-free fonts.
30171
30172 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
30173 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
30174 uses non-free components.
30175 * font/font.c (grub_font_get_name): Remove example name.
30176 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
30177 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
30178 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
30179 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
30180
30181 2010-02-16 Georgy Buranov <gburanov@gmail.com>
30182
30183 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
30184
30185 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30186
30187 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
30188 Double divisor.
30189 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
30190 features.
30191 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
30192
30193 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30194
30195 * gensymlist.sh.in: Use TARGET_CC instead of CC.
30196
30197 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30198
30199 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
30200 * docs/grub.texi (Command-line and menu entry commands): Document play
30201 command.
30202
30203 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30204
30205 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
30206 parse arguments as inline tempo and notes. Move code for playing notes
30207 to...
30208 (play): ... new function.
30209
30210 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30211
30212 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
30213 grub_uint16_t instead of short.
30214 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
30215 disk from little endian to cpu endianness.
30216
30217 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
30218
30219 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
30220 GRUB_TICKS_PER_SECOND instead of 120.
30221
30222 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30223
30224 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
30225 escape sequence after \e.
30226
30227 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30228
30229 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
30230 non-ASCII characters.
30231
30232 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30233
30234 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
30235 set root in single quotes to prevent \, from being unescaped.
30236
30237 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30238
30239 Prevent unknown commands from stopping menuentry execution.
30240
30241 * script/execute.c (grub_script_execute_cmdline): Print error after
30242 unknown command.
30243
30244 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30245
30246 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
30247 Reported by: Pavel Pisa.
30248
30249 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30250
30251 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
30252
30253 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30254
30255 Merge grub_ieee1275_map_physical into grub_map and rename to
30256 grub_ieee1275_map
30257
30258 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
30259 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
30260 Remove.
30261 * kern/ieee1275/openfw.c (grub_map): Rename to ...
30262 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
30263 necessary.
30264 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
30265
30266 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30267
30268 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
30269 opening and not after.
30270
30271 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30272
30273 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
30274 constants.
30275
30276 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30277
30278 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
30279 (alloc_phys): Use ALIGN_UP instead of align_addr.
30280
30281 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30282
30283 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
30284
30285 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30286
30287 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
30288
30289 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30290
30291 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
30292 verbose dprintf.
30293
30294 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30295
30296 Fix over-4GiB seek on sparc64.
30297
30298 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
30299 Replace pos_i and pos_lo with pos. All users updated.
30300 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30301 New constant.
30302 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30303 Likewise.
30304 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
30305 and pos_lo.
30306
30307 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30308
30309 * util/grub-mkrawimage.c (main): Call set_program_name.
30310
30311 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30312
30313 Properly align 64-bit targets.
30314
30315 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
30316 (generate_image): Use ALIGN_ADDR.
30317
30318 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30319
30320 Properly create cross-endian images.
30321
30322 * include/grub/types.h (grub_host_to_target_addr): New macro
30323 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
30324
30325 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30326
30327 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
30328
30329 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30330
30331 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
30332
30333 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
30334 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
30335 (grub_linux_boot): Divide by 64K when on VESA.
30336
30337 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30338
30339 Support GRUB_GFXPAYLOAD_LINUX.
30340
30341 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
30342 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
30343
30344 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30345
30346 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
30347 to show messages instead of discarding them.
30348 Process errors after executing command and not before. Keep old method
30349 too as precaution.
30350
30351 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
30352
30353 * configure.ac: Check for ft2build.h.
30354
30355 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30356
30357 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
30358
30359 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30360
30361 * genkernsyms.sh.in: Use TARGET_CC.
30362
30363 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
30364
30365 * NEWS: Update.
30366
30367 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30368
30369 * include/grub/multiboot2.h: Remove leftover file.
30370 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
30371 * include/grub/partition.h [GRUB_UTIL]: Likewise.
30372
30373 2010-02-07 Yves Blusseau <blusseau@zetam.org>
30374
30375 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
30376
30377 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30378
30379 Fix warnings in grub-emu when compiling with maximum warning options.
30380
30381 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
30382 (grub_arch_modules_addr): Return 0 and not NULL.
30383 * util/misc.c (ENABLE_RELOCATABLE): New definition.
30384 (xstrdup): Use newstr instead of dup.
30385 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
30386 of disk to dsk to avoid shadowing.
30387 (find_free_slot): Fix prototype.
30388 * util/getroot.c (grub_util_is_dmraid): Make static.
30389 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
30390 Add missing prototype.
30391 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
30392
30393 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30394
30395 * loader/i386/linux.c (grub_linux_setup_video): Handle error
30396 appropriately.
30397
30398 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30399
30400 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
30401 code out.
30402
30403 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30404
30405 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
30406 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
30407 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
30408 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
30409 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
30410 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
30411
30412 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30413
30414 * include/grub/err.h (grub_err_printf): Don't export.
30415
30416 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30417
30418 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
30419
30420 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30421
30422 * include/grub/i18n.h (grub_gettext_dummy): Removed.
30423 * kern/misc.c (grub_gettext_dummy): Make static.
30424
30425 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30426
30427 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
30428 by non-valid ones.
30429 * kern/term.c (grub_putchar): Likewise.
30430
30431 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30432
30433 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
30434 buggy hook call and memory leak.
30435
30436 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30437
30438 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
30439
30440 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30441
30442 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
30443
30444 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30445
30446 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
30447 modevar.
30448 Return grub_errno on allocation error.
30449
30450 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30451
30452 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
30453
30454 2010-02-06 Yves Blusseau <blusseau@zetam.org>
30455
30456 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
30457 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
30458
30459 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30460
30461 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
30462 non-pxe disk.
30463 (grub_pxefs_open): Likewise.
30464
30465 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30466
30467 * util/grub.d/10_hurd.in: Add --class information to menuentries.
30468 * util/grub.d/10_kfreebsd.in: Likewise.
30469 * util/grub.d/10_linux.in: Likewise.
30470
30471 2010-02-06 Colin D Bennett <colin@gibibit.com>
30472
30473 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
30474 (gfxmenu_mod_SOURCES): New variable.
30475 (gfxmenu_mod_CFLAGS): Likewise.
30476 (gfxmenu_mod_LDFLAGS): Likewise.
30477 * include/grub/term.h (grub_term_set_current_output): Declare
30478 argument as const.
30479 * docs/gfxmenu-theme-example.txt: New file.
30480 * gfxmenu/gfxmenu.c: Likewise.
30481 * gfxmenu/gui_box.c: Likewise.
30482 * gfxmenu/gui_canvas.c: Likewise.
30483 * gfxmenu/gui_circular_progress.c: Likewise.
30484 * gfxmenu/gui_image.c: Likewise.
30485 * gfxmenu/gui_label.c: Likewise.
30486 * gfxmenu/gui_list.c: Likewise.
30487 * gfxmenu/gui_progress_bar.c: Likewise.
30488 * gfxmenu/gui_string_util.c: Likewise.
30489 * gfxmenu/gui_util.c: Likewise.
30490 * gfxmenu/icon_manager.c: Likewise.
30491 * gfxmenu/model.c: Likewise.
30492 * gfxmenu/named_colors.c: Likewise.
30493 * gfxmenu/theme_loader.c: Likewise.
30494 * gfxmenu/view.c: Likewise.
30495 * gfxmenu/widget-box.c: Likewise.
30496 * include/grub/gfxmenu_model.h: Likewise.
30497 * include/grub/gfxmenu_view.h: Likewise.
30498 * include/grub/gfxwidgets.h: Likewise.
30499 * include/grub/gui.h: Likewise.
30500 * include/grub/gui_string_util.h: Likewise.
30501 * include/grub/icon_manager.h: Likewise.
30502
30503 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30504
30505 Agglomerate scrolling in gfxterm.
30506
30507 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
30508 (grub_virtual_screen_setup): Initialise 'total_screen'.
30509 (write_char): Split to ...
30510 (paint_char): ... this ...
30511 (write_char): ... and this.
30512 (paint_char): Handle delayed scrolling.
30513 (draw_cursor): Likewise.
30514 (scroll_up): Split to ...
30515 (real_scroll): ... this ...
30516 (scroll_up): ... and this.
30517 (real_scroll): Handle multi-line scroll and draw below-the-bottom
30518 characters.
30519 (grub_gfxterm_refresh): Call real_scroll.
30520
30521 2010-02-06 Colin D Bennett <colin@gibibit.com>
30522
30523 * include/grub/misc.h (grub_iscntrl): New inline function.
30524 (grub_isalnum): Likewise.
30525 (grub_strtol): Likewise.
30526
30527 2010-02-06 Colin D Bennett <colin@gibibit.com>
30528
30529 * normal/menu_text.c (get_entry_number): Move from here ...
30530 * normal/menu.c (get_entry_number): ... moved here.
30531 * include/grub/menu.h (grub_menu_get_default_entry_index):
30532 New prototype.
30533 * normal/menu.c (grub_menu_get_default_entry_index): New function.
30534 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
30535 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
30536 (grub_menu_viewer_should_return): Likewise.
30537 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
30538 * normal/menu_text.c (run_menu): Enable menu switching.
30539 * normal/menu_viewer.c (should_return): New variable.
30540 (menu_viewer_changed): Likewise.
30541 (grub_menu_viewer_show_menu): Handle menu viewer changes.
30542 (grub_menu_viewer_should_return): New function.
30543 (menuviewer_write_hook): Likewise.
30544 (grub_menu_viewer_init): Likewise.
30545
30546 2010-02-06 Colin D Bennet <colin@gibibit.com>
30547 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30548
30549 Support for gfxterm in a window.
30550
30551 * include/grub/gfxterm.h: New file.
30552 * include/grub/video.h (struct grub_video_rect): New declaration.
30553 (grub_video_rect_t): Likewise.
30554 * term/gfxterm.c (struct grub_gfxterm_window): New type.
30555 (refcount): New variable.
30556 (render_target): Likewise.
30557 (window): Likewise.
30558 (repaint_callback): Likewise.
30559 (grub_virtual_screen_setup): Use 'render_target'.
30560 (init_window): New function.
30561 (grub_gfxterm_init_window): Likewise.
30562 (grub_gfxterm_init): Check reference counter.
30563 Use init_window.
30564 (destroy_window): New function.
30565 (grub_gfxterm_destroy_window): Likewise.
30566 (grub_gfxterm_fini): Check reference counter.
30567 Use destroy_window.
30568 (redraw_screen_rect): Restore viewport.
30569 Use 'render_target' and 'window'.
30570 Call 'repaint_callback'.
30571 (write_char): Use 'render_target'.
30572 (draw_cursor): Likewise.
30573 (scroll_up): Restore viewport.
30574 Use 'render_target' and 'window'.
30575 Call 'repaint_callback'.
30576 (grub_gfxterm_cls): Likewise.
30577 (grub_gfxterm_refresh): Use 'window'.
30578 (grub_gfxterm_set_repaint_callback): New function.
30579 (grub_gfxterm_background_image_cmd): Use 'window'.
30580 (grub_gfxterm_get_term): New function.
30581 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
30582
30583 2010-02-06 Colin D Bennett <colin@gibibit.com>
30584
30585 Bitmap scaling support.
30586
30587 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
30588 (bitmap_scale_mod_SOURCES): New variable.
30589 (bitmap_scale_mod_CFLAGS): Likewise.
30590 (bitmap_scale_mod_LDFLAGS): Likewise.
30591 * include/grub/bitmap_scale.h: New file.
30592 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
30593 (background_image_cmd_options): New variable.
30594 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
30595 (cmd): Rename and change type to ...
30596 (background_image_cmd_handle): ... this. All users updated.
30597 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
30598 * video/bitmap_scale.c: New file.
30599
30600 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30601
30602 SDL support.
30603
30604 * Makefile.in (LIBSDL): New variable.
30605 (enable_grub_emu_sdl): Likewise.
30606 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
30607 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
30608 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
30609 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
30610 * util/sdl.c: New file.
30611
30612 2010-02-06 Colin D Bennett <colin@gibibit.com>
30613 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30614
30615 Double buffering support.
30616
30617 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
30618 * include/grub/video.h: Update comment.
30619 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
30620 New type.
30621 (grub_video_fb_doublebuf_blit_init): New prototype.
30622 * term/gfxterm.c (scroll_up): Support double buffering.
30623 (grub_gfxterm_refresh): Likewise.
30624 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
30625 (grub_video_fb_doublebuf_blit_init): Likewise.
30626 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
30627 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
30628 'displayed_page', 'render_page' and 'update_screen'.
30629 (grub_video_vbe_fini): Free offscreen buffer.
30630 (doublebuf_pageflipping_commit): New function.
30631 (doublebuf_pageflipping_update_screen): Likewise.
30632 (doublebuf_pageflipping_init): Likewise.
30633 (double_buffering_init): Likewise.
30634 (grub_video_vbe_setup): Enable doublebuffering.
30635 (grub_video_vbe_swap_buffers): Implement.
30636 (grub_video_vbe_set_active_render_target): Handle double buffering.
30637 (grub_video_vbe_get_active_render_target): Likewise.
30638 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
30639 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
30640 (grub_video_vbe_enable_double_buffering): Likewise.
30641 (grub_video_vbe_swap_buffers): Use update_screen.
30642 (grub_video_set_mode): Use double buffering.
30643
30644 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30645
30646 * maintainance/gentrigtables.py: Remove.
30647 * lib/trig.c: Likewise.
30648
30649 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
30650
30651 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
30652 `trigtables.c'.
30653 (trigtables.c): New rule.
30654 (gentrigtables): Likewise.
30655 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
30656
30657 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30658
30659 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
30660 integer constants.
30661
30662 2010-02-06 Colin D Bennet <colin@gibibit.com>
30663
30664 Trigonometry support.
30665
30666 * include/grub/trig.h: New file.
30667 * lib/trig.c: Likewise.
30668 * maintainance/gentrigtables.py: Likewise.
30669 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
30670 (trig_mod_SOURCES): New variable.
30671 (trig_mod_CFLAGS): Likewise.
30672 (trig_mod_LDFLAGS): Likewise.
30673
30674 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30675
30676 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
30677 disk devices.
30678
30679 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30680
30681 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
30682 error.
30683
30684 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30685
30686 * util/hostdisk.c (open_device): Don't use partition device when reading
30687 before the partition.
30688 (grub_util_biosdisk_read): Don't read from partition and before the
30689 partition in single operation.
30690 (grub_util_biosdisk_write): Don't write to partition and before the
30691 partition in single operation.
30692
30693 2010-02-03 Torsten Landschoff <torsten@debian.org>
30694
30695 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30696 last sectors.
30697
30698 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30699
30700 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
30701 CDROM reads.
30702 (grub_biosdisk_write): Refuse to write to CDROM.
30703
30704 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30705
30706 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
30707
30708 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30709
30710 * font/font.c (find_glyph): Check that bmp_idx is available before
30711 using it.
30712 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
30713 with (font == NULL).
30714
30715 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
30716
30717 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
30718
30719 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
30720
30721 * include/grub/script_sh.h (sourcecode): Add const qualifier.
30722 * util/grub-script-check.c (getline): Fix empty lines case.
30723
30724 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
30725
30726 * Makefile.in (check): Exit with fail status when one of the tests
30727 fails.
30728 * tests/example_functional_test.c (example_test): Fix reversed assert.
30729 * tests/example_unit_test.c (example_test): Likewise.
30730
30731 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
30732
30733 * util/grub.d/10_linux.in: This script does not use any of the
30734 contents of gettext.sh, only the external command `gettext', so stop
30735 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
30736 the same prefix as GRUB.)
30737 * util/grub.d/10_kfreebsd.in: Likewise.
30738
30739 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30740
30741 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
30742 of the line.
30743
30744 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30745
30746 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30747 last sectors.
30748
30749 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30750
30751 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
30752 having a 4KiB and not 32KiB buffer size.
30753
30754 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30755
30756 * util/hostfs.c: Include `<errno.h>'.
30757 (grub_hostfs_read): Handle errors from fseeko() and fread().
30758
30759 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30760
30761 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
30762 loop when using read hooks on files whose size isn't sector-aligned.
30763
30764 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30765
30766 Remove unused parameter.
30767
30768 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
30769 (grub_iso9660_open): Remove initialization of `data->length'.
30770
30771 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30772
30773 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
30774 memleak conditions.
30775
30776 2010-01-27 Carles Pina i Estany <carles@pina.cat>
30777
30778 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
30779 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
30780
30781 2010-01-26 Carles Pina i Estany <carles@pina.cat>
30782
30783 * util/bin2h.c (usage): Fix warning (space after backslash).
30784
30785 2010-01-26 Carles Pina i Estany <carles@pina.cat>
30786
30787 * font/font.c: Include `grub/fontformat.h.
30788 Remove font file format constants.
30789 (grub_font_load): Use the new macros.
30790 * include/grub/fontformat.h: New file.
30791 * util/grub-mkfont.c: Include `grub/fontformat.c'.
30792 (write_font_pf2): Use the new macros.
30793
30794 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30795
30796 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
30797 does.
30798
30799 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30800
30801 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
30802
30803 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
30804 (_start): Macroify `0x7F'.
30805
30806 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
30807 (make_install_device): Use "(pxe)" as fallback prefix when booting
30808 via PXE.
30809
30810 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
30811
30812 * configure.ac: Reset LIBS after check for libgcc symbols.
30813
30814 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
30815
30816 * util/hostdisk.c (open_device): Add trailing newline to debug
30817 message.
30818
30819 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
30820
30821 * configure.ac: Check for `limits.h'.
30822 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
30823
30824 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
30825
30826 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
30827 capitalize error strings.
30828
30829 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
30830
30831 * util/grub.d/10_hurd.in: Add a recovery mode.
30832
30833 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
30834
30835 * configure.ac: Check for libgcc symbols with -nostdlib.
30836
30837 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
30838
30839 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
30840
30841 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30842
30843 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
30844 stack since heap may be unavailable at that point.
30845 (grub_ofconsole_gotoxy): Likewise.
30846
30847 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30848
30849 * configure.ac: Check for _restgpr_14_x.
30850 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
30851 and _savegpr_* prototypes.
30852
30853 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
30854
30855 Use generic grub_reboot() for i386-efi.
30856
30857 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
30858 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
30859 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
30860
30861 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30862
30863 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
30864 presence of "prefix" variable as it breaks when normal.mod is
30865 embedded.
30866
30867 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30868
30869 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
30870 stack since heap is unavailable at that point.
30871
30872 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30873
30874 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
30875 (grub_freebsd_bootinfo): Rewritten.
30876 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
30877
30878 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30879
30880 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
30881
30882 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
30883
30884 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
30885 domain now.
30886
30887 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
30888
30889 * util/misc.c (make_system_path_relative_to_its_root): Change the work
30890 around for handling "/" to the correct fix. Fix a memory leak. Use
30891 xstrdup instead of strdup.
30892
30893 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30894
30895 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
30896
30897 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30898
30899 Optimise glyph lookup by Basic Multilingual Plane lookup array.
30900
30901 * font/font.c (struct grub_font): New member 'bmp_idx'.
30902 (font_init): Initialise 'bmp_idx'.
30903 (load_font_index): Fill 'bmp_idx'.
30904 (find_glyph): Make inline. Use bmp_idx for BMP characters.
30905
30906 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30907
30908 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
30909 unnecessary calls.
30910
30911 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30912
30913 Move context handling out of the kernel.
30914
30915 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
30916 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
30917 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
30918 * conf/i386-efi.rmk: Likewise.
30919 * conf/i386-ieee1275.rmk: Likewise.
30920 * conf/i386-pc.rmk: Likewise.
30921 * conf/powerpc-ieee1275.rmk: Likewise.
30922 * conf/sparc64-ieee1275.rmk: Likewise.
30923 * conf/x86_64-efi.rmk: Likewise.
30924 * include/grub/env.h: Include grub/menu.h.
30925 (grub_env_var_type): Removed.
30926 (grub_env_var): Replaced field 'type' with 'global'.
30927 (grub_env_find): New prototype.
30928 (grub_env_context_open): Remove EXPORT_FUNC.
30929 (grub_env_context_close): Likewise.
30930 (grub_env_export): Likewise.
30931 (grub_env_set_data_slot): Removed.
30932 (grub_env_get_data_slot): Likewise.
30933 (grub_env_unset_data_slot): Likewise.
30934 (grub_env_unset_menu): New prototype.
30935 (grub_env_set_menu): Likewise.
30936 (grub_env_get_menu): Likewise.
30937 * include/grub/env_private.h: New file.
30938 * include/grub/normal.h (grub_context_init): New prototype.
30939 (grub_context_fini): Likewise.
30940 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
30941 * normal/context.c (grub_cmd_export): ... to here.
30942 * kern/env.c: Include env_private.h.
30943 (HASHSZ): Moved to include/grub/env_private.h.
30944 (grub_env_context): Likewise.
30945 (grub_env_sorted_var): Likewise.
30946 (current_context): Renamed from this ...
30947 (grub_current_context): ...to this. 'static' removed. All users updated.
30948 (grub_env_find): Removed 'static'.
30949 (grub_env_context_open): Moved to normal/context.c.
30950 (grub_env_context_close): Likewise.
30951 (grub_env_export): Likewise.
30952 (mangle_data_slot_name): Removed.
30953 (grub_env_set_data_slot): Likewise.
30954 (grub_env_get_data_slot): Likewise.
30955 (grub_env_unset_data_slot): Likewise.
30956 * kern/main.c (grub_set_root_dev): Don't export root.
30957 It will be done later.
30958 (grub_main): Don't export prefix.
30959 It will be done later.
30960 * normal/context.c: New file.
30961 * normal/main.c (free_menu): Use grub_env_unset_menu.
30962 (grub_normal_add_menu_entry): Use grub_env_get_menu.
30963 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
30964 (GRUB_MOD_INIT(normal)): Call grub_context_init.
30965 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
30966
30967 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30968
30969 setpci support.
30970
30971 * commands/setpci.c: New file.
30972 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
30973 (setpci_mod_SOURCES): New variable.
30974 (setpci_mod_CFLAGS): Likewise.
30975 (setpci_mod_LDFLAGS): Likewise.
30976
30977 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30978
30979 Byte-addressable PCI configuration space.
30980
30981 * bus/pci.c (grub_pci_make_address): Use byte address instead of
30982 dword address.
30983 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
30984 GRUB_PCI_REG_CACHELINE.
30985 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
30986 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
30987 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
30988 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
30989 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
30990 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
30991 grub_pci_make_address.
30992 (lock_rom_area): Likewise.
30993 * commands/lspci.c (grub_lspci_iter): Use macroses
30994 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
30995 of grub_pci_make_address.
30996 * disk/ata.c (grub_ata_pciinit): Likewise.
30997 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
30998 (GRUB_PCI_REG_VENDOR): Likewise.
30999 (GRUB_PCI_REG_DEVICE): Likewise.
31000 (GRUB_PCI_REG_COMMAND): Likewise.
31001 (GRUB_PCI_REG_STATUS): Likewise.
31002 (GRUB_PCI_REG_REVISION): Likewise.
31003 (GRUB_PCI_REG_CLASS): Likewise.
31004 (GRUB_PCI_REG_CACHELINE): Likewise.
31005 (GRUB_PCI_REG_LAT_TIMER): Likewise.
31006 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
31007 (GRUB_PCI_REG_BIST): Likewise.
31008 (GRUB_PCI_REG_ADDRESSES): Likewise.
31009 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31010 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31011 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31012 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31013 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31014 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31015 (GRUB_PCI_REG_CIS_POINTER): Likewise.
31016 (GRUB_PCI_REG_SUBVENDOR): Likewise.
31017 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
31018 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
31019 (GRUB_PCI_REG_CAP_POINTER): Likewise.
31020 (GRUB_PCI_REG_IRQ_LINE): Likewise.
31021 (GRUB_PCI_REG_IRQ_PIN): Likewise.
31022 (GRUB_PCI_REG_MIN_GNT): Likewise.
31023 (GRUB_PCI_REG_MAX_LAT): Likewise.
31024 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
31025 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
31026 * video/efi_uga.c (find_framebuf): Likewise.
31027 * video/sm712.c (grub_video_sm712_setup): Likewise.
31028 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
31029 space.
31030
31031 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31032
31033 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
31034 can be reliably determined to be supported.
31035
31036 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31037
31038 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
31039 that VESA is supported.
31040 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
31041 supported.
31042
31043 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31044
31045 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
31046
31047 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31048
31049 * util/misc.c (make_system_path_relative_to_its_root): Work around
31050 special-casing of "/", as previous incarnation of this routine did.
31051
31052 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31053
31054 Fix any-emu compilation.
31055
31056 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
31057 * grub_bin2h_SOURCES: New variable.
31058
31059 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31060
31061 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
31062
31063 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31064
31065 * util/grub.d/00_header.in: Fix handling of locale_dir.
31066
31067 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31068
31069 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
31070 as possible unifont location (Gentoo).
31071 Reported by: Alexander Brüning
31072
31073 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31074
31075 Don't try to generate lists for kernel.img.
31076
31077 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
31078 (pkglib_MODULES): Remove kernel.img.
31079 (kernel_img_EXPORTS): Removed.
31080 (kernel_img_RELOCATABLE): New variable.
31081 * conf/x86_64-efi.rmk: Likewise.
31082 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
31083
31084 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31085
31086 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
31087 grub_xasprintf or grub_snprintf.
31088 (grub_vsprintf): Likewise.
31089 (grub_snprintf): New proto.
31090 (grub_vsnprintf): Likewise.
31091 (grub_xasprintf): Likewise.
31092 (grub_xvasprintf): Likewise.
31093 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
31094 (grub_sprintf): Removed.
31095 (grub_vsnprintf): New function.
31096 (grub_snprintf): Likewise.
31097 (grub_xvasprintf): Likewise.
31098 (grub_xasprintf): Likewise.
31099 (grub_vsprintf): Renamed to ...
31100 (grub_vsnprintf_real): ...this. New argument max_len.
31101
31102 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
31103
31104 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
31105 fix grub-script-check warning.
31106
31107 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31108
31109 * include/grub/font.h (grub_font_load): Fix prototype.
31110
31111 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31112
31113 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
31114
31115 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31116
31117 * include/grub/x86_64/at_keyboard.h: New file.
31118
31119 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31120
31121 * loader/mips/linux.c: Include missing grub/i18n.h.
31122
31123 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31124
31125 * normal/menu.c (notify_execution_failure): Clarify error message.
31126
31127 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31128
31129 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
31130 return value (and revert all return statements). Update users.
31131
31132 2010-01-20 Dan Merillat <debian@dan.merillat.org>
31133
31134 * kern/device.c (grub_device_iterate): Allocate new part_ent
31135 structure based on sizeof (*p) rather than sizeof (p->next), to
31136 account for structure padding.
31137
31138 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
31139 disk is NULL, which might happen for LVM physical volumes with no
31140 LVM signature.
31141
31142 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31143
31144 * loader/mips/linux.c (grub_cmd_initrd)
31145 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
31146
31147 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31148
31149 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
31150 (grub_video_video_init, grub_video_bitmap_init)
31151 (grub_font_manager_init, grub_term_gfxterm_init)
31152 (grub_at_keyboard_init): New extern declarations.
31153 (grub_machine_init): Initialize gfxterm and at_keyboard.
31154
31155 * kern/main.c (grub_main): Revert grub_printf delay kludge.
31156
31157 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
31158 `gfxterm.mod' into core image.
31159
31160 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31161 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31162 (kernel_img_FORMAT): Copy to ...
31163
31164 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31165 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31166 (kernel_img_FORMAT): ... here, and ...
31167
31168 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31169 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31170 (kernel_img_FORMAT): ... here.
31171
31172 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
31173 and input (at_keyboard) terminals in kernel.
31174 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
31175
31176 (pkglib_MODULES): Remove `pci.mod'.
31177 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
31178 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
31179 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
31180 (at_keyboard_mod_LDFLAGS): Remove variables.
31181
31182 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
31183
31184 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
31185
31186 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
31187
31188 * include/grub/mips/libgcc.h: Only export symbols for functions
31189 that libgcc provides.
31190
31191 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
31192
31193 MIPS support.
31194
31195 * bus/bonito.c: New file.
31196 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
31197 GRUB_PCI_NUM_DEVICES.
31198 * term/i386/pc/serial.c: Move to ...
31199 * term/serial.c: ... here. All users updated.
31200 * util/i386/pc/grub-mkimage.c: Move to ...
31201 * util/grub-mkrawimage.c: ... here. All users updated.
31202 * term/i386/pc/at_keyboard.c: Move to ...
31203 * term/at_keyboard.c: ... here. All users updated.
31204 * conf/mips-qemu-mips.rmk: New file.
31205 * conf/mips-yeeloong.rmk: Likewise.
31206 * conf/mips.rmk: Likewise.
31207 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
31208 mipsel-qemu-mips.
31209 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
31210 to port addresses.
31211 (grub_ata_pciinit): Support CS5536.
31212 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
31213 * font/font_cmd.c (loadfont_command): Open file before passing it to
31214 grub_font_load.
31215 (pseudo_file_read): New function.
31216 (pseudo_file_close): Likewise.
31217 (pseudo_fs): New structure.
31218 (load_font_module): New function.
31219 (GRUB_MOD_INIT(font_manager)): Load embedded font.
31220 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
31221 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
31222 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
31223 * include/grub/i386/at_keyboard.h: Split into ...
31224 * include/grub/at_keyboard.h: ... this ...
31225 * include/grub/i386/at_keyboard.h: ... and this.
31226 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
31227 New prototype.
31228 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
31229 updated.
31230 (grub_elf64_size): Likewise.
31231 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
31232 filename.
31233 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
31234 * include/grub/i386/coreboot/serial.h: Rewritten.
31235 * include/grub/i386/ieee1275/serial.h: Include
31236 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
31237 * include/grub/i386/pc/serial.h: Moved from here ...
31238 * include/grub/serial.h: ... to here. All users updated.
31239 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
31240 (GRUB_PCI_NUM_BUS): Likewise.
31241 (GRUB_PCI_NUM_DEVICES): Likewise.
31242 (grub_pci_device_map_range): Add missing volatile keyword.
31243 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
31244 * include/grub/mips/at_keyboard.h: New file.
31245 * include/grub/mips/cache.h: Likewise.
31246 * include/grub/mips/io.h: Likewise.
31247 * include/grub/mips/kernel.h: Likewise.
31248 * include/grub/mips/libgcc.h: Likewise.
31249 * include/grub/mips/pci.h: Likewise.
31250 * include/grub/mips/qemu-mips/boot.h: Likewise.
31251 * include/grub/mips/qemu-mips/kernel.h: Likewise.
31252 * include/grub/mips/qemu-mips/loader.h: Likewise.
31253 * include/grub/mips/qemu-mips/memory.h: Likewise.
31254 * include/grub/mips/qemu-mips/serial.h: Likewise.
31255 * include/grub/mips/qemu-mips/time.h: Likewise.
31256 * include/grub/mips/relocator.h: Likewise.
31257 * include/grub/mips/time.h: Likewise.
31258 * include/grub/mips/types.h: Likewise.
31259 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
31260 * include/grub/mips/yeeloong/boot.h: Likewise.
31261 * include/grub/mips/yeeloong/kernel.h: Likewise.
31262 * include/grub/mips/yeeloong/loader.h: Likewise.
31263 * include/grub/mips/yeeloong/memory.h: Likewise.
31264 * include/grub/mips/yeeloong/pci.h: Likewise.
31265 * include/grub/mips/yeeloong/serial.h: Likewise.
31266 * include/grub/mips/yeeloong/time.h: Likewise.
31267 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
31268 * kern/elf.c (grub_elf32_size): New parameter. All users
31269 updated.
31270 (grub_elf64_size): Likewise.
31271 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
31272 Load modules before saying "Welcome to GRUB!".
31273 Call grub_refresh after saying "Welcome to GRUB!".
31274 * kern/mips/cache.S: New file.
31275 * kern/mips/cache_flush.S: Likewise.
31276 * kern/mips/dl.c: Likewise.
31277 * kern/mips/init.c: Likewise.
31278 * kern/mips/qemu-mips/init.c: Likewise.
31279 * kern/mips/startup.S: Likewise.
31280 * kern/mips/yeeloong/init.c: Likewise.
31281 * kern/term.c (grub_putcode): Handle NULL terminal.
31282 (grub_getcharwidth): Likewise.
31283 (grub_getkey): Likewise.
31284 (grub_checkkey): Likewise.
31285 (grub_getkeystatus): Likewise.
31286 (grub_getxy): Likewise.
31287 (grub_getwh): Likewise.
31288 (grub_gotoxy): Likewise.
31289 (grub_cls): Likewise.
31290 (grub_setcolorstate): Likewise.
31291 (grub_setcolor): Likewise.
31292 (grub_getcolor): Likewise.
31293 (grub_refresh): Likewise.
31294 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
31295 (write_jump): Add hatch nop.
31296 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
31297 * lib/mips/setjmp.S: New file.
31298 * loader/mips/linux.c: Likewise.
31299 * term/i386/pc/at_keyboard.c: Move from here ...
31300 * term/at_keyboard.c: ... to here.
31301 * term/i386/pc/serial.c: Moved from here ...
31302 * term/serial.c: ... to here. All users updated.
31303 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
31304 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
31305 (serial_translate_key_sequence): Avoid deadlock.
31306 (grub_serial_getkey): Handle backspace.
31307 (grub_serial_putchar): Fix newline handling.
31308 * util/i386/pc/grub-mkimage.c: Move from here ...
31309 * util/grub-mkrawimage.c: ... to here. All users updated.
31310 (generate_image): New parameters 'font_path' and 'format'.
31311 Support embedding font.
31312 Use grub_host_to_target* instead of grub_cpu_to_le*.
31313 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
31314 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
31315 (options): New option "--font".
31316 (usage): Likewise.
31317 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
31318 (main): Handle "--font".
31319 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
31320 (grub_virtual_screen_setup): Set bg_color_display.
31321 (redraw_screen_rect): Use bg_color_display instead of incorrect
31322 bg_color.
31323 (grub_gfxterm_cls): Likewise.
31324 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
31325 Support embedding config file.
31326 (add_segments): Likewise.
31327 (options): New option "--config".
31328 (main): Handle "--config".
31329 * video/sm712.c: New file.
31330
31331 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31332
31333 Fix parallel builds.
31334
31335 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
31336 font.c depend on ascii.h).
31337
31338 2010-01-12 Carles Pina i Estany <carles@pina.cat>
31339
31340 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
31341
31342 2010-01-11 Carles Pina i Estany <carles@pina.cat>
31343
31344 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
31345 By default: disabled.
31346 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
31347 parameter.
31348
31349 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31350
31351 * font/font.c: Update copyright years.
31352 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
31353
31354 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31355
31356 * font/font.c: Include `ascii.h'.
31357 (ASCII_BITMAP_SIZE): New macro.
31358 (ascii_font_glyph): Define.
31359 (ascii_glyph_lookup): New function.
31360 (grub_font_get_string_width): Change comment. If glyph not found, use
31361 ascii_glyph_lookup.
31362 (grub_font_get_glyph_with_fallback): If glyph not available returns
31363 ascii_glyph_lookup.
31364 * util/grub-mkfont.c (file_formats): New enum.
31365 (options): Add `ascii-bitmaps' new option.
31366 (usage): Add `asii-bitmaps' new option.
31367 (write_font_ascii_bitmap): New function.
31368 (write_font): Rename to ...
31369 (write_font_p2): ... this. Remove print_glyphs call.
31370 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
31371 used. Call print_glyphs.
31372 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
31373
31374 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31375
31376 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
31377 (grub_bin2h_SOURCES): New variable.
31378 * util/bin2h.c: New file.
31379
31380 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31381
31382 * include/multiboot.h: Resynced with spec.
31383 * include/multiboot2.h: Likewise.
31384 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
31385 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
31386
31387 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31388
31389 * include/grub/term.h (grub_term_register_input,
31390 grub_term_register_output): Check return of terminal init()
31391 routines, and abort if errors are raised.
31392
31393 * commands/terminal.c: Update copyright year.
31394
31395 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31396
31397 * commands/terminal.c (grub_cmd_terminal_input)
31398 (grub_cmd_terminal_output): Check return of terminal init()
31399 routines, and abort if errors are raised.
31400
31401 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31402
31403 * include/grub/i386/bsd.h: Fix include pathes.
31404
31405 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31406
31407 Add missing *BSD copyright headers.
31408
31409 * include/grub/aout.h: Add BSD licence.
31410 * include/grub/i386/bsd.h: Parts under different licences moved to ...
31411 * include/grub/i386/freebsd_linker.h: ... here,
31412 * include/grub/i386/freebsd_reboot.h: ... here,
31413 * include/grub/i386/netbsd_bootinfo.h: ... here,
31414 * include/grub/i386/netbsd_reboot.h: ... here,
31415 * include/grub/i386/openbsd_bootarg.h: ... here,
31416 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
31417 licence to each file.
31418
31419 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31420
31421 * acinclude.m4: Remove `nop' assembly instruction; it's not
31422 implemented by all architectures.
31423
31424 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31425
31426 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
31427 ELILO. This is no longer necessary.
31428
31429 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
31430
31431 Added new tool, grub-scrit-check to verify grub.cfg syntax.
31432
31433 * util/grub-script-check.c: grub-script-check tool.
31434 * conf/common.rmk: Make rules for grub-script-check.
31435
31436 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31437
31438 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
31439 spotting it back in 2008. Shame on me for forgetting he did.
31440
31441 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
31442
31443 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31444
31445 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
31446 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
31447 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
31448 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
31449 (GRUB_VIDEO_TYPE_EFI): Rename to ...
31450 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
31451
31452 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
31453
31454 * include/grub/test.h: Add license header.
31455 * tests/example_functional_test.c: Likewise.
31456 * tests/example_unit_test.c: Likewise.
31457 * tests/lib/functional_test.c: Likewise.
31458 * tests/lib/test.c: Likewise.
31459 * tests/lib/unit_test.c: Likewise.
31460
31461 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
31462
31463 Use flag-based instead of hook-based video mode selection and "auto"
31464 keyword.
31465
31466 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
31467 (grub_video_set_mode): Changed prototype. All users updated.
31468 (grub_video_check_mode_flag): New inline function.
31469 * video/video.c (parse_modespec): New function.
31470 (grub_video_set_mode): Parse flags and keywords.
31471
31472 2010-01-17 Carles Pina i Estany <carles@pina.cat>
31473
31474 * util/misc.c (grub_util_info): Fix the order of the parameters in a
31475 fprintf call.
31476
31477 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
31478
31479 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
31480
31481 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31482
31483 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
31484 string.
31485 * util/grub-emu.c (usage): Likewise.
31486 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
31487 * util/i386/efi/grub-mkimage.c (usage): Likewise.
31488 * util/i386/pc/grub-mkimage.c (usage): Likewise.
31489 * util/i386/pc/grub-setup.c (usage): Likewise.
31490
31491 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31492
31493 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
31494 the message.
31495 (grub_util_info): Likewise.
31496 (grub_util_error): Likewise.
31497 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
31498 and/or new lines in `grub_util_warna', `grub_util_info',
31499 `grub_util_error' calls.
31500 * util/getroot.c: Likewise.
31501 * util/grub-editenv.c: Likewise.
31502 * util/grub-emu.c: Likewise.
31503 * util/grub-fstest.c: Likewise.
31504 * util/grub-mkdevicemap.c: Likewise.
31505 * util/grub-mkfont.c: Likewise.
31506 * util/grub-mkpasswd-pbkdf2.c: Likewise.
31507 * util/grub-mkrelpath.c: Likewise.
31508 * util/grub-pe2elf.c: Likewise.
31509 * util/grub-probe.c: Likewise.
31510 * util/hostdisk.c: Likewise.
31511 * util/i386/efi/grub-mkimage.c: Likewise.
31512 * util/i386/pc/grub-mkimage.c: Likewise.
31513 * util/i386/pc/grub-setup.c: Likewise.
31514 * util/ieee1275/ofpath.c: Likewise.
31515 * util/mkisofs/eltorito.c: Likewise.
31516 * util/mkisofs/rock.c: Likewise.
31517 * util/mkisofs/write.c: Likewise.
31518 * util/raid.c: Likewise.
31519 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
31520 * util/sparc64/ieee1275/grub-setup.c: Likewise.
31521
31522 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31523
31524 Enable multiboot on non-pc.
31525
31526 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
31527 multiboot.mod and multiboot2.mod to ...
31528 * conf/i386.rmk (pkglib_MODULES): ... here.
31529 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
31530 Moved to ...
31531 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
31532 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
31533 Moved to ...
31534 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
31535 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
31536 Moved to ...
31537 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
31538 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
31539 Moved to ...
31540 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
31541 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
31542 relocator.mod.
31543 (ata_mod_SOURCES): Removed.
31544 (ata_mod_CFLAGS): Likewise.
31545 (ata_mod_LDFLAGS): Likewise.
31546 (relocator_mod_SOURCES): Removed.
31547 (relocator_mod_CFLAGS): Likewise.
31548 (relocator_mod_ASFLAGS): Likewise.
31549 (relocator_mod_LDFLAGS): Likewise.
31550 Include i386.mk.
31551 * include/grub/x86_64/multiboot.h: New file.
31552 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
31553 Terminate EFI.
31554
31555 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31556
31557 Video multiboot support.
31558
31559 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
31560 New prototype.
31561 * include/multiboot.h: Resynced with multiboot specification.
31562 * include/multiboot2.h: Likewise.
31563 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
31564 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
31565 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
31566 (HAS_VGA_TEXT): Likewise.
31567 (accepts_video): New variable.
31568 (grub_multiboot_set_accepts_video): New function.
31569 (grub_multiboot_get_mbi_size): Account for video structures.
31570 (set_video_mode): New function.
31571 (retrieve_video_parameters): Likewise.
31572 (grub_multiboot_make_mbi): Fill video fields.
31573
31574 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31575
31576 Video driver ids.
31577
31578 * include/grub/video.h (grub_video_driver_id): New type.
31579 (grub_video_adapter): New member 'id'. All users updated.
31580 (grub_video_get_driver_id): New proto.
31581 * video/video.c (grub_video_get_driver_id): New function.
31582
31583 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31584
31585 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
31586 `var=val'.
31587
31588 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31589
31590 * normal/cmdline.c (print_completion): Gettextizze.
31591
31592 2001-01-14 Carles Pina i Estany <carles@pina.cat>
31593
31594 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
31595
31596 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31597
31598 * gettext/gettext.c (grub_gettext_translate): Push and pop
31599 grub_errno.
31600 (grub_gettext_delete_list): Change comment style.
31601 * kern/err.c (grub_error): Gettextizze.
31602 (grub_fatal): Gettextizze.
31603
31604 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31605
31606 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
31607 (grub_linux16_real_boot): ... this.
31608 * kern/i386/loader.S: Likewise.
31609 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
31610 (grub_linux16_boot): New function. Switches to text mode and calls
31611 grub_linux16_real_boot().
31612
31613 * loader/i386/bsd.c: Include `<grub/video.h>'.
31614 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
31615 text mode before calling grub_unix_real_boot().
31616
31617 * loader/i386/multiboot.c: Include `<grub/video.h>'.
31618 (grub_multiboot_boot): Switch to text mode before calling
31619 grub_relocator32_boot().
31620
31621 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
31622 (grub_chainloader_boot): Switch to text mode before calling
31623 grub_chainloader_real_boot().
31624
31625 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31626 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31627
31628 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
31629 non-empty value.
31630
31631 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31632 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31633
31634 * util/grub.d/00_header.in: Define a "savedefault" function for use
31635 in menu entries.
31636 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
31637
31638 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31639 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31640
31641 * util/grub-mkconfig_lib.in (save_default_entry): Only set
31642 saved_entry if boot_once is unset.
31643 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
31644 previous saved entry (i.e. grub-reboot).
31645
31646 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31647
31648 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
31649
31650 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31651
31652 * util/grub.d/00_header.in: Use `set var=val' rather than plain
31653 `var=val'.
31654 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
31655
31656 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31657
31658 * util/grub-reboot.in: Fix --version output.
31659 * util/grub-set-default.in: Likewise.
31660
31661 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31662
31663 * util/grub.d/00_header.in: Silently ignore zero-sized environment
31664 blocks.
31665
31666 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31667
31668 * util/grub.d/00_header.in: Quote the value assigned to `default',
31669 in case it contains spaces.
31670
31671 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31672
31673 * util/grub.d/30_os-prober.in: Fix merge error that moved a
31674 `save_default_entry' call from the macosx case to the linux case.
31675
31676 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
31677 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
31678
31679 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
31680 in `chosen' environment variable.
31681 * normal/menu_text.c (get_entry_number): Check if the variable
31682 matches the title of a menu entry.
31683 (run_menu): Pass menu to get_entry_number.
31684
31685 * util/grub-reboot.in: New file.
31686 * util/grub-set-default.in: New file.
31687 * conf/common.rmk (grub-reboot): New utility.
31688 (grub-set-default): New utility.
31689
31690 * util/grub-mkconfig_lib.in (save_default_entry): New function.
31691 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
31692 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
31693 move it to `saved_entry' for the next boot. Load environment on
31694 initialisation.
31695 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
31696 * util/grub.d/10_hurd.in: Likewise.
31697 * util/grub.d/10_linux.in (linux_entry): Likewise.
31698 * util/grub.d/10_windows.in: Likewise.
31699 * util/grub.d/30_os-prober.in: Likewise.
31700
31701 * util/grub-install.in: Create environment block.
31702 * util/i386/efi/grub-install.in: Likewise.
31703 * util/ieee1275/grub-install.in: Likewise.
31704 * util/sparc64/ieee1275/grub-install.in: Likewise.
31705
31706 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
31707
31708 Unit testing framework for GRUB.
31709
31710 * Makefile.in: Test framework build rules for 'make check'.
31711 * conf/tests.rmk: Build rules for individual tests and framework.
31712
31713 * include/grub/test.h: Header file for whitebox tests.
31714 * tests/lib/functional_test.c: Framework support for whitebox
31715 functional tests.
31716 * tests/lib/test.c: Common whitebox testing code for unit and
31717 functional tests.
31718 * tests/lib/unit_test.c: Framework support for whitebox unit
31719 tests.
31720
31721 * tests/util/grub-shell-tester.in: Support utility for grub-script
31722 tests.
31723 * tests/util/grub-shell.in: Utility to execute grub-script
31724 commands in a Qemu instance.
31725
31726 * tests/example_functional_test.c: Example whitebox functional
31727 test.
31728 * tests/example_grub_script_test.in: Example grub-script test.
31729 * tests/example_scripted_test.in: Example scripted test.
31730 * tests/example_unit_test.c: Example whitebox unit test.
31731
31732 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
31733
31734 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
31735 Add loader/i386/multiboot_mbi.c.
31736 (multiboot2_mod_SOURCES): Likewise.
31737 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
31738 (multiboot2_mod_SOURCES): Likewise.
31739 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
31740 (grub_multiboot_make_mbi): Likewise.
31741 (grub_multiboot_free_mbi): Likewise.
31742 (grub_multiboot_init_mbi): Likewise.
31743 (grub_multiboot_add_module): Likewise.
31744 (grub_multiboot_set_bootdev): Likewise.
31745 * loader/i386/multiboot.c (mbi): Removed.
31746 (mbi_dest): Likewise.
31747 (alloc_mbi): New variable.
31748 (grub_multiboot_payload_size): Removed. All users updated.
31749 (grub_multiboot_pure_size): New variable.
31750 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
31751 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
31752 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
31753 (grub_fill_multiboot_mmap): Likewise.
31754 (grub_multiboot_get_bootdev): Likewise.
31755 (grub_multiboot): Use multiboot_mbi functions.
31756 * loader/i386/multiboot_mbi.c: New file.
31757
31758 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31759
31760 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
31761 it would result in module crash.
31762
31763 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31764
31765 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
31766 (grub_ofconsole_getwh): Split to ...
31767 (grub_ofconsole_getwh): ... this.
31768 (grub_ofconsole_dimensions): ...and this.
31769 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
31770
31771 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
31772
31773 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
31774
31775 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31776
31777 * loader/i386/pc/multiboot2.c: Removed stalled file.
31778
31779 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31780
31781 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
31782 Reported by: Grégoire Sutre
31783
31784 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
31785
31786 * util/misc.c (canonicalize_file_name): New function.
31787 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
31788 instead of realpath().
31789
31790 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
31791
31792 * util/grub-install.in (usage): Clarify meaning of --root-directory,
31793 and make it clearer that it's optional. Based on confusion
31794 witnessed on IRC.
31795
31796 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31797
31798 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
31799 in premature implicit newline.
31800
31801 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31802
31803 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
31804 which resulted in garbled command line at the end of screen.
31805
31806 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31807
31808 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
31809 initialization with similar approach as with other Linux loaders.
31810
31811 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31812
31813 Fix i386-ieee1275 build.
31814
31815 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
31816 and grub_term_height() for video_{width,height} initialization.
31817
31818 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31819
31820 Fix grub-emu build.
31821
31822 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
31823
31824 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
31825 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
31826
31827 Support for multiple terminals.
31828
31829 * Makefile.in (pkglib_DATA): terminal.lst.
31830 (terminal.lst): New target.
31831 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
31832 (GRUB_MOD_INIT(handler)): Likewise.
31833 (GRUB_MOD_FINI(handler)): Likewise.
31834 * commands/help.c (grub_cmd_help): Handle multiple terminals.
31835 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
31836 * commands/sleep.c (do_print): Use grub_term_restore_pos.
31837 (grub_cmd_sleep): Use grub_term_save_pos.
31838 * commands/terminal.c: New file.
31839 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
31840 commands/terminal.c and lib/charset.c.
31841 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
31842 (pkglib_MODULES): Add terminal.mod.
31843 (terminal_mod_SOURCES): New variable.
31844 (terminal_mod_CFLAGS): Likewise.
31845 (terminal_mod_LDFLAGS): Likewise.
31846 * genhandlerlist.sh: Don't handle terminals.
31847 * genmk.rb: Generate terminal-*.lst.
31848 * genterminallist.sh: New file.
31849 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
31850 (grub_is_valid_utf8): Likewise.
31851 (grub_utf8_to_ucs4_alloc): Likewise.
31852 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
31853 (grub_menu_register_viewer): Changed argument.
31854 (grub_menu_try_text): New proto.
31855 (grub_gfxmenu_try_hook): New declaration.
31856 * include/grub/normal.h (grub_normal_exit_level): New declaration.
31857 (grub_menu_init_page): Additional argument term.
31858 (grub_normal_init_page): Likewise.
31859 (grub_cmdline_get): Arguments simplified.
31860 (grub_utf8_to_ucs4_alloc): Removed.
31861 (grub_print_ucs4): Additional argument term.
31862 (grub_getstringwidth): Likewise.
31863 (grub_print_message_indented): Likewise.
31864 (grub_menu_text_register_instances): New proto.
31865 (grub_show_menu): Likewise.
31866 (read_terminal_list): Likewise.
31867 (grub_set_more): Likewise.
31868 * include/grub/parser.h: Include handler.h.
31869 * include/grub/reader.h: Rewritten.
31870 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
31871 (GRUB_TERM_WIDTH): Changed to function.
31872 (GRUB_TERM_HEIGHT): Likewise.
31873 (GRUB_TERM_BORDER_WIDTH): Likewise.
31874 (GRUB_TERM_BORDER_HEIGHT): Likewise.
31875 (GRUB_TERM_NUM_ENTRIES): Likewise.
31876 (GRUB_TERM_ENTRY_WIDTH): Likewise.
31877 (GRUB_TERM_CURSOR_X): Likewise.
31878 (grub_term_input_class): Likewise.
31879 (grub_term_output_class): Likewise.
31880 (grub_term_outputs_disabled): New declaration.
31881 (grub_term_inputs_disabled): Likewise.
31882 (grub_term_outputs): Likewise.
31883 (grub_term_inputs): Likewise.
31884 (grub_term_register_input): Rewritten.
31885 (grub_term_register_output): Likewise.
31886 (grub_term_unregister_input): Likewise.
31887 (grub_term_unregister_output): Likewise.
31888 (FOR_ACTIVE_TERM_INPUTS): New macro.
31889 (FOR_DISABLED_TERM_INPUTS): Likewise.
31890 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
31891 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
31892 * include/grub/terminfo.h: Add oterm argument to all protypes.
31893 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
31894 Use grub_rescue_run.
31895 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
31896 All users updated.
31897 * kern/reader.c: Removed. All users updated.
31898 * kern/rescue_reader.c (grub_rescue_init): Removed.
31899 (grub_rescue_reader): Likewise.
31900 (grub_register_rescue_reader): Likewise.
31901 (grub_rescue_run): New function based on kern/reader.c.
31902 * kern/term.c: Adapted for multiterm.
31903 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
31904 (grub_is_valid_utf8): Likewise.
31905 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
31906 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
31907 right terminal.
31908 * loader/i386/linux.c (grub_linux_boot): Likewise.
31909 * normal/auth.c (grub_username_get): New function.
31910 (grub_auth_check_authentication): Use grub_username_get.
31911 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
31912 * normal/color.c: Adapt for multiterm.
31913 * normal/main.c (read_config_file): Don't use grub_reader_loop.
31914 (grub_normal_init_page): Additional argument term.
31915 (read_lists): Call read_terminal_lists.
31916 (grub_enter_normal_mode): Call grub_cmdline_run.
31917 Handle grub_normal_exit_level.
31918 (grub_cmd_normal): Make reentrant.
31919 (grub_cmd_normal_exit): New function.
31920 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
31921 * normal/menu.c: Adapt for multiterm.
31922 * normal/menu_entry.c: Likewise.
31923 * normal/menu_text.c: Likewise.
31924 * normal/menu_viewer.c: Removed. All users updated.
31925 * normal/term.c: New file.
31926 * util/console.c: Change order of includes to workaround a bug in
31927 ncurses headers.
31928 * term/terminfo.c: New argument oterm on all exported functions.
31929 All users updated.
31930 * util/grub-editenv.c (grub_term_input_class): Removed.
31931 (grub_term_output_class): Likewise.
31932
31933 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
31934
31935 Make loader output a bit more user-friendly.
31936
31937 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
31938 is being loaded. Likewise for the Hurd.
31939
31940 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
31941 that kernel of FreeBSD ${version} is being loaded.
31942
31943 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
31944 grub_dprintf().
31945 (grub_cmd_initrd): Likewise.
31946 * util/grub.d/10_linux.in (linux_entry): Print message indicating
31947 that Linux ${version} is being loaded. Likewise for initrd.
31948
31949 2010-01-09 Carles Pina i Estany <carles@pina.cat>
31950
31951 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
31952
31953 2010-01-08 Carles Pina i Estany <carles@pina.cat>
31954
31955 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
31956 (GRUB_MOD_INIT): Gettextizze.
31957 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
31958 (GRUB_MOD_INIT): Gettextizze.
31959 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
31960 (grub_cmd_linux): Capitalise Linux.
31961 (GRUB_MOD_INIT): Gettextizze.
31962 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
31963 (grub_cmd_linux): Capitalise Linux.
31964 (GRUB_MOD_INIT): Gettextizze.
31965 * loader/i386/linux.c: Include `<grub/i18n.h>'.
31966 (grub_cmd_linux): Capitalise Linux.
31967 (GRUB_MOD_INIT): Gettextizze.
31968 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
31969 (GRUB_MOD_INIT): Gettextizze.
31970 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
31971 (grub_cmd_linux): Capitalise Linux.
31972 (GRUB_MOD_INIT): Gettextizze.
31973 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
31974 (grub_cpu_xnu_init): Gettextizze.
31975 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
31976 (GRUB_MOD_INIT): Gettextizze.
31977 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
31978 (GRUB_MOD_INIT): Gettextizze.
31979 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
31980 (grub_linux_load64): Capitalise Linux.
31981 (GRUB_MOD_INIT): Gettextizze.
31982 * loader/xnu.c: Include `<grub/i18n.h>'.
31983 (GRUB_MOD_INIT): Gettextizze.
31984 * po/POTFILES: Add `loader/efi/appleloader.c',
31985 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
31986 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
31987 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
31988 `loader/i386/xnu.c', `loader/multiboot_loader.c',
31989 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
31990 and `loader/xnu.c'.
31991
31992 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
31993
31994 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
31995
31996 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
31997
31998 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
31999 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
32000 * util/mkisofs/mkisofs.c (main): Readjust --version output.
32001
32002 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32003
32004 Reset Multiboot 2 support. New loader implements the draft in
32005 /branches/multiboot2 and shares as much code as possible with the
32006 production Multiboot 1 implementation.
32007
32008 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
32009 * loader/multiboot2.c: Likewise.
32010 * loader/i386/multiboot_helper.S: Likewise.
32011 * include/multiboot2.h: Replace with latest version from the draft
32012 in /branches/multiboot2.
32013
32014 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
32015 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
32016 and `loader/multiboot2.c'.
32017 (pkglib_MODULES): Add `multiboot2.mod'.
32018 (multiboot2_mod_SOURCES): New variable.
32019 (multiboot2_mod_LDFLAGS): Likewise.
32020 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
32021
32022 * conf/i386-pc.rmk: Likewise.
32023
32024 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
32025 (multiboot_mod_SOURCES): Remove variable.
32026 (multiboot_mod_LDFLAGS): Likewise.
32027 (multiboot_mod_CFLAGS): Likewise.
32028
32029 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
32030 `<multiboot2.h>' instead of `<multiboot.h>'.
32031 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
32032 (MULTIBOOT_HEADER_MAGIC): New macros.
32033
32034 * loader/multiboot_loader.c (module_version_status): Remove variable.
32035 (find_multi_boot2_header): Remove function.
32036 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
32037 logic. Always check for the Multiboot version we're compiling for.
32038 (grub_cmd_module_loader): Likewise.
32039 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
32040 command instead of `multiboot'.
32041
32042 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32043
32044 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
32045 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
32046 all users.
32047
32048 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32049 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32050
32051 Fix breakage introduced with previous commit.
32052
32053 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
32054 commands.
32055 * normal/handler.c (read_handler_list): Revert part of previous commit
32056 affecting this file.
32057 * normal/main.c (read_lists): Move read_handler_list() call back to ...
32058 (grub_normal_execute): ... here.
32059
32060 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32061
32062 Merge prefix-redefinition-fix branch.
32063
32064 * normal/autofs.c (read_fs_list): Make function capable of being
32065 run multiple times, gracefuly replacing the previous data
32066 structures.
32067 * normal/dyncmd.c (read_command_list): Likewise.
32068 * normal/handler.c (read_handler_list): Likewise.
32069 * normal/main.c (read_lists): New function. Calls all the
32070 list reading functions.
32071 (grub_normal_execute): Use read_lists() instead of calling all
32072 list reading functions explicitly. Register read_lists() as a
32073 variable hook attached to ${prefix}.
32074
32075 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32076
32077 Merge crypto branch.
32078
32079 * Makefile.in (pkglib_DATA): Add crypto.lst.
32080 (crypto.lst): New target.
32081 * commands/hashsum.c: New file.
32082 * commands/password.c (check_password): Use grub_crypto_memcmp.
32083 * commands/password_pbkdf2.c: New file.
32084 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
32085 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
32086 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
32087 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
32088 -I$(srcdir)/lib/libgcrypt_wrap.
32089 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
32090 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
32091 password_pbkdf2.mod.
32092 (crypto_mod_SOURCES): New variable.
32093 (crypto_mod_CFLAGS): Likewise.
32094 (crypto_mod_LDFLAGS): Likewise.
32095 (hashsum_mod_SOURCES): New variable.
32096 (hashsum_mod_CFLAGS): Likewise.
32097 (hashsum_mod_LDFLAGS): Likewise.
32098 (pbkdf2_mod_SOURCES): New variable.
32099 (pbkdf2_mod_CFLAGS): Likewise.
32100 (pbkdf2_mod_LDFLAGS): Likewise.
32101 (password_pbkdf2_mod_SOURCES): New variable.
32102 (password_pbkdf2_mod_CFLAGS): Likewise.
32103 (password_pbkdf2_mod_LDFLAGS): Likewise.
32104 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
32105 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
32106 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
32107 Include conf/gcry.rmk.
32108 * include/grub/auth.h: Rewritten.
32109 * include/grub/crypto.h: New file.
32110 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
32111 * include/grub/normal.h (read_crypto_list): New prototype.
32112 * lib/crypto.c: New file.
32113 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
32114 * lib/pbkdf2.c: Likewise.
32115 * normal/auth.c (grub_auth_strcmp): Removed.
32116 (grub_iswordseparator): Likewise.
32117 (grub_auth_strword): Likewise.
32118 (is_authenticated): Use grub_strword.
32119 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
32120 and grub_strword. Pass entered password to authentication callback.
32121 * normal/crypto.c: New file.
32122 * normal/main.c: Call read_crypto_list.
32123 * util/grub-mkpasswd-pbkdf2.c: New file.
32124 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
32125
32126 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
32127
32128 Fix descent and ascent calculation.
32129
32130 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
32131 (options): New option "asce".
32132 (usage): Likewise.
32133 (add_char): Ignore invalid glyphs for descent calculation.
32134 Calculate ascent from actual content.
32135 (print_glyphs): Use 'asce'.
32136 (write_font): Likewise. Allow ascent override.
32137 (main): Handle "asce" option.
32138
32139 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32140
32141 * kern/err.c: Include `<grub/i18n.h>'.
32142 (grub_print_error): Add full stop. Gettextizze.
32143 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
32144 (grub_bsd_load_elf): Capitalise ELF.
32145 (grub_cmd_freebsd_loadenv): Add `s' in error string.
32146 (grub_cmd_freebsd_module): Likewise.
32147 (grub_cmd_freebsd_module_elf): Likewise.
32148 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
32149
32150 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32151
32152 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
32153 * commands/search_file.c (HELP_MESSAGE): New macro.
32154 * commands/search_label.c (HELP_MESSAGE): Likewise.
32155 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
32156 * po/POTFILES: Add `commands/search_file.c',
32157 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
32158 `commands/search.c'.
32159
32160 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32161
32162 * config.rpath: Update from Gnulib.
32163
32164 2010-01-05 Yves Blusseau <blusseau@zetam.org>
32165
32166 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
32167
32168 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
32169
32170 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
32171
32172 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32173
32174 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
32175 arguments to fread so that we get a return value in bytes, rather
32176 than something that will normally be rounded down to 0.
32177 Adjust error handling to avoid producing garbage when size_t is not
32178 the same size as long long.
32179
32180 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32181
32182 * util/mkisofs/write.c (padblock_write): Check return value of
32183 fread.
32184
32185 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32186
32187 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
32188 floppy images now.
32189
32190 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
32191
32192 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32193
32194 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
32195 instead of manual alignment.
32196 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
32197 verbose). Avoid attempts to read past end of the device
32198 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
32199 but GRUB_DISK_CACHE_SIZE may exceed that).
32200
32201 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32202
32203 * commands/crc.c (grub_cmd_crc): Abort on read errors.
32204 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
32205 it to upper layer.
32206
32207 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32208
32209 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
32210 New constant.
32211 (grub_efi_piwg_device_path): New structure
32212 (grub_efi_piwg_device_path_t): New type.
32213 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
32214 (devpath_1): Transform to a structure. All users updated.
32215 (devpath_2): Likewise.
32216 (devpath_3): Likewise.
32217 (devpath_4): Likewise.
32218 (devpath_5): Likewise.
32219
32220 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32221
32222 * loader/efi/appleloader.c: Restored. Update all users.
32223
32224 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32225
32226 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
32227
32228 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
32229 (struct boot_blocklist): Move from here ...
32230 * include/grub/i386/pc/boot.h [ASM_FILE]
32231 (struct grub_boot_blocklist): ... to here. Update all users.
32232 (setup): Only initialize `start' member of `first_block'
32233 structure. Add assert() calls to verify the other members.
32234
32235 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
32236 (generate_image): Fix broken blocklist length initialization.
32237 Add assert() call to verify blocklist `segment' field.
32238
32239 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32240
32241 * loader/efi/appleloader.c: Remove. Update all users.
32242
32243 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32244
32245 * boot/i386/pc/boot.S: Update copyright year.
32246 * boot/i386/pc/cdboot.S: Likewise.
32247 * boot/i386/pc/diskboot.S: Likewise.
32248 * boot/i386/pc/lnxboot.S: Likewise.
32249 * boot/i386/pc/pxeboot.S: Likewise.
32250 * bus/pci.c: Likewise.
32251 * commands/cmp.c: Likewise.
32252 * commands/help.c: Likewise.
32253 * commands/hexdump.c: Likewise.
32254 * commands/i386/pc/halt.c: Likewise.
32255 * commands/i386/pc/play.c: Likewise.
32256 * commands/i386/pc/vbeinfo.c: Likewise.
32257 * commands/ls.c: Likewise.
32258 * commands/test.c: Likewise.
32259 * disk/dmraid_nvidia.c: Likewise.
32260 * disk/i386/pc/biosdisk.c: Likewise.
32261 * disk/ieee1275/nand.c: Likewise.
32262 * disk/ieee1275/ofdisk.c: Likewise.
32263 * disk/lvm.c: Likewise.
32264 * disk/raid.c: Likewise.
32265 * disk/raid6_recover.c: Likewise.
32266 * disk/scsi.c: Likewise.
32267 * fs/affs.c: Likewise.
32268 * fs/cpio.c: Likewise.
32269 * fs/ext2.c: Likewise.
32270 * fs/hfs.c: Likewise.
32271 * fs/iso9660.c: Likewise.
32272 * fs/ntfs.c: Likewise.
32273 * fs/sfs.c: Likewise.
32274 * fs/udf.c: Likewise.
32275 * fs/ufs.c: Likewise.
32276 * fs/xfs.c: Likewise.
32277 * gencmdlist.sh: Likewise.
32278 * genmk.rb: Likewise.
32279 * include/grub/disk.h: Likewise.
32280 * include/grub/efi/api.h: Likewise.
32281 * include/grub/efi/efi.h: Likewise.
32282 * include/grub/efi/pe32.h: Likewise.
32283 * include/grub/elf.h: Likewise.
32284 * include/grub/fs.h: Likewise.
32285 * include/grub/i386/at_keyboard.h: Likewise.
32286 * include/grub/i386/pc/memory.h: Likewise.
32287 * include/grub/i386/pc/vbe.h: Likewise.
32288 * include/grub/i386/pci.h: Likewise.
32289 * include/grub/i386/tsc.h: Likewise.
32290 * include/grub/ieee1275/ieee1275.h: Likewise.
32291 * include/grub/ntfs.h: Likewise.
32292 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
32293 * include/grub/sparc64/libgcc.h: Likewise.
32294 * include/grub/symbol.h: Likewise.
32295 * include/grub/types.h: Likewise.
32296 * include/multiboot2.h: Likewise.
32297 * io/gzio.c: Likewise.
32298 * kern/device.c: Likewise.
32299 * kern/disk.c: Likewise.
32300 * kern/efi/efi.c: Likewise.
32301 * kern/efi/mm.c: Likewise.
32302 * kern/elf.c: Likewise.
32303 * kern/file.c: Likewise.
32304 * kern/i386/dl.c: Likewise.
32305 * kern/i386/pc/init.c: Likewise.
32306 * kern/i386/pc/startup.S: Likewise.
32307 * kern/ieee1275/ieee1275.c: Likewise.
32308 * kern/ieee1275/init.c: Likewise.
32309 * kern/main.c: Likewise.
32310 * kern/mm.c: Likewise.
32311 * kern/powerpc/dl.c: Likewise.
32312 * kern/sparc64/dl.c: Likewise.
32313 * kern/x86_64/dl.c: Likewise.
32314 * lib/hexdump.c: Likewise.
32315 * loader/efi/appleloader.c: Likewise.
32316 * loader/i386/ieee1275/linux.c: Likewise.
32317 * loader/i386/pc/chainloader.c: Likewise.
32318 * loader/i386/pc/linux.c: Likewise.
32319 * loader/i386/pc/multiboot2.c: Likewise.
32320 * loader/ieee1275/multiboot2.c: Likewise.
32321 * loader/multiboot2.c: Likewise.
32322 * loader/multiboot_loader.c: Likewise.
32323 * loader/powerpc/ieee1275/linux.c: Likewise.
32324 * normal/completion.c: Likewise.
32325 * normal/menu_entry.c: Likewise.
32326 * partmap/apple.c: Likewise.
32327 * util/grub.d/10_hurd.in: Likewise.
32328 * util/hostfs.c: Likewise.
32329 * video/readers/png.c: Likewise.
32330
32331 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
32332
32333 * include/grub/misc.h (GNUC_PREREQ): New macro.
32334 (ATTRIBUTE_ERROR): New macro.
32335 * include/grub/list.h (grub_bad_type_cast_real): Use
32336 ATTRIBUTE_ERROR.
32337
32338 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32339
32340 * normal/menu_text.c (print_message): Change messages.
32341
32342 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32343
32344 * normal/menu_entry.c (store_completion): Gettextizze.
32345
32346 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32347
32348 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
32349
32350 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32351
32352 * po/POTFILES: Sort correctly.
32353
32354 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32355
32356 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
32357 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
32358 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
32359 full stop.
32360 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
32361 summary. Gettextizze the strings.
32362 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
32363 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
32364 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
32365 full stop.
32366 (GRUB_MOD_INIT): Remove command name from summary.
32367 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
32368 summary.
32369 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
32370 * term/i386/pc/serial.c (options): Add full stops.
32371 (GRUB_MOD_INIT): Remove command name from the summary.
32372
32373 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32374
32375 * commands/acpi.c: Gettextizze help strings and/or options. Include
32376 `grub/i18n.h' if needed.
32377 * commands/blocklist.c: Likewise.
32378 * commands/boot.c: Likewise.
32379 * commands/cat.c: Likewise.
32380 * commands/cmp.c: Likewise.
32381 * commands/configfile.c: Likewise.
32382 * commands/crc.c: Likewise.
32383 * commands/date.c: Likewise.
32384 * commands/echo.c: Likewise.
32385 * commands/efi/fixvideo.c: Likewise.
32386 * commands/efi/loadbios.c: Likewise.
32387 * commands/gptsync.c: Likewise.
32388 * commands/halt.c: Likewise.
32389 * commands/handler.c: Likewise.
32390 * commands/hdparm.c: Likewise.
32391 * commands/hexdump.c: Likewise.
32392 * commands/i386/cpuid.c: Likewise.
32393 * commands/i386/pc/drivemap.c: Likewise.
32394 * commands/i386/pc/halt.c: Likewise.
32395 * commands/i386/pc/pxecmd.c: Likewise.
32396 * commands/i386/pc/vbeinfo.c: Likewise.
32397 * commands/i386/pc/vbetest.c: Likewise.
32398 * commands/ieee1275/suspend.c: Likewise.
32399 * commands/keystatus.c: Likewise.
32400 * commands/loadenv.c: Likewise.
32401 * commands/ls.c: Likewise.
32402 * commands/lsmmap.c: Likewise.
32403 * commands/lspci.c: Likewise.
32404 * commands/memrw.c: Likewise.
32405 * commands/minicmd.c: Likewise.
32406 * commands/parttool.c: Likewise.
32407 * commands/password.c: Likewise.
32408 * commands/probe.c: Likewise.
32409 * commands/read.c: Likewise.
32410 * commands/reboot.c: Likewise.
32411 * commands/search.c: Likewise.
32412 * commands/sleep.c: Likewise.
32413 * commands/test.c: Likewise.
32414 * commands/true.c: Likewise.
32415 * commands/usbtest.c: Likewise.
32416 * commands/videotest.c: Likewise.
32417 * commands/xnu_uuid.c: Likewise.
32418 * disk/loopback.c: Likewise.
32419 * hello/hello.c: Likewise.
32420 * loader/i386/bsd.c: Likewise.
32421 * term/i386/pc/serial.c: Likewise.
32422 * po/POTFILES: Add new files.
32423
32424 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
32425
32426 * term/i386/pc/at_keyboard.c
32427 (keyboard_controller_wait_untill_ready): Rename to ...
32428 (keyboard_controller_wait_until_ready): ... this. Update all users.
32429
32430 2010-01-01 Carles Pina i Estany <carles@pina.cat>
32431
32432 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
32433 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
32434 string using string width.
32435 * normal/menu_text.c (grub_print_message_indented): Use
32436 grub_print_spaces and not print_spaces.
32437 (print_timeout): Likewise.
32438 (print_spaces): Move to...
32439 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
32440
32441 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
32442
32443 Import from Gnulib.
32444
32445 * gnulib/getdelim.c: New file.
32446 * gnulib/getline.c: Likewise.
32447
32448 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
32449
32450 * include/grub/list.h (grub_assert_fail): Removed.
32451 (grub_bad_type_cast_real): New function.
32452 (grub_bad_type_cast): New macro.
32453 (GRUB_AS_LIST): Use grub_bad_type_cast.
32454 (GRUB_AS_LIST_P): Likewise.
32455 (GRUB_AS_NAMED_LIST): Likewise.
32456 (GRUB_AS_NAMED_LIST_P): Likewise.
32457 (GRUB_AS_PRIO_LIST): Likewise.
32458 (GRUB_AS_PRIO_LIST_P): Likewise.
32459 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
32460
32461 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
32462
32463 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
32464 Fix syntax error.
32465
32466 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
32467
32468 * configure.ac: Check for TARGET_CFLAGS initialization before we
32469 initialize it ourselves (sigh).
32470 Move a few modifications to TARGET_CFLAGS to be unconditional
32471 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
32472 eh_frame)
32473
32474 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
32475 * term/i386/pc/at_keyboard.c
32476 (keyboard_controller_wait_untill_ready): Likewise.
32477 (keyboard_controller_led): Rename `led_status' paramter to avoid
32478 name conflict.
32479
32480 2009-12-28 Carles Pina i Estany <carles@pina.cat>
32481
32482 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
32483 quotes.
32484
32485 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32486
32487 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
32488
32489 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32490
32491 * normal/menu_text.c (grub_print_message_indented): Prevent
32492 past-the-end-of-array dereference.
32493
32494 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32495
32496 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
32497 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
32498
32499 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32500
32501 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
32502 * normal/main.c (grub_normal_read_line): Remove a space from the
32503 default prompt.
32504
32505 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32506
32507 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
32508 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32509 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32510 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32511 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32512 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32513 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32514
32515 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32516
32517 * video/readers/jpeg.c (cmd): Declare.
32518 (grub_cmd_jpegtest): Use `grub_command_t' type.
32519 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32520 Assign to `cmd'.
32521 (GRUB_MOD_FINI): Use `cmd' to unregister.
32522 * video/readers/png.c (cmd): Declare.
32523 (grub_cmd_pngtest): Use `grub_command_t' type.
32524 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32525 Assign to `cmd'.
32526 (GRUB_MOD_FINI): Use `cmd' to unregister.
32527 * video/readers/tga.c (cmd): Declare.
32528 (grub_cmd_tgatest): Use `grub_command_t' type.
32529 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32530 Assign to `cmd'.
32531 (GRUB_MOD_FINI): Use `cmd' to unregister.
32532
32533 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32534
32535 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
32536 stops.
32537 * kern/corecmd.c (grub_register_core_commands): Likewise.
32538 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
32539 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32540 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
32541 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32542 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32543 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
32544 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32545 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
32546 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32547 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32548 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32549 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32550 * normal/handler.c (insert_handler): Likewise.
32551 * normal/main.c (GRUB_MOD_INIT): Likewise.
32552 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
32553
32554 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32555
32556 * commands/help.c (grub_cmd_help): Print the command name before the
32557 summary.
32558 (GRUB_MOD_INIT): Remove command name from the summary.
32559 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
32560 string as summary.
32561 * lib/arg.c (find_long): Print the command name before the summary.
32562 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
32563 summary.
32564 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
32565 * commands/cat.c (GRUB_MOD_INIT): Likewise.
32566 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
32567 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
32568 * commands/crc.c (GRUB_MOD_INIT): Likewise.
32569 * commands/date.c (GRUB_MOD_INIT): Likewise.
32570 * commands/echo.c (GRUB_MOD_INIT): Likewise.
32571 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
32572 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
32573 * commands/handler.c (GRUB_MOD_INIT): Likewise.
32574 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
32575 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
32576 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
32577 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
32578 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
32579 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
32580 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
32581 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
32582 * commands/ls.c (GRUB_MOD_INIT): Likewise.
32583 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
32584 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
32585 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
32586 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
32587 * commands/password.c (GRUB_MOD_INIT): Likewise.
32588 * commands/probe.c (GRUB_MOD_INIT): Likewise.
32589 * commands/read.c (GRUB_MOD_INIT): Likewise.
32590 * commands/search.c (GRUB_MOD_INIT): Likewise.
32591 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
32592 * commands/test.c (GRUB_MOD_INIT): Likewise.
32593 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
32594 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
32595 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
32596 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
32597 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
32598 * lib/arg.c (GRUB_MOD_INIT): Likewise.
32599 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
32600 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32601 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32602 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32603 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
32604 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
32605 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
32606 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
32607
32608 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32609
32610 Use search command for preliminar UUID search.
32611
32612 * commands/search.c: Split into ...
32613 * commands/search_wrap.c: ...this
32614 * commands/search.c: ...and this.
32615 * commands/search_file.c: New file.
32616 * commands/search_label.c: New file.
32617 * commands/search_uuid.c: New file.
32618 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
32619 Add commands/search_wrap.c, commands/search_file.c,
32620 commands/search_label.c and commands/search_uuid.c.
32621 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
32622 (search_mod_SOURCES): Set to commands/search_wrap.c.
32623 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
32624 search_label.mod.
32625 (search_fs_file_mod_SOURCES): New variable.
32626 (search_fs_file_mod_CFLAGS): Likewise.
32627 (search_fs_file_mod_LDFLAGS): Likewise.
32628 (search_label_mod_SOURCES): Likewise.
32629 (search_label_mod_CFLAGS): Likewise.
32630 (search_label_mod_LDFLAGS): Likewise.
32631 (search_fs_uuid_mod_SOURCES): New variable.
32632 (search_fs_uuid_mod_CFLAGS): Likewise.
32633 (search_fs_uuid_mod_LDFLAGS): Likewise.
32634 (fs_file_mod_SOURCES): Removed.
32635 (fs_file_mod_CFLAGS): Likewise.
32636 (fs_file_mod_LDFLAGS): Likewise.
32637 (fs_uuid_mod_SOURCES): Removed.
32638 (fs_uuid_mod_CFLAGS): Likewise.
32639 (fs_uuid_mod_LDFLAGS): Likewise.
32640 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
32641 Set to util/grub-install.in.
32642 * disk/fs_file.c: Removed.
32643 * disk/fs_uuid.c: Likewise.
32644 * include/grub/search.h: New file.
32645 * util/grub-install.in: Handle sparc64.
32646 Create and use load.cfg.
32647 * util/sparc64/ieee1275/grub-install.in: Removed.
32648
32649 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32650
32651 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
32652 Ignore return status if CF is cleared.
32653 (grub_biosdisk_get_diskinfo_standard): Likewise.
32654
32655 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32656
32657 * term/i386/pc/at_keyboard.c
32658 (keyboard_controller_wait_untill_ready): New function.
32659 (grub_keyboard_controller_write, grub_keyboard_controller_read)
32660 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
32661 for keyboard polling, rather than duplicate the same loop. This
32662 saves a few bytes in code size.
32663
32664 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32665
32666 Support for (pxe[:server[:gateway]]) syntax and
32667 use environment variable for PXE.
32668
32669 * commands/i386/pc/pxecmd.c (options): Removed.
32670 (print_ip): Removed.
32671 (grub_cmd_pxe): Removed
32672 (grub_cmd_pxe_unload): New function.
32673 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
32674 (grub_pxe_your_ip): Made static.
32675 (grub_pxe_default_server_ip): Likewise.
32676 (grub_pxe_default_gateway_ip): Likewise.
32677 (grub_pxe_blksize): Likewise.
32678 (parse_ip): New function.
32679 (grub_pxe_open): Support server and gateway specification.
32680 (grub_pxe_close): Free disk->data.
32681 (grub_pxefs_open): Use disk->data.
32682 (grub_pxefs_read): Likewise.
32683 (grub_env_write_readonly): New function.
32684 (set_mac_env): Likewise.
32685 (set_env_limn_ro): Likewise.
32686 (parse_dhcp_vendor): Likewise.
32687 (grub_pxe_detect): Set the environment variables.
32688 (set_ip_env): New function.
32689 (write_ip_env): Likewise.
32690 (grub_env_write_pxe_default_server): Likewise.
32691 (grub_env_write_pxe_default_gateway): Likewise.
32692 (grub_env_write_pxe_blocksize): Likewise.
32693 (GRUB_MOD_INIT(pxe)): Set environment variables.
32694 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
32695 (grub_pxe_mac_addr_t): ... this. All users updated.
32696 (grub_pxe_your_ip): Removed.
32697 (grub_pxe_server_ip): Likewise.
32698 (grub_pxe_gateway_ip): Likewise.
32699 (grub_pxe_blksize): Likewise.
32700
32701 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32702
32703 * commands/help.c: Include `<grub/i18n.h>'.
32704 (grub_cmd_help): Gettextizze.
32705 (GRUB_MOD_INIT): Likewise.
32706 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
32707 (GRUB_MOD_INIT): Gettextizze.
32708 * commands/search.c: Include `<grub/i18n.h>'.
32709 (options): Gettextizze.
32710 (GRUB_MOD_INIT): Gettextizze.
32711 * lib/arg.c: Include `<grub/i18n.h>'.
32712 (help_options): Gettextizze.
32713 (find_long): Likewise.
32714 (grub_arg_show_help): Likewise.
32715 * normal/dyncmd.c: Include `<grub/i18n.h>'.
32716 (read_command_list): Gettextizze.
32717 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
32718 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
32719
32720 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32721
32722 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
32723 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
32724 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
32725 (led_status): New variable.
32726 (keyboard_controller_led): New function.
32727 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
32728 update led status for caps lock, num lock and scroll lock.
32729
32730 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
32731
32732 * util/hostdisk.c (open_device): Fix a comment.
32733
32734 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32735
32736 * util/grub-install.in (host_os): New variable.
32737 * util/i386/efi/grub-install.in (host_os): Likewise.
32738
32739 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32740
32741 * util/mkisofs/write.c (padblock_write): Abort when given an
32742 excedingly large embed image, instead of silently truncating it.
32743
32744 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32745
32746 * include/multiboot.h: Indentation fixes.
32747
32748 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32749
32750 * include/multiboot.h (struct multiboot_aout_symbol_table)
32751 (struct multiboot_elf_section_header_table): New structure
32752 declarations (stolen from GRUB Legacy).
32753 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
32754 table information.
32755
32756 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
32757 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
32758 type aliases.
32759
32760 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32761
32762 * include/multiboot.h: Make comments src2texi-friendly.
32763
32764 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32765
32766 For consistency with [multiboot]/docs/boot.S.
32767
32768 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
32769 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
32770 (MULTIBOOT_MAGIC2): Rename from this ...
32771 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
32772
32773 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32774
32775 * include/multiboot.h: Remove `<grub/types.h>'.
32776 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
32777 types. Update all users.
32778
32779 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32780
32781 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
32782 `couldn't' and `can not' by `cannot'.
32783 * commands/i386/pc/drivemap.c: Likewise.
32784 * disk/ata.c: Likewise.
32785 * disk/ieee1275/nand.c: Likewise.
32786 * fs/affs.c: Likewise.
32787 * fs/fat.c: Likewise.
32788 * fs/hfs.c: Likewise.
32789 * fs/hfsplus.c: Likewise.
32790 * fs/iso9660.c: Likewise.
32791 * fs/jfs.c: Likewise.
32792 * fs/minix.c: Likewise.
32793 * fs/reiserfs.c: Likewise.
32794 * fs/sfs.c: Likewise.
32795 * fs/udf.c: Likewise.
32796 * fs/ufs.c: Likewise.
32797 * fs/xfs.c: Likewise.
32798 * loader/powerpc/ieee1275/linux.c: Likewise.
32799 * loader/sparc64/ieee1275/linux.c: Likewise.
32800 * util/grub-probe.c: Likewise.
32801 * util/misc.c: Likewise.
32802
32803 2009-12-24 Carles Pina i Estany <carles@pina.cat>
32804
32805 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
32806 grub_errno calls.
32807 * commands/acpi.c: Likewise.
32808 * commands/blocklist.c: Likewise.
32809 * commands/efi/loadbios.c: Likewise.
32810 * commands/i386/pc/drivemap.c: Likewise.
32811 * commands/loadenv.c: Likewise.
32812 * commands/memrw.c: Likewise.
32813 * commands/password.c: Likewise.
32814 * commands/videotest.c: Likewise.
32815 * disk/ata.c: Likewise.
32816 * disk/ata_pthru.c: Likewise.
32817 * disk/dmraid_nvidia.c: Likewise.
32818 * disk/ieee1275/nand.c: Likewise.
32819 * disk/ieee1275/ofdisk.c: Likewise.
32820 * disk/loopback.c: Likewise.
32821 * disk/lvm.c: Likewise.
32822 * disk/mdraid_linux.c: Likewise.
32823 * disk/raid.c: Likewise.
32824 * disk/raid6_recover.c: Likewise.
32825 * disk/scsi.c: Likewise.
32826 * efiemu/main.c: Likewise.
32827 * efiemu/mm.c: Likewise.
32828 * efiemu/pnvram.c: Likewise.
32829 * efiemu/symbols.c: Likewise.
32830 * font/font.c: Likewise.
32831 * fs/cpio.c: Likewise.
32832 * fs/hfsplus.c: Likewise.
32833 * fs/iso9660.c: Likewise.
32834 * fs/jfs.c: Likewise.
32835 * fs/minix.c: Likewise.
32836 * fs/ntfs.c: Likewise.
32837 * fs/ntfscomp.c: Likewise.
32838 * fs/reiserfs.c: Likewise.
32839 * fs/ufs.c: Likewise.
32840 * fs/xfs.c: Likewise.
32841 * gettext/gettext.c: Likewise.
32842 * include/grub/auth.h: Likewise.
32843 * kern/elf.c: Likewise.
32844 * kern/file.c: Likewise.
32845 * kern/ieee1275/init.c: Likewise.
32846 * kern/ieee1275/mmap.c: Likewise.
32847 * kern/ieee1275/openfw.c: Likewise.
32848 * kern/powerpc/dl.c: Likewise.
32849 * kern/sparc64/dl.c: Likewise.
32850 * lib/arg.c: Likewise.
32851 * loader/i386/bsd.c: Likewise.
32852 * loader/i386/bsdXX.c: Likewise.
32853 * loader/i386/efi/linux.c: Likewise.
32854 * loader/i386/efi/xnu.c: Likewise.
32855 * loader/i386/ieee1275/linux.c: Likewise.
32856 * loader/i386/linux.c: Likewise.
32857 * loader/i386/multiboot.c: Likewise.
32858 * loader/i386/pc/linux.c: Likewise.
32859 * loader/i386/pc/multiboot2.c: Likewise.
32860 * loader/i386/xnu.c: Likewise.
32861 * loader/ieee1275/multiboot2.c: Likewise.
32862 * loader/macho.c: Likewise.
32863 * loader/machoXX.c: Likewise.
32864 * loader/multiboot2.c: Likewise.
32865 * loader/multiboot_loader.c: Likewise.
32866 * loader/powerpc/ieee1275/linux.c: Likewise.
32867 * loader/sparc64/ieee1275/linux.c: Likewise.
32868 * loader/xnu.c: Likewise.
32869 * loader/xnu_resume.c: Likewise.
32870 * mmap/i386/pc/mmap.c: Likewise.
32871 * normal/menu_viewer.c: Likewise.
32872 * partmap/acorn.c: Likewise.
32873 * partmap/amiga.c: Likewise.
32874 * partmap/apple.c: Likewise.
32875 * script/lexer.c: Likewise.
32876 * term/gfxterm.c: Likewise.
32877 * term/i386/pc/serial.c: Likewise.
32878 * term/i386/pc/vga.c: Likewise.
32879 * term/ieee1275/ofconsole.c: Likewise.
32880 * term/terminfo.c: Likewise.
32881 * video/bitmap.c: Likewise.
32882 * video/efi_gop.c: Likewise.
32883 * video/efi_uga.c: Likewise.
32884 * video/fb/video_fb.c: Likewise.
32885 * video/i386/pc/vbe.c: Likewise.
32886 * video/readers/tga.c: Likewise.
32887 * video/video.c: Likewise.
32888
32889 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
32890
32891 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
32892 * commands/lspci.c: Likewise.
32893 * commands/probe.c: Likewise.
32894 * commands/xnu_uuid.c: Likewise.
32895 * conf/i386-coreboot.rmk: Likewise.
32896 * conf/i386-efi.rmk: Likewise.
32897 * conf/i386-ieee1275.rmk: Likewise.
32898 * conf/i386-pc.rmk: Likewise.
32899 * conf/powerpc-ieee1275.rmk: Likewise.
32900 * conf/sparc64-ieee1275.rmk: Likewise.
32901 * conf/x86_64-efi.rmk: Likewise.
32902 * fs/i386/pc/pxe.c: Likewise.
32903 * gettext/gettext.c: Likewise.
32904 * include/grub/efi/graphics_output.h: Likewise.
32905 * include/grub/i386/pc/memory.h: Likewise.
32906 * kern/env.c: Likewise.
32907 * kern/i386/qemu/startup.S: Likewise.
32908 * lib/i386/pc/biosnum.c: Likewise.
32909 * lib/i386/relocator.c: Likewise.
32910 * lib/i386/relocator_asm.S: Likewise.
32911 * lib/relocator.c: Likewise.
32912 * loader/i386/bsd.c: Likewise.
32913 * loader/i386/multiboot.c: Likewise.
32914 * loader/i386/pc/chainloader.c: Likewise.
32915 * loader/i386/xnu.c: Likewise.
32916 * loader/xnu.c: Likewise.
32917 * normal/main.c: Likewise.
32918 * normal/menu_text.c: Likewise.
32919 * util/getroot.c: Likewise.
32920 * util/grub-mkconfig_lib.in: Likewise.
32921 * util/grub.d/00_header.in: Likewise.
32922 * util/i386/pc/grub-mkimage.c: Likewise.
32923 * util/mkisofs/eltorito.c: Likewise.
32924 * util/mkisofs/exclude.h: Likewise.
32925 * util/mkisofs/hash.c: Likewise.
32926 * util/mkisofs/iso9660.h: Likewise.
32927 * util/mkisofs/joliet.c: Likewise.
32928 * util/mkisofs/mkisofs.c: Likewise.
32929 * util/mkisofs/mkisofs.h: Likewise.
32930 * util/mkisofs/multi.c: Likewise.
32931 * util/mkisofs/name.c: Likewise.
32932 * util/mkisofs/rock.c: Likewise.
32933 * util/mkisofs/tree.c: Likewise.
32934 * util/mkisofs/write.c: Likewise.
32935 * video/efi_gop.c: Likewise.
32936
32937 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
32938
32939 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
32940 size counting.
32941
32942 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32943
32944 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
32945 * genmk.rb (class SCRIPT): Modify the target file instead of source.
32946
32947 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
32948
32949 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
32950 (GRUB_MOD_INIT(memrw)): Update help line.
32951
32952 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
32953
32954 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
32955 Use grub_extcmd_t. All users updated.
32956 (options): New variable.
32957 (grub_cmd_read): Restructure for readability. Support "-v" option.
32958 (grub_cmd_write): Restructure for readability.
32959
32960 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32961
32962 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
32963
32964 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32965
32966 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
32967 with the actual contents of the correspondending make variable.
32968 * util/grub-mkrescue.in (pkglib_DATA): New variable.
32969 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
32970 specifying `*.lst' and `efiemu??.o'
32971
32972 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32973
32974 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
32975 after function name.
32976 Noticed by Rene Engelhard <rene@debian.org>.
32977
32978 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
32979
32980 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
32981 (options): New variable.
32982 (iospace): Likewise.
32983 (grub_lspci_iter): List IO spaces if "-i" was given.
32984 (grub_cmd_lspci): Parse options.
32985 (GRUB_MOD_INIT(lspci)): Use extcmd.
32986 (GRUB_MOD_FINI(lspci)): Likewise.
32987
32988 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32989
32990 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
32991 `function' keyword.
32992 Patch by Tony Mancill <tmancill@debian.org>.
32993
32994 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
32995
32996 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
32997 (grub_uhci_portstatus): Likewise.
32998 (grub_uhci_portstatus): Add necessary delay.
32999 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
33000
33001 2009-12-21 Carles Pina i Estany <carles@pina.cat>
33002
33003 * commands/acpi.c (options): Fix capitalizations and/or full stops.
33004 (GRUB_MOD_INIT): Likewise.
33005 * commands/boot.c (GRUB_MOD_INIT): Likewise.
33006 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
33007 * commands/echo.c (options): Fix capitalizations and/or full stops.
33008 * commands/efi/loadbios.c (enable_rom_area): Likewise.
33009 (enable_rom_area): Likewise.
33010 (GRUB_MOD_INIT): Likewise.
33011 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
33012 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
33013 * commands/handler.c (GRUB_MOD_INIT): Likewise.
33014 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
33015 * commands/hexdump.c (options): Likewise.
33016 * commands/i386/cpuid.c (options): Likewise.
33017 (GRUB_MOD_INIT): Likewise.
33018 * commands/i386/pc/drivemap.c (options): Likewise.
33019 (GRUB_MOD_INIT): Likewise.
33020 * commands/i386/pc/halt (options): Likewise.
33021 (GRUB_MOD_INIT): Likewise.
33022 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
33023 * commands/i386/pc/pxecmd.c (options): Likewise.
33024 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
33025 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
33026 * commands/keystatus.c (options): Likewise.
33027 (GRUB_MOD_INIT): Likewise.
33028 * commands/loadenv.c (options): Likewise.
33029 * commands/ls.c (options): Likewise.
33030 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
33031 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
33032 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
33033 * commands/parttool.c (helpmsg): Likewise.
33034 * commands/probe.c (options): Likewise.
33035 * commands/read.c (GRUB_MOD_INIT): Likewise.
33036 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
33037 * commands/search.c (options): Likewise.
33038 * commands/sleep.c (options): Likewise.
33039 * commands/test.c (GRUB_MOD_INIT): Likewise.
33040 * commands/true.c (GRUB_MOD_INIT): Likewise.
33041 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
33042 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
33043 * lib/arg.c (help_options): Likewise.
33044 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
33045 `$(XGETTEXT)'.
33046 * po/POTFILES: Add `commands/loadenv.c'.
33047
33048 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
33049
33050 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
33051 instead of specifying them explicit.
33052
33053 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33054
33055 * NEWS: Add grub-probe support for GNU/Hurd.
33056
33057 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33058
33059 * NEWS: gettext was added after 1.97.
33060
33061 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33062
33063 * util/mkisofs/msdos_partition.h: New file (based on
33064 include/grub/msdos_partition.h).
33065 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
33066 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
33067 (ld_options, main): Recognize --protective-msdos-label.
33068 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
33069 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
33070 (padblock_write): If `use_protective_msdos_label' is set, patch a
33071 protective DOS-style label in the output image.
33072
33073 * util/grub-mkrescue.in: Use --protective-msdos-label.
33074
33075 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33076
33077 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
33078 boot.
33079
33080 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33081
33082 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
33083 variables.
33084 (ld_options, main): Recognize `--embedded-boot'.
33085 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
33086 declarations.
33087 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
33088 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
33089 (padblock_write): Likewise. Rewrite to support embedded boot image.
33090
33091 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
33092 for BIOS-based disk boot instead of only ElTorito.
33093
33094 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33095
33096 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
33097 build (not needed for bootstrap).
33098
33099 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33100
33101 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
33102 from i386-pc build (not needed for bootstrap).
33103 Rewrite a pair of strings.
33104
33105 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33106
33107 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
33108
33109 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
33110
33111 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
33112
33113 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33114
33115 * kern/env.c (grub_env_context_open): Mark exported variable for
33116 reexport.
33117
33118 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33119
33120 * kern/env.c (grub_env_export): Create nonexistent variables before
33121 exporting.
33122
33123 2009-12-20 Carles Pina i Estany <carles@pina.cat>
33124
33125 * include/grub/auth.h: Include `<grub/i18n.h>'.
33126 (GRUB_GET_PASSWORD): Gettextizze string.
33127 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
33128 menu_text.c.
33129 (grub_utf8_to_ucs4_alloc): Fix indentation.
33130 (grub_print_ucs4): Likewise.
33131 (grub_getstringwidth): Likewise.
33132 (print_message_indented): New declaration.
33133 * normal/auth.c: Include `<grub/i18n.h>'.
33134 (grub_auth_check_authentication): Gettexttize string.
33135 * normal/cmdline.c: Include `<grub/i18n.h>'.
33136 (grub_cmdline_get): Gettextizze.
33137 * normal/color.c: Include `<grub/i18n.h>'.
33138 (grub_parse_color_name_pair): Gettexttize strings.
33139 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
33140 string (use `print_message_indented').
33141 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
33142 `include/grub/normal.h'.
33143 (print_message_indented): Renamed to ...
33144 (grub_print_message_indented): ... this. Remove `static' qualifer (now
33145 used in normal/main.c).
33146 (print_message): Use `grub_print_message_indented' instead of
33147 `print_message_indented'.
33148 (print_timeout): Likewise.
33149 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
33150 (grub_normal_print_device_info): Gettexttize strings.
33151 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
33152
33153 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33154
33155 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
33156 of arguments. Return number of tokens and not arguments. All users
33157 updated.
33158
33159 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33160
33161 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
33162 non-MSDOS paritions.
33163
33164 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
33165
33166 * include/grub/types.h (UNUSED): Removed since it conflicts with
33167 NetBSD headers. All users changed to direct __attribute__ ((unused)).
33168 Reported by Grégoire Sutre.
33169
33170 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33171
33172 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
33173 (grub_print_ucs4_alloc): Likewise.
33174 (grub_getstringwidth): Likewise.
33175 * normal/main.c (grub_normal_init_page): Gettextize version string.
33176 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
33177 (getstringwidth): Renamed to ...
33178 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
33179 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
33180 (grub_print_ucs4): Remove `static' qualifer (now used in
33181 normal/main.c).
33182 * po/POTFILES: Add normal/main.c.
33183
33184 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33185
33186 * normal/menu_text.c (STANDARD_MARGIN): New macro.
33187 (print_message_indented): Add `margin_left' and `margin_right'
33188 parameters.
33189 (print_message): Update `print_message_indented' calls. Adds '\n' to the
33190 strings.
33191 (print_timeout): Use `print_message_indented' to print the message.
33192 Deletes `second_stage' parameter.
33193 (run_menu): Update `print_timeout' calls.
33194
33195 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33196
33197 Fix console palette on OpenFirmware.
33198
33199 * term/ieee1275/ofconsole.c (MAX): Removed.
33200 (colors): Redone based on VGA palette.
33201 (grub_ofconsole_setcolor): Discard brightness bit since only 8
33202 colors are supported.
33203 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
33204
33205 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33206
33207 Fix potential EfiEmu double prepare.
33208
33209 * efiemu/main.c (prepared): New variable
33210 (grub_efiemu_unload): Set prepare to '0'.
33211 (grub_efiemu_prepare): Return if already prepared. Set prepared.
33212
33213 set_virtual_address_map support.
33214
33215 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
33216 prototype.
33217 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
33218 prototype.
33219 (grub_efiemu_crc32): Likewise.
33220 (grub_efiemu_crc64): Likewise.
33221 (grub_efiemu_set_virtual_address_map): Likewise.
33222 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
33223 New definition.
33224 (grub_autoefi_set_virtual_address_map): Likewise.
33225 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
33226 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
33227 Restructure flow to accomodate it.
33228 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
33229 (grub_efiemu_crc): Recompute CRC32.
33230 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
33231 (efiemu_ptv_relocated): ... this. Made global. All users updated.
33232 * efiemu/symbols.c (relocated_handle): New variable.
33233 (grub_efiemu_free_syms): Free relocated_handle.
33234 (grub_efiemu_alloc_syms): Allocate relocated_handle.
33235 (grub_efiemu_write_sym_markers): New function.
33236 (grub_efiemu_set_virtual_address_map): Likewise.
33237
33238 Newer XNU parameters.
33239
33240 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
33241 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
33242 (grub_xnu_fill_devicetree): New prototype.
33243 (grub_xnu_heap_real_start): New variable.
33244 * loader/xnu.c (get_name_ptr): New function.
33245 (grub_xnu_load_driver): Fill namelen and name.
33246
33247 64-bit xnu support.
33248
33249 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
33250 and 'loader/macho64.c'.
33251 * conf/i386-pc.rmk: Likewise.
33252 * conf/x86_64-efi.rmk: Likewise.
33253 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
33254 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
33255 * include/grub/macho.h (grub_macho_segment64): New structure.
33256 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
33257 (grub_macho_size32): ... to this.
33258 (grub_macho32_get_entry_point): Renamed from ...
33259 (grub_macho_get_entry_point32): ... to this.
33260 (grub_macho_contains_macho64): New prototype.
33261 (grub_macho_size64): Likewise.
33262 (grub_macho_get_entry_point64): Likewise.
33263 (grub_macho32_load): Renamed from ...
33264 (grub_macho_load32): ... to this.
33265 (grub_macho32_filesize): Renamed from ...
33266 (grub_macho_filesize32): ... to this.
33267 (grub_macho32_readfile): Renamed from ...
33268 (grub_macho_readfile32): ... to this.
33269 (grub_macho_filesize64): New prototype.
33270 (grub_macho_readfile64): Likewise.
33271 (grub_macho_parse32): Likewise.
33272 (grub_macho_parse64): Likewise.
33273 * loader/macho.c: Split into ...
33274 * loader/machoXX.c: ... and this. Replace 32 with XX.
33275 * loader/macho32.c: New file.
33276 * loader/macho64.c: Likewise.
33277 * loader/xnu.c (grub_xnu_is_64bit): New variable.
33278 (grub_cmd_xnu_kernel): Make 32-bit only.
33279 (grub_cmd_xnu_kernel64): New function.
33280 (grub_xnu_load_driver): Support Mach-O 64.
33281 (grub_cmd_xnu_mkext): Likewise.
33282 * util/grub.d/30_os-prober.in (osx_entry): New function.
33283 Generate entries for 64-bit boot too.
33284
33285 Eliminate ad-hoc tree format in XNU and EfiEmu.
33286
33287 * efiemu/main.c (grub_efiemu_prepare): Update comment.
33288 * efiemu/pnvram.c: Rewritten to use environment variables.
33289 All users updated.
33290
33291 Inline utf16_to_utf8.
33292
33293 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
33294 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
33295 All users updated.
33296 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
33297
33298 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
33299 * commands/usbtest.c (grub_usb_get_string): ... move here.
33300 (usb_print_str): Fix error handling.
33301 * include/grub/usb.h (grub_usb_get_string): Remove.
33302
33303 UTF-8 to UTF-16 transformation.
33304
33305 * conf/common.rmk (pkglib_MODULES): Add charset.mod
33306 (charset_mod_SOURCES): New variable.
33307 (charset_mod_CFLAGS): Likewise.
33308 (charset_mod_LDFLAGS): Likewise.
33309 * include/grub/utf.h: New file.
33310 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
33311
33312 Support for device properties.
33313
33314 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
33315 (grub_xnu_devprop_device_header): Likewise.
33316 (grub_xnu_devprop_device_descriptor): Likewise.
33317 (grub_xnu_devprop_add_device): New prototype.
33318 (grub_xnu_devprop_remove_device): Likewise.
33319 (grub_xnu_devprop_remove_property): Likewise.
33320 (grub_xnu_devprop_add_property_utf8): Likewise.
33321 (grub_xnu_devprop_add_property_utf16): Likewise.
33322 (grub_cpu_xnu_init): Likewise.
33323 (grub_cpu_xnu_fini): Likewise.
33324 (grub_cpu_xnu_unload): Likewise.
33325 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
33326 (property_descriptor): Likewise.
33327 (devices): New variable.
33328 (grub_xnu_devprop_remove_property): New function.
33329 (grub_xnu_devprop_add_device): Likewise.
33330 (grub_xnu_devprop_remove_device): Likewise.
33331 (grub_xnu_devprop_add_property): Likewise.
33332 (grub_xnu_devprop_add_property_utf8): Likewise.
33333 (grub_xnu_devprop_add_property_utf16): Likewise.
33334 (hextoval): Likewise.
33335 (grub_cpu_xnu_fill_devprop): Likewise.
33336 (grub_cmd_devprop_load): Likewise.
33337 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
33338 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
33339 (cmd_devprop_load): New variable.
33340 (grub_cpu_xnu_init): New function.
33341 (grub_cpu_xnu_fini): Likewise.
33342 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
33343 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
33344 (grub_cmd_xnu_devtree): Likewise.
33345 (hextoval): New function.
33346 (unescape): Likewise.
33347 (grub_xnu_fill_devicetree): Likewise.
33348
33349 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
33350 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
33351
33352 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33353
33354 Workaround for broken ATI VBE.
33355
33356 * video/i386/pc/vbe.c (last_set_mode): New variable.
33357 (grub_vbe_set_video_mode): Set 'last_set_mode'.
33358 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
33359 (grub_video_vbe_setup): Don't check for reserved flag.
33360
33361 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
33362
33363 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
33364 the `find' command.
33365
33366 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
33367
33368 UUID support for HFS.
33369
33370 * fs/hfs.c (grub_hfs_uuid): New function.
33371 (grub_hfs_fs): New value .uuid.
33372 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
33373
33374 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
33375
33376 Fix a segfault with parsing unknown long options.
33377
33378 * util/grub-mkrelpath.c (options): Zero terminate it.
33379
33380 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33381
33382 * include/grub/misc.h (grub_puts): New declaration.
33383 (grub_puts_): Likewise.
33384 * kern/misc.c (grub_puts): New definition.
33385 (grub_puts_): Likewise.
33386
33387 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33388
33389 * util/grub-probe.c (probe): Improve error message.
33390
33391 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33392
33393 * loader/i386/multiboot_elfxx.c
33394 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
33395 initialization.
33396
33397 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33398
33399 Relocator framework
33400
33401 * loader/i386/xnu_helper.S: Removed. All users updated.
33402 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
33403 (relocator_mod_SOURCES): New variable.
33404 (relocator_mod_CFLAGS): Likewise.
33405 (relocator_mod_LDFLAGS): Likewise.
33406 (relocator_mod_ASFLAGS): Likewise.
33407 * conf/x86_64.rmk: Likewise.
33408 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
33409 (grub_multiboot_payload_entry_offset): Likewise.
33410 (grub_multiboot_forward_relocator): Likewise.
33411 (grub_multiboot_forward_relocator_end): Likewise.
33412 (grub_multiboot_backward_relocator): Likewise.
33413 (grub_multiboot_backward_relocator_end): Likewise.
33414 (grub_multiboot_payload_eip): New variable.
33415 (grub_multiboot_payload_orig): Likewise.
33416 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
33417 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
33418 * include/grub/i386/memory.h
33419 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
33420 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
33421 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
33422 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
33423 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
33424 * include/grub/i386/relocator.h: New file.
33425 * include/grub/x86_64/relocator.h: Likewise.
33426 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
33427 (XNU_RELOCATOR): New macro.
33428 (grub_xnu_launcher_start): Remove.
33429 (grub_xnu_launcher_end): Likewise.
33430 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
33431 (grub_xnu_heap_real_start): Remove.
33432 (grub_xnu_heap_start): Change to void *. All users updated.
33433 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
33434 * lib/i386/relocator.c: New file.
33435 * lib/i386/relocator_asm.S: Likewise.
33436 * lib/i386/relocator_backward.S: Likewise.
33437 * lib/mips/relocator.c: Likewise.
33438 * lib/mips/relocator_asm.S: Likewise.
33439 * lib/relocator.c: Likewise.
33440 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
33441 (entry): Removed.
33442 (playground): Likewise.
33443 (grub_multiboot_payload_orig): New variable.
33444 (grub_multiboot_payload_dest): Likewise.
33445 (grub_multiboot_payload_size): Likewise.
33446 (grub_multiboot_payload_eip): Likewise.
33447 (grub_multiboot_payload_esp): Likewise.
33448 (grub_multiboot_boot): Use grub_relocator32_boot.
33449 (grub_multiboot_unload): Free relocators.
33450 (grub_multiboot): Setup stack. Use relocators.
33451 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
33452 (grub_multiboot_load_elfXX): Use relocators.
33453 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
33454 (grub_multiboot_payload_size): Likewise.
33455 (grub_multiboot_payload_dest): Likewise.
33456 (grub_multiboot_payload_entry_offset): Likewise.
33457 (grub_multiboot_forward_relocator): Likewise.
33458 (grub_multiboot_backward_relocator): Likewise.
33459 (grub_multiboot_real_boot): Likewise.
33460 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
33461 (grub_xnu_entry_point): Likewise.
33462 (grub_xnu_arg1): Likewise.
33463 (grub_xnu_stack): Likewise.
33464 (grub_xnu_launch): Removed.
33465 (grub_xnu_boot_resume): New function.
33466 (grub_xnu_boot): Use relocators.
33467 * loader/i386/xnu_helper.S: Removed.
33468 * loader/xnu.c (grub_xnu_heap_start): New variable.
33469 (grub_xnu_heap_size): Likewise.
33470 (grub_xnu_heap_malloc): Use relocators.
33471 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
33472
33473 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33474
33475 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
33476 anything.
33477
33478 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33479
33480 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
33481 GRUB_ERR_NONE before calling grub_env_set.
33482
33483 2009-12-12 Robert Millan <rmh@aybabtu.com>
33484
33485 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
33486 * genmk.rb (video): New variable.
33487 (CLEANFILES, VIDEOFILES): Add #{video}.
33488 (#{video}): New target rule.
33489 * genvideolist.sh: New file.
33490 * Makefile.in (pkglib_DATA): Add video.lst.
33491 (video.lst): New target rule.
33492 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
33493 `video.lst'.
33494 * util/grub.d/30_os-prober.in: Replace `vbe' with
33495 ${GRUB_VIDEO_BACKEND}.
33496
33497 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
33498
33499 * THANKS: Add David Miller.
33500
33501 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
33502
33503 libpciaccess support.
33504
33505 * Makefile.in (LIBPCIACCESS): New variable.
33506 (enable_grub_emu_pci): Likewise.
33507 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
33508 util/pci.c and commands/lspci.c.
33509 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
33510 * configure.ac (grub-emu-pci): New option.
33511 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
33512 (grub_pci_device_unmap_range): Likewise.
33513 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
33514 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
33515 (grub_pci_address_t) [!GRUB_UTIL]: New type.
33516 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
33517 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
33518 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
33519 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
33520 * include/grub/pciutils.h: New file.
33521 * util/pci.c: Likewise.
33522
33523 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
33524
33525 * util/misc.c: Don't include <errno.h> twice.
33526
33527 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
33528
33529 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
33530 name in an error message.
33531 (grub_biosdisk_rw): Likewise.
33532
33533 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33534
33535 Eliminate NTFS 4Gib barrier.
33536
33537 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
33538 (read_run_data): Likewise.
33539 (grub_ntfs_read_run_list): Likewise.
33540 (grub_ntfs_read_block): Likewise.
33541 (grub_ntfs_iterate_dir): Likewise.
33542 (read_mft): Likewise.
33543 (read_data): Likewise.
33544 Use COM_LOG_LEN.
33545 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
33546 to avoid 64-bit division
33547 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
33548 (grub_ntfs_rlst): Use grub_disk_addr_t.
33549
33550 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33551
33552 Eliminate grub-fstest 4Gib barrier.
33553
33554 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
33555 (read_file): Fix error reporting.
33556
33557 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33558
33559 Eliminate hexdump 4Gib barrier.
33560
33561 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
33562 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
33563
33564 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33565
33566 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
33567 Fixes amarsh bug.
33568
33569 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
33570
33571 Remove miscellaneous files in distclean target.
33572
33573 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
33574
33575 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
33576
33577 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
33578 if they're already set. This resolves the conflict between my
33579 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
33580 fixing the --grub-probe option again.
33581 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
33582 change on 2009-10-06, so that we now once again source
33583 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
33584
33585 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
33586
33587 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
33588 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
33589 `util/devicemap.c'.
33590
33591 2009-12-08 Carles Pina i Estany <carles@pina.cat>
33592
33593 * include/grub/misc.h (grub_printf_): New declaration.
33594 * kern/misc.c (grub_printf_): New definition.
33595 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
33596 instead of `grub_printf' and `_'.
33597 * normal/menu_entry.c (store_completion): Likewise.
33598 (run): Likewise.
33599 (grub_menu_entry_run): Likewise.
33600 * normal/menu_text.c (grub_wait_after_message): Likewise.
33601 (notify_booting): Likewise.
33602 (notify_fallback): Likewise.
33603 (notify_execution_failure): Likewise.
33604
33605 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
33606
33607 * configure.ac: Check for vasprintf.
33608 * util/misc.c (asprintf): Move allocation from here ...
33609 (vasprintf): ... to here. New function.
33610 (xasprintf): New function.
33611 * include/grub/util/misc.h (vasprintf, xasprintf): Add
33612 prototypes.
33613 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
33614 * util/grub-mkfont.c (write_font): Likewise.
33615 * util/grub-probe.c (probe): Likewise.
33616 * util/hostdisk.c (make_device_name): Likewise.
33617
33618 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
33619
33620 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
33621 anything even prefixed with 'cdrom' as a cdrom.
33622
33623 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
33624
33625 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
33626 mount points.
33627
33628 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33629
33630 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
33631 grub_gettext_msg_list.
33632 (grub_gettext_gettranslation_from_position): Return const char *
33633 and not char *.
33634 (grub_gettext_translate): Add the translated strings into a list,
33635 returns from the list if existing there.
33636 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
33637 (grub_gettext_delete_list): Delete the list.
33638 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
33639 lang environment variable is changed.
33640 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
33641
33642 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33643
33644 Rename kernel.mod to kernel.img.
33645
33646 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
33647 (kernel_mod_EXPORTS): Rename to ...
33648 (kernel_img_EXPORTS): ... this.
33649 (kernel_mod_SOURCES): Rename to ...
33650 (kernel_img_SOURCES): ... this.
33651 (kernel_mod_HEADERS): Rename to ...
33652 (kernel_img_HEADERS): ... this. All users updated.
33653 (kernel_mod_CFLAGS): Rename to ...
33654 (kernel_img_CFLAGS): ... this.
33655 (kernel_mod_ASFLAGS): Rename to ...
33656 (kernel_img_ASFLAGS): ... this.
33657 (kernel_mod_LDFLAGS): Rename to ...
33658 (kernel_img_LDFLAGS): ... this.
33659 * conf/x86_64-efi.rmk: Likewise.
33660 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
33661 (read_kernel_image): ... this. All users updated.
33662 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
33663
33664 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33665
33666 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
33667 (print_spaces): New function.
33668 (grub_print_ucs4): New function.
33669 (getstringwidth): New function.
33670 (print_message_indented): New function.
33671 (print_message): Gettexttize strings using print_message_indented.
33672 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
33673 width.
33674 (get_entry_number): Gettextize and uses dynamic terminal width.
33675 (notify_booting, notify_fallback, notify_execution_failure):
33676 Gettextize.
33677 * normal/menu_entry.c (store_completion): Cleanup the gettextized
33678 string.
33679 (run): Likewise.
33680 (grub_menu_entry_run): Likewise.
33681 * PO/POTFILES: Add normal/menu_entry.c.
33682
33683 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33684
33685 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
33686
33687 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33688
33689 * util/grub-install.in: Install gettext .mo files.
33690 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
33691
33692 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33693
33694 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
33695 grub_dprintf.
33696
33697 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
33698
33699 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
33700 non-firmware-dependant one in realmode.S takes precedence.
33701
33702 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
33703
33704 * commands/halt.c: Replace misc arch-specific headers with
33705 `<grub/misc.h>'.
33706 * commands/reboot.c: Likewise.
33707 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
33708 `<grub/misc.h>'.
33709 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
33710 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
33711 (kernel_img_SOURCES): ... to here.
33712
33713 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
33714 * include/grub/i386/pc/init.h: Likewise.
33715 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
33716 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
33717
33718 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
33719
33720 * include/grub/i386/halt.h: Remove.
33721 * include/grub/i386/reboot.h: Likewise.
33722
33723 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
33724
33725 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
33726
33727 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
33728 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
33729 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
33730 "progname.h"
33731 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
33732 * util/sparc64/ieee1275/grub-setup.c: Likewise.
33733 (usage): Add missing comma in printf.
33734
33735 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
33736
33737 Use the same reboot approach on i386 coreboot and qemu as we do on
33738 BIOS.
33739
33740 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
33741 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
33742 * kern/i386/reboot.c: Remove.
33743 * include/grub/i386/reboot.h (grub_reboot): Export function.
33744 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
33745 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
33746 0xf000:0xfff0 instead of 0xffff:0x0000.
33747 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
33748 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
33749
33750 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
33751
33752 Fix $srcdir != $objdir build.
33753
33754 * Makefile.in (po/%.po): Rewrite as ...
33755 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
33756
33757 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
33758
33759 Fix GNU/Hurd grub-install crash.
33760 * util/grub-probe.c (probe): Try to access `path' only when it is not
33761 NULL.
33762
33763 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33764
33765 Correct module naming.
33766
33767 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33768 (GRUB_MOD_INIT(efi_uga)): ... to this
33769 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33770 (GRUB_MOD_FINI(efi_uga)): ... to this
33771 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33772 (GRUB_MOD_INIT(efi_gop)): ... to this
33773 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33774 (GRUB_MOD_FINI(efi_gop)): ... to this
33775
33776 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
33777
33778 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
33779 translatable.
33780 (usage): Translate `arg' strings using gettext().
33781 Thanks to Jordi Mallach for the suggestion.
33782
33783 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33784
33785 GOP support. Based on patch from Bean
33786 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
33787
33788 * video/efi_gop.c: New file.
33789 * include/grub/efi/graphics_output.h: Likewise.
33790 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
33791 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
33792 variables.
33793 * conf/x86_64-efi.rmk: Likewise.
33794
33795 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33796
33797 Rename efi_fb to efi_uga.
33798
33799 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33800 'efi_uga.mod'.
33801 (efi_fb_mod_SOURCES): Rename this ...
33802 (efi_uga_mod_SOURCES): ... to this.
33803 (efi_fb_mod_CFLAGS): Rename this ...
33804 (efi_uga_mod_CFLAGS): ... to this.
33805 (efi_fb_mod_LDFLAGS): Rename this ...
33806 (efi_uga_mod_LDFLAGS): ... to this.
33807 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33808 'efi_uga.mod'.
33809 (efi_fb_mod_SOURCES): Rename this ...
33810 (efi_uga_mod_SOURCES): ... to this.
33811 (efi_fb_mod_CFLAGS): Rename this ...
33812 (efi_uga_mod_CFLAGS): ... to this.
33813 (efi_fb_mod_LDFLAGS): Rename this ...
33814 (efi_uga_mod_LDFLAGS): ... to this.
33815 * video/efi_fb.c: Move this ...
33816 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
33817
33818 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33819
33820 * po/README: New file. Explain our PO file workflow.
33821
33822 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33823
33824 * po/ChangeLog: Remove. Move relevant entries back to ...
33825 * ChangeLog: ... here.
33826 * po/ca.po: Remove (now handled by TLP).
33827 * po/id.po: Likewise.
33828 * po/zh_CN.po: Likewise.
33829 * Makefile.in (LINGUAS): Initialize in a way that supports
33830 empty set.
33831
33832 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33833
33834 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
33835 reliing on po/LINGUAS.
33836 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
33837 (po/%.po): ... this.
33838
33839 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33840
33841 * util/i386/efi/grub-mkimage.c: Include "progname.h".
33842 (main): Use `program_name' instead of nonexistent `progname'.
33843
33844 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33845
33846 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
33847 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
33848
33849 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
33850
33851 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
33852 commit.
33853 * conf/i386-efi.rmk: Likewise.
33854 * conf/i386-ieee1275.rmk: Likewise.
33855 * conf/powerpc-ieee1275.rmk: Likewise.
33856 * conf/sparc64-ieee1275.rmk: Likewise.
33857 * conf/x86_64-efi.rmk: Likewise.
33858
33859 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33860
33861 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
33862
33863 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33864
33865 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
33866
33867 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
33868
33869 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
33870 (grub_mkdevicemap_SOURCES): New variable.
33871 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
33872 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
33873 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
33874 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
33875 (grub_mkdevicemap_SOURCES): Remove.
33876 * conf/i386-efi.rmk: Likewise.
33877 * conf/i386-ieee1275.rmk: Likewise.
33878 * conf/i386-pc.rmk: Likewise.
33879 * conf/powerpc-ieee1275.rmk: Likewise.
33880 * conf/sparc64-ieee1275.rmk: Likewise.
33881 * conf/x86_64-efi.rmk: Likewise.
33882 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
33883 (usage): Fix strings to use `program_name'.
33884 (main): Initialize gettext.
33885 * util/grub-editenv.c: Likewise.
33886 * util/grub-emu.c: Likewise.
33887 * util/grub-fstest.c: Likewise.
33888 * util/grub-mkdevicemap.c: Likewise.
33889 * util/grub-mkfont.c: Likewise.
33890 * util/grub-mkrelpath.c: Likewise.
33891 * util/grub-pe2elf.c: Likewise.
33892 * util/grub-probe.c: Likewise.
33893 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
33894 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
33895 * util/sparc64/ieee1275/grub-setup.c: Likewise.
33896
33897 * util/misc.c: Include `"progname.h"'.
33898 (progname): Remove variable.
33899 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
33900
33901 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
33902
33903 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
33904 printf and print a newline after the menuentry header line.
33905 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
33906
33907 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
33908
33909 autoconf >= 2.60 support $(localedir).
33910
33911 * INSTALL: Note that autoconf 2.60 is required.
33912 * configure.ac (AC_PREREQ): Bump to 2.60.
33913 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
33914 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
33915
33916 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
33917
33918 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
33919 aclocal is run.
33920
33921 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
33922
33923 * normal/main.c (grub_normal_read_line): Fix off-by-one
33924 buffer overflow.
33925
33926 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
33927
33928 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
33929 "parser.grub" in grub_command_execute() call.
33930
33931 2009-11-24 Carles Pina i Estany <carles@pina.cat>
33932
33933 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
33934 * conf/i386-efi.rmk: Likewise.
33935 * conf/i386-ieee1275.rmk: Likewise.
33936 * conf/i386-pc.rmk: Likewise.
33937 * conf/powerpc-ieee1275.rmk: Likewise.
33938 * conf/sparc64-ieee1275.rmk: Likewise.
33939 * conf/x86_64-efi.rmk: Likewise.
33940 * gettext/gettex.c: Include <grub/i18n.h>.
33941 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
33942 here ...
33943 * include/grub/i18n.h: ... to here
33944 * include/grub/i18n.h: ... to here.
33945 * kern/misc.c: Include <grub/i18n.h>
33946 (grub_gettext_dummy): Move above user.
33947
33948 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33949
33950 * util/Makefile.in (install-local): Convert a `for' into a normal
33951 shell expansion.
33952
33953 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
33954
33955 * autogen.sh: Add automake call.
33956 * config.guess: Remove.
33957 * config.sub: Likewise.
33958 * install-sh: Likewise.
33959
33960 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33961
33962 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
33963
33964 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33965
33966 * util/Makefile.in (install-local): Convert a make `$(foreach)'
33967 function to a normal shell `for'.
33968
33969 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33970
33971 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
33972
33973 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33974
33975 * util/grub-mkrelpath.c: New file.
33976 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
33977 (grub_mkrelpath_SOURCES): New variable.
33978 * include/grub/util/misc.h: New function prototype.
33979 * util/misc.c (make_system_path_relative_to_its_root): New function.
33980
33981 * util/grub-mkconfig_lib.in (bindir): New variable.
33982 (grub_mkrelpath): Likewise.
33983 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
33984
33985 * util/probe.c (probe): Make the file path relative to its root.
33986 Change a info message to use the GRUB path. Enable again the
33987 check if we can read the file with GRUB facilities.
33988
33989 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
33990 to its root.
33991
33992 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33993
33994 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
33995 platform.
33996
33997 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33998
33999 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
34000 strncmp().
34001
34002 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34003
34004 * util/getroot.c (grub_util_is_dmraid): New function.
34005 (grub_util_get_dev_abstraction): Treat dmraid and multipath
34006 devices as normal ones, not as LVM.
34007
34008 2009-11-23 Carles Pina i Estany <carles@pina.cat>
34009
34010 * conf/common.rmk: Add grub-gettext_lib target and updates
34011 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
34012 LDFLAGS.
34013 * gettext/gettext.c: New file. (Reads mo files).
34014 * include/grub/file.h (grub_file_pread): New prototype.
34015 * include/grub/i18n.h (_): New prototype.
34016 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
34017 prototypes.
34018 * kern/misc.c (grub_gettext_dummy): New function.
34019 * normal/menu_text.c: Include <grub/i18n.h>.
34020 * normal/menu_text.c (print_timeout): Gettexttize string.
34021 * normal/menu_text.c (print_message): Gettexttize string.
34022 * po/POTFILES: Add `normal/menu_text.c'.
34023 * po/ca.po: Add new translations.
34024 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
34025 gettext module and defines locale_dir and lang in grub.cfg.
34026 * NEWS: Add gettext support.
34027
34028 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34029
34030 * util/hostdisk.c: Include `<grub/i18n.h>'.
34031 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
34032 (make_device_name): Rewrite using asprintf.
34033 (convert_system_partition_to_system_disk): Replace 0 with NULL.
34034 (find_system_device): If a device is not found, generate one just
34035 by reusing the OS path name.
34036 (read_device_map): Make it permissible for device.map not to exist.
34037
34038 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34039
34040 * script/sh/execute.c: Move from here ...
34041 * script/execute.c: ... to here. Update all users.
34042 * script/sh/function.c: Move from here ...
34043 * script/function.c: ... to here. Update all users.
34044 * script/sh/lexer.c: Move from here ...
34045 * script/lexer.c: ... to here. Update all users.
34046 * script/sh/main.c: Move from here ...
34047 * script/main.c: ... to here. Update all users.
34048 * script/sh/parser.y: Move from here ...
34049 * script/parser.y: ... to here. Update all users.
34050 * script/sh/script.c: Move from here ...
34051 * script/script.c: ... to here. Update all users.
34052
34053 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34054
34055 * configure.ac: Detect all `emu' platforms. Define
34056 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
34057 --enable-grub-emu logic. Disable include/grub/machine
34058 symlink on `emu' platforms.
34059
34060 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
34061 * gensymlist.sh.in: Likewise.
34062
34063 * include/grub/i386/coreboot/machine.h: Remove file.
34064 * include/grub/i386/efi/machine.h: Likewise.
34065 * include/grub/i386/ieee1275/machine.h: Likewise.
34066 * include/grub/i386/pc/machine.h: Likewise.
34067 * include/grub/i386/qemu/machine.h: Likewise.
34068 * include/grub/powerpc/ieee1275/machine.h: Likewise.
34069 * include/grub/sparc64/ieee1275/machine.h: Likewise.
34070 * include/grub/x86_64/efi/machine.h: Likewise.
34071
34072 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
34073 * commands/halt.c: Likewise.
34074 * commands/reboot.c: Likewise.
34075 * include/grub/autoefi.h: Likewise.
34076 * include/grub/i386/at_keyboard.h: Likewise.
34077 * include/grub/i386/kernel.h: Likewise.
34078 * include/grub/i386/loader.h: Likewise.
34079 * include/grub/i386/pc/memory.h: Likewise.
34080 * kern/dl.c: Likewise.
34081 * kern/i386/coreboot/init.c: Likewise.
34082 * loader/i386/bsd.c: Likewise.
34083 * loader/i386/linux.c: Likewise.
34084 * loader/multiboot_loader.c: Likewise.
34085 * term/i386/pc/serial.c: Likewise.
34086 * term/usb_keyboard.c: Likewise.
34087
34088 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
34089 `<grub/machine/machine.h>'
34090 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
34091 * util/misc.c: Remove `<grub/machine/machine.h>' and
34092 `<grub/machine/time.h>'.
34093
34094 * Makefile.in (enable_grub_emu): Remove variable.
34095 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
34096
34097 * conf/any-emu.rmk: New file.
34098 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
34099 (grub_emu_init.c): Move from here ...
34100 * conf/any-emu.rmk: ... to here.
34101
34102 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
34103 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
34104 * conf/any-emu.rmk: ... to here.
34105
34106 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34107
34108 * include/grub/parser.h (grub_parser_register): Document need
34109 of `name' parameter.
34110 * normal/main.c (grub_normal_read_line): Simplify prompt string.
34111 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
34112 "sh" to "grub".
34113
34114 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34115
34116 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
34117 `$(XGETTEXT)'.
34118 * include/grub/i18n.h (N_): New macro.
34119 * util/mkisofs/mkisofs.h: Likewise.
34120 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
34121 around N_().
34122 (usage): Use gettext() to translate help strings when printing them.
34123
34124 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34125
34126 Based on patch from Bean
34127 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
34128
34129 * video/efi_fb.c: New file.
34130 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
34131 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
34132 variables.
34133 * conf/x86_64-efi.rmk: Likewise.
34134
34135 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
34136
34137 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
34138 * util/i386/pc/grub-setup.c: Likewise.
34139
34140 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
34141
34142 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
34143 <hurd/fs.h>
34144 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
34145 file_get_storage_info to implement grub_guess_root_device.
34146
34147 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34148
34149 * Makefile.in (target): Use make's builtin $(shell) function
34150 instead of calling directly $(SHELL) to create the locale directories,
34151 inside the $(foreach) function.
34152
34153 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34154
34155 * util/grub-mkrescue.in: Print an error and usage if output option
34156 has not been given.
34157
34158 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34159
34160 Patch from Loïc Minier <loic.minier@ubuntu.com>.
34161 * util/grub.d/30_os-prober.in: Cope with Linux entries where
34162 root and /boot are on different devices.
34163
34164 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34165
34166 Fix build for srcdir != objdir.
34167
34168 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
34169 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
34170 $(srcdir).
34171 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
34172 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
34173 reference for input.
34174
34175 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34176
34177 * util/grub-mkrescue.in: Use source directory direcly (without copiing
34178 or hardlinking it). Remove -J option, Joliet is not compatible with
34179 multiple source directories.
34180
34181 2009-11-21 Carles Pina i Estany <carles@pina.cat>
34182 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34183
34184 * util/grub-mkrescue.in: Recognize `--override-directory' option.
34185 (process_input_dir): New function. Process an arbitrary input
34186 directory.
34187 Misc adjustments to support both "override mode" and system-wide mode.
34188
34189 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34190
34191 * configure.ac (UNIFONT_BDF): Rename to ...
34192 (FONT_SOURCE): ... this. Update all users.
34193
34194 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34195
34196 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
34197 to the list of unifont files to look for.
34198
34199 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34200
34201 Patch from Joe Auricchio <jauricchio@gmail.com>
34202 * commands/minicmd.c (grub_mini_cmd_clear): New function.
34203 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
34204 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
34205
34206 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34207
34208 * Makefile.in (install-local): Add a missing backslash.
34209
34210 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34211
34212 * include/grub/x86_64/io.h: New file.
34213
34214 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34215
34216 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
34217 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
34218 Include `"progname.h"'.
34219 (main): Initialize gettext.
34220 * util/i386/pc/grub-setup.c: Gettexttize.
34221 * util/i386/pc/grub-mkimage.c: Likewise.
34222
34223 * Makefile.in (po/*.po): Redefine as ...
34224 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
34225
34226 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
34227
34228 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34229
34230 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
34231 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
34232 (program_name): Remove.
34233 (main): Initialize gettext support.
34234 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
34235 Include `<libintl.h>'.
34236 (_): New macro.
34237
34238 * util/mkisofs/eltorito.c: Gettexttize.
34239 * util/mkisofs/joliet.c: Likewise.
34240 * util/mkisofs/mkisofs.c: Likewise.
34241 * util/mkisofs/multi.c: Likewise.
34242 * util/mkisofs/rock.c: Likewise.
34243 * util/mkisofs/tree.c: Likewise.
34244 * util/mkisofs/write.c: Likewise.
34245
34246 * po/POTFILES: Update with new files.
34247
34248 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34249
34250 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
34251 * util/mkisofs/iso9660.h: Likewise.
34252 * util/mkisofs/joliet.c: Likewise.
34253 * util/mkisofs/mkisofs.c: Likewise.
34254 * util/mkisofs/mkisofs.h: Likewise.
34255 * util/mkisofs/rock.c: Likewise.
34256 * util/mkisofs/tree.c: Likewise.
34257 * util/mkisofs/write.c: Likewise.
34258
34259 * util/mkisofs/eltorito.c (rcsid): Remove.
34260 * util/mkisofs/hash.c: Likewise.
34261 * util/mkisofs/joliet.c: Likewise.
34262 * util/mkisofs/name.c: Likewise.
34263 * util/mkisofs/rock.c: Likewise.
34264 * util/mkisofs/tree.c: Likewise.
34265 * util/mkisofs/write.c: Likewise.
34266
34267 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34268
34269 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
34270 instead of static allocation.
34271 * util/mkisofs/match.h: Likewise.
34272
34273 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34274
34275 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
34276 and `util/grub.d/10_linux.in'.
34277 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
34278 translatable Shell files.
34279
34280 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34281
34282 * Makefile.in ($(srcdir)/aclocal.m4): New target.
34283
34284 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34285
34286 * INSTALL: Document Automake is needed for bootstrap.
34287 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
34288 * util/grub.d/10_kfreebsd.in (bindir): New variable.
34289 Add gettext initialization.
34290 (kfreebsd_entry): Make menuentry output translatable.
34291
34292 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34293
34294 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
34295 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
34296 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
34297 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
34298 (LINGUAS): Auto-generate using `po/LINGUAS'.
34299 * po/LINGUAS: New file.
34300
34301 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34302
34303 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
34304 other things).
34305 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
34306 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
34307 bindtextdomain() calls for gettext initialization.
34308
34309 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34310
34311 * gnulib/progname.c: New file (imported from Gnulib).
34312 * gnulib/progname.h: Likewise.
34313 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34314 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
34315 (usage): Replace `progname' with `program_name'.
34316 (main): Use set_program_name() for program name initialization.
34317
34318 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34319
34320 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
34321 from here ...
34322 * Makefile.in (CPPFLAGS): ... to here.
34323
34324 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34325
34326 * aclocal.m4: Move from here ...
34327 * acinclude.m4: ... to here.
34328 * autogen.sh: Add call to `aclocal'.
34329 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
34330
34331 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34332
34333 * Makefile.in (CLEANFILES): Add `po/*.mo'.
34334 (LINGUAS): New variable.
34335 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
34336 (install-local): Install MO files.
34337 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
34338 * include/grub/i18n.h: New file.
34339 * po/POTFILES: New file.
34340 * po/ca.po: New file.
34341 * util/grub.d/10_linux.in (bindir): New variable.
34342 Add gettext initialization.
34343 (linux_entry): Make menuentry output translatable.
34344 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
34345 (usage): Make --help output translatable.
34346 (main): Initialize gettext.
34347
34348 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34349
34350 * import_gcry.py: New file (written by Vladimir with minor
34351 adjustments).
34352 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
34353 ciphers.
34354 * INSTALL: Document that Python is required for bootstrap.
34355
34356 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34357
34358 Import ciphers from libgcrypt 1.4.4.
34359
34360 * lib/libgcrypt/cipher/ChangeLog
34361 * lib/libgcrypt/cipher/ac.c
34362 * lib/libgcrypt/cipher/arcfour.c
34363 * lib/libgcrypt/cipher/bithelp.h
34364 * lib/libgcrypt/cipher/blowfish.c
34365 * lib/libgcrypt/cipher/camellia-glue.c
34366 * lib/libgcrypt/cipher/camellia.c
34367 * lib/libgcrypt/cipher/camellia.h
34368 * lib/libgcrypt/cipher/cast5.c
34369 * lib/libgcrypt/cipher/cipher.c
34370 * lib/libgcrypt/cipher/crc.c
34371 * lib/libgcrypt/cipher/des.c
34372 * lib/libgcrypt/cipher/dsa.c
34373 * lib/libgcrypt/cipher/ecc.c
34374 * lib/libgcrypt/cipher/elgamal.c
34375 * lib/libgcrypt/cipher/hash-common.c
34376 * lib/libgcrypt/cipher/hash-common.h
34377 * lib/libgcrypt/cipher/hmac-tests.c
34378 * lib/libgcrypt/cipher/md.c
34379 * lib/libgcrypt/cipher/md4.c
34380 * lib/libgcrypt/cipher/md5.c
34381 * lib/libgcrypt/cipher/primegen.c
34382 * lib/libgcrypt/cipher/pubkey.c
34383 * lib/libgcrypt/cipher/rfc2268.c
34384 * lib/libgcrypt/cipher/rijndael-tables.h
34385 * lib/libgcrypt/cipher/rijndael.c
34386 * lib/libgcrypt/cipher/rmd.h
34387 * lib/libgcrypt/cipher/rmd160.c
34388 * lib/libgcrypt/cipher/rsa.c
34389 * lib/libgcrypt/cipher/seed.c
34390 * lib/libgcrypt/cipher/serpent.c
34391 * lib/libgcrypt/cipher/sha1.c
34392 * lib/libgcrypt/cipher/sha256.c
34393 * lib/libgcrypt/cipher/sha512.c
34394 * lib/libgcrypt/cipher/tiger.c
34395 * lib/libgcrypt/cipher/twofish.c
34396 * lib/libgcrypt/cipher/whirlpool.c
34397
34398 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34399
34400 Fix build for systems without error().
34401
34402 * gnulib/error.c: New file (imported from Gnulib).
34403 * gnulib/error.h: Likewise.
34404 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
34405 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
34406 (this variable is now used by error()).
34407
34408 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34409
34410 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
34411 instead of relying that char is signed.
34412
34413 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
34414
34415 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
34416 blocksize different from specified.
34417 (grub_pxefs_read): Likewise.
34418
34419 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34420
34421 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
34422
34423 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
34424 (grub_ata_readwrite): Likewise. Update 2 format strings.
34425 (grub_atapi_read): Likewise.
34426
34427 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
34428 * conf/i386.rmk (pkglib_MODULES): ... to here ...
34429 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
34430 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
34431 (ata_mod_LDFLAGS): Move from here ...
34432 * conf/i386.rmk: ... to here ...
34433 * conf/x86_64-efi.rmk: ... and here.
34434 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
34435 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
34436
34437 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34438
34439 Relicense multiboot.h, with RMS' blessing.
34440
34441 * include/multiboot.h: Change to X11 license.
34442
34443 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
34444
34445 Support --version in grub-mkisofs.
34446
34447 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
34448 (OPTION_VERSION): New macro.
34449 (ld_options): Recognize --version.
34450 (usage): Move `program_name' from here ...
34451 (program_name): ... to here. Add `static' qualifier.
34452 (main): Recognize `OPTION_VERSION'.
34453
34454 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
34455
34456 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
34457 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
34458
34459 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34460
34461 Fix help2man generation for mkisofs.
34462
34463 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
34464 (usage): Send output to stdout (rather than stderr).
34465
34466 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34467
34468 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
34469 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34470 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
34471 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34472 (bin_SCRIPTS): Add `grub-mkfloppy'.
34473 (grub_mkfloppy_SOURCES): New variable.
34474
34475 * util/grub-mkrescue.in: New file.
34476 * util/i386/pc/grub-mkfloppy.in: New file.
34477
34478 * util/i386/coreboot/grub-mkrescue.in: Remove.
34479 * util/i386/pc/grub-mkrescue.in: Remove.
34480
34481 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34482
34483 * include/grub/multiboot.h (struct grub_multiboot_header): Move
34484 from here ...
34485 * include/multiboot.h (struct multiboot_header): ... to here. Update
34486 all users.
34487 * include/grub/multiboot.h (struct grub_multiboot_info): Move
34488 from here ...
34489 * include/multiboot.h (struct multiboot_info): ... to here. Update
34490 all users.
34491 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
34492 from here ...
34493 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
34494 Update all users.
34495 * include/grub/multiboot.h (struct grub_mod_list): Move
34496 from here ...
34497 * include/multiboot.h (struct multiboot_mod_list): ... to here.
34498 Update all users.
34499
34500 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34501
34502 * include/multiboot2.h (multiboot_word): Rename from this ...
34503 (multiboot2_word): ... to this. Update all users.
34504 (multiboot_header): Rename from this ...
34505 (multiboot2_header): ... to this. Update all users.
34506 (multiboot_tag_header): Rename from this ...
34507 (multiboot2_tag_header): ... to this. Update all users.
34508 (multiboot_tag_start): Rename from this ...
34509 (multiboot2_tag_start): ... to this. Update all users.
34510 (multiboot_tag_name): Rename from this ...
34511 (multiboot2_tag_name): ... to this. Update all users.
34512 (multiboot_tag_module): Rename from this ...
34513 (multiboot2_tag_module): ... to this. Update all users.
34514 (multiboot_tag_memory): Rename from this ...
34515 (multiboot2_tag_memory): ... to this. Update all users.
34516 (multiboot_tag_unused): Rename from this ...
34517 (multiboot2_tag_unused): ... to this. Update all users.
34518 (multiboot_tag_end): Rename from this ...
34519 (multiboot2_tag_end): ... to this. Update all users.
34520
34521 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34522
34523 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
34524 this platform we should support Multiboot1 first.
34525
34526 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
34527 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
34528 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
34529
34530 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34531
34532 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
34533 of write calls (converting them to fwrite() if they aren't already).
34534 (get_torito_desc): Likewise.
34535 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
34536
34537 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34538
34539 * util/i386/pc/grub-install.in: Move from here ...
34540 * util/grub-install.in: ... to here. Update all users.
34541
34542 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
34543
34544 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
34545
34546 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34547
34548 Support for El Torito without floppy emulation.
34549
34550 * util/mkisofs/eltorito.c: Include `<errno.h>'.
34551 (init_boot_catalog): Improve error handling.
34552 (get_torito_desc): Don't use floppy emulation unless requested by
34553 user. Patch boot information table when requested via
34554 `-boot-info-table'.
34555 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
34556 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
34557 (use_boot_info_table): New variables.
34558 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
34559 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
34560 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
34561 `--eltorito-emul-floppy'.
34562 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
34563 and `OPTION_ELTORITO_EMUL_FLOPPY'.
34564 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
34565 (use_boot_info_table, get_731): New prototypes.
34566 * util/mkisofs/write.c (get_731): New function.
34567
34568 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
34569
34570 Fix the generation of the man page.
34571
34572 * util/pc/i386/grub-install.in: Source
34573 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
34574
34575 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34576
34577 Large file support for grub-mkisofs.
34578
34579 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
34580 * util/mkisofs/mkisofs.c (next_extent, last_extent)
34581 (session_start): Upgrade type to `uint64_t'. Update all users.
34582 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
34583 (struct directory_entry): Upgrade type of `starting_block' and
34584 `size' to `uint64_t'. Update all users.
34585 (struct deferred): Remove unused structure.
34586 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
34587 Update all users.
34588 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
34589 file is larger than `UINT32_MAX'.
34590 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
34591 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
34592 return value.
34593 (struct deferred_write): Upgrade type of `extent' and `size' to
34594 `uint64_t'. Update all users.
34595 (last_extent_written): Upgrade type to `uint64_t'. Update all
34596 users.
34597 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
34598 Update all users. Upgrade type of `remain' to `int64_t' and
34599 `use' to `size_t'. Use error() to handle fread() errors.
34600 (write_files): Rely on write_one_file() rather than calling
34601 xfwrite() directly.
34602
34603 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
34604
34605 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
34606
34607 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34608
34609 * util/mkisofs/fnmatch.c: Remove.
34610 * util/mkisofs/getopt1.c: Likewise.
34611 * util/mkisofs/getopt.c: Likewise.
34612 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
34613 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
34614 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
34615 `gnulib/getopt1.c' and `gnulib/getopt.c'.
34616 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
34617
34618 * configure.ac: Detect `mingw32msvc' host_os.
34619 Check for lstat(), getuid() and getgid().
34620
34621 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
34622 instances of `u_char' with `uint8_t'.
34623
34624 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
34625 [!HAVE_GETUID] (getuid): New function (stub).
34626 [!HAVE_GETGID] (getgid): Likewise.
34627 [!HAVE_LSTAT] (lstat): Likewise.
34628 [!S_IROTH] (S_IROTH): New macro (dummy).
34629 [!S_IRGRP] (S_IRGRP): Likewise.
34630
34631 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34632
34633 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
34634 conditional expression).
34635
34636 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34637
34638 Import from Gnulib.
34639
34640 * gnulib/fnmatch.c: New file.
34641 * gnulib/fnmatch.h: Likewise.
34642 * gnulib/fnmatch_loop.c: Likewise.
34643 * gnulib/getopt.c: Likewise.
34644 * gnulib/getopt.h: Likewise.
34645 * gnulib/getopt1.c: Likewise.
34646 * gnulib/getopt_int.h: Likewise.
34647 * gnulib/gettext.h: Likewise.
34648
34649 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34650
34651 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
34652 * normal/handler.c (read_handler_list): Likewise.
34653
34654 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34655
34656 Misc cleanup.
34657
34658 * kern/command.c (grub_register_command_prio): Use
34659 grub_zalloc() instead of explicitly zeroing data.
34660 * kern/list.c: Include `<grub/mm.h>'.
34661 (grub_named_list_find): Replace `0' with `NULL'.
34662 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
34663 (fs_module_list): Change type to `grub_named_list_t'. Update all
34664 users.
34665 * normal/dyncmd.c (read_command_list): Add space between function
34666 call and parenthesis.
34667 * normal/handler.c (read_handler_list): Likewise.
34668
34669 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34670
34671 * normal/auth.c (punishment_delay): Moved from here ...
34672 (grub_auth_strcmp): ... to here (inside function).
34673
34674 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34675
34676 * include/grub/list.h (struct grub_named_list): Remove `const'
34677 qualifier from `name'.
34678 (struct grub_prio_list): Likewise.
34679
34680 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34681
34682 * normal/auth.c: Include `<grub/time.h>'.
34683 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
34684
34685 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34686
34687 * normal/auth.c (punishment_delay): New variable.
34688 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
34689 (grub_auth_check_authentication): Punish failed login attempts with
34690 an incremental (2^N) delay.
34691
34692 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34693
34694 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
34695 path with $(srcdir).
34696
34697 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34698
34699 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
34700
34701 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34702
34703 * util/i386/coreboot/grub-mkrescue.in: New file.
34704 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
34705 variables.
34706
34707 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
34708 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
34709 * configure.ac: Add header and function checks to satisfy grub-mkisofs
34710 requirements.
34711 * util/mkisofs/defaults.h: New file.
34712 * util/mkisofs/eltorito.c: Likewise.
34713 * util/mkisofs/exclude.h: Likewise.
34714 * util/mkisofs/fnmatch.c: Likewise.
34715 * util/mkisofs/getopt.c: Likewise.
34716 * util/mkisofs/getopt1.c: Likewise.
34717 * util/mkisofs/hash.c: Likewise.
34718 * util/mkisofs/include/fctldefs.h: Likewise.
34719 * util/mkisofs/include/mconfig.h: Likewise.
34720 * util/mkisofs/include/prototyp.h: Likewise.
34721 * util/mkisofs/include/statdefs.h: Likewise.
34722 * util/mkisofs/iso9660.h: Likewise.
34723 * util/mkisofs/joliet.c: Likewise.
34724 * util/mkisofs/match.c: Likewise.
34725 * util/mkisofs/match.h: Likewise.
34726 * util/mkisofs/mkisofs.c: Likewise.
34727 * util/mkisofs/mkisofs.h: Likewise.
34728 * util/mkisofs/multi.c: Likewise.
34729 * util/mkisofs/name.c: Likewise.
34730 * util/mkisofs/rock.c: Likewise.
34731 * util/mkisofs/tree.c: Likewise.
34732 * util/mkisofs/write.c: Likewise.
34733
34734 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34735
34736 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
34737 being insecure.
34738
34739 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34740
34741 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
34742 `grub-mkimage' (and use $0 when possible).
34743
34744 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34745
34746 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
34747 error message for excessively large memory map.
34748
34749 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34750
34751 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
34752 executable bit.
34753
34754 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34755
34756 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
34757 message for coreboot users.
34758
34759 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
34760
34761 Fix build with GNU gold.
34762
34763 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
34764 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
34765 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
34766 link addresses.
34767 * aclocal.m4: Likewise.
34768
34769 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
34770
34771 * configure.ac (AC_PREREQ): Bump to 2.59d.
34772 * INSTALL: Make it more clear when Autoconf and Ruby are
34773 needed and when to run `./autogen.sh'.
34774
34775 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
34776
34777 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
34778 OSes.
34779
34780 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34781
34782 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
34783
34784 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34785
34786 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
34787 giving it to GNU Mach.
34788
34789 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34790
34791 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
34792 GNU partition number to get internal GRUB partition number.
34793
34794 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34795
34796 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
34797 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
34798
34799 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
34800
34801 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
34802 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
34803 case.
34804
34805 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
34806
34807 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
34808
34809 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34810
34811 Fix build problem.
34812
34813 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
34814 `-isystem=$(srcdir)/include'.
34815
34816 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34817
34818 * util/i386/pc/grub-install.in: Remove hint that device.map should be
34819 checked (grub-install doesn't currently rely on it).
34820
34821 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
34822
34823 Revert SVN r2660.
34824
34825 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
34826 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
34827 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
34828 * conf/i386-ieee1275.rmk: Likewise.
34829 * conf/i386-pc.rmk: Likewise.
34830 * conf/powerpc-ieee1275.rmk: Likewise.
34831 * conf/sparc64-ieee1275.rmk: Likewise.
34832 * conf/x86_64-efi.rmk: Likewise.
34833
34834 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34835
34836 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
34837
34838 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34839
34840 * include/grub/misc.h: Stop checking for APPLE_CC.
34841
34842 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34843
34844 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
34845 doesn't cause an infinite call loop.
34846
34847 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
34848
34849 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
34850 strings.
34851
34852 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34853
34854 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
34855 variable.
34856 * Makefile.in: Likewise.
34857
34858 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34859
34860 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
34861
34862 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34863
34864 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
34865
34866 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34867
34868 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
34869
34870 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34871
34872 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
34873 from here ...
34874 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
34875
34876 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34877
34878 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
34879 in $(MAKEINFO) invocation. This makes it clear in output that
34880 errors are being ignored.
34881
34882 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34883
34884 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
34885 from here ...
34886 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
34887 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
34888 * conf/i386-ieee1275.rmk: Likewise.
34889 * conf/i386-pc.rmk: Likewise.
34890 * conf/powerpc-ieee1275.rmk: Likewise.
34891 * conf/sparc64-ieee1275.rmk: Likewise.
34892 * conf/x86_64-efi.rmk: Likewise.
34893
34894 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
34895
34896 * util/grub-editenv.c (main): If only a command is given, use
34897 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
34898 (usage): FILENAME is now optional and has a default.
34899
34900 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
34901
34902 Improve grub-mkconfig performance when there are several menu
34903 entries on a single filesystem.
34904
34905 * util/grub.d/10_linux.in (linux_entry): Cache the output of
34906 prepare_grub_to_access_device.
34907 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
34908 * util/grub.d/30_os-prober.in: Likewise.
34909
34910 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34911
34912 * util/grub.d/10_freebsd.in: Remove.
34913 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
34914 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
34915
34916 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34917
34918 * docs/grub.cfg: Fix example usage of *BSD loaders.
34919
34920 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34921
34922 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
34923 grub_util_error() call.
34924
34925 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34926
34927 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
34928 `reserved_first_sector' member.
34929 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
34930 `reserved_first_sector' to 1.
34931 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
34932 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
34933 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
34934 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
34935 filesystems which begin at first sector.
34936 (options): New option --skip-fs-probe.
34937 (main): Handle --skip-fs-probe and pass it to setup().
34938
34939 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34940
34941 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
34942 (memset): Fix function prototype.
34943
34944 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34945 2009-10-25 Vasily Averin <vvs@parallels.com>
34946
34947 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
34948 `dirent.direntlen == 0'.
34949
34950 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34951
34952 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
34953 `cpio'.
34954 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
34955
34956 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34957
34958 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
34959 `__trampoline_setup' and `__ucmpdi2'.
34960 * include/grub/powerpc/libgcc.h: Only export symbols for functions
34961 that libgcc provides.
34962
34963 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34964
34965 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
34966 * include/grub/sparc64/libgcc.h (memset): Likewise.
34967 * include/grub/misc.h (memset, memcmp): New function prototypes.
34968
34969 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34970
34971 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
34972 `cpio'.
34973 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
34974
34975 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34976
34977 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
34978 * docs/grub.cfg: Compensate for recent change in multiboot
34979 loader (since 2009-08-14 it won't pass filename to payload).
34980 * util/grub.d/10_hurd.in: Likewise.
34981
34982 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
34983
34984 * config.guess: Update to latest version from config git
34985 repository.
34986 * config.sub: Likewise.
34987
34988 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
34989
34990 Fix build on sparc64.
34991
34992 * configure.ac: Perform checks for libgcc symbols before
34993 adding `-nostdlib' to LDFLAGS.
34994
34995 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
34996
34997 Let user specify OpenBSD root device.
34998
34999 * loader/i386/bsd.c (openbsd_root): New variable.
35000 (openbsd_opts): New option 'root'.
35001 (OPENBSD_ROOT_ARG): New macro.
35002 (grub_openbsd_boot): Use 'openbsd_root'.
35003 (grub_cmd_openbsd): Fill 'openbsd_root'.
35004
35005 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
35006
35007 * NEWS: Misc adjustments.
35008
35009 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
35010
35011 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
35012
35013 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
35014
35015 * configure.ac: Bump version to 1.97.
35016
35017 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
35018
35019 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
35020 -mno-3dnow on x86 architectures. Some toolchains enable these
35021 features by default, but they rely on registers that aren't enabled
35022 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
35023
35024 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
35025
35026 Make entry text a bit more readable.
35027
35028 * util/grub.d/10_linux.in: Add `with' before `Linux'.
35029
35030 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35031
35032 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
35033
35034 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35035
35036 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
35037 operations.
35038
35039 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35040
35041 * configure.ac: Add missing dollar.
35042
35043 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35044
35045 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
35046
35047 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
35048 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
35049 exports.
35050 * include/grub/sparc64/libgcc.h: Likewise. Use
35051 preprocessor conditionals.
35052
35053 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35054
35055 * conf/common.rmk (grub-dumpbios): Remove rule.
35056 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
35057 * util/grub-dumpbios.in: Remove file.
35058
35059 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35060
35061 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
35062 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
35063
35064 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
35065 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
35066 users.
35067
35068 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
35069 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
35070 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
35071 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
35072 users.
35073
35074 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
35075
35076 * term/tparm.c: Switch to GPLv3.
35077
35078 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35079
35080 * include/grub/i386/cpuid.h: Add header protection.
35081
35082 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35083
35084 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
35085
35086 * include/grub/i386/cpuid.h: New file.
35087 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
35088 (has_longmode): Rename to ...
35089 (grub_cpuid_has_longmode): ... this. Update all users. Remove
35090 `static' attribute.
35091 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
35092 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
35093 on a CPU that doesn't implement AMD64 instruction set.
35094
35095 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35096
35097 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
35098 that version.texi is rebuilt on version number changes.
35099
35100 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35101
35102 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
35103 Fixes bug #27602.
35104
35105 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35106
35107 * util/i386/pc/grub-install.in: Source
35108 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
35109 that the --grub-probe option will work.
35110 * util/sparc64/ieee1275/grub-install.in: Likewise.
35111
35112 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
35113
35114 * configure.ac: Bump version to 1.97~beta4.
35115
35116 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
35117
35118 Resync grub-mkdevicemap in x86_64-efi.
35119
35120 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
35121 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
35122 `util/devicemap.c'.
35123
35124 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
35125
35126 * util/grub-editenv.c (create_envblk_file): Write new block with a
35127 .new suffix and then rename it into place, to ensure atomic
35128 creation.
35129
35130 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
35131
35132 Do not automatically install headers.
35133
35134 * Makefile.in (include_DATA): Remove. Update all users.
35135
35136 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
35137
35138 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
35139 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
35140
35141 * util/osdetect.lua: Remove.
35142 * script/lua/lauxlib.c: Likewise.
35143 * script/lua/ldebug.c: Likewise.
35144 * script/lua/grub_main.c: Likewise.
35145 * script/lua/lauxlib.h: Likewise.
35146 * script/lua/ldebug.h: Likewise.
35147 * script/lua/ltablib.c: Likewise.
35148 * script/lua/liolib.c: Likewise.
35149 * script/lua/lstrlib.c: Likewise.
35150 * script/lua/lualib.h: Likewise.
35151 * script/lua/ldo.c: Likewise.
35152 * script/lua/ldump.c: Likewise.
35153 * script/lua/ldo.h: Likewise.
35154 * script/lua/loslib.c: Likewise.
35155 * script/lua/lundump.c: Likewise.
35156 * script/lua/grub_lib.c: Likewise.
35157 * script/lua/ldblib.c: Likewise.
35158 * script/lua/lundump.h: Likewise.
35159 * script/lua/lmem.c: Likewise.
35160 * script/lua/grub_lib.h: Likewise.
35161 * script/lua/lmathlib.c: Likewise.
35162 * script/lua/lstate.c: Likewise.
35163 * script/lua/ltm.c: Likewise.
35164 * script/lua/lvm.c: Likewise.
35165 * script/lua/lmem.h: Likewise.
35166 * script/lua/lstate.h: Likewise.
35167 * script/lua/ltm.h: Likewise.
35168 * script/lua/ltable.c: Likewise.
35169 * script/lua/lvm.h: Likewise.
35170 * script/lua/llex.c: Likewise.
35171 * script/lua/lgc.c: Likewise.
35172 * script/lua/grub_lua.h: Likewise.
35173 * script/lua/loadlib.c: Likewise.
35174 * script/lua/lfunc.c: Likewise.
35175 * script/lua/lopcodes.c: Likewise.
35176 * script/lua/lparser.c: Likewise.
35177 * script/lua/ltable.h: Likewise.
35178 * script/lua/llex.h: Likewise.
35179 * script/lua/lgc.h: Likewise.
35180 * script/lua/lfunc.h: Likewise.
35181 * script/lua/lbaselib.c: Likewise.
35182 * script/lua/lopcodes.h: Likewise.
35183 * script/lua/lparser.h: Likewise.
35184 * script/lua/lzio.c: Likewise.
35185 * script/lua/linit.c: Likewise.
35186 * script/lua/lobject.c: Likewise.
35187 * script/lua/llimits.h: Likewise.
35188 * script/lua/lstring.c: Likewise.
35189 * script/lua/lzio.h: Likewise.
35190 * script/lua/lapi.c: Likewise.
35191 * script/lua/lcode.c: Likewise.
35192 * script/lua/lua.h: Likewise.
35193 * script/lua/lobject.h: Likewise.
35194 * script/lua/lstring.h: Likewise.
35195 * script/lua/lapi.h: Likewise.
35196 * script/lua/lcode.h: Likewise.
35197 * script/lua/luaconf.h: Likewise.
35198
35199 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
35200
35201 * docs/grub.texi (Command-line and menu entry commands): Document
35202 date and echo commands.
35203
35204 2009-09-24 Pavel Roskin <proski@gnu.org>
35205
35206 * include/grub/kernel.h (struct grub_module_header): Remove
35207 `grub_module_header_types'. Make `type' unsigned. Make `size'
35208 32-bit on all platforms.
35209 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
35210 8-bit field. Use grub_host_to_target32() for `size'.
35211 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
35212 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
35213 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
35214
35215 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35216
35217 Fix "lost keypress" bug in at_keyboard.
35218
35219 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
35220 Checks for readyness of input buffer (without flushing it).
35221 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
35222 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
35223
35224 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35225
35226 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
35227 size check within GRUB_MACHINE_PCBIOS section.
35228
35229 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35230
35231 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
35232 return value.
35233 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
35234 KEYBOARD_ISREADY check.
35235 (grub_at_keyboard_checkkey): Rename to ...
35236 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
35237 Remove gratuitous cast.
35238
35239 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
35240
35241 * configure.ac: Call AC_PROG_MKDIR_P.
35242 * Makefile.in (docs/stamp-vti): Create docs directory. Create
35243 version.texi in $(builddir) rather than $(srcdir).
35244 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
35245 to makeinfo's @include search path.
35246
35247 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35248
35249 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
35250
35251 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35252
35253 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
35254 for `*.dpkg-new'.
35255
35256 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
35257
35258 Build info documentation. Some code borrowed from Automake.
35259
35260 * configure.ac: Check for makeinfo.
35261 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
35262 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
35263 docs/version.texi.
35264 (MOSTLYCLEANFILES): Add vti.tmp.
35265 (docs/version.texi, docs/stamp-vti): Update automatically.
35266 (docs/grub.info): Build info documentation. Use --force and ignore
35267 errors for now.
35268 (all-local): Add $(INFOS).
35269 (install-local): Install info files.
35270 (uninstall): Uninstall info files.
35271 * docs/version.texi: Remove from revision control. This file is
35272 automatically generated on build now.
35273 * gendistlist.sh: Add `*.info'.
35274
35275 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35276
35277 * kern/term.c: Fix indentation.
35278
35279 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35280
35281 * util/hostdisk.c: Fix a comment.
35282
35283 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
35284
35285 Fix regression introduced in r2539.
35286
35287 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
35288 to 0xA1.
35289
35290 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
35291
35292 * util/grub.d/30_os-prober.in: Don't throw away stderr from
35293 os-prober. Under normal operation, it does not print anything to
35294 stderr; if it does, we need to debug it, and throwing away stderr
35295 makes that excessively difficult.
35296
35297 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
35298
35299 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
35300
35301 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35302
35303 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
35304 AC_LANG_PROGRAM from autoconf.
35305 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
35306 prototypes (fixes warning).
35307
35308 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
35309 `--disable-werror' was used.
35310
35311 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35312
35313 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
35314 uninitialized `lastaddr'.
35315
35316 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
35317
35318 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
35319
35320 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35321
35322 * commands/test.c (get_fileinfo): Return immediately if
35323 grub_fs_probe fails.
35324
35325 2009-09-14 José Martínez <xosemp@gmail.com>
35326
35327 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
35328
35329 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35330
35331 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
35332 output.
35333
35334 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
35335
35336 * configure.ac: Remove --enable-grub-pe2elf. Only build
35337 grub-pe2elf when needed by the build system itself.
35338 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
35339
35340 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35341
35342 * configure.ac: Bump version to 1.97~beta3.
35343 * docs/version.texi: Likewise.
35344
35345 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35346
35347 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
35348 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
35349 from here ...
35350 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
35351 (grub_linux_setup_video): ... to here (with some adjustments).
35352
35353 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35354
35355 Fix memory corruption issue (spotted by Colin Watson).
35356
35357 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
35358 causing returned size to be stored in an incorrect memory location.
35359 Fix use of uninitialized value when storing the returned size.
35360
35361 2009-09-12 Yves Blusseau <blusseau@zetam.org>
35362
35363 Change clean rules to properly remove files
35364
35365 * genmk.rb: add new clean rules
35366 * Makefile.in (clean): add the new targets
35367 (mostlyclean): likewise
35368
35369 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35370
35371 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
35372 to grub_uint64_t.
35373 * fs/ntfs.c (init_file): Understand 64-bit sizes for
35374 non-resident files.
35375
35376 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35377
35378 * configure.ac: Don't look for help2man when cross-compiling. Fixes
35379 part of bug #27349.
35380
35381 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35382
35383 * util/grub-mkconfig.in: Make the created config mode 400 and
35384 print a warning if it fails.
35385
35386 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
35387
35388 * util/grub.d/40_custom.in: Ask user to type custom entries below
35389 comment, rather than below 'exec tail' line.
35390
35391 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35392
35393 * util/grub.d/40_custom.in: Make sure that the explanatory text is
35394 visible in grub.cfg.
35395
35396 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35397
35398 * util/grub.d/40_custom.in: Make it a little clearer how to use this
35399 file.
35400
35401 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35402
35403 * docs/grub.cfg: Add an example menu entry for memtest86+.
35404
35405 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
35406
35407 * config.guess: Update to latest version from config git.
35408 * config.sub: Likewise.
35409
35410 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
35411
35412 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
35413 unknown-command case. Fixes bug #27320.
35414
35415 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
35416
35417 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
35418 `help' if the command exists.
35419
35420 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
35421
35422 * INSTALL: Require GCC 4.1.3 or later.
35423
35424 2009-09-06 Yves Blusseau <blusseau@zetam.org>
35425
35426 * Makefile.in (RMKFILES): add i386-qemu.rmk
35427 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
35428 $(srcdir)/stamp-h.in
35429
35430 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
35431
35432 * util/grub-probe.c (probe): Comment out buggy codepath, which
35433 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
35434 should be re-enabled after 1.97.
35435
35436 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
35437
35438 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
35439 find searches for.
35440
35441 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
35442
35443 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
35444 unnecessary calls to grub_error.
35445
35446 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
35447
35448 * NEWS: Mention `keystatus' and Unicode fonts.
35449
35450 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
35451
35452 * configure.ac: Bump version to 1.97~beta2.
35453 * docs/version.texi: Likewise.
35454
35455 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35456
35457 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
35458 containing unwind information in some cases where it previously did
35459 not. Use -fno-dwarf2-cfi-asm if available to restore the old
35460 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
35461 discussion.
35462
35463 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
35464
35465 Embedding loadenv module into grub-emu
35466
35467 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
35468 commands/loadenv.c
35469 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
35470 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
35471 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
35472 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
35473 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
35474 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
35475
35476 2009-09-03 Magnus Granberg <zorry@ume.nu>
35477
35478 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
35479 include -fPIE in the default specs.
35480 * configure.ac: Check if pie_possible is yes and add -fno-PIE
35481 to TARGET_CFLAGS.
35482
35483 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
35484
35485 * INSTALL: Note that GNU Bison 2.3 or later is required.
35486
35487 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35488
35489 * kern/i386/pc/startup.S: Fix typo.
35490
35491 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
35492
35493 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
35494 according to GCS.
35495
35496 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35497
35498 * docs/grub.texi (Naming convention): Describe one-based partition
35499 numbering.
35500 (Device syntax): Likewise.
35501 (File name syntax): Likewise.
35502 (Block list syntax): Likewise.
35503 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
35504 menu.lst.
35505 (File name syntax): Likewise.
35506 (Command-line and menu entry commands): Document acpi, blocklist,
35507 crc, export, insmod, keystatus, ls, set, and unset commands.
35508
35509 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35510
35511 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
35512 to avoid implying that only one of --shift, --ctrl, or --alt may be
35513 used.
35514
35515 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35516
35517 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
35518 rather than comparing against S_IFREG, which will almost never work.
35519
35520 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
35521
35522 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
35523 (write_blocklists): Likewise.
35524
35525 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
35526
35527 * script/lua/grub_lua.h (fputs): Supply a format string as the first
35528 argument to grub_printf.
35529
35530 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
35531
35532 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
35533 non GNU test.
35534
35535 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35536
35537 * kern/file.c (grub_file_read): Spelling fix
35538
35539 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35540
35541 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
35542 loading of headers in some cases.
35543
35544 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
35545
35546 * configure.ac: Bump version to 1.97~beta1.
35547 * docs/version.texi: Likewise.
35548
35549 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
35550
35551 * include/grub/i386/xnu.h: Add license header.
35552 include grub/err.h explicitly.
35553
35554 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35555
35556 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
35557 to `ufs' in the vfs.root.mountfrom kernel parameter.
35558
35559 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35560
35561 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
35562
35563 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
35564 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
35565
35566 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
35567 `ARRAY_SIZE' macro.
35568
35569 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35570
35571 * kern/file.c (grub_file_read): Check offset.
35572 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
35573 * fs/jfs.c (grub_jfs_read_file): Likewise.
35574 * fs/ntfs.c (grub_ntfs_read): Likewise.
35575 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
35576 * fs/minix.c (grub_minix_read_file): Correct offset check.
35577 * fs/ufs.c (grub_ufs_read_file): Likewise.
35578
35579 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35580
35581 * term/i386/pc/console.c (bios_data_area): Cast
35582 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
35583
35584 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35585
35586 1-bit optimised blitters.
35587
35588 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
35589 prototype.
35590 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35591 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35592 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35593 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35594 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35595 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35596 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
35597 function.
35598 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35599 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35600 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35601 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35602 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35603 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35604 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
35605 when possible.
35606 * video/video.c (grub_video_get_blit_format): Return
35607 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
35608
35609 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35610
35611 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
35612 the first argument to grub_printf.
35613
35614 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35615 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
35616
35617 Add `getkeystatus' terminal method. Add a new `keystatus' command
35618 to query it.
35619
35620 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
35621 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
35622 modifier key bitmasks.
35623 (struct grub_term_input): Add `getkeystatus' member.
35624 (grub_getkeystatus): Add prototype.
35625 * kern/term.c (grub_getkeystatus): New function.
35626
35627 * include/grub/i386/pc/memory.h
35628 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
35629 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
35630 Data Area layout.
35631 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
35632 (grub_console_term_input): Set `getkeystatus' member.
35633 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
35634 constants.
35635 (grub_usb_keyboard_getreport): Likewise.
35636 (grub_usb_keyboard_checkkey): Likewise.
35637 (grub_usb_keyboard_getkeystatus): New function.
35638 (grub_usb_keyboard_term): Set `getkeystatus' member.
35639
35640 * commands/keystatus.c: New file.
35641 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
35642 (keystatus_mod_SOURCES): New variable.
35643 (keystatus_mod_CFLAGS): Likewise.
35644 (keystatus_mod_LDFLAGS): Likewise.
35645 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
35646 commands/keystatus.c.
35647 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35648 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35649 * conf/i386-pc.rmk (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
35654 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35655
35656 Split befs.mod and afs.mod into *_be.mod and *.mod
35657
35658 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
35659 (grub_fstest_SOURCES): Likewise.
35660 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
35661 (afs_be_mod_SOURCES): New variable.
35662 (afs_be_mod_CFLAGS): Likewise.
35663 (afs_be_mod_LDFLAGS): Likewise.
35664 (befs_be_mod_SOURCES): Likewise.
35665 (befs_be_mod_CFLAGS): Likewise.
35666 (befs_be_mod_LDFLAGS): Likewise.
35667 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
35668 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35669 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35670 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
35671 (grub_emu_SOURCES): Likewise.
35672 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35673 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35674 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35675 * fs/afs_be.c: New file.
35676 * fs/befs_be.c: New file.
35677 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
35678 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
35679 (U16): Replaced with ...
35680 (grub_afs_to_cpu16): ...this. All users updated.
35681 (U32): Replaced with ...
35682 (grub_afs_to_cpu32): ...this. All users updated.
35683 (U64): Replaced with ...
35684 (grub_afs_to_cpu64): ...this. All users updated.
35685 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
35686 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
35687 (grub_afs_validate_sblock): Check only one endianness.
35688 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35689 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35690 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35691 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35692 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35693 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35694 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35695 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35696
35697 2009-08-26 Bean <bean123ch@gmail.com>
35698
35699 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
35700 64-bit number.
35701 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
35702 (grub_xfs_inode_block): Change return type to grub_uint64_t.
35703 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
35704
35705 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35706
35707 NetBSD memory map support.
35708
35709 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
35710 (grub_netbsd_btinfo_mmap_header): New structure.
35711 (grub_netbsd_btinfo_mmap_entry): Likewise.
35712 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
35713
35714 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35715
35716 Enable bsd.mod on coreboot.
35717
35718 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
35719 (bsd_mod_SOURCES): New variable.
35720 (bsd_mod_CFLAGS): Likewise.
35721 (bsd_mod_LDFLAGS): Likewise.
35722 (bsd_mod_ASFLAGS): Likewise.
35723 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
35724 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
35725
35726 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35727
35728 Cleanup NetBSD root support.
35729
35730 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
35731 grub_bsd_get_device.
35732 Fix typo.
35733
35734 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
35735
35736 * util/grub.d/00_header.in: Move check for the video backend of
35737 gfxterm from here ...
35738 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
35739 a suitable video backend.
35740
35741 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35742
35743 Fix breakage in grub-setup.
35744
35745 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
35746 "msdos_partition_map".
35747
35748 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35749
35750 Fix breakage in normal/auth.c.
35751
35752 * normal/auth.c (grub_iswordseparator): New function.
35753
35754 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35755
35756 Authentication support.
35757
35758 * commands/password.c: New file.
35759 * conf/common.rmk (pkglib_MODULES): Add password.mod.
35760 (password_mod_SOURCES): New variable.
35761 (password_mod_CFLAGS): Likewise.
35762 (password_mod_LDFLAGS): Likewise.
35763 (normal_mod_SOURCES): Add normal/auth.c.
35764 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
35765 normal/auth.c.
35766 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35767 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35768 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35769 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35770 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35771 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35772 * include/grub/auth.h: New file.
35773 * include/grub/err.h (grub_err_t): New enum value
35774 GRUB_ERR_ACCESS_DENIED.
35775 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
35776 'users'.
35777 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
35778 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
35779 users updated.
35780 * normal/auth.c: New file.
35781 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
35782 (grub_cmdline_run): Don't allow to go to command line without
35783 authentication.
35784 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
35785 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
35786 menuentry without superuser rights.
35787 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
35788 user isn't a superuser.
35789
35790 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35791
35792 Save space by inlining misc.c functions.
35793
35794 * kern/misc.c (grub_iswordseparator): Made static.
35795 * kern/misc.c (grub_strcat): Moved from here ...
35796 * include/grub/misc.h (grub_strcat): ... here. Inlined.
35797 * kern/misc.c (grub_strncat): Moved from here ...
35798 * include/grub/misc.h (grub_strncat): ... here. Inlined.
35799 * kern/misc.c (grub_strcasecmp): Moved from here ...
35800 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
35801 * kern/misc.c (grub_strncasecmp): Moved from here ...
35802 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
35803 * kern/misc.c (grub_isalpha): Moved from here ...
35804 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
35805 * kern/misc.c (grub_isdigit): Moved from here ...
35806 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
35807 * kern/misc.c (grub_isgraph): Moved from here ...
35808 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
35809 * kern/misc.c (grub_tolower): Moved from here ...
35810 * include/grub/misc.h (grub_tolower): ... here. Inlined.
35811
35812 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35813
35814 * script/sh/function.c (grub_script_function_find): Cut error message
35815 not to flood terminal.
35816 * script/sh/lexer.c (grub_script_yylex): Remove command line length
35817 limit.
35818 * script/sh/script.c (grub_script_arg_add): Duplicate string.
35819
35820 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
35821
35822 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
35823 `report' grub_uint8_t *.
35824 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
35825 Use a 50-millisecond timeout rather than just repeating
35826 grub_usb_keyboard_getreport 50 times.
35827 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
35828
35829 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35830
35831 Rename *_partition_map to part_*
35832
35833 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
35834 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
35835 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
35836 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
35837 All users updated.
35838 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
35839 All users updated.
35840 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
35841 * util/grub-probe.c (probe_partmap): Don't transform partition name
35842 to get module name.
35843
35844 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35845
35846 Fix OpenBSD and NetBSD support.
35847
35848 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
35849 memory address conflict.
35850 (OPENBSD_MMAP_ACPI): New definition.
35851 (OPENBSD_MMAP_NVS): Likewise.
35852 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
35853 and OPENBSD_MMAP_NVS.
35854 Add memory map terminator
35855 Explicit cast when calling grub_unix_real_boot.
35856 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
35857
35858 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35859
35860 Let user specify NetBSD root device.
35861
35862 * loader/i386/bsd.c (netbsd_root): New variable.
35863 (netbsd_opts): New option 'root'.
35864 (NETBSD_ROOT_ARG): New macro.
35865 (grub_netbsd_boot): Use 'netbsd_root'.
35866 (grub_bsd_unload): Free 'netbsd_root'.
35867 (grub_cmd_netbsd): Fill 'netbsd_root'.
35868
35869 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35870
35871 Support for 64-bit NetBSD.
35872
35873 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
35874 point when booting non-FreeBSD.
35875
35876 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35877
35878 Support --no-smp and --no-acpi for NetBSD.
35879
35880 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
35881 (NETBSD_AB_NOACPI): Likewise.
35882 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
35883 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
35884
35885 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
35886
35887 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
35888 errors.
35889 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
35890 errors. Call grub_error when needed.
35891
35892 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
35893
35894 * commands/search.c (search_fs): Try searching without autoload first.
35895 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
35896 filesystem module explicitly for faster booting.
35897
35898 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
35899
35900 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
35901
35902 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
35903
35904 * util/grub.d/30_os-prober.in: Disable os-prober if
35905 `GRUB_DISABLE_OS_PROBER' was set to true.
35906
35907 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
35908
35909 * partmap/pc.c: Rename to ...
35910 * partmap/msdos.c: ... this. Update all users.
35911 (grub_pc_partition_map): Rename to ...
35912 (grub_msdos_partition_map): ... this. Update all users.
35913
35914 * parttool/pcpart.c: Rename to ...
35915 * parttool/msdospart.c: ... this. Update all users.
35916
35917 * include/grub/pc_partition.h: Rename to ...
35918 * include/grub/msdos_partition.h: ... this. Update all users.
35919 (grub_pc_partition_bsd_entry): Rename to ...
35920 (grub_msdos_partition_bsd_entry): ... this. Update all users.
35921 (grub_pc_partition_disk_label): Rename to ...
35922 (grub_msdos_partition_disk_label): ... this. Update all users.
35923 (grub_pc_partition_entry): Rename to ...
35924 (grub_msdos_partition_entry): ... this. Update all users.
35925 (grub_pc_partition_mbr): Rename to ...
35926 (grub_msdos_partition_mbr): ... this. Update all users.
35927 (grub_pc_partition): Rename to ...
35928 (grub_msdos_partition): ... this. Update all users.
35929 (grub_pc_partition_is_empty): Rename to ...
35930 (grub_msdos_partition_is_empty): ... this. Update all users.
35931 (grub_pc_partition_is_extended): Rename to ...
35932 (grub_msdos_partition_is_extended): ... this. Update all users.
35933 (grub_pc_partition_is_bsd): Rename to ...
35934 (grub_msdos_partition_is_bsd): ... this. Update all users.
35935
35936 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
35937 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
35938 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
35939 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
35940 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
35941 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
35942 (gpt_mod_LDFLAGS): Rename to ...
35943 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
35944 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
35945 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
35946 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
35947 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
35948 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
35949 (part_gpt_mod_LDFLAGS): ... this.
35950 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
35951 `pcpart.mod' to `msdospart.mod'.
35952 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
35953 to ...
35954 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
35955 (msdospart_mod_LDFLAGS): ... this.
35956
35957 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
35958
35959 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
35960 (openbsd_opts): Likewise.
35961 (netbsd_opts): Likewise.
35962 (freebsd_flags): Added 0 terminator.
35963 (openbsd_flags): Likewise.
35964 (netbsd_flags): Likewise.
35965 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
35966 (grub_cmd_freebsd): Transformed into extended command.
35967 (grub_cmd_openbsd): Likewise.
35968 (grub_cmd_netbsd): Likewise.
35969 (cmd_freebsd): Changed type to grub_extcmd_t.
35970 (cmd_openbsd): Likewise.
35971 (cmd_netbsd): Likewise.
35972 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
35973 grub_cmd_openbsd as extended commands.
35974 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
35975 cmd_netbsd and cmd_openbsd
35976
35977 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
35978
35979 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
35980
35981 2009-08-21 Pavel Roskin <proski@gnu.org>
35982
35983 * Makefile.in (install-local): When checking if a file is in the
35984 build directory, use "test -e" to detect symlinks.
35985
35986 * Makefile.in (install-local): Remove all files in
35987 $(DESTDIR)$(pkglibdir) before installing new files there.
35988
35989 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
35990
35991 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
35992 grub-mkelfimage.
35993
35994 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
35995
35996 * util/grub-mkconfig.in: Don't use gfxterm by default if not
35997 explicitly specified by the user.
35998
35999 2009-08-18 Pavel Roskin <proski@gnu.org>
36000
36001 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
36002 grub_uint8_t pointer for data.
36003 * include/grub/fbutil.h (struct grub_video_fbblit_info):
36004 Likewise.
36005 * video/fb/fbutil.c: Remove unnecessary casts.
36006
36007 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36008
36009 VBE cleanup.
36010
36011 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
36012 (grub_vbe_set_video_mode): Save active mode info
36013 only after setting the mode.
36014 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
36015 second argument.
36016
36017 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36018
36019 Rename variables for clarity.
36020
36021 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
36022 (active_vbe_mode_info): ... this. All users updated.
36023 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
36024 All users updated.
36025 (initial_mode): Rename to ...
36026 (initial_vbe_mode): ... this. All users updated.
36027 (mode_in_use): Rename to ..
36028 (vbe_mode_in_use): ... this. All users updated.
36029 (mode_list): Rename to ..
36030 (vbe_mode_list): ... this. All users updated.
36031 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
36032 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
36033 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
36034 'mode_list_size' to 'vbe_mode_list_size'.
36035 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
36036 'best_mode_info' to 'best_vbe_mode_info' and
36037 'best_mode' to 'best_vbe_mode'
36038
36039 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36040
36041 Remove duplicate grub_video_fb_get_video_ptr.
36042
36043 * include/grub/fbutil.h (get_data_ptr): Rename to ...
36044 (grub_video_fb_get_video_ptr): ... this.
36045 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
36046 * video/fb/fbutil.c: Add comment about addressing.
36047 (get_data_ptr): Rename to ...
36048 (grub_video_fb_get_video_ptr): ... this. All users updated.
36049 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
36050
36051 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36052
36053 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
36054 grub_dprintf() that was just added.
36055
36056 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36057
36058 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
36059 (DEFAULT_VIDEO_MODE): Remove macros.
36060 (grub_linux_boot): Remove assumption that Linux has FB support,
36061 and use "text" as default video mode.
36062
36063 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
36064
36065 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
36066 grub_dprintf.
36067 * fs/fat.c (grub_fat_read_data): Likewise.
36068
36069 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36070
36071 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
36072 payload.
36073 (grub_module): Likewise.
36074
36075 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36076
36077 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
36078 mbi->cmdline but free playground.
36079
36080 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36081
36082 Handle group offset on UFS1.
36083
36084 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
36085 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
36086
36087 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36088
36089 Split ufs.mod into ufs1.mod and ufs2.mod.
36090
36091 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
36092 (grub_fstest_SOURCES): Likewise.
36093 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
36094 (ufs_mod_SOURCES): Remove.
36095 (ufs_mod_CFLAGS): Likewise.
36096 (ufs_mod_LDFLAGS): Likewise.
36097 (ufs1_mod_SOURCES): New variable.
36098 (ufs1_mod_CFLAGS): Likewise.
36099 (ufs1_mod_LDFLAGS): Likewise.
36100 (ufs2_mod_SOURCES): New variable.
36101 (ufs2_mod_CFLAGS): Likewise.
36102 (ufs2_mod_LDFLAGS): Likewise.
36103 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
36104 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36105 Likewise.
36106 (grub_emu_SOURCES): Likewise.
36107 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36108 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36109 (grub_setup_SOURCES): Likewise.
36110 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36111 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
36112 (grub_setup_SOURCES): Likewise.
36113 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36114 Likewise.
36115 * fs/ufs2.c: New file.
36116 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
36117
36118 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36119
36120 Framebuffer split.
36121
36122 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
36123 subsystem at the end.
36124 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
36125 (video_fb_mod_SOURCES): New variable.
36126 (video_fb_mod_CFLAGS): Likewise.
36127 (video_fb_mod_LDFLAGS): Likewise.
36128 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
36129 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
36130 * video/i386/pc/vbeblit.c: Moved from here ...
36131 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
36132 * video/i386/pc/vbefill.c: Moved from here ...
36133 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
36134 * video/i386/pc/vbeutil.c: Moved from here ...
36135 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
36136 * include/grub/i386/pc/vbeblit.h: Moved from here ...
36137 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
36138 * include/grub/i386/pc/vbefill.h: Moved from here ...
36139 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
36140 * include/grub/i386/pc/vbeutil.h: Moved from here ...
36141 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
36142 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
36143 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
36144 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
36145 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
36146 (grub_video_adapter): Added 'get_info_and_fini'.
36147 (grub_video_get_info_and_fini): New prototype.
36148 (grub_video_set_mode): make modestring const char *.
36149 * loader/i386/linux.c (grub_linux_setup_video): Use
36150 grub_video_get_info_and_fini.
36151 (grub_linux_boot): Move modesetting just before booting.
36152 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
36153 grub_video_get_info_and_fini.
36154 * video/i386/pc/vbe.c: Moved framebuffer part ...
36155 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
36156 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
36157 grub_video_fbstd_colors and grub_video_fb_set_palette.
36158 (grub_video_vbe_init): Clear 'framebuffer' variable and use
36159 grub_video_fb_init.
36160 (grub_video_vbe_fini): Use grub_video_fb_fini.
36161 (grub_video_vbe_setup): Use framebuffer.render_target instead of
36162 render_target and use grub_video_fb_set_active_render_target and
36163 grub_video_fb_set_palette.
36164 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
36165 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
36166 (grub_video_vbe_adapter): Use framebuffer.
36167 * video/video.c (grub_video_get_info_and_fini): New function.
36168 (grub_video_set_mode): Make modestring const char *.
36169 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
36170 values are already initialised.
36171
36172 2009-08-14 Pavel Roskin <proski@gnu.org>
36173
36174 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
36175 ABS and APPLE_CC.
36176 * boot/i386/pc/diskboot.S: Likewise.
36177 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
36178 sectors allow compilation on MacOSX.
36179 * conf/i386-pc.rmk: Enable unconditional compilation of
36180 lnxboot.img.
36181
36182 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
36183
36184 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
36185 * util/grub.d/00_header.in: Enter interruptible sleep if
36186 GRUB_HIDDEN_TIMEOUT is set.
36187
36188 2009-08-13 Yves Blusseau <blusseau@zetam.org>
36189
36190 * include/grub/symbol.h: Add the LOCAL macro.
36191 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
36192 starting with "L_".
36193
36194 2009-08-13 Pavel Roskin <proski@gnu.org>
36195
36196 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
36197 any modern compilers we support.
36198
36199 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
36200 Use local labels starting with "L_" so that Apple assembler
36201 knows they are local.
36202
36203 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
36204
36205 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
36206 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
36207 (bsd_kernel_types): ... this enum.
36208
36209 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
36210 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
36211 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
36212
36213 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
36214 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
36215 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
36216 messages.
36217
36218 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36219
36220 * util/grub-dumpdevtree: Moved from here ...
36221 * util/i386/efi/grub-dumpdevtree: ... to here.
36222 (hexify): New function. Converts a string to its hex version.
36223 Generate hex versions of "efi" and "device-properties" by calling
36224 hexify() on the ASCII strings rather than by hardcoding numbers.
36225
36226 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36227
36228 * fs/jfs.c: Update copyright year.
36229
36230 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36231
36232 * util/grub.d/00_header.in: Fix a comment.
36233 * util/grub.d/10_linux.in: Likewise.
36234 * util/grub.d/10_windows.in: Likewise.
36235 * util/grub.d/10_hurd.in: Likewise.
36236
36237 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36238
36239 * util/grub-mkconfig.in: Allow the user to specify the used font
36240 with GRUB_FONT.
36241
36242 2009-08-08 Pavel Roskin <proski@gnu.org>
36243
36244 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
36245 available, xfs.mod needs it now.
36246
36247 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
36248 the "g" modifier in sed when the intention is to strip something
36249 once. This fixes comparison of kernels with multiple dashes.
36250
36251 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
36252 on it. Add missing space before closing bracket. Fix
36253 misleading formatting.
36254
36255 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36256
36257 * docs/grub.texi: Major overhaul. Remove all sections that are
36258 specific to GRUB Legacy, or mostly composed of Legacy-specific
36259 information.
36260
36261 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36262
36263 * docs/version.texi: New file. Provides version information for
36264 grub.texi.
36265
36266 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36267
36268 * docs/grub.texi: Update CVS information to SVN.
36269 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
36270
36271 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36272
36273 * util/grub-mkconfig.in: Remove a wrong `fi'.
36274
36275 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36276
36277 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
36278 (grub_jfs_uuid): New function.
36279 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
36280
36281 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36282
36283 * util/grub-mkconfig_lib.in (font_path): Move the functionality
36284 of it to ...
36285 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
36286 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
36287
36288 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36289
36290 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
36291 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
36292 Update all users.
36293
36294 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
36295 not just "vmlinu[zx]".
36296 Moved from here ...
36297 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
36298 all users.
36299
36300 * util/grub.d/10_linux.in (find_latest): Moved from here ...
36301 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
36302 all users.
36303
36304 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36305
36306 * util/grub.d/10_freebsd.in: Use an absolute device path for
36307 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
36308
36309 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
36310
36311 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
36312 handling of multiple abstraction modules.
36313
36314 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
36315
36316 Fix a bug resulting in black screen when loading Linux using a
36317 packed video mode.
36318
36319 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
36320 function.
36321
36322 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
36323 (grub_vbe_bios_getset_dac_palette_width): New function.
36324 (grub_vbe_bios_get_dac_palette_width)
36325 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
36326 grub_vbe_bios_getset_dac_palette_width()).
36327
36328 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
36329 check for return status.
36330 (grub_vbe_get_video_mode_info): When getting information for a packed
36331 mode (<= 8 bpp), obtain DAC palette width using
36332 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
36333 {red,green,blue}_mark_size.
36334
36335 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
36336
36337 * commands/search.c (options): Fix help output to match actual code.
36338
36339 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
36340
36341 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
36342 of homegrown code.
36343
36344 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36345
36346 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
36347 on XFS or ReiserFS.
36348
36349 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36350
36351 Support Apple partition map with sector size different from 512 bytes.
36352
36353 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
36354 (apple_partition_map_iterate): Respect 'aheader.blocksize'
36355 and 'apart.partmap_size'.
36356
36357 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36358 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
36359
36360 Fix cpuid command.
36361
36362 * commands/i386/cpuid.c (options): New variable.
36363 (grub_cmd_cpuid): Return real error.
36364 (GRUB_MOD_INIT(cpuid)): Declare options.
36365
36366 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
36367
36368 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
36369 valid.
36370
36371 2009-07-31 Bean <bean123ch@gmail.com>
36372
36373 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
36374 log2_inode.
36375 (grub_fshelp_node): Move inode field to the end.
36376 (grub_xfs_data): Remove inode field.
36377 (grub_xfs_inode_block): Calculate inode size using sblock.
36378 (grub_xfs_inode_offset): Likewise.
36379 (grub_xfs_read_inode): Calculate inode size using sblock.
36380 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
36381 (grub_xfs_iterate_dir): Calculate inode size using sblock.
36382 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
36383 to match inode size.
36384 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
36385 not accessible when data is null.
36386 (grub_xfs_open): Likewise.
36387
36388 2009-07-31 Bean <bean123ch@gmail.com>
36389
36390 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
36391 Don't change pv->disk if it's already set.
36392
36393 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
36394 (grub_raid_register): ... here.
36395 (grub_raid_rescan): Removed.
36396
36397 * include/grub/raid.h (grub_raid_rescan): Removed.
36398
36399 * util/grub-fstest.c: Remove include file <grub/raid.h>.
36400 (fstest): Replace grub_raid_rescan with module fini function followed
36401 by init function.
36402
36403 * util/grub-probe.c: Add include file <grub/raid.h>.
36404 (probe_raid_level): New function.
36405 (probe): Detect abstraction by walking the disk device, support two
36406 level of abstraction (LVM on RAID) when detecting partition map.
36407
36408 2009-07-31 Pavel Roskin <proski@gnu.org>
36409
36410 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
36411 to grub_zalloc(), it was erroneous.
36412 Reported by Bean <bean123ch@gmail.com>
36413
36414 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
36415
36416 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
36417 embedding zone, not only the first one.
36418
36419 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
36420
36421 * term/gfxterm.c (clear_char): New function.
36422 (grub_virtual_screen_setup): Use clear_char.
36423 (scroll_up): Likewise.
36424 (grub_virtual_screen_cls): Likewise.
36425
36426 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
36427
36428 * util/deviceiter.c (get_acceleraid_disk_name): New static
36429 function.
36430 (grub_util_iterate_devices): Handle Accelraid devices.
36431 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
36432
36433 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
36434
36435 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
36436 separator for the suggested gfxpayload string (';' collides with the
36437 parser and needs escaping).
36438
36439 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
36440
36441 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
36442 Clear direction flag before jumping to OS.
36443 (grub_multiboot2_real_boot): Likewise.
36444
36445 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36446
36447 * util/i386/pc/grub-install: Fix parsing of --disk-module
36448 option.
36449
36450 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36451
36452 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
36453 when embedding.
36454
36455 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
36456
36457 * util/grub-mkconfig.in (package_version): New variable.
36458 Use it do display the version.
36459
36460 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36461
36462 * kern/file.c (grub_file_open): Revert to previous check with
36463 grub_errno.
36464
36465 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36466
36467 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
36468 from help line. It's out of sync with code.
36469
36470 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36471
36472 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
36473 entries on failed boot.
36474
36475 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36476
36477 * kern/file.c (grub_file_open): Fix an error check.
36478
36479 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
36480
36481 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
36482 partition map couldn't be identified.
36483
36484 2009-07-23 Pavel Roskin <proski@gnu.org>
36485
36486 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
36487 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
36488 case of little endian words becomes just an optimization.
36489 Respect const modifier.
36490 (md5_final): Use code that doesn't depend on endianness.
36491
36492 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
36493 to avoid loss of upper bits if align is unsigned and shorter
36494 than addr.
36495
36496 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36497
36498 UUID support for UFS
36499
36500 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
36501 (grub_ufs_uuid): New function.
36502 (grub_ufs_fs): add .uuid
36503
36504 2009-07-21 Pavel Roskin <proski@gnu.org>
36505
36506 * kern/dl.c (grub_dl_check_header): Make static.
36507
36508 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
36509
36510 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
36511 add drivemap for Vista. It breaks Windows 7.
36512
36513 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36514
36515 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
36516 128 bytes
36517
36518 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36519
36520 Add BFS support
36521
36522 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
36523 (grub_fstest_SOURCES): Likewise.
36524 (pkglib_MODULES): Add befs.mod.
36525 (befs_mod_SOURCES): New variable.
36526 (befs_mod_CFLAGS): Likewise.
36527 (befs_mod_LDFLAGS): Likewise.
36528 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
36529 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36530 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36531 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36532 (grub_setup_SOURCES): Likewise.
36533 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36534 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36535 (grub_setup_SOURCES): Likewise.
36536 * fs/befs.c: New file.
36537 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
36538 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
36539 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
36540 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
36541 (B_KEY_INDEX_ALIGN): New declaration.
36542 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
36543 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
36544 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
36545 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
36546 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
36547 (grub_afs_mount) [MODE_BFS]: Likewise.
36548 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
36549 (grub_afs_fs): Use GRUB_AFS_FSNAME
36550 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
36551 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
36552 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
36553 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
36554
36555 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
36556
36557 * util/getroot.c (find_root_device): Add support for MacOSX.
36558 * util/hostdisk.c: Likewise.
36559
36560 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36561
36562 * font/font.c (find_glyph): Check whether a font is present to avoid
36563 segmentation fault.
36564
36565 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
36566
36567 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
36568
36569 2009-07-20 Pavel Roskin <proski@gnu.org>
36570
36571 * configure.ac: Trim excessively wordy excuses.
36572
36573 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36574
36575 Add symlink, mtime and label support to AtheFS.
36576
36577 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
36578 (grub_afs_iterate_dir): Handle symlinks.
36579 (grub_afs_open): Use grub_afs_read_symlink.
36580 (grub_afs_dir): Likewise.
36581 Pass mtime.
36582 (grub_afs_label): New function.
36583 (grub_afs_fs): Add grub_afs_label.
36584 (grub_afs_read_symlink): New function.
36585
36586 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36587
36588 Fix AtheFS support.
36589
36590 * fs/afs.c: Fix comments style.
36591 (grub_afs_blockrun): Declare as packed.
36592 (grub_afs_datastream): Likewise.
36593 (grub_afs_bnode): Likewise.
36594 (grub_afs_btree): Likewise.
36595 (grub_afs_sblock): Likewise.
36596 Declare `name' as char.
36597 (grub_afs_inode): Declare as packed.
36598 Change void *vnode to grub_uint32_t unused.
36599 (grub_afs_iterate_dir): Check that key_size is positive.
36600 (grub_afs_mount): Don't read superblock twice.
36601 (grub_afs_dir): Don't free node in case of error,
36602 grub_fshelp_find_file already handles this.
36603 (grub_afs_open): Likewise.
36604
36605 2009-07-19 Pavel Roskin <proski@gnu.org>
36606
36607 * Makefile.in: Remove LIBLZO and enable_lzo.
36608 * conf/i386-pc.rmk: Remove lzo support.
36609 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
36610 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
36611 support.
36612 * kern/i386/pc/lzo1x.S: Remove.
36613 * kern/i386/pc/startup.S: Remove lzo support.
36614 * util/i386/pc/grub-mkimage.c: Likewise.
36615
36616 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
36617
36618 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
36619 * fs/xfs.c (grub_xfs_dir): Likewise.
36620 * fs/afs.c (grub_afs_dir): Likewise.
36621 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
36622 (grub_iso9660_open): Likewise.
36623 * fs/jfs.c (grub_jfs_open): Likewise.
36624 * fs/ext2.c (grub_ext2_dir): Likewise.
36625 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
36626 * script/sh/lexer.c (grub_script_yylex): Likewise.
36627
36628 2009-07-16 Pavel Roskin <proski@gnu.org>
36629
36630 * configure.ac: Never add "-c" to CFLAGS.
36631
36632 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
36633
36634 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
36635 grub_cv_cc_efiemu should be used.
36636
36637 * configure.ac: Typo fixes.
36638
36639 * kern/mm.c (grub_zalloc): New function.
36640 (grub_debug_zalloc): Likewise.
36641 * include/grub/mm.h: Declare grub_zalloc() and
36642 grub_debug_zalloc().
36643 * util/misc.c (grub_zalloc): New function.
36644 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
36645 instead of grub_malloc(), remove unneeded initializations.
36646 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
36647 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
36648 * commands/parttool.c (grub_cmd_parttool): Likewise.
36649 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
36650 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
36651 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
36652 * disk/usbms.c (grub_usbms_finddevs): Likewise.
36653 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
36654 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
36655 (grub_cmd_efiemu_pnvram): Likewise.
36656 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
36657 * fs/iso9660.c (grub_iso9660_mount): Likewise.
36658 (grub_iso9660_iterate_dir): Likewise.
36659 * fs/jfs.c (grub_jfs_opendir): Likewise.
36660 * fs/ntfs.c (list_file): Likewise.
36661 (grub_ntfs_mount): Likewise.
36662 * kern/disk.c (grub_disk_open): Likewise.
36663 * kern/dl.c (grub_dl_load_core): Likewise.
36664 * kern/elf.c (grub_elf_file): Likewise.
36665 * kern/env.c (grub_env_context_open): Likewise.
36666 (grub_env_set): Likewise.
36667 (grub_env_set_data_slot): Likewise.
36668 * kern/file.c (grub_file_open): Likewise.
36669 * kern/fs.c (grub_fs_blocklist_open): Likewise.
36670 * loader/i386/multiboot.c (grub_module): Likewise.
36671 * loader/xnu.c (grub_xnu_create_key): Likewise.
36672 (grub_xnu_create_value): Likewise.
36673 * normal/main.c (grub_normal_add_menu_entry): Likewise.
36674 (read_config_file): Likewise.
36675 * normal/menu_entry.c (make_screen): Likewise.
36676 * partmap/sun.c (sun_partition_map_iterate): Likewise.
36677 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
36678 * script/sh/script.c (grub_script_parse): Likewise.
36679 * video/bitmap.c (grub_video_bitmap_create): Likewise.
36680 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
36681 * video/readers/png.c (grub_png_output_byte): Likewise.
36682 (grub_video_reader_png): Likewise.
36683
36684 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36685
36686 Enable all targets that can be built by default
36687
36688 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
36689 grub-mkfont and grub-fstest if they can be built
36690
36691 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36692
36693 Fix hang and segmentation fault in grub-emu-usb
36694
36695 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
36696 * util/usb.c (grub_libusb_devices): likewise
36697 (grub_libusb_init): rename to ...
36698 (GRUB_MOD_INIT (libusb)):...this
36699 (grub_libusb_fini): rename to ..
36700 (GRUB_MOD_FINI (libusb)):...this
36701 * disk/usbms.c (grub_usbms_transfer): fix retry logic
36702 * include/grub/disk.h (grub_raid_init): removed, it's useless
36703 (grub_raid_fini): likewise
36704 (grub_lvm_init): likewise
36705 (grub_lvm_fini): likewise
36706 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
36707 by grub_init_all
36708
36709 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36710
36711 Fix libusb
36712
36713 * Makefile.in (LIBUSB): new macro
36714 * genmk.rb (Utility/print_tail): new method
36715 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
36716 (top level): call util.print_tail at the end.
36717
36718 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36719
36720 Make FreeBSD accept zpool.cache
36721
36722 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
36723 type is /boot/zfs/zpool.cache
36724
36725 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36726
36727 Fix 64-bit efiemu
36728
36729 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
36730 correct wrong typedef
36731 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
36732
36733 2009-07-15 Pavel Roskin <proski@gnu.org>
36734
36735 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
36736 * kern/disk.c (struct grub_disk_cache): Likewise.
36737
36738 * commands/probe.c (options): Typo fix.
36739
36740 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
36741 Increase to 0x5a to accommodate FAT32. Adjust other offsets
36742 accordingly.
36743 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
36744
36745 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
36746 the end of "Error" to make the message more readable.
36747
36748 * boot/i386/pc/boot.S (kernel_segment): Remove.
36749 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
36750 for destination.
36751
36752 * boot/i386/pc/boot.S (boot_version): Remove.
36753 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
36754 Remove.
36755
36756 * include/grub/i386/pc/boot.h: Sort all offsets.
36757 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
36758 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
36759 * boot/i386/pc/boot.S: Assert location of every offset listed in
36760 include/grub/i386/pc/boot.h.
36761
36762 2009-07-13 Pavel Roskin <proski@gnu.org>
36763
36764 * include/grub/i386/coreboot/machine.h: Rename
36765 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
36766 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
36767 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
36768
36769 * kern/dl.c: Force native word size to suppress warnings when
36770 compiling grub-emu.
36771
36772 * kern/device.c (grub_device_iterate): Change struct part_ent to
36773 hold the name, not a pointer to it. Use one grub_malloc() per
36774 partition, not two. Free partition_name if grub_malloc() fails.
36775 Set ents to NULL only before grub_partition_iterate() is called.
36776
36777 2009-07-11 Bean <bean123ch@gmail.com>
36778
36779 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
36780 childname.
36781
36782 2009-07-10 Bean <bean123ch@gmail.com>
36783 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
36784
36785 * kern/ieee1275/openfw.c (grub_children_iterate)
36786 (grub_devalias_iterate): Fix size evaluation for property or path
36787 strings, which was broken since r2132.
36788
36789 2009-07-07 Pavel Roskin <proski@gnu.org>
36790
36791 * commands/search.c (search_file): Merge into ...
36792 (search_fs): ... this. Accept search type as argument.
36793 (grub_cmd_search): Pass search type to search_fs().
36794
36795 * include/grub/util/console.h: New file.
36796 * util/console.c: Use it instead of grub/machine/console.h.
36797 * util/grub-emu.c: Likewise.
36798
36799 * lib/arg.c (find_long_option): Remove.
36800 (find_long): Add `len' argument, make `s' const char *.
36801 (grub_arg_parse): Parse long options in place, not in a
36802 temporary buffer.
36803
36804 2009-07-06 Pavel Roskin <proski@gnu.org>
36805
36806 * commands/search.c (search_fs): Fix potential NULL pointer
36807 dereference.
36808
36809 * commands/search.c (search_fs): Replace QUID macro with quid_fn
36810 function pointer.
36811
36812 2009-07-06 Daniel Mierswa <impulze@impulze.org>
36813
36814 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
36815 comparison.
36816
36817 2009-07-05 Pavel Roskin <proski@gnu.org>
36818
36819 * include/grub/i386/linux.h (struct linux_kernel_params):
36820 Restore padding3, it's still needed.
36821
36822 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
36823 FreeBSD.
36824 * util/osdetect.lua: Likewise.
36825
36826 2009-07-05 Bean <bean123ch@gmail.com>
36827
36828 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
36829
36830 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
36831 (grub_lua_getenv): Likewise.
36832 (grub_lua_setenv): Likewise.
36833 (save_errno): New function.
36834 (push_result): Likewise.
36835 (grub_lua_enum_device): Likewise.
36836 (grub_lua_enum_file): Likewise.
36837 (grub_lua_file_open): Likewise.
36838 (grub_lua_file_close): Likewise.
36839 (grub_lua_file_seek): Likewise.
36840 (grub_lua_file_read): Likewise.
36841 (grub_lua_file_getline): Likewise.
36842 (grub_lua_file_getsize): Likewise.
36843 (grub_lua_file_getpos): Likewise.
36844 (grub_lua_file_eof): Likewise.
36845 (grub_lua_file_exist): Likewise.
36846 (grub_lua_add_menu): Likewise.
36847
36848 * script/lua/grub_lua.h (isupper): New inline function.
36849 (islower): Likewise.
36850 (ispunct): Likewise.
36851 (isxdigit): Likewise.
36852 (strcspn): Change to normal function.
36853 (strpbkr): New function declaration.
36854 (memchr): Likewise.
36855
36856 * script/lua/grub_main.c (scan_str): New function.
36857 (strcspn): Likewise.
36858 (strpbrk): Likewise.
36859 (memchr): Likewise.
36860
36861 * script/lua/linit.c (lualibs): Enable the string library.
36862
36863 * util/osdetect.lua: New file.
36864
36865 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
36866
36867 * include/grub/i386/linux.h (struct linux_kernel_params): Add
36868 `capabilities' member.
36869
36870 2009-07-02 Pavel Roskin <proski@gnu.org>
36871
36872 * genparttoollist.sh: Add missing newline at the end.
36873
36874 2009-07-01 Pavel Roskin <proski@gnu.org>
36875
36876 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
36877
36878 * util/hostdisk.c (open_device): Remove `const' from
36879 `sysctl_size', as sysctlbyname() can change it (in this case it
36880 doesn't actually happen).
36881
36882 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
36883 using signed long int constants.
36884
36885 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
36886 constant to avoid a warning on FreeBSD.
36887
36888 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
36889 where it's needed.
36890
36891 * Makefile.in: Install include/grub/machine symlink.
36892
36893 * Makefile.in: When installing symlinks, use "cp -fR", which
36894 works on FreeBSD and MacOSX.
36895 From Yves Blusseau <cl7m42e02@sneakemail.com>
36896
36897 * kern/dl.c (grub_dl_resolve_symbol): Make static.
36898 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
36899
36900 * util/misc.c: Move grub_reboot() and grub_halt() ...
36901 * util/grub-emu.c: ... here. Make main_env static.
36902 * include/grub/util/misc.h: Remove main_env.
36903
36904 * kern/mm.c: Use correct format to print size_t.
36905
36906 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
36907 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
36908 * kern/powerpc/dl.c: Likewise.
36909 * kern/sparc64/dl.c: Likewise.
36910 * kern/x86_64/dl.c: Likewise.
36911
36912 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36913
36914 Fix grub-emu build on sparc64-ieee1275.
36915
36916 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
36917 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
36918
36919 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36920
36921 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
36922 (grub_reboot, grub_halt): New functions.
36923
36924 * util/i386/pc/misc.c: Delete. Update all users.
36925 * util/sparc64/ieee1275/misc.c: Likewise.
36926 * util/powerpc/ieee1275/misc.c: Likewise.
36927
36928 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36929
36930 * conf/i386.rmk (setjmp_mod_SOURCES)
36931 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
36932 * conf/common.rmk (setjmp_mod_SOURCES)
36933 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
36934 to use $(target_cpu).
36935 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
36936 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
36937 * conf/powerpc-ieee1275.rmk: Likewise.
36938 * conf/sparc64-ieee1275.rmk: Likewise.
36939
36940 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
36941 $(target_cpu) for kern/$(target_cpu)/dl.c.
36942 * conf/i386-efi.rmk: Likewise.
36943 * conf/i386-ieee1275.rmk: Likewise.
36944 * conf/x86_64-efi.rmk: Likewise.
36945 * conf/i386-coreboot.rmk: Likewise.
36946 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
36947 $(target_cpu) for kern/$(target_cpu)/dl.c and for
36948 kern/$(target_cpu)/cache.S.
36949 * conf/sparc64-ieee1275.rmk: Likewise.
36950
36951 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36952
36953 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
36954 type to `grub_uint8_t', and adjust `padding9' accordingly.
36955
36956 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
36957
36958 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
36959
36960 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
36961 assembly in final jump, using register constraints.
36962
36963 (grub_linux_boot): For text mode, initialize `have_vga' using
36964 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
36965
36966 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
36967 right before the final jump.
36968
36969 Set `video_mode' to 0x3.
36970
36971 Document initialization of `video_page', `video_mode' and
36972 `video_ega_bx'.
36973
36974 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
36975
36976 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
36977 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
36978 and set GRUB_LINUX_FLAG_QUIET appropriately.
36979
36980 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
36981
36982 Fix build on Debian / sparc.
36983
36984 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
36985
36986 2009-06-28 Pavel Roskin <proski@gnu.org>
36987
36988 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
36989 fix a warning.
36990
36991 * util/grub.d/10_linux.in: Match SUSE style initrd names.
36992
36993 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
36994
36995 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
36996 `err'.
36997
36998 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
36999
37000 Revert r2338.
37001
37002 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
37003 file can't be opened. grub_file_open() is already supposed to set
37004 grub_errno / grub_errmsg appropriately.
37005 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37006
37007 2009-06-27 Pavel Roskin <proski@gnu.org>
37008 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37009
37010 * include/grub/dl.h: Include grub/elf.h.
37011 (struct grub_dl): Add symtab field.
37012 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
37013 GRUB_MODULES_MACHINE_READONLY.
37014 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
37015 of the header for read-only modules.
37016 (grub_dl_unload): Free mod->symtab for read-only modules.
37017 * kern/i386/dl.c: Use mod->symtab.
37018 * kern/powerpc/dl.c: Likewise.
37019 * kern/sparc64/dl.c: Likewise.
37020 * kern/x86_64/dl.c: Likewise.
37021
37022 * conf/i386-qemu.rmk: New file.
37023 * kern/i386/qemu/startup.S: Likewise.
37024 * kern/i386/qemu/mmap.c: Likewise.
37025 * boot/i386/qemu/boot.S: Likewise.
37026 * include/grub/i386/qemu/time.h: Likewise.
37027 * include/grub/i386/qemu/serial.h: Likewise.
37028 * include/grub/i386/qemu/kernel.h: Likewise.
37029 * include/grub/i386/qemu/console.h: Likewise.
37030 * include/grub/i386/qemu/boot.h: Likewise.
37031 * include/grub/i386/qemu/init.h: Likewise.
37032 * include/grub/i386/qemu/machine.h: Likewise.
37033 * include/grub/i386/qemu/loader.h: Likewise.
37034 * include/grub/i386/qemu/memory.h: Likewise.
37035
37036 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
37037 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
37038 [qemu] (pkglib_IMAGES): Add `boot.img'.
37039 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
37040 [qemu] (boot_img_FORMAT): New variables.
37041 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
37042 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
37043 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
37044 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
37045 [qemu] (kernel_img_FORMAT): New variables.
37046
37047 * configure.ac: Recognise `i386-qemu'.
37048
37049 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
37050 (for no compression).
37051 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
37052 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
37053 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
37054 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
37055 ifdefs).
37056
37057 2009-06-27 Pavel Roskin <proski@gnu.org>
37058
37059 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
37060 read.
37061 * efiemu/prepare32.c: Likewise.
37062 * efiemu/prepare64.c: Likewise.
37063
37064 2009-06-26 Pavel Roskin <proski@gnu.org>
37065
37066 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
37067 * include/grub/elf.h: Define symbols without "32" or "64" based
37068 on GRUB_TARGET_WORDSIZE.
37069 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
37070 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
37071 ELF definitions.
37072 * efiemu/loadcore64.c: Likewise.
37073 * loader/i386/bsd32.c: Likewise.
37074 * loader/i386/bsd64.c: Likewise.
37075 * kern/dl.c: Remove own ELF definitions.
37076 * util/i386/efi/grub-mkimage.c: Likewise.
37077
37078 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
37079
37080 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
37081 segment 0x0 unconditionally, because the reference generated by
37082 GAS is an absolute address.
37083
37084 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37085
37086 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
37087 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
37088
37089 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37090
37091 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
37092 indexes. Check for -f explicitly.
37093 (search_file): Improve error message.
37094 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
37095
37096 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37097
37098 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
37099 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
37100
37101 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37102
37103 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
37104 * conf/i386-ieee1275.rmk: Likewise.
37105 * conf/i386-coreboot.rmk: Likewise.
37106
37107 * kern/i386/pc/startup.S (grub_stop): Remove function.
37108 * kern/i386/ieee1275/startup.S: Likewise.
37109 * kern/i386/coreboot/startup.S: Likewise.
37110 * kern/i386/misc.S (grub_stop): New function.
37111
37112 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37113
37114 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
37115 * kern/i386/realmode.S (real_to_prot): ... to here.
37116
37117 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37118
37119 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
37120 with `kernel.img'.
37121 (kernel_elf_SOURCES): Rename to ...
37122 (kernel_img_SOURCES): ... this.
37123 (kernel_elf_HEADERS): Rename to ...
37124 (kernel_img_HEADERS): ... this. Update all users.
37125 (kernel_elf_ASFLAGS): Rename to ...
37126 (kernel_img_ASFLAGS): ... this.
37127 (kernel_elf_CFLAGS): Rename to ...
37128 (kernel_img_CFLAGS): ... this.
37129 (kernel_elf_LDFLAGS): Rename to ...
37130 (kernel_img_LDFLAGS): ... this.
37131 * conf/i386-coreboot.rmk: Likewise.
37132 * conf/powerpc-ieee1275.rmk: Likewise.
37133
37134 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
37135 with "kernel.img".
37136
37137 2009-06-21 Pavel Roskin <proski@gnu.org>
37138
37139 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
37140 to match nested functions.
37141 * loader/sparc64/ieee1275/linux.c: Likewise.
37142
37143 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
37144
37145 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37146
37147 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
37148 all i386 platforms.
37149
37150 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37151
37152 Fix asm file handling on ELF, and remove workarounds.
37153
37154 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
37155 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
37156 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
37157 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
37158
37159 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
37160
37161 Load BSD ELF modules
37162
37163 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
37164 and loader/i386/bsd64.c
37165 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
37166 (FREEBSD_MODTYPE_ELF_MODULE): New definition
37167 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
37168 (grub_freebsd_load_elfmodule32): New declaration
37169 (grub_freebsd_load_elfmoduleobj64): Likewise
37170 (grub_freebsd_load_elf_meta32): Likewise
37171 (grub_freebsd_load_elf_meta64): Likewise
37172 (grub_freebsd_add_meta): Likewise
37173 (grub_freebsd_add_meta_module): Likewise
37174 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
37175 (grub_freebsd_add_meta_module): Likewise and move module-specific
37176 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
37177 (grub_cmd_freebsd): Add elf-kernel specific parts
37178 based on grub_freebsd_add_meta_module
37179 (grub_cmd_freebsd_module): Add type parsing moved from
37180 grub_freebsd_add_meta_module
37181 (grub_cmd_freebsd_module_elf): New function
37182 (cmd_freebsd_module_elf): New variable
37183 (GRUB_MOD_INIT): Register freebsd_module_elf
37184 * loader/i386/bsd32.c: New file
37185 * loader/i386/bsd64.c: Likewise
37186 * loader/i386/bsdXX.c: Likewise
37187 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
37188 (grub_elf64_load): Likewise
37189 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
37190 All users updated
37191 (grub_elf64_load_hook_t): Likewise
37192
37193 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
37194
37195 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
37196 variable.
37197 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
37198 don't write a menu entry for recovery mode.
37199
37200 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37201
37202 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
37203 after it's no longer needed.
37204
37205 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37206
37207 * include/grub/i386/loader.h (grub_linux_prot_size)
37208 (grub_linux_tmp_addr, grub_linux_real_addr)
37209 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
37210 GRUB_MACHINE_PCBIOS.
37211 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
37212 common grub_util_info() call to ...
37213 (generate_image): ... here.
37214 Fix use of uninitialized memory, comparison of signed with
37215 unsigned integers and memory leak.
37216 Remove bogus module address message.
37217
37218 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
37219
37220 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
37221 grub_raid_register
37222 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
37223
37224 2009-06-19 Pavel Roskin <proski@gnu.org>
37225
37226 * configure.ac: Remove stray AC_MSG_CHECKING.
37227
37228 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
37229
37230 * disk/scsi.c (grub_scsi_open): use continue instead of big if
37231
37232 2009-06-18 Pavel Roskin <proski@gnu.org>
37233
37234 * conf/common.rmk: Add fs_file.mod.
37235 * disk/fs_file.c: New file.
37236 * include/grub/disk.h (enum grub_disk_dev_id): Add
37237 GRUB_DISK_DEVICE_FILE_ID.
37238
37239 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37240
37241 Fix build with Apple's toolchain. Part 2
37242
37243 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
37244 a fake start
37245
37246 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37247
37248 Fix build with Apple's toolchain. Part 1
37249
37250 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
37251 for long calls
37252 * configure.ac: remove a leftover AC_MSG_RESULT
37253 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
37254 Apple's toolchain
37255
37256 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37257
37258 Fix warnings
37259
37260 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
37261 (decomp_block): initialize ch
37262 use grub_memcpy instead of memcpy
37263
37264 2009-06-17 Pavel Roskin <proski@gnu.org>
37265
37266 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
37267 version, use declarations needed to use vga_text as the startup
37268 console.
37269
37270 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
37271 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
37272 the kernel.
37273 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
37274 and grub_at_keyboard_fini(), it's done on module load and
37275 unload.
37276
37277 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
37278
37279 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
37280 file can't be found.
37281 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37282
37283 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37284
37285 Fix newline handling
37286
37287 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
37288 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
37289 (grub_script_yylex): don't segfault on unterminated script
37290 newline terminates command and variable
37291
37292 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37293
37294 avoid double grub_adjust_range call. Bug reported by David Simner
37295
37296 * kern/disk.c (grub_disk_write): change to raw disk access before
37297 calling disk_read
37298
37299 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
37300
37301 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
37302 spaces, for the benefit of help2man.
37303 * util/i386/efi/grub-mkimage.c (usage): Likewise.
37304
37305 2009-06-16 Pavel Roskin <proski@gnu.org>
37306
37307 * kern/i386/halt.c: Include grub/machine/init.h.
37308 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
37309
37310 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
37311
37312 * util/grub.d/30_os-prober.in: Use ${root} in the generated
37313 drivemap menuentry.
37314
37315 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
37316
37317 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
37318 `echo' command.
37319
37320 2009-06-16 Pavel Roskin <proski@gnu.org>
37321
37322 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
37323 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
37324 save %dx, we only need %dl and we never change it.
37325 * boot/i386/pc/cdboot.S: Don't set the root drive.
37326 * boot/i386/pc/pxeboot.S: Likewise.
37327 * include/grub/i386/pc/boot.h: Remove
37328 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
37329 GRUB_BOOT_MACHINE_DRIVE_CHECK.
37330 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
37331 * kern/i386/pc/init.c (make_install_device): Remove references
37332 to grub_root_drive.
37333 * kern/i386/pc/startup.S: Likewise.
37334 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
37335
37336 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37337
37338 xnu_uuid command
37339
37340 * commands/xnu_uuid.c: new file
37341 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
37342 (xnu_uuid_mod_SOURCES): new variable
37343 (xnu_uuid_mod_CFLAGS): likewise
37344 (xnu_uuid_mod_LDFLAGS): likewise
37345 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37346 * conf/i386-ieee1275.rmk: likewise
37347 * conf/i386-pc.rmk: likewise
37348 * conf/powerpc-ieee1275.rmk: likewise
37349 * conf/sparc64-ieee1275.rmk: likewise
37350 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
37351
37352 2009-06-16 Pavel Roskin <proski@gnu.org>
37353
37354 * configure.ac: Avoid '==' in test command, it's not portable.
37355
37356 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37357
37358 Probe command
37359
37360 * commands/probe.c: new file
37361 * conf/common.rmk (pkglib_MODULES): add probe.mod
37362 (probe_mod_SOURCES): new variable
37363 (probe_mod_CFLAGS): likewise
37364 (probe_mod_LDFLAGS): likewise
37365 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37366 * conf/i386-ieee1275.rmk: likewise
37367 * conf/i386-pc.rmk: likewise
37368 * conf/powerpc-ieee1275.rmk: likewise
37369 * conf/sparc64-ieee1275.rmk: likewise
37370
37371 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
37372
37373 Fix handling of string like \"hello\" and "a
37374 b"
37375
37376 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
37377 (grub_script_yylex): fix parsing of quoting, escaping and newline
37378
37379 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
37380
37381 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
37382 handling
37383
37384 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
37385
37386 * util/grub-mkconfig.in: Fix parsing of --output option.
37387
37388 2009-06-12 Pavel Roskin <proski@gnu.org>
37389
37390 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
37391 genmk.rb don't need to be generated or installed.
37392
37393 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
37394
37395 * commands/i386/pc/drivemap_int13h.S: add more comments
37396
37397 2009-06-11 Pavel Roskin <proski@gnu.org>
37398
37399 * Makefile.in (uninstall): Uninstall manuals.
37400
37401 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
37402 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
37403 and update-grub_lib in two places.
37404 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
37405
37406 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
37407 a compiler warning.
37408
37409 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
37410 `entry_lo' to fix variable shadowing.
37411
37412 2009-06-11 Christian Franke <franke@computer.org>
37413
37414 * kern/misc.c (__enable_execute_stack): Add missing return type
37415 to prevent gcc warning.
37416
37417 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37418
37419 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
37420
37421 2009-06-11 Pavel Roskin <proski@gnu.org>
37422
37423 * Makefile.in: Don't rely on any scripts being executable.
37424 Always use $(SHELL) to run shell scripts.
37425
37426 * configure.ac: Always define ___main if using -nostdlib. This
37427 fixes tests on Cygwin.
37428
37429 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
37430
37431 UDF fix
37432
37433 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
37434 is in bytes and not in blocks
37435
37436 2009-06-11 Pavel Roskin <proski@gnu.org>
37437
37438 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
37439 warning.
37440
37441 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37442
37443 * util/grub.d/30_os-prober.in: Fix a comment. Source
37444 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
37445 to set the root device. Place drivemap command in the generated
37446 chain entry.
37447
37448 2009-06-11 Pavel Roskin <proski@gnu.org>
37449
37450 * configure.ac: Remove host_m32. Issues with 64-bit utilities
37451 have long been resolved.
37452
37453 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
37454
37455 * util/grub.d/10_linux.in: Capitalise "Linux".
37456
37457 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
37458
37459 2009-06-11 Pavel Roskin <proski@gnu.org>
37460
37461 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
37462 fix a gcc warning and ensure that the function won't ever exit.
37463
37464 * kern/i386/ieee1275/init.c: Add missing prototype for
37465 grub_stop_floppy().
37466
37467 * loader/ieee1275/multiboot2.c [__i386__]: Include
37468 grub/cpu/multiboot.h.
37469
37470 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
37471 casts to short - they are not portable and cause warnings. Fix
37472 use of uninitialized values in input_buf. Use ARRAY_SIZE.
37473
37474 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
37475
37476 Drivemap fixes
37477
37478 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
37479 new function
37480 (grub_get_root_biosnumber_saved): new variable
37481 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
37482 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
37483 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
37484 %dx after the call if necessary
37485 * conf/common.rmk (pkglib_MODULES): remove boot.mod
37486 (boot_mod_SOURCES): remove
37487 (boot_mod_CFLAGS): remove
37488 (boot_mod_LDFLAGS): remove
37489 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
37490 (boot_mod_SOURCES): new variable
37491 (boot_mod_CFLAGS): likewise
37492 (boot_mod_LDFLAGS): likewise
37493 * conf/i386-efi.rmk: likewise
37494 * conf/i386-ieee1275.rmk: likewise
37495 * conf/i386-pc.rmk: likewise
37496 * conf/powerpc-ieee1275.rmk: likewise
37497 * conf/sparc64-ieee1275.rmk: likewise
37498 * conf/x86_64-efi.rmk: likewise
37499 * include/grub/i386/pc/biosnum.h: new file
37500 * lib/i386/pc/biosnum.c: likewise
37501 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
37502 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
37503 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
37504
37505 2009-06-10 Pavel Roskin <proski@gnu.org>
37506
37507 * io/gzio.c (test_header): Don't reuse one buffer for all data.
37508 Use separate variables. Read only the file size at the end, but
37509 not the checksum that we don't use.
37510
37511 * kern/file.c (grub_file_read): Use void pointer for the buffer.
37512 Adjust all callers.
37513
37514 * kern/ieee1275/openfw.c: Remove libc includes.
37515 * kern/ieee1275/cmain.c: Likewise.
37516 * include/grub/ieee1275/ieee1275.h: Likewise.
37517
37518 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
37519 compiler warnings.
37520
37521 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37522
37523 * Makefile.in: Remove all trailing whitespace.
37524 * conf/i386-pc.rmk: Likewise.
37525 * conf/powerpc-ieee1275.rmk: Likewise.
37526 * conf/sparc64-ieee1275.rmk: Likewise.
37527 * docs/grub.texi: Likewise.
37528 * docs/texinfo.tex: Likewise.
37529 * disk/fs_uuid.c: Likewise.
37530 * disk/lvm.c: Likewise.
37531 * disk/scsi.c: Likewise.
37532 * disk/ata.c: Likewise.
37533 * disk/ieee1275/ofdisk.c: Likewise.
37534 * disk/i386/pc/biosdisk.c: Likewise.
37535 * disk/host.c: Likewise.
37536 * disk/raid.c: Likewise.
37537 * disk/efi/efidisk.c: Likewise.
37538 * disk/usbms.c: Likewise.
37539 * disk/memdisk.c: Likewise.
37540 * disk/loopback.c: Likewise.
37541 * kern/powerpc/dl.c: Likewise.
37542 * kern/device.c: Likewise.
37543 * kern/dl.c: Likewise.
37544 * kern/sparc64/dl.c: Likewise.
37545 * kern/ieee1275/ieee1275.c: Likewise.
37546 * kern/term.c: Likewise.
37547 * kern/fs.c: Likewise.
37548 * kern/i386/dl.c: Likewise.
37549 * kern/i386/pc/startup.S: Likewise.
37550 * kern/i386/pc/init.c: Likewise.
37551 * kern/i386/pc/mmap.c: Likewise.
37552 * kern/i386/pc/lzo1x.S: Likewise.
37553 * kern/i386/ieee1275/init.c: Likewise.
37554 * kern/i386/realmode.S: Likewise.
37555 * kern/i386/tsc.c: Likewise.
37556 * kern/partition.c: Likewise.
37557 * kern/corecmd.c: Likewise.
37558 * kern/file.c: Likewise.
37559 * kern/efi/efi.c: Likewise.
37560 * kern/efi/init.c: Likewise.
37561 * kern/efi/mm.c: Likewise.
37562 * kern/main.c: Likewise.
37563 * kern/err.c: Likewise.
37564 * kern/env.c: Likewise.
37565 * kern/disk.c: Likewise.
37566 * kern/generic/millisleep.c: Likewise.
37567 * kern/generic/rtc_get_time_ms.c: Likewise.
37568 * kern/misc.c: Likewise.
37569 * kern/parser.c: Likewise.
37570 * genmk.rb: Likewise.
37571 * configure.ac: Likewise.
37572 * boot/i386/pc/diskboot.S: Likewise.
37573 * boot/i386/pc/pxeboot.S: Likewise.
37574 * boot/i386/pc/boot.S: Likewise.
37575 * boot/i386/pc/lnxboot.S: Likewise.
37576 * boot/i386/pc/cdboot.S: Likewise.
37577 * parttool/pcpart.c: Likewise.
37578 * video/readers/tga.c: Likewise.
37579 * video/video.c: Likewise.
37580 * video/bitmap.c: Likewise.
37581 * lib/envblk.c: Likewise.
37582 * lib/i386/setjmp.S: Likewise.
37583 * fs/xfs.c: Likewise.
37584 * fs/afs.c: Likewise.
37585 * fs/fat.c: Likewise.
37586 * fs/ntfs.c: Likewise.
37587 * fs/udf.c: Likewise.
37588 * fs/affs.c: Likewise.
37589 * fs/iso9660.c: Likewise.
37590 * fs/hfs.c: Likewise.
37591 * fs/fshelp.c: Likewise.
37592 * fs/ext2.c: Likewise.
37593 * fs/jfs.c: Likewise.
37594 * fs/reiserfs.c: Likewise.
37595 * fs/hfsplus.c: Likewise.
37596 * fs/minix.c: Likewise.
37597 * fs/cpio.c: Likewise.
37598 * fs/sfs.c: Likewise.
37599 * fs/ufs.c: Likewise.
37600 * efiemu/prepare.c: Likewise.
37601 * efiemu/loadcore_common.c: Likewise.
37602 * efiemu/runtime/efiemu.sh: Likewise.
37603 * efiemu/runtime/efiemu.S: Likewise.
37604 * efiemu/runtime/efiemu.c: Likewise.
37605 * efiemu/pnvram.c: Likewise.
37606 * efiemu/main.c: Likewise.
37607 * efiemu/i386/pc/cfgtables.c: Likewise.
37608 * efiemu/i386/loadcore64.c: Likewise.
37609 * efiemu/i386/loadcore32.c: Likewise.
37610 * efiemu/loadcore.c: Likewise.
37611 * efiemu/symbols.c: Likewise.
37612 * efiemu/mm.c: Likewise.
37613 * include/grub/autoefi.h: Likewise.
37614 * include/grub/datetime.h: Likewise.
37615 * include/grub/term.h: Likewise.
37616 * include/grub/hfs.h: Likewise.
37617 * include/grub/lvm.h: Likewise.
37618 * include/grub/i386/tsc.h: Likewise.
37619 * include/grub/i386/linux.h: Likewise.
37620 * include/grub/i386/xnu.h: Likewise.
37621 * include/grub/i386/efiemu.h: Likewise.
37622 * include/grub/i386/pc/biosdisk.h: Likewise.
37623 * include/grub/i386/pc/memory.h: Likewise.
37624 * include/grub/i386/pc/vbe.h: Likewise.
37625 * include/grub/parttool.h: Likewise.
37626 * include/grub/video.h: Likewise.
37627 * include/grub/memory.h: Likewise.
37628 * include/grub/fs.h: Likewise.
37629 * include/grub/partition.h: Likewise.
37630 * include/grub/xnu.h: Likewise.
37631 * include/grub/efi/api.h: Likewise.
37632 * include/grub/efi/pe32.h: Likewise.
37633 * include/grub/efi/memory.h: Likewise.
37634 * include/grub/multiboot.h: Likewise.
37635 * include/grub/usbdesc.h: Likewise.
37636 * include/grub/multiboot2.h: Likewise.
37637 * include/grub/acpi.h: Likewise.
37638 * include/grub/efiemu/efiemu.h: Likewise.
37639 * include/grub/disk.h: Likewise.
37640 * include/grub/ieee1275/ieee1275.h: Likewise.
37641 * include/grub/net.h: Likewise.
37642 * include/grub/machoload.h: Likewise.
37643 * include/grub/macho.h: Likewise.
37644 * include/multiboot.h: Likewise.
37645 * genmoddep.awk: Likewise.
37646 * normal/main.c: Likewise.
37647 * normal/menu_entry.c: Likewise.
37648 * normal/menu_viewer.c: Likewise.
37649 * normal/completion.c: Likewise.
37650 * normal/cmdline.c: Likewise.
37651 * normal/misc.c: Likewise.
37652 * normal/datetime.c: Likewise.
37653 * bus/usb/usbtrans.c: Likewise.
37654 * bus/usb/ohci.c: Likewise.
37655 * bus/usb/uhci.c: Likewise.
37656 * bus/usb/usb.c: Likewise.
37657 * mmap/efi/mmap.c: Likewise.
37658 * mmap/i386/pc/mmap_helper.S: Likewise.
37659 * mmap/i386/pc/mmap.c: Likewise.
37660 * mmap/i386/mmap.c: Likewise.
37661 * mmap/i386/uppermem.c: Likewise.
37662 * mmap/mmap.c: Likewise.
37663 * commands/acpi.c: Likewise.
37664 * commands/echo.c: Likewise.
37665 * commands/blocklist.c: Likewise.
37666 * commands/loadenv.c: Likewise.
37667 * commands/usbtest.c: Likewise.
37668 * commands/boot.c: Likewise.
37669 * commands/parttool.c: Likewise.
37670 * commands/search.c: Likewise.
37671 * commands/cat.c: Likewise.
37672 * commands/i386/pc/play.c: Likewise.
37673 * commands/i386/pc/drivemap.c: Likewise.
37674 * commands/i386/pc/vbeinfo.c: Likewise.
37675 * commands/i386/pc/acpi.c: Likewise.
37676 * commands/i386/pc/vbetest.c: Likewise.
37677 * commands/ls.c: Likewise.
37678 * commands/cmp.c: Likewise.
37679 * commands/test.c: Likewise.
37680 * commands/efi/acpi.c: Likewise.
37681 * commands/gptsync.c: Likewise.
37682 * commands/help.c: Likewise.
37683 * partmap/amiga.c: Likewise.
37684 * partmap/apple.c: Likewise.
37685 * partmap/acorn.c: Likewise.
37686 * partmap/pc.c: Likewise.
37687 * partmap/sun.c: Likewise.
37688 * partmap/gpt.c: Likewise.
37689 * script/sh/lexer.c: Likewise.
37690 * script/sh/function.c: Likewise.
37691 * font/font.c: Likewise.
37692 * font/font_cmd.c: Likewise.
37693 * loader/powerpc/ieee1275/linux.c: Likewise.
37694 * loader/efi/chainloader.c: Likewise.
37695 * loader/multiboot_loader.c: Likewise.
37696 * loader/macho.c: Likewise.
37697 * loader/i386/multiboot.c: Likewise.
37698 * loader/i386/linux.c: Likewise.
37699 * loader/i386/pc/linux.c: Likewise.
37700 * loader/i386/pc/multiboot2.c: Likewise.
37701 * loader/i386/pc/chainloader.c: Likewise.
37702 * loader/i386/pc/xnu.c: Likewise.
37703 * loader/i386/bsd_trampoline.S: Likewise.
37704 * loader/i386/efi/linux.c: Likewise.
37705 * loader/i386/multiboot_elfxx.c: Likewise.
37706 * loader/i386/bsd_helper.S: Likewise.
37707 * loader/i386/bsd.c: Likewise.
37708 * loader/i386/linux_trampoline.S: Likewise.
37709 * loader/i386/xnu_helper.S: Likewise.
37710 * loader/i386/xnu.c: Likewise.
37711 * loader/i386/bsd_pagetable.c: Likewise.
37712 * loader/i386/multiboot_helper.S: Likewise.
37713 * loader/xnu.c: Likewise.
37714 * loader/xnu_resume.c: Likewise.
37715 * io/gzio.c: Likewise.
37716 * term/efi/console.c: Likewise.
37717 * term/terminfo.c: Likewise.
37718 * term/ieee1275/ofconsole.c: Likewise.
37719 * term/i386/pc/serial.c: Likewise.
37720 * term/i386/pc/vesafb.c: Likewise.
37721 * term/i386/pc/vga.c: Likewise.
37722 * term/usb_keyboard.c: Likewise.
37723 * term/gfxterm.c: Likewise.
37724 * aclocal.m4: Likewise.
37725 * util/lvm.c: Likewise.
37726 * util/grub.d/30_os-prober.in: Likewise.
37727 * util/grub.d/10_hurd.in: Likewise.
37728 * util/console.c: Likewise.
37729 * util/grub-macho2img.c: Likewise.
37730 * util/grub-probe.c: Likewise.
37731 * util/hostfs.c: Likewise.
37732 * util/i386/pc/grub-mkimage.c: Likewise.
37733 * util/i386/pc/grub-setup.c: Likewise.
37734 * util/i386/efi/grub-mkimage.c: Likewise.
37735 * util/grub-mkconfig.in: Likewise.
37736 * util/raid.c: Likewise.
37737 * util/resolve.c: Likewise.
37738 * util/grub-mkdevicemap.c: Likewise.
37739 * util/grub-emu.c: Likewise.
37740 * util/getroot.c: Likewise.
37741 * util/hostdisk.c: Likewise.
37742 * util/usb.c: Likewise.
37743 * util/grub-editenv.c: Likewise.
37744 * util/misc.c: Likewise.
37745
37746 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37747
37748 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
37749 `genparttoollist.sh'.
37750 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
37751 Add `*.sh' to the list find searches for and change `mdate.sh'
37752 to `mdate-sh'.
37753
37754 2009-06-10 Pavel Roskin <proski@gnu.org>
37755
37756 * include/grub/multiboot2.h: Provide compatibility defines for
37757 multiboot2.h.
37758 * include/multiboot2.h: Include stdint.h only if needed, using
37759 angle brackets.
37760 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
37761 grub/multiboot2.h.
37762 * loader/ieee1275/multiboot2.c: Likewise.
37763 * loader/multiboot2.c: Likewise.
37764 * loader/multiboot_loader.c: Likewise.
37765
37766 * configure.ac: Use -nostdlib when probing for the target. It
37767 should not be required to have libc for the target.
37768
37769 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
37770 they fail without libc headers for the target.
37771 * include/grub/powerpc/libgcc.h: Use weak attribute for all
37772 exports.
37773 * include/grub/sparc64/libgcc.h: Likewise. Don't use
37774 preprocessor conditionals.
37775
37776 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
37777 build system doesn't need to be aware of the tar.c internals.
37778
37779 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
37780
37781 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
37782
37783 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
37784
37785 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
37786 disk limit to 26 for IDE, Virtio, Xen and SCSI.
37787
37788 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
37789
37790 * util/i386/pc/grub-install.in: Change the error message if UUIDs
37791 aren't available if ata.mod gets used.
37792
37793 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
37794
37795 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
37796 initialising controller.
37797 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
37798
37799 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37800
37801 * util/i386/pc/grub-install.in: Add a parameter --disk-module
37802 to choose between ata and biosdisk module on i386-pc.
37803
37804 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
37805
37806 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
37807 Subclass and Programming Interface fields in terms of the 3 byte
37808 Class Code register.
37809 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
37810
37811 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
37812 interface is OHCI. Add grub_dprintf for symmetry with
37813 bus/usb/uhci.c.
37814 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
37815 interface is UHCI. Add interf variable for programming
37816 interface. Print interface with class/subclass.
37817
37818 * bus/usb/ohci.c: Set interf with correct field.
37819
37820 * bus/usb/uhci.c: Remove unneeded doubled lines.
37821 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
37822 Remove whitespace inside comment.
37823
37824 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
37825
37826 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
37827 as fallback an equivalent option without depth.
37828
37829 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
37830
37831 Not fail if unable to retrieve C/H/S on LBA disks
37832
37833 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
37834 if unable to retrieve C/H/S on LBA disks
37835
37836 2009-06-08 Pavel Roskin <proski@gnu.org>
37837
37838 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
37839 about aliasing.
37840
37841 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37842
37843 * Makefile.in (uninstall): Remove all $lib_DATA files.
37844
37845 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
37846
37847 Bugfix: install on partitionless device
37848
37849 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
37850 is a whole disk
37851
37852 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37853
37854 * Makefile.in (uninstall): Remove all $include_DATA files.
37855
37856 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37857
37858 * commands/true.c: New file. Implement the true and false commands.
37859 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
37860 (true_mod_SOURCES): New variable.
37861 (true_mod_CFLAGS): Likewise.
37862 (true_mod_LDFLAGS): Likewise.
37863
37864 2009-06-05 Colin D Bennett <colin@gibibit.com>
37865
37866 Optimized font character lookup using binary search instead of linear
37867 search. Fonts now are required to have the character index ordered by
37868 code point.
37869
37870 * font/font.c (load_font_index): Verify that fonts have ordered
37871 character indices.
37872 (find_glyph): Use binary search instead of linear search to find a
37873 character in a font.
37874
37875 2009-06-05 Michael Scherer <misc@mandriva.org>
37876
37877 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
37878 uses case sensitive btree.
37879 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
37880 only for case insensitive filesystems.
37881
37882 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
37883
37884 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
37885 * conf/common.rmk (search_mod_CFLAGS): likewise
37886
37887 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37888
37889 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
37890 compensate a compiler bug
37891
37892 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37893
37894 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
37895 instead of '\b'
37896
37897 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37898
37899 Definitions for creating asm symbols with Apple's CC
37900
37901 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
37902 [APPLE_CC] (VARIABLE): likewise
37903
37904 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37905
37906 Disable lnxboot.img when compiled
37907 with Apple's CC
37908
37909 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
37910 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
37911 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
37912 [! APPLE_CC] (CODE_LENG): skip
37913 [! APPLE_CC] (setup_sects): likewise
37914 [! APPLE_CC]: skip filling
37915
37916 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37917
37918 Address in trampolines based on 32-bit registers when compiled
37919 with Apple's CC
37920
37921 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
37922 for addresses
37923 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
37924
37925 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37926
37927 Avoid aliases when compiling with Apple's CC for PCBIOS machine
37928
37929 * kern/misc.c [APPLE_CC] (memcpy): new function
37930 [APPLE_CC] (memmove): likewise
37931 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
37932 (memcpy): define alias conditionally on !APPLE_CC
37933 (memset): likewise
37934 (abort): likewise
37935 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
37936 APPLE_CC are defined
37937 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
37938 (grub_assert_fail): make prototype conditional
37939
37940 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37941
37942 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
37943
37944 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
37945 grub-macho2img
37946 (CLEANFILES): add grub-macho2img
37947 (grub_macho2img_SOURCES): new variable
37948 * kern/i386/pc/startup.S (bss_start): new variable
37949 (bss_end): likewise
37950 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
37951 * util/grub-macho2img.c: new file
37952
37953 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37954
37955 Use objconv when compiling with Apple's CC
37956
37957 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
37958 (efiemu64.o): likewise
37959 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
37960 when compiling with Apple's CC
37961 (efiemu64_s.o): likewise
37962 * configure.ac: check for objconv when compiling with Apple's CC
37963 * genmk.rb: use objconv for modules when compiled with Apple's CC
37964
37965 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37966
37967 Define segment as well as section when compiling with
37968 Apple's CC
37969
37970 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
37971 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
37972 (efiemu_convert_pointer): likewise
37973 (efiemu_set_virtual_address_map): likewise
37974 (efiemu_convert_pointer): likewise
37975 (efiemu_getcrc32): likewise
37976 (init_crc32_table): likewise
37977 (reflect): likewise
37978 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
37979 (GRUB_MOD_DEP): likewise
37980
37981 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37982
37983 Allow a compilation without -mcmodel=large
37984
37985 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
37986 when compiled without -mcmodel=large
37987 (filter_memory_map): remove memory post 4 GiB when compiled
37988 without -mcmodel=large
37989 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
37990 TARGET_CFLAGS when -mcmodel=large isn't supported
37991
37992 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37993
37994 Remove nested functions in efiemu core
37995
37996 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
37997
37998 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37999
38000 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
38001
38002 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
38003 temporary storage
38004 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
38005 using Apple's CC
38006 (grub_cpu_is_tsc_supported): likewise
38007 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
38008
38009 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38010
38011 Absolute addressing through constant with Apple's cc
38012
38013 * kern/i386/pc/startup.S: Define necessary constants
38014 and address through it when using ABS with Apple's CC
38015 * boot/i386/pc/diskboot.S: likewise
38016 * boot/i386/pc/boot.S: likewise
38017 * boot/i386/pc/lnxboot.S: likewise
38018 * boot/i386/pc/cdboot.S: likewise
38019 * mmap/i386/pc/mmap_helper.S: likewise
38020 * commands/i386/pc/drivemap_int13h.S: likewise
38021
38022 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38023
38024 Check if compiler is apple cc
38025
38026 * Makefile.in (ASFLAGS): new variable
38027 (TARGET_ASFLAGS): likewise
38028 (TARGET_MODULE_FORMAT): likewise
38029 (TARGET_APPLE_CC): likewise
38030 (OBJCONV): likewise
38031 (TARGET_IMG_CFLAGS): likewise
38032 (TARGET_CPPFLAGS): add includedir
38033 * configure.ac: call grub_apple_cc and grub_apple_target_cc
38034 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
38035 Check for linker script only if compiler isn't Apple's CC
38036 (TARGET_MODULE_FORMAT): set
38037 (TARGET_APPLE_CC): likewise
38038 (TARGET_ASFLAGS): likewise
38039 (ASFLAGS): likewise
38040 Check for objcopy only if compiler isn't Apple's CC
38041 Check for BSS symbol only if compiler isn't Apple's CC
38042 * genmk.rb: adapt nm options if we use Apple's utils
38043 * aclocal.m4 (grub_apple_cc): new test
38044 (grub_apple_target_cc): likewise
38045
38046 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38047
38048 Simplify sed expressions and improve awk
38049
38050 * Makefile.in (install-local): simplify sed expression
38051 * gencmdlist.sh: likewise
38052 * genmoddep.awk: avoid adding module as a dependency of itself
38053
38054 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38055
38056 Add missing start symbols
38057
38058 * boot/i386/pc/boot.S: add start
38059 * boot/i386/pc/pxeboot.S: likewise
38060
38061 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38062
38063 Fix wrong assumptions with grub-mkimage on EFI
38064
38065 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
38066 (relocate_addresses): consider both r_addend and value at offset
38067 (make_mods_section): zerofill modinfo and header
38068 (convert_elf): write prefix here
38069
38070 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38071
38072 Use .asciz instead of .string
38073
38074 * i386/pc/diskboot.S: use .asciz instead of .string
38075 * i386/pc/boot.S: likewise
38076 * include/grub/dl.h (GRUB_MOD_DEP): likewise
38077 (GRUB_MOD_NAME): likewise
38078
38079 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38080
38081 gfxpayload support
38082
38083 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
38084 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
38085 (grub_video_setup): remove
38086 (grub_video_set_mode): new prototype
38087 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
38088 (vid_mode): remove
38089 (linux_vesafb_res): compile only on PCBIOS
38090 (grub_linux_boot): support gfxpayload
38091 * loader/i386/pc/xnu.c (video_hook): new function
38092 (grub_xnu_set_video): support gfxpayload
38093 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
38094 (DEFAULT_VIDEO_HEIGHT): likewise
38095 (DEFAULT_VIDEO_FLAGS): likewise
38096 (DEFAULT_VIDEO_MODE): new definition
38097 (video_hook): new function
38098 (grub_gfxterm_init): use grub_video_set_mode
38099 * util/grub.d/30_os-prober.in: remove explicit modesetting before
38100 loading xnu
38101 * video/video.c (grub_video_setup): removed
38102 (grub_video_set_mode): new function based on grub_gfxterm_init and
38103 grub_video_setup
38104
38105 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38106
38107 Avoid calling biosdisk in drivemap
38108
38109 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
38110 (revparse_biosdisk): likewise
38111 (list_mappings): derive name from id directly
38112 (grub_cmd_drivemap): use tryparse_diskstring
38113
38114 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38115
38116 Script fixes
38117
38118 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
38119 (grub_lexer_param): add tokenonhold
38120 (grub_script_create_cmdline): remove cmdline. All callers updated
38121 (grub_script_function_create): make functionname
38122 grub_script_arg. All callers updated
38123 (grub_script_execute_argument_to_string): new prototype
38124 * kern/parser.c (state_transitions): reorder
38125 (grub_parser_cmdline_state): fix a bug and make more compact
38126 * script/sh/execute.c (grub_script_execute_argument_to_string):
38127 make global
38128 (grub_script_execute_cmdline): use new format
38129 * script/sh/function.c (grub_script_function_create): make functionname
38130 grub_script_arg. All callers updated
38131 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
38132 (grub_script_yylex): remove
38133 (grub_script_yylex2): renamed to ...
38134 (grub_script_yylex): ...renamed
38135 parse the expressions like a${b}c
38136 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
38137 (GRUB_PARSER_TOKEN_VAR): remove
38138 (GRUB_PARSER_TOKEN_NAME): likewise
38139 ("if"): declare as typeless
38140 ("while"): likewise
38141 ("function"): likewise
38142 ("else"): likewise
38143 ("then"): likewise
38144 ("fi"): likewise
38145 (text): remove
38146 (argument): likewise
38147 (script): accept empty scripts and make exit on error
38148 (arguments): use GRUB_PARSER_TOKEN_ARG
38149 (function): likewise
38150 (command): move error handling to script
38151 (menuentry): move grub_script_lexer_ref before
38152 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
38153 argument. All callers updated
38154
38155 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38156
38157 Prevent GRUB from probing floppies during boot.
38158
38159 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
38160 * commands/search.c (options): Add --no-floppy.
38161 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
38162 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
38163 --no-floppy when searching for UUIDs.
38164
38165 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38166
38167 Simplify the code duplication in commands/search.c.
38168
38169 * commands/search.c (search_label, search_fs_uuid): Merge into ...
38170 (search_fs): ... this. Update all users.
38171
38172 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
38173
38174 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
38175
38176 2009-05-28 Pavel Roskin <proski@gnu.org>
38177
38178 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
38179 Remove the original symlink explicitly.
38180
38181 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
38182 just one slash. That's how grub_fshelp_find_file() does it.
38183
38184 2009-05-26 Pavel Roskin <proski@gnu.org>
38185
38186 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
38187 to `str'.
38188
38189 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
38190 possibly unused.
38191
38192 2009-05-25 Christian Franke <franke@computer.org>
38193
38194 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
38195 register.
38196 (grub_atapi_identify): Add wait after drive select.
38197 (grub_ata_identify): Do more strict status register check before
38198 calling grub_atapi_identify (). Suppress error message if status
38199 register is 0x00 after command failure. Add status register
38200 check after PIO read to avoid bogus identify due to stuck DRQ.
38201 Thanks to Pavel Roskin for testing.
38202 (grub_device_initialize): Remove unsafe status register check.
38203 Thanks to 'phcoder' for problem report and patch.
38204 Prevent sign extension in debug message.
38205
38206 2009-05-23 Colin D Bennett <colin@gibibit.com>
38207
38208 Cleaned up `include/grub/normal.h'. Grouped prototypes by
38209 definition file, and functions defined in `normal/menu.c' have had
38210 their prototypes moved to `include/grub/menu.h' for consistency.
38211
38212 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
38213 from normal.h.
38214 (grub_menu_get_entry): Likewise.
38215 (grub_menu_get_timeout): Likewise.
38216 (grub_menu_set_timeout): Likewise.
38217 (grub_menu_execute_entry): Likewise.
38218 (grub_menu_execute_with_fallback): Likewise.
38219 (grub_menu_entry_run): Likewise.
38220
38221 * include/grub/normal.h: Re-ordered and grouped function
38222 prototypes by file that the function is defined in.
38223 (grub_menu_execute_callback): Removed; moved to menu.h.
38224 (grub_menu_get_entry): Likewise.
38225 (grub_menu_get_timeout): Likewise.
38226 (grub_menu_set_timeout): Likewise.
38227 (grub_menu_execute_entry): Likewise.
38228 (grub_menu_execute_with_fallback): Likewise.
38229 (grub_menu_entry_run): Likewise.
38230 (grub_menu_addentry): Renamed from this ...
38231 (grub_normal_add_menu_entry): ... to this.
38232
38233 * normal/main.c (grub_menu_addentry): Renamed from this ...
38234 (grub_normal_add_menu_entry): ... to this.
38235
38236 * script/sh/execute.c (grub_script_execute_menuentry): Update
38237 reference to renamed grub_menu_addentry function.
38238
38239 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
38240
38241 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
38242
38243 2009-05-22 Pavel Roskin <proski@gnu.org>
38244
38245 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
38246 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
38247 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
38248 compiling for the i386 targets, but not for the utilities.
38249
38250 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
38251 to grub_uint8_t.
38252 (grub_root_drive): Likewise.
38253 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
38254 remove alignment.
38255 (grub_root_drive): Change size to byte.
38256 (grub_start_addr): Remove.
38257 (grub_end_addr): Likewise.
38258 (grub_apm_bios_info): Likewise.
38259
38260 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
38261
38262 * normal/i386: Remove.
38263 * normal/powerpc: Likewise.
38264 * normal/sparc64: Likewise.
38265 * normal/x86_64: Likewise.
38266
38267 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
38268
38269 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
38270 * loader/i386/linux_trampoline.S: Fix indentation
38271 * loader/i386/xnu_helper.S: Likewise
38272
38273 2009-05-18 Colin D Bennett <colin@gibibit.com>
38274
38275 Display error messages when parsing a Lua statement fails.
38276 Previously, executing a syntactically invalid statement like
38277 ")foo" or "bar;" would silently fail.
38278
38279 * script/lua/grub_main.c (handle_lua_error): New function.
38280 (grub_lua_parse_line): Improved reporting of Lua parser and
38281 execution errors.
38282
38283 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38284
38285 Remove -Werror which causes build to fail on some systems
38286
38287 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
38288 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
38289 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
38290
38291 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38292
38293 trampoline for linux on 64-bit platform
38294
38295 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
38296 loader/i386/efi/linux_trampoline.S
38297 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
38298 declaration
38299 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
38300 here
38301 * loader/i386/linux_trampoline.S: moved here
38302 * loader/i386/efi/linux.c (allocate_pages): reserve space for
38303 trampoline
38304 (jumpvector): removed
38305 (grub_linux_trampoline_start): new declaration
38306 (grub_linux_trampoline_end): likewise
38307 (grub_linux_boot): use trampoline when on 64-bit platform
38308 * loader/i386/linux.c: likewise
38309
38310 2009-05-16 Pavel Roskin <proski@gnu.org>
38311
38312 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
38313 const to avoid a warning.
38314 (grub_lua_setenv): Likewise.
38315 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
38316 lmsg to fix a warning.
38317
38318 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38319
38320 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
38321 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38322 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
38323 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38324 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38325 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38326 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38327 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38328
38329 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38330
38331 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
38332
38333 2009-05-16 Bean <bean123ch@gmail.com>
38334
38335 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
38336 (lua_mod_SOURCES): New variable.
38337 (lua_mod_CFLAGS): Likewise.
38338 (lua_mod_LDFLAGS): Likewise.
38339
38340 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
38341 (setjmp_mod_SOURCES): New variable.
38342 (setjmp_mod_CFLAGS): Likewise.
38343 (setjmp_LDFLAGS): Likewise.
38344
38345 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
38346 (setjmp_mod_SOURCES): New variable.
38347 (setjmp_mod_CFLAGS): Likewise.
38348 (setjmp_LDFLAGS): Likewise.
38349
38350 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38351 (setjmp_mod_SOURCES): New variable.
38352 (setjmp_mod_CFLAGS): Likewise.
38353 (setjmp_LDFLAGS): Likewise.
38354
38355 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38356 (setjmp_mod_SOURCES): New variable.
38357 (setjmp_mod_CFLAGS): Likewise.
38358 (setjmp_LDFLAGS): Likewise.
38359
38360 * normal/i386/setjmp.S: Moved from here ...
38361 * lib/i386/setjmp.S: ... Moved here
38362 * normal/x86_64/setjmp.S: Moved from here ...
38363 * lib/x86_64/setjmp.S: ... Moved here
38364 * normal/powerpc/setjmp.S: Moved from here ...
38365 * lib/powerpc/setjmp.S: ... Moved here
38366 * normal/sparc64/setjmp.S: Moved from here ...
38367 * lib/sparc64/setjmp.S: ... Moved here
38368
38369 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
38370 returns_twice in mingw.
38371
38372 * script/lua/grub_lib.c: New file.
38373 * script/lua/grub_lib.h: Likewise.
38374 * script/lua/grub_lua.h: Likewise.
38375 * script/lua/grub_main.c: Likewise.
38376 * script/lua/lapi.c: Likewise.
38377 * script/lua/lapi.h: Likewise.
38378 * script/lua/lauxlib.c: Likewise.
38379 * script/lua/lauxlib.h: Likewise.
38380 * script/lua/lbaselib.c: Likewise.
38381 * script/lua/lcode.c: Likewise.
38382 * script/lua/lcode.h: Likewise.
38383 * script/lua/ldblib.c: Likewise.
38384 * script/lua/ldebug.c: Likewise.
38385 * script/lua/ldebug.h: Likewise.
38386 * script/lua/ldo.c: Likewise.
38387 * script/lua/ldo.h: Likewise.
38388 * script/lua/ldump.c: Likewise.
38389 * script/lua/lfunc.c: Likewise.
38390 * script/lua/lfunc.h: Likewise.
38391 * script/lua/lgc.c: Likewise.
38392 * script/lua/lgc.h: Likewise.
38393 * script/lua/linit.c: Likewise.
38394 * script/lua/liolib.c: Likewise.
38395 * script/lua/llex.c: Likewise.
38396 * script/lua/llex.h: Likewise.
38397 * script/lua/llimits.h: Likewise.
38398 * script/lua/lmathlib.c: Likewise.
38399 * script/lua/lmem.c: Likewise.
38400 * script/lua/lmem.h: Likewise.
38401 * script/lua/loadlib.c: Likewise.
38402 * script/lua/lobject.c: Likewise.
38403 * script/lua/lobject.h: Likewise.
38404 * script/lua/lopcodes.c: Likewise.
38405 * script/lua/lopcodes.h: Likewise.
38406 * script/lua/loslib.c: Likewise.
38407 * script/lua/lparser.c: Likewise.
38408 * script/lua/lparser.h: Likewise.
38409 * script/lua/lstate.c: Likewise.
38410 * script/lua/lstate.h: Likewise.
38411 * script/lua/lstring.c: Likewise.
38412 * script/lua/lstring.h: Likewise.
38413 * script/lua/lstrlib.c: Likewise.
38414 * script/lua/ltable.c: Likewise.
38415 * script/lua/ltable.h: Likewise.
38416 * script/lua/ltablib.c: Likewise.
38417 * script/lua/ltm.c: Likewise.
38418 * script/lua/ltm.h: Likewise.
38419 * script/lua/lua.h: Likewise.
38420 * script/lua/luaconf.h: Likewise.
38421 * script/lua/lualib.h: Likewise.
38422 * script/lua/lundump.c: Likewise.
38423 * script/lua/lundump.h: Likewise.
38424 * script/lua/lvm.c: Likewise.
38425 * script/lua/lvm.h: Likewise.
38426 * script/lua/lzio.c: Likewise.
38427 * script/lua/lzio.h: Likewise.
38428
38429 2009-05-16 Bean <bean123ch@gmail.com>
38430
38431 * include/grub/kernel.h (grub_module_header_types): Add type
38432 OBJ_TYPE_CONFIG.
38433
38434 * kern/main.c (grub_load_config): New function.
38435 (grub_main): Call grub_load_config to read boot config.
38436
38437 * grub-mkimage (generate_image): New parameter config_path.
38438 (options): New option --config.
38439 (main): Parse --config option, and pass it to generate_image.
38440
38441 2009-05-14 Christian Franke <franke@computer.org>
38442
38443 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
38444 This fixes build on Cygwin.
38445
38446 2009-05-14 Pavel Roskin <proski@gnu.org>
38447
38448 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
38449 jump. This saves two bytes, so the typical case of 2 swapped
38450 drives would fit 32 bytes.
38451
38452 2009-05-13 Pavel Roskin <proski@gnu.org>
38453
38454 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
38455 grub_uint32_t to avoid a warning.
38456
38457 * loader/i386/linux.c (allocate_pages): When assigning
38458 real_mode_mem, cast through grub_size_t to fix a warning. The
38459 code already makes sure that the value would fit a pointer.
38460 (grub_linux_setup_video): Cast render_target->data to
38461 grub_size_t to fix a warning.
38462
38463 2009-05-13 Javier Martín <lordhabbit@gmail.com>
38464
38465 * commands/i386/pc/drivemap.c: New file - implement drivemap
38466 command.
38467 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
38468 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
38469
38470 2009-05-13 Pavel Roskin <proski@gnu.org>
38471
38472 * util/i386/pc/grub-setup.c (setup): Remove unused variable
38473 embedding_area_exists.
38474
38475 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
38476
38477 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
38478 it easier to understand / work with.
38479 Improve warning messages for cases where there's no embedding area,
38480 or when it is too small (or core.img too large).
38481
38482 2009-05-13 Pavel Roskin <proski@gnu.org>
38483
38484 * loader/i386/pc/multiboot2.c: Add necessary includes for
38485 grub_multiboot2_real_boot().
38486
38487 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
38488 PX record is always little-endian. We only need the lower 2
38489 bytes of the mode.
38490
38491 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
38492 facilitate code reuse.
38493 (grub_cpio_mount): Use "struct head", not a char buffer. This
38494 fixes a warning reported by gcc 4.4.
38495
38496 * kernel/disk.c (grub_disk_read): Use void pointer for the
38497 buffer.
38498 (grub_disk_write): Use const void pointer for the buffer.
38499 Adjust all callers. Remove unnecessary casts.
38500
38501 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
38502
38503 * util/i386/pc/grub-install.in: Update copyright year.
38504
38505 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38506
38507 gptsync
38508
38509 * commands/gptsync.c: new file
38510 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
38511 (gptsync_mod_SOURCES): new variable
38512 (gptsync_mod_CFLAGS): likewise
38513 (gptsync_mod_LDFLAGS): likewise
38514 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
38515 new definition
38516 (GRUB_PC_PARTITION_TYPE_HFS): likewise
38517 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
38518 * conf/i386-ieee1275.rmk: likewise
38519 * conf/i386-pc.rmk: likewise
38520 * conf/powerpc-ieee1275.rmk: likewise
38521
38522 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38523
38524 Fixed grub-emu
38525
38526 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
38527 (grub_dl_ref): likewise
38528
38529 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
38530
38531 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
38532 split in two functions (one for msdos and one for gpt).
38533
38534 2009-05-08 Pavel Roskin <proski@gnu.org>
38535
38536 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
38537 not modified.
38538
38539 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
38540 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
38541 Initialize them with -1. Add sanity check for bad1. Eliminate
38542 nerr variable.
38543
38544 2009-05-08 David S. Miller <davem@davemloft.net>
38545
38546 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
38547
38548 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
38549
38550 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
38551 existence.
38552
38553 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
38554
38555 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
38556 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
38557
38558 2009-05-05 David S. Miller <davem@davemloft.net>
38559
38560 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
38561
38562 2009-05-05 Pavel Roskin <proski@gnu.org>
38563
38564 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
38565 of grub_dl_ref() and grub_dl_unref().
38566 * commands/parttool.c: Remove preprocessor conditionals around
38567 grub_dl_ref() and grub_dl_unref().
38568 * fs/affs.c: Likewise.
38569 * fs/afs.c: Likewise.
38570 * fs/cpio.c: Likewise.
38571 * fs/ext2.c: Likewise.
38572 * fs/fat.c: Likewise.
38573 * fs/hfs.c: Likewise.
38574 * fs/hfsplus.c: Likewise.
38575 * fs/iso9660.c: Likewise.
38576 * fs/jfs.c: Likewise.
38577 * fs/minix.c: Likewise.
38578 * fs/ntfs.c: Likewise.
38579 * fs/reiserfs.c: Likewise.
38580 * fs/sfs.c: Likewise.
38581 * fs/udf.c: Likewise.
38582 * fs/ufs.c: Likewise.
38583 * fs/xfs.c: Likewise.
38584 * include/grub/dl.h: Likewise.
38585 * loader/xnu.c: Likewise.
38586
38587 2009-05-04 Pavel Roskin <proski@gnu.org>
38588
38589 * commands/acpi.c: Remove unused variable my_mod.
38590 * partmap/amiga.c: Likewise.
38591 * partmap/apple.c: Likewise.
38592 * partmap/gpt.c: Likewise.
38593 * partmap/pc.c: Likewise.
38594 * partmap/sun.c: Likewise.
38595 * term/gfxterm.c: Likewise.
38596 * term/i386/pc/vesafb.c: Likewise.
38597 * term/i386/pc/vga.c: Likewise.
38598
38599 2009-05-04 David S. Miller <davem@davemloft.net>
38600
38601 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
38602 pointer args to grub_ieee1275_get_property().
38603
38604 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
38605
38606 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
38607 devices, and do not traverse down under controller nodes.
38608
38609 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
38610 (grub_ofdisk_open): Use it to un-escape "," characters.
38611 * kern/disk.c (find_part_sep): New.
38612 (grub_disk_open): Use it to find the first non-escaped ','
38613 character in the disk name.
38614 * util/ieee1275/devicemap.c (escape_of_path): New.
38615 (grub_util_emit_devicemap_entry): Use it.
38616 * util/sparc64/ieee1275/grub-install.in: Update script to
38617 strip partition specifiers properly by not triggering on
38618 '\' escaped ',' characters.
38619
38620 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38621
38622 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
38623 to 0x300.
38624 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
38625 resolutions.
38626 (linux_vesafb_modes): Add a lot of additional modes to the list (based
38627 on documentation from Wikipedia).
38628
38629 2009-05-04 Pavel Roskin <proski@gnu.org>
38630
38631 * disk/ata.c: Spelling fixes.
38632 * disk/raid.c: Likewise.
38633 * disk/usbms.c: Likewise.
38634 * disk/dmraid_nvidia.c: Likewise.
38635 * kern/ieee1275/openfw.c: Likewise.
38636 * kern/ieee1275/init.c: Likewise.
38637 * kern/ieee1275/cmain.c: Likewise.
38638 * boot/i386/pc/cdboot.S: Likewise.
38639 * video/readers/png.c: Likewise.
38640 * video/i386/pc/vbe.c: Likewise.
38641 * fs/udf.c: Likewise.
38642 * fs/hfs.c: Likewise.
38643 * fs/reiserfs.c: Likewise.
38644 * efiemu/runtime/efiemu.c: Likewise.
38645 * efiemu/main.c: Likewise.
38646 * efiemu/mm.c: Likewise.
38647 * include/grub/elf.h: Likewise.
38648 * include/grub/xnu.h: Likewise.
38649 * include/grub/usbdesc.h: Likewise.
38650 * include/grub/usb.h: Likewise.
38651 * include/grub/script_sh.h: Likewise.
38652 * include/grub/lib/LzmaEnc.h: Likewise.
38653 * include/grub/efiemu/efiemu.h: Likewise.
38654 * include/grub/command.h: Likewise.
38655 * normal/menu.c: Likewise.
38656 * normal/main.c: Likewise.
38657 * normal/datetime.c: Likewise.
38658 * bus/usb/uhci.c: Likewise.
38659 * mmap/i386/uppermem.c: Likewise.
38660 * mmap/mmap.c: Likewise.
38661 * commands/acpi.c: Likewise.
38662 * commands/test.c: Likewise.
38663 * partmap/apple.c: Likewise.
38664 * font/font.c: Likewise.
38665 * loader/sparc64/ieee1275/linux.c: Likewise.
38666 * loader/macho.c: Likewise.
38667 * loader/i386/bsd_trampoline.S: Likewise.
38668 * loader/i386/bsd.c: Likewise.
38669 * loader/xnu.c: Likewise.
38670 * term/i386/pc/vesafb.c: Likewise.
38671 * term/usb_keyboard.c: Likewise.
38672 * util/resolve.c: Likewise.
38673 * util/getroot.c: Likewise.
38674
38675 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38676
38677 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
38678
38679 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38680
38681 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
38682 build error.
38683
38684 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38685
38686 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
38687 parameter only available on BIOS.
38688
38689 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38690
38691 Removed wrong semicolon in declaration
38692
38693 * grub/misc.h (grub_dprintf): remove semicolon
38694
38695 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38696
38697 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
38698 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
38699 is done by grub_cmd_linux() now).
38700 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
38701 restore video to text mode.
38702 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
38703 indicates lack of "vga=" parameter. "vga=0" is mapped to
38704 `GRUB_LINUX_VID_MODE_NORMAL'.
38705
38706 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38707
38708 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
38709 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
38710 and `normal/script.c'. Add `kern/rescue_reader.c',
38711 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
38712 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
38713 `grub_script.tab.c'.
38714
38715 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38716 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
38717 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38718 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
38719 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38720
38721 * Makefile.in: Remove duplicated 2008 in Copyright line.
38722
38723 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38724
38725 * util/misc.c (grub_util_warn): New function. Emits a warning
38726 unconditionally.
38727 * include/grub/util/misc.h (grub_util_warn): New declaration.
38728
38729 * util/i386/pc/grub-install.in: Understand --force and pass it down
38730 to grub-setup.
38731
38732 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
38733 down to setup().
38734 (setup): Improve error messages and add warnings when requested to
38735 install in odd layouts. Refuse to install using blocklists unless
38736 --force was set.
38737
38738 2009-05-04 martin f. krafft <madduck@madduck.net>
38739
38740 * disk/raid.c (grub_raid_scan_device): Improve debug message.
38741
38742 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38743
38744 Updated copyright year
38745
38746 * fs/hfsplus.c: updated copyright year
38747
38748 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38749
38750 HFS+ UUID
38751
38752 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
38753 in the space previously used by unused3
38754 (grub_hfsplus_uuid): new function
38755 (grub_hfsplus_fs): added uuid field
38756
38757 2009-05-03 Pavel Roskin <proski@gnu.org>
38758
38759 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
38760 suppress warnings. It's no longer needed.
38761 * disk/host.c: Likewise.
38762 * disk/ata_pthru.c: Likewise.
38763 * disk/loopback.c: Likewise.
38764 * hook/datehook.c: Likewise.
38765 * parttool/pcpart.c: Likewise.
38766 * fs/i386/pc/pxe.c: Likewise.
38767 * fs/ntfscomp.c: Likewise.
38768 * efiemu/main.c: Likewise.
38769 * mmap/mmap.c: Likewise.
38770 * commands/crc.c: Likewise.
38771 * commands/hexdump.c: Likewise.
38772 * commands/hdparm.c: Likewise.
38773 * commands/acpi.c: Likewise.
38774 * commands/echo.c: Likewise.
38775 * commands/minicmd.c: Likewise.
38776 * commands/blocklist.c: Likewise.
38777 * commands/memrw.c: Likewise.
38778 * commands/loadenv.c: Likewise.
38779 * commands/usbtest.c: Likewise.
38780 * commands/lsmmap.c: Likewise.
38781 * commands/boot.c: Likewise.
38782 * commands/parttool.c: Likewise.
38783 * commands/configfile.c: Likewise.
38784 * commands/search.c: Likewise.
38785 * commands/ieee1275/suspend.c: Likewise.
38786 * commands/cat.c: Likewise.
38787 * commands/i386/pc/pxecmd.c: Likewise.
38788 * commands/i386/pc/play.c: Likewise.
38789 * commands/i386/pc/halt.c: Likewise.
38790 * commands/i386/pc/vbeinfo.c: Likewise.
38791 * commands/i386/pc/vbetest.c: Likewise.
38792 * commands/lspci.c: Likewise.
38793 * commands/date.c: Likewise.
38794 * commands/handler.c: Likewise.
38795 * commands/ls.c: Likewise.
38796 * commands/test.c: Likewise.
38797 * commands/cmp.c: Likewise.
38798 * commands/efi/loadbios.c: Likewise.
38799 * commands/efi/fixvideo.c: Likewise.
38800 * commands/halt.c: Likewise.
38801 * commands/help.c: Likewise.
38802 * commands/reboot.c: Likewise.
38803 * hello/hello.c: Likewise.
38804 * script/sh/main.c: Likewise.
38805 * loader/xnu.c: Likewise.
38806 * term/terminfo.c: Likewise.
38807 * term/i386/pc/serial.c: Likewise.
38808 * term/usb_keyboard.c: Likewise.
38809
38810 2009-05-03 David S. Miller <davem@davemloft.net>
38811
38812 * normal/menu.c: Include grub/parser.h
38813
38814 2009-05-03 Pavel Roskin <proski@gnu.org>
38815
38816 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
38817 not char*.
38818 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
38819 Suggested by Javier Martín <lordhabbit@gmail.com>
38820
38821 * util/i386/pc/grub-mkrescue.in: Allow for the case when
38822 efiemu??.o doesn't exist.
38823 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
38824 copying.
38825
38826 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
38827
38828 FreeBSD 64-bit support
38829
38830 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
38831 and loader/i386/bsd_trampoline.S
38832 (bsd_mod_ASFLAGS): new variable
38833 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
38834 (FREEBSD_MODTYPE_KERNEL64): likewise
38835 (grub_bsd64_trampoline_start): likewise
38836 (grub_bsd64_trampoline_end): likewise
38837 (grub_bsd64_trampoline_selfjump): likewise
38838 (grub_bsd64_trampoline_gdt): likewise
38839 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
38840 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
38841 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
38842 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
38843 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
38844 of "attrib" member
38845 * loader/i386/bsd_pagetable.c: new file
38846 * loader/i386/bsd_trampoline.S: likewise
38847 * loader/i386/bsd.c (ALIGN_QWORD): new macro
38848 (ALIGN_VAR): likewise
38849 (entry_hi): new variable
38850 (kern_end_mdofs): likewise
38851 (is_64bit): likewise
38852 (grub_freebsd_add_meta): use ALIGN_VAR
38853 (grub_e820_mmap): new declaration
38854 (grub_freebsd_add_mmap): new function
38855 (grub_freebsd_add_meta_module): support 64 bit kernels
38856 (grub_freebsd_list_modules): use ALIGN_VAR
38857 (gdt_descriptor): new declaration
38858 (grub_freebsd_boot): support 64 bit kernels
38859 (grub_bsd_elf64_hook): new function
38860 (grub_bsd_load_elf): support elf64
38861
38862 2009-05-03 Bean <bean123ch@gmail.com>
38863
38864 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
38865 after we get the result of if statement.
38866
38867 2009-05-03 Bean <bean123ch@gmail.com>
38868
38869 * Makefile.in (enable_efiemu): New variable.
38870
38871 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
38872 set.
38873 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
38874 path.
38875 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
38876 path, add -mno-red-zone option.
38877 (efiemu64_s.o): Likewise.
38878 (efiemu64.o): Use macro $^ for source file.
38879
38880 * configure.ac (--enable-efiemu): New option.
38881
38882 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
38883
38884 xnu support
38885
38886 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
38887 (pkglib_MODULES): add xnu.mod
38888 (xnu_mod_SOURCES): new variable
38889 (xnu_mod_CFLAGS): likewise
38890 (xnu_mod_LDFLAGS): likewise
38891 (xnu_mod_ASFLAGS): likewise
38892 * conf/i386-pc.rmk: likewise
38893 * conf/x86_64-efi.rmk: likewise
38894 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
38895 new declaration
38896 * include/grub/i386/macho.h: new file
38897 * include/grub/i386/xnu.h: likewise
38898 * include/grub/macho.h: likewise
38899 * include/grub/machoload.h: likewise
38900 * include/grub/x86_64/macho.h: likewise
38901 * include/grub/x86_64/xnu.h: likewise
38902 * include/grub/xnu.h: likewise
38903 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
38904 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
38905 * loader/i386/efi/xnu.c: new file
38906 * loader/i386/pc/xnu.c: likewise
38907 * loader/i386/xnu.c: likewise
38908 * loader/i386/xnu_helper.S: likewise
38909 * loader/macho.c: likewise
38910 * loader/xnu.c: likewise
38911 * loader/xnu_resume.c: likewise
38912 * util/grub-dumpdevtree: likewise
38913 * include/grub/i386/pit.h: include grub/err.h
38914 (grub_pit_wait): export
38915 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
38916
38917 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38918
38919 Efiemu
38920
38921 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
38922 _linux_efi, linux_efi.
38923 new files in grub-emu
38924 new targets efiemu32.o and efiemu64.o
38925 * loader/linux_normal_efiemu.c: likewise
38926 * loader/i386/efi/linux.c: added preliminary efiemu support
38927 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
38928 files to copy
38929 * include/grub/autoefi.h: new file
38930 * include/grub/i386/efiemu.h: likewise
38931 * include/grub/i386/pc/efiemu.h: likewise
38932 * include/grub/efi/api.h: add LL suffix when necessary
38933 new definitions relating to tables
38934 * include/grub/efiemu/efiemu.h: new file
38935 * include/grub/efiemu/runtime.h: likewise
38936 * efiemu/prepare.c: likewise
38937 * efiemu/loadcore_common.c: likewise
38938 * efiemu/loadcore64.c: likewise
38939 * efiemu/runtime/efiemu.sh: likewise
38940 * efiemu/runtime/efiemu.S: likewise
38941 * efiemu/runtime/efiemu.c: likewise
38942 * efiemu/runtime/config.h: likewise
38943 * efiemu/prepare32.c: likewise
38944 * efiemu/main.c: likewise
38945 * efiemu/modules/pnvram.c: likewise
38946 * efiemu/modules/i386: likewise
38947 * efiemu/modules/i386/pc: likewise
38948 * efiemu/modules/acpi.c: likewise
38949 * efiemu/i386/pc/cfgtables.c: likewise
38950 * efiemu/i386/loadcore64.c: likewise
38951 * efiemu/i386/loadcore32.c: likewise
38952 * efiemu/prepare64.c: likewise
38953 * efiemu/loadcore.c: likewise
38954 * efiemu/symbols.c: likewise
38955 * efiemu/mm.c: likewise
38956 * efiemu/loadcore32.c: likewise
38957
38958 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38959
38960 ACPI spoofing
38961
38962 * commands/acpi.c: new file
38963 * commands/i386/pc/acpi.c: likewise
38964 * commands/efi/acpi.c: likewise
38965 * include/grub/acpi.h: likewise
38966 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
38967 (acpi_mod_SOURCES): new variable
38968 (acpi_mod_CFLAGS): likewise
38969 (acpi_mod_LDFLAGS): likewise
38970 * conf/i386-efi.rmk: likewise
38971 * conf/x86_64-efi.rmk: likewise
38972
38973 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38974
38975 Missing part from mmap patch
38976
38977 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
38978 (grub_mmap_unregister)
38979 (grub_mmap_free_and_unregister): use grub_mmap_register
38980
38981 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38982
38983 Mmap services
38984
38985 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
38986 * loader/i386/linux.c (find_mmap_size): likewise
38987 (allocate_pages): likewise
38988 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
38989 (grub_fill_multiboot_mmap): likewise
38990 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
38991 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
38992 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
38993 (OPENBSD_MMAP_RESERVED): likewise
38994 * include/grub/i386/pc/memory.h: include grub/memory.h
38995 (grub_lower_mem): removed
38996 (grub_upper_mem): likewise
38997 (GRUB_MACHINE_MEMORY_ACPI): new definition
38998 (GRUB_MACHINE_MEMORY_NVS): likewise
38999 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
39000 (GRUB_MACHINE_MEMORY_HOLE): likewise
39001 (grub_machine_mmap_register): likewise
39002 (grub_machine_mmap_unregister): likewise
39003 (grub_machine_get_upper): likewise
39004 (grub_machine_get_lower): likewise
39005 (grub_machine_get_post64): likewise
39006 * include/grub/i386/efi/memory.h: new file
39007 * include/grub/x86_64/efi/memory.h: likewise
39008 * include/grub/efi/memory.h: likewise
39009 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
39010 (mmap_mod_SOURCES): new variable
39011 (mmap_mod_LDFLAGS): likewise
39012 (mmap_mod_ASFLAGS): likewise
39013 * conf/i386-coreboot.rmk: likewise
39014 * conf/i386-ieee1275.rmk: likewise
39015 * conf/i386-efi.rmk: likewise
39016 * conf/x86_64-efi.rmk: likewise
39017 * include/grub/types.h (UINT_TO_PTR): new macro
39018 (PTR_TO_UINT32): likewise
39019 (PTR_TO_UINT64): likewise
39020 * include/grub/memory.h: new file
39021 * mmap/i386/pc/mmap.c: likewise
39022 * mmap/i386/pc/mmap_helper.S: likewise
39023 * mmap/i386/uppermem.c: likewise
39024 * mmap/mmap.c: likewise
39025 * mmap/efi/mmap.c: likewise
39026 * kern/i386/coreboot/init.c (grub_machine_init): don't use
39027 grub_upper_mem
39028 * kern/i386/pc/init.c (grub_lower_mem): removed variable
39029 (grub_upper_mem): likewise
39030 (grub_machine_init): don't use grub_upper_mem,
39031 make grub_lower_mem local
39032 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
39033 grub_mmap_iterate and grub_mmap_get_upper
39034 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
39035
39036 2009-05-02 Bean <bean123ch@gmail.com>
39037
39038 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
39039 script/sh/parser.y.
39040 (pkglib_MODULES): Add normal.mod and sh.mod.
39041 (normal_SOURCES): New variable.
39042 (normal_mod_CFLAGS): Likewise.
39043 (normal_mod_LDFLAGS): Likewise.
39044 (sh_mod_SOURCES): Likewise.
39045 (sh_mod_CFLAGS): Likewise.
39046 (sh_mod_LDFLAGS): Likewise.
39047
39048 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
39049 script/sh/lexer.c_DEPENDENCIES.
39050 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
39051 kern/rescue_reader.c and kern/rescue_parser.c.
39052 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
39053 (grub_emu_SOURCES): Change source files.
39054 (pkglib_MODULES): Remove normal.mod.
39055 (normal_SOURCES): Removed.
39056 (normal_mod_CFLAGS): Likewise.
39057 (normal_mod_LDFLAGS): Likewise.
39058 * conf/i386-coreboot.rmk: Likewise.
39059 * conf/i386-efi.rmk: Likewise.
39060 * conf/i386-ieee1276.rmk: Likewise.
39061 * conf/powerpc-ieee1275.rmk: Likewise.
39062 * conf/sparc64-ieee1275.rmk: Likewise.
39063 * conf/x86_64-efi.rmk: Likewise.
39064
39065 * include/grub/command.h (grub_command_execute): New inline function.
39066
39067 * include/grub/menu.h (grub_menu_entry): Removed commands field.
39068
39069 * include/grub/normal.h: Remove <grub/setjmp.h>.
39070 (grub_fs_module_list): Moved to normal/autofs.c.
39071 (grub_exit_env): Removed.
39072 (grub_command_execute): Likewise.
39073 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
39074 parameter script.
39075 (read_command_list): New function declaration.
39076 (read_fs_list): Likewise.
39077
39078 * include/parser.h: Include <grub/reader.h>.
39079 (grub_parser_split_cmdline): Change type of getline parameter.
39080 (grub_parser): New structure.
39081 (grub_parser_class): New variable.
39082 (grub_parser_execute): New function declaration.
39083 (grub_register_rescue_parser): Likewise.
39084 (grub_parser_register): New inline function.
39085 (grub_parser_unregister): Likewise.
39086 (grub_parser_get_current): Likewise.
39087 (grub_parser_set_current): Likewise.
39088
39089 * include/grub/reader.h: New file.
39090 * kern/reader.c: Likewise.
39091 * kern/rescue_parser.c: Likewise.
39092 * kern/rescue_reader.c: Likewise.
39093 * normal/autofs.c: Likewise.
39094 * normal/dyncmd.c: Likewise.
39095
39096 * include/grub/rescue.h: Removed.
39097 * normal/command.h: Likewise.
39098
39099 * include/grub/script.h: Moved to ...
39100 * include/grub/script_sh.h: ... Moved here.
39101 * normal/execute.c: Moved to ...
39102 * script/sh/execute.c: ... Moved here.
39103 * normal/function.c: Moved to ...
39104 * script/sh/function.c: ... Moved here.
39105 * normal/lexer.c: Moved to ...
39106 * script/sh/lexer.c: ... Moved here.
39107 * normal/parser.y: Moved to ...
39108 * script/sh/parser.y: ... Moved here.
39109 * normal/script.c: Moved to ...
39110 * script/sh/script.c: ... Moved here.
39111
39112 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
39113 <grub/reader.h>.
39114 (grub_exit_env): Removed.
39115 (fs_module_list): Moved to normal/autofs.c.
39116 (grub_file_getline): Don't handle comment here.
39117 (free_menu): Skip removed field entry->commands.
39118 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
39119 script parameter.
39120 (read_config_file): Removed nested parameter, change getline function.
39121 (grub_enter_normal_mode): Removed.
39122 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
39123 (read_command_list): Likewise.
39124 (autoload_fs_module): Moved to normal/autofs.c.
39125 (read_fs_list): Likewise.
39126 (reader_nested): New variable.
39127 (grub_normal_execute): Run parser.sh to switch to sh parser.
39128 (grub_cmd_rescue): Removed.
39129 (cmd_normal): Removed.
39130 (grub_cmd_normal): Unregister itself at the beginning. Don't register
39131 rescue command.
39132 (grub_cmdline_run): New function.
39133 (grub_normal_reader_init): Likewise.
39134 (grub_normal_read_line): Likewise.
39135 (grub_env_write_pager): Likewise.
39136 (cmdline): New variable.
39137 (grub_normal_reader): Likewise.
39138 (GRUB_MOD_INIT): Register normal reader and set as current, register
39139 pager hook, register normal command with grub_register_command_prio,
39140 so that it won't show up in command.lst.
39141 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
39142 grub_fs_autoload_hook.
39143
39144 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
39145 (grub_menu_execute_entry): Replace grub_script_execute with
39146 grub_parser_execute, change parameter to grub_command_execute.
39147
39148 * normal/menu_text.c: Remove <grub/script.h>.
39149
39150 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
39151 and <grub/parser.h>.
39152 (run): Change editor_getline to use new parser interface. Change
39153 parameter to grub_command_execute.
39154
39155 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
39156 <grub/reader.h> and <grub/parser.h>.
39157 (grub_load_normal_mode): Execute normal command.
39158 (grub_main): Call grub_register_core_commands,
39159 grub_register_rescue_parser and grub_register_rescue_reader, use
39160 grub_reader_loop to enter input loop.
39161
39162 * kern/parser.c (grub_parser_split_cmdline): Change type of
39163 getline parameter.
39164 (grub_parser_class): New variable.
39165 (grub_parser_execute): New function.
39166
39167 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
39168 * loader/multiboot2.c: Likewise.
39169 * loader/sparc64/ieee1275/linux.c: Likewise.
39170
39171 * util/grub-emu.c (read_command_list): New dummy function.
39172
39173 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39174
39175 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
39176 count to 16 for CCISS and IDA.
39177
39178 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39179
39180 * normal/menu_text.c (grub_wait_after_message): Print a newline
39181 after waiting for user input.
39182
39183 * loader/i386/linux.c: Include `<grub/normal.h>'.
39184 (grub_cmd_linux): Improve the error message about `ask' mode, by
39185 waiting for user input so it's not missed (we can do this, since
39186 user requested interaction).
39187
39188 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39189
39190 Added missing lst to grub-mkrescue
39191
39192 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
39193 and ${input_dir}/parttool.lst
39194
39195 2009-04-30 David S. Miller <davem@davemloft.net>
39196
39197 * util/hostdisk.c (device_is_wholedisk): New function.
39198 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
39199 zero only if device_is_wholedisk() returns true.
39200
39201 * util/hostdisk.c (convert_system_partition_to_system_disk):
39202 Handle virtual disk devices named /dev/vdiskX as found on sparc
39203 and powerpc.
39204
39205 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
39206 lettered partition specifier is found, convert to numbered.
39207
39208 2009-04-29 David S. Miller <davem@davemloft.net>
39209
39210 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
39211 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39212
39213 * normal/command.c: Add missing newline at end of file.
39214
39215 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
39216 warnings.
39217 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
39218 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
39219 grub_ofdisk_read): Likewise, and deal similarly with the fact that
39220 ihandles have a 32-bit type but need to be stored in a "void *".
39221
39222 2009-04-28 Pavel Roskin <proski@gnu.org>
39223
39224 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
39225 not disk. Adjust all dependencies.
39226 (grub_fs_uuid_close): Use grub_device_close(), not
39227 grub_disk_close().
39228
39229 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
39230 parent's partition, don't copy it by reference, as it gets freed
39231 on close.
39232
39233 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39234
39235 Preboot hooks support
39236
39237 * commands/boot.c (struct grub_preboot_t): new declaration
39238 (preboots_head): new variable
39239 (preboots_tail): likewise
39240 (grub_loader_register_preboot_hook): new function
39241 (grub_loader_unregister_preboot_hook): likewise
39242 (grub_loader_set): launch preboot hooks
39243 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
39244 (grub_loader_register_preboot_hook): new declaration
39245 (grub_loader_unregister_preboot_hook): likewise
39246
39247 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39248
39249 Warning fix
39250
39251 * disk/scsi.c (grub_scsi_open): added missing cast when
39252 calling grub_dprintf
39253
39254 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
39255
39256 Bug and warning fixes
39257
39258 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
39259 declaration
39260 * commands/test.c (test_parse): fixed bug with file tests and corrected
39261 declaration of find_file
39262
39263 2009-04-26 Pavel Roskin <proski@gnu.org>
39264
39265 * Makefile.in: Don't install empty manual pages if help2man is
39266 missing. Use help2man option for output, not shell redirection.
39267
39268 2009-04-26 David S. Miller <davem@davemloft.net>
39269
39270 * util/grub-mkdevicemap.c (make_device_map): Add missing
39271 NESTED_FUNC_ATTR to process_device().
39272
39273 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39274
39275 Test command
39276
39277 * commands/test.c: rewritten to use bash-like test
39278
39279 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39280
39281 Parttool autoloading and improvements
39282
39283 * Makefile.in (pkglib_DATA): add parttool.lst
39284 (parttool.lst): new target
39285 * genmk.rb: generate parttool-*
39286 (CLEANFILES): add #{parttool}
39287 (PARTTOOLFILES): new variable
39288 * genparttoollist.sh: new file
39289 * parttool/pcpart.c (grub_pcpart_boot): more feedback
39290 (grub_pcpart_type): likewise
39291 * commands/parttool.c (helpmsg): new variable
39292 (grub_cmd_parttool): output help if not enough arguments are supplied
39293 autoload modules
39294 (GRUB_MOD_INIT(parttool)): use helpmsg
39295
39296 2009-04-24 David S. Miller <davem@davemloft.net>
39297
39298 Avoiding opening same device multiple times in device iterator.
39299
39300 * kern/device.c: (grub_device_iterate): Define struct part_ent,
39301 and use it to build a list of partitions in iterate_disk() and
39302 iterate_partition().
39303
39304 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
39305 on disk->data.
39306
39307 * disk/ieee1275/nand.c (grub_nand_iterate): Return
39308 grub_devalias_iterate() result instead of unconditional 0.
39309 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
39310 Also, capture hook return value, either directly or via
39311 grub_children_iterate(), and propagate to caller.
39312 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
39313 grub_children_iterate): Return value is now 'int' instead of
39314 'grub_err_t'.
39315 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
39316 like a proper iterator, stopping when hooks return non-zero.
39317 (grub_devalias_iterate): Likewise.
39318
39319 2009-04-23 David S. Miller <davem@davemloft.net>
39320
39321 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
39322
39323 2009-04-22 David S. Miller <davem@davemloft.net>
39324
39325 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
39326 is larger than address_cells, use that value for address_cells too.
39327
39328 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
39329 IEEE1275_MAX_PATH_LEN): Define.
39330 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
39331 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
39332 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
39333 'devtype'. Explicitly NULL terminate devalias expansion.
39334
39335 * util/sparc64/ieee1275/misc.c: New file.
39336 * util/sparc64/ieee1275/grub-setup.c: New file.
39337 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
39338 * util/sparc64/ieee1275/grub-mkimage.c: New file.
39339 * util/sparc64/ieee1275/grub-install.in: New file.
39340 * util/ieee1275/ofpath.c: New file.
39341 * util/ieee1275/devicemap.c: New file.
39342 * util/devicemap.c: New file.
39343 * util/deviceiter.c: New file.
39344 * kern/sparc64/ieee1275/init.c: New file.
39345 * include/grub/util/ofpath.h: New file.
39346 * include/grub/util/deviceiter.h: New file.
39347 * util/grub-mkdevicemap.c: Include deviceiter.h.
39348 Implement using grub_util_emit_devicemap_entry and
39349 grub_util_iterate_devices.
39350 * conf/i386-corebook.rmk: Build util/deviceiter.c and
39351 util/devicemap.c into grub-mkdevicemap
39352 * conf/i386-efi.rmk: Likewise.
39353 * conf/i386-ieee1275.rmk: Likewise.
39354 * conf/i386-pc.rmk: Likewise.
39355 * conf/powerpc-ieee1275.rmk: Likewise.
39356 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
39357 images and installation utilities. Build kernel as image
39358 instead of as elf binary. Use common rules as much as possible.
39359
39360 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
39361
39362 Correct GPT definition
39363
39364 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
39365 of "attrib" member
39366
39367 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
39368
39369 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
39370
39371 2009-04-19 David S. Miller <davem@davemloft.net>
39372
39373 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
39374 (grub_rescue_cmd_linux): Rename to...
39375 (grub_cmd_linux): and fix prototype.
39376 (grub_rescue_cmd_initrd): Rename to...
39377 (grub_cmd_initrd): and fix prototype.
39378 (cmd_linux, cmd_initrd): New.
39379 (GRUB_MOD_INIT(linux)): Use grub_register_command().
39380 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
39381
39382 2009-04-17 Pavel Roskin <proski@gnu.org>
39383
39384 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
39385 format.
39386 (grub_ohci_transfer): Likewise.
39387
39388 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
39389
39390 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
39391 return without a value. Fix inconsistent indentation.
39392
39393 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
39394 match struct grub_fs.
39395
39396 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
39397 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
39398 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
39399 * commands/lspci.c (grub_lspci_iter): Likewise.
39400
39401 2009-04-16 Bean <bean123ch@gmail.com>
39402
39403 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
39404 value.
39405
39406 2009-04-15 Pavel Roskin <proski@gnu.org>
39407
39408 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
39409 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
39410 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
39411 definitions.
39412
39413 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39414
39415 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
39416 that no multiple data or metadata areas are supported and `Unknown
39417 metadata header'.
39418
39419 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39420
39421 Move loader out of the kernel
39422
39423 * kern/loader.c: moved to ...
39424 * commands/boot.c: ... moved here
39425 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
39426 * commands/boot.c (grub_cmd_boot): moved here. All users updated
39427 * include/grub/kernel.h (grub_machine_fini): export
39428 * include/grub/loader.h (grub_loader_is_loaded): update declaration
39429 (grub_loader_set): likewise
39430 (grub_loader_unset): likewise
39431 (grub_loader_boot): likewise
39432 * conf/common.rmk: new module boot.mod
39433 (pkglib_MODULES): add boot.mod
39434 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
39435 (grub_emu_SOURCES): likewise
39436 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
39437 (grub_emu_SOURCES): likewise
39438 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
39439 (grub_emu_SOURCES): likewise
39440 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
39441 (grub_emu_SOURCES): likewise
39442 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
39443 (grub_emu_SOURCES): likewise
39444 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
39445 (grub_emu_SOURCES): likewise
39446 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
39447 (grub_emu_SOURCES): likewise
39448
39449 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39450
39451 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
39452
39453 * kern/misc.c (grub_itoa): Removed function
39454 (grub_ltoa): likewise
39455 (grub_vsprintf): use grub_lltoa
39456
39457 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39458
39459 Restore grub-emu
39460
39461 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
39462 * conf/i386-coreboot.rmk: likewise
39463 * conf/i386-ieee1275.rmk: likewise
39464 * conf/powerpc-ieee1275.rmk: likewise
39465
39466 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39467
39468 * INSTALL: Add that `./autogen.sh' needs to be run before
39469 `./configure.'.
39470
39471 2009-04-14 Bean <bean123ch@gmail.com>
39472
39473 * Makefile.in (pkglib_DATA): Add handler.lst.
39474 (handler.lst): New rule.
39475
39476 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
39477 * conf/i386-coreboot.rmk: Likewise.
39478 * conf/i386-ieee1275.rmk: Likewise.
39479 * conf/i386-efi.rmk: Likewise.
39480 * conf/x86_64-efi.rmk: Likewise.
39481 * conf/powerpc-ieee1275.rmk: Likewise.
39482 * conf/sparc64-ieee1275.rmk: Likewise.
39483
39484 * genhandlerlist.sh: New file.
39485
39486 * genmk.rb: Add rules to generate handler.lst.
39487
39488 * include/grub/normal.h (grub_file_getline): New function definition.
39489 (read_handler_list): Likewise.
39490 (free_handler_list): Likewise.
39491
39492 * include/grub/term.h (grub_term_register_input): Add name parameter
39493 for auto generation of handler.lst.
39494 (grub_term_register_output): Likewise.
39495
39496 * normal/handler.c: New file.
39497
39498 * normal/main.c (get_line): Renamed to grub_file_getline.
39499 (read_config_file): Use the newly renamed grub_file_getline.
39500 (read_command_list): Likewise.
39501 (read_fs_list): Likewise.
39502 (grub_normal_execute): Call read_handler_list to parse handler.lst.
39503 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
39504
39505 * term/efi/console.c (grub_console_init): Add name parameter for auto
39506 generation of handler.lst.
39507 * term/gfxterm.c: Likewise.
39508 * term/i386/pc/at_keyboard.c: Likewise.
39509 * term/i386/pc/console.c: Likewise.
39510 * term/i386/pc/serial.c: Likewise.
39511 * term/i386/pc/vesafb.c: Likewise.
39512 * term/i386/pc/vga.c: Likewise.
39513 * term/i386/pc/vga_text.c: Likewise.
39514 * term/ieee1275/ofconsole.c: Likewise.
39515 * term/usb_keyboard.c: Likewise.
39516
39517 2009-04-14 Bean <bean123ch@gmail.com>
39518
39519 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
39520 properly with null character.
39521
39522 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39523
39524 * configure: Remove.
39525 * config.h.in: Likewise.
39526 * stamp-h.in: Likewise.
39527 * DISTLIST: Likewise.
39528 * conf/common.mk: Likewise.
39529 * conf/i386-coreboot.mk: Likewise.
39530 * conf/i386-efi.mk: Likewise.
39531 * conf/i386-ieee1275.mk: Likewise.
39532 * conf/i386.mk: Likewise.
39533 * conf/i386-pc.mk: Likewise.
39534 * conf/powerpc-ieee1275.mk: Likewise.
39535 * conf/sparc64-ieee1275.mk: Likewise.
39536 * conf/x86_64-efi.mk: Likewise.
39537
39538 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
39539 develop on GRUB.
39540
39541 2009-04-14 John Stanley <jpsinthemix@verizon.net>
39542 David S. Miller <davem@davemloft.net>
39543
39544 * util/hostdisk.c (make_device_name): Fix buffer length
39545 calculations.
39546
39547 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39548
39549 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
39550 <sys/param.h> and <sys/sysctl.h>.
39551 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
39552 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
39553 opening the device and reset them afterwards.
39554
39555 2009-04-13 Pavel Roskin <proski@gnu.org>
39556
39557 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
39558 Reported by John Stanley <jpsinthemix@verizon.net>
39559
39560 2009-04-13 Robert Millan <rmh@aybabtu.com>
39561
39562 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
39563 that name for menuentries when appropriate.
39564
39565 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39566
39567 * util/grub.d/10_freebsd.in: Add a missing `fi'.
39568
39569 2009-04-13 Robert Millan <rmh@aybabtu.com>
39570
39571 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
39572 to Linux, simply abort telling the user it's no longer supported.
39573
39574 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39575
39576 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
39577 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
39578 `freebsd_loadenv' only when devices.hints exist.
39579
39580 2009-04-13 Pavel Roskin <proski@gnu.org>
39581
39582 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
39583
39584 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39585
39586 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
39587 partition number.
39588 (grub_drive): Likewise.
39589
39590 2009-04-13 David S. Miller <davem@davemloft.net>
39591
39592 * kern/sparc64/ieee1275/ieee1275.c: New file.
39593 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
39594 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
39595 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
39596 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
39597 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
39598 grub_ieee1275_alloc_physmem): Declare new exported functions.
39599
39600 * include/grub/sparc64/ieee1275/loader.h: New file.
39601 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39602 * include/grub/sparc64/kernel.h: Likewise.
39603 * loader/sparc64/ieee1275/linux.c: Likewise.
39604
39605 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
39606 (grub_fstest_SOURCES): Likewise.
39607
39608 * util/hostdisk.c (make_device_name): Do not make any assumptions
39609 about the length of drive names.
39610
39611 * kern/dl.c (grub_dl_load_file): Close file immediately when
39612 we are done using it.
39613
39614 2009-04-12 David S. Miller <davem@davemloft.net>
39615
39616 * kern/misc.c (grub_ltoa): Fix cast when handling negative
39617 values. Noticed by Pavel Roskin.
39618
39619 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
39620 target compiler.
39621
39622 * genmk.rb: Add more flexible image type specification, also
39623 pass --strip-unneeded to objcopy.
39624 * conf/i386-pc.rmk: Use *_FORMAT.
39625 * conf/i386-pc.mk: Rebuilt.
39626
39627 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
39628 (OFDISK_HASH_SZ): Define.
39629 (ofdisk_hash): New hash table.
39630 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
39631 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
39632 instead of device phandle which is not unique.
39633
39634 * kern/sparc64/ieee1275/init.c: Delete, replace with...
39635 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
39636 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
39637 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
39638 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
39639 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
39640 GRUB_KERNEL_MACHINE_DATA_END): Define.
39641 (grub_kernel_image_size, grub_total_module_size): Declare.
39642
39643 2009-04-12 Pavel Roskin <proski@gnu.org>
39644
39645 * configure.ac: Change the logic when we check for target tools.
39646 Do it when the target is specified and it's different from the
39647 specified value of the host.
39648
39649 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
39650
39651 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
39652 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
39653 GNU/kFreeBSD. Check if a device is a character device. Use
39654 DIOCGMEDIASIZE to get the size.
39655 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
39656 support for GNU/kFreeBSD.
39657 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
39658 is a character device instead of a block device. Add support for
39659 FreeBSD device names.
39660
39661 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
39662 is a character device instead of a block device.
39663
39664 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
39665 is a character device instead of a block device.
39666
39667 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
39668
39669 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
39670 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
39671 FreeBSD. Check if a device is a character device. Use
39672 DIOCGMEDIASIZE to get the size.
39673 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
39674 support for FreeBSD.
39675 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
39676 is a character device instead of a block device. Add support for
39677 FreeBSD device names.
39678
39679 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
39680 a character device instead of a block device.
39681 (grub_util_check_char_device): New function.
39682
39683 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
39684 a character device instead of a block device.
39685
39686 * include/grub/util/getroot.h (grub_util_check_char_device): New
39687 prototype.
39688
39689 2009-04-11 David S. Miller <davem@davemloft.net>
39690
39691 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
39692 static libgcc.
39693 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
39694 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
39695 function, if present.
39696 (__bswapdi2): Likewise.
39697
39698 * include/grub/sparc64/ieee1275/boot.h: New file.
39699 * boot/sparc64/ieee1275/boot.S: Likewise.
39700 * boot/sparc64/ieee1275/diskboot.S: Likewise.
39701
39702 * kern/misc.c (grub_ltoa): New function.
39703 (grub_vsprintf): Use it to format 'long' integers.
39704
39705 2009-04-10 David S. Miller <davem@davemloft.net>
39706
39707 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
39708 slots are of type grub_ieee1275_cell_t.
39709 (grub_nand_read): Likewise.
39710 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
39711 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
39712 macros are used to compare values in arg/ret block of the call.
39713 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
39714 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
39715 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
39716 grub_ieee1275_instance_to_path, grub_ieee1275_write,
39717 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
39718 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
39719 grub_ieee1275_close, grub_ieee1275_set_property,
39720 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
39721 grub_ieee1275_cell_t.
39722 * kern/ieee1275/openfw.c (grub_map): Likewise.
39723 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
39724 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
39725
39726 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
39727 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
39728 (grub_devalias_iterate): Likewise.
39729
39730 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
39731
39732 UFS improvements
39733
39734 * fs/ufs.c (INODE_NBLOCKS): new definition
39735 (struct grub_ufs_dirent): added fields for non-BSD dirents
39736 (grub_ufs_get_file_block): fixed double indirect handling
39737 (grub_ufs_lookup_symlink): use more robust way to determine whether
39738 symlink is inline
39739 (grub_ufs_find_file): support for non-BSD dirents
39740 (grub_ufs_dir): support for non-BSD dirents
39741
39742 2009-04-10 Bean <bean123ch@gnail.com>
39743
39744 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
39745 attribute, otherwise the size would be wrong for i386 platform.
39746
39747 * include/grub/pci.h (grub_pci_read_word): New inline function.
39748 (grub_pci_read_byte): Likewise.
39749 (grub_pci_write): Likewise.
39750 (grub_pci_write_word): Likewise.
39751 (grub_pci_write_byte): Likewise.
39752
39753 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
39754
39755 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
39756 (find_framebuf): Scan pci to locate the frame buffer address.
39757
39758 * commands/efi/fixvideo.c: New file.
39759
39760 * commands/efi/loadbios.c: Likewise.
39761
39762 * commands/memrw.c: Likewise.
39763
39764 * util/grub-dumpbios.in: Likewise.
39765
39766 * conf/common.rmk (grub-dumpbios): New utility.
39767 (pkglib_MODULES): New module memrw.mod.
39768 (memrw_mod_SOURCE): New macro.
39769 (memrw_mod_CFLAGS): Likewise.
39770 (memrw_mod_LDFLAGS): Likewise.
39771
39772 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
39773 fixvideo.mod.
39774 (loadbios_mod_SOURCE): New macro.
39775 (loadbios_mod_CFLAGS): Likewise.
39776 (loadbios_mod_LDFLAGS): Likewise.
39777 (fixvideo_mod_SOURCE): Likewise.
39778 (fixvideo_mod_CFLAGS): Likewise.
39779 (fixvideo_mod_LDFLAGS): Likewise.
39780
39781 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
39782 fixvideo.mod.
39783 (loadbios_mod_SOURCE): New macro.
39784 (loadbios_mod_CFLAGS): Likewise.
39785 (loadbios_mod_LDFLAGS): Likewise.
39786 (fixvideo_mod_SOURCE): Likewise.
39787 (fixvideo_mod_CFLAGS): Likewise.
39788 (fixvideo_mod_LDFLAGS): Likewise.
39789
39790 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
39791
39792 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
39793
39794 2009-04-07 David S. Miller <davem@davemloft.net>
39795
39796 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
39797 support for R_SPARC_OLO10 relocations. Fix compile warning for
39798 R_SPARC_WDISP30 case.
39799 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
39800
39801 2009-04-06 Pavel Roskin <proski@gnu.org>
39802
39803 * include/grub/misc.h (ARRAY_SIZE): New macro.
39804 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
39805 New macro.
39806 * loader/i386/linux.c (allocate_pages): Use free_pages().
39807 (grub_linux_unload): Don't use free_pages().
39808 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
39809 wrong index. Treat all other modes as text modes.
39810 (grub_cmd_linux): Initialize vid_mode unconditionally to
39811 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
39812
39813 * commands/help.c (print_command_help): Use cmd->prio, not
39814 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
39815
39816 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
39817
39818 Parttool
39819
39820 * parttool/pcpart.c: new file
39821 * commands/parttool.c: likewise
39822 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
39823 (parttool_mod_SOURCES): new variable
39824 (parttool_mod_CFLAGS): likewise
39825 (parttool_mod_LDFLAGS): likewise
39826 (pcpart_mod_SOURCES): likewise
39827 (pcpart_mod_CFLAGS): likewise
39828 (pcpart_mod_LDFLAGS): likewise
39829 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
39830 and parttool/pcpart.c
39831 * conf/i386-efi.rmk: likewise
39832 * conf/i386-ieee1275.rmk: likewise
39833 * conf/i386-pc.rmk: likewise
39834 * conf/powerpc-ieee1275.rmk: likewise
39835 * conf/sparc64-ieee1275.rmk: likewise
39836 * conf/x86_64-ieee1275.rmk: likewise
39837
39838 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
39839
39840 Support for mtime and further expandability of dir command
39841
39842 * include/grub/lib/datetime.h: moved to ...
39843 * include/grub/datetime.h: ... moved here and added
39844 declaration of grub_unixtime2datetime. All users updated
39845 * include/grub/fs.h: new syntax for dir and mtime functions in
39846 struct grub_fs
39847 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
39848 and GRUB_FSHELP_FLAGS_MASK
39849 * commands/ls.c (grub_ls_list_files): Write mtime in long format
39850 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
39851 (grub_ext2_mtime): new function
39852 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
39853 (grub_hfsplus_mtime): new function
39854 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
39855 (GRUB_UFS_ATTR_FILE): likewise
39856 (GRUB_UFS_ATTR_LNK): likewise
39857 (struct grub_ufs_sblock): new fields mtime
39858 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
39859 all users updated
39860 (grub_ufs_dir): mtime support
39861 (grub_ufs_mtime): new function
39862 * fs/affs.c (grub_affs_dir): use new dir syntax
39863 * fs/afs.c (grub_afs_dir): likewise
39864 * fs/cpio.c (grub_cpio_dir): likewise
39865 * fs/fat.c (grub_fat_find_dir): likewise
39866 * fs/hfs.c (grub_hfs_dir): likewise
39867 * fs/iso9660.c (grub_iso9660_dir): likewise
39868 * fs/jfs.c (grub_jfs_dir): likewise
39869 * fs/minix.c (grub_minix_dir): likewise
39870 * fs/ntfs.c (grub_ntfs_dir): likewise
39871 * fs/reiserfs.c (grub_reiserfs_dir): likewise
39872 * fs/sfs.c (grub_sfs_dir): likewise
39873 * fs/xfs.c (grub_xfs_dir): likewise
39874 * util/hostfs.c (grub_hostfs_dir): likewise
39875 * lib/datetime.c: moved to ...
39876 * normal/datetime.c: ... moved here
39877 (grub_unixtime2datetime): new function
39878 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
39879 * normal/completion.c (iterate_dir): use new dir syntax
39880 * normal/misc.c (grub_normal_print_device_info): tell the
39881 last modification time of a volume
39882 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
39883 * conf/common.rmk: added lib/datetime.c to ls.mod
39884 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
39885 (normal_mod_SOURCES): likewise
39886 (datetime_mod_SOURCES): Removed lib/datetime.c
39887 * conf/i386-efi.rmk: likewise
39888 * conf/i386-ieee1275.rmk: likewise
39889 * conf/i386-pc.rmk: likewise
39890 * conf/powerpc-ieee1275.rmk: likewise
39891 * conf/sparc64-ieee1275.rmk: likewise
39892 * conf/x86_64-efi.rmk: likewise
39893
39894 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
39895
39896 Trim trailing spaces in FAT label and support mtools-like labels
39897
39898 * fs/fat.c (grub_fat_iterate_dir): New function based
39899 on grub_fat_find_dir
39900 (grub_fat_find_dir): use grub_fat_iterate_dir
39901 (grub_fat_label): likewise
39902
39903 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
39904
39905 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
39906 and command.h
39907 remove extraneous kernel_elf_HEADERS
39908
39909 2009-04-04 Bean <bean123ch@gnail.com>
39910
39911 * include/grub/util/misc.h: Add dummy function fsync for mingw.
39912
39913 * util/misc.c: Likewise.
39914
39915 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
39916
39917 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
39918 instead of grub_printf.
39919
39920 2009-04-03 Robert Millan <rmh@aybabtu.com>
39921
39922 * loader/i386/linux.c (grub_linux_setup_video): Fill
39923 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
39924 values from `mode info' structure instead of hardcoded
39925 values.
39926
39927 2009-04-01 Pavel Roskin <proski@gnu.org>
39928
39929 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
39930 unused now.
39931 * genmk.rb: Likewise.
39932 * configure.ac: Likewise.
39933
39934 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
39935
39936 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
39937 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
39938
39939 2009-04-01 David S. Miller <davem@davemloft.net>
39940
39941 * normal/sparc64/setjmp.S: Fix setjmp implementation.
39942 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
39943 (grub_setjmp): Mark with 'returns_twice' attribute.
39944 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
39945 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
39946 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
39947
39948 2009-04-01 Robert Millan <rmh@aybabtu.com>
39949
39950 Reapply fix from 2008-07-28 which was accidentally reverted; also
39951 perform the same fix to a similar check in same function.
39952
39953 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
39954 with the same number are found, just use issue a warning with
39955 grub_dprintf(), as this error has been reported to be non-fatal.
39956
39957 2009-03-31 Pavel Roskin <proski@gnu.org>
39958
39959 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
39960 for cross-compilation.
39961
39962 2009-03-30 Robert Millan <rmh@aybabtu.com>
39963
39964 Fix i386-ieee1275 build.
39965
39966 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
39967 Remove declaration.
39968
39969 2009-03-30 Pavel Roskin <proski@gnu.org>
39970
39971 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
39972 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
39973 zero-terminated, rely only on the strlen value. Fix comparison
39974 of strings differing in length.
39975
39976 2009-03-30 Robert Millan <rmh@aybabtu.com>
39977
39978 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
39979 checking for abi version. Improve error messages on BIOS to notify
39980 user about `linux16' command.
39981
39982 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
39983
39984 Leak fixes
39985
39986 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
39987 in case of collision
39988 * disk/scsi.c (grub_scsi_open): free scsi in case of error
39989
39990 2009-03-29 Robert Millan <rmh@aybabtu.com>
39991
39992 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
39993 set `vid_mode' accordingly.
39994 (grub_linux_boot): Process `vid_mode' and set video mode.
39995
39996 2009-03-29 Robert Millan <rmh@aybabtu.com>
39997
39998 * util/grub.d/10_linux.in (linux_entry): New function.
39999 Factorize generation of Linux boot entries.
40000
40001 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
40002
40003 Make the format of Environment Block plain text. The boot loader
40004 part is not tested well yet.
40005
40006 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
40007 (buffer): Removed.
40008 (envblk): Likewise.
40009 (usage): Remove "info" and "clear". Add "unset". Update the
40010 description of "set", as this does not delete variables any
40011 longer.
40012 (create_envblk_file): Complete rewrite.
40013 (open_envblk_file): Likewise.
40014 (cmd_info): Removed.
40015 (cmd_list): Likewise.
40016 (cmd_set): Likewise.
40017 (cmd_clear): Likewise.
40018 (list_variables): New function.
40019 (write_envblk): Likewise.
40020 (set_variables): Likewise.
40021 (unset_variables): Likewise.
40022 (main): Complete rewrite.
40023
40024 * commands/loadenv.c (buffer): Removed.
40025 (envblk): Likewise.
40026 (open_envblk_file): New function.
40027 (read_envblk_file): Complete rewrite.
40028 (grub_cmd_load_env): Likewise.
40029 (grub_cmd_list_env): Likewise.
40030 (struct blocklist): New struct.
40031 (free_blocklists): New function.
40032 (check_blocklists): Likewise.
40033 (write_blocklists): Likewise.
40034 (grub_cmd_save_env): Complete rewrite.
40035
40036 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
40037 a plain text signature.
40038 (GRUB_ENVBLK_MAXLEN): Removed.
40039 (struct grub_envblk): Complete rewrite.
40040 (grub_envblk_find): Removed.
40041 (grub_envblk_insert): Likewise.
40042 (grub_envblk_open): New prototype.
40043 (grub_envblk_set): Likewise.
40044 (grub_envblk_delete): Put const to VALUE.
40045 (grub_envblk_iterate): Put const to NAME and VALUE.
40046 (grub_envblk_close): New prototype.
40047 (grub_envblk_buffer): New inline function.
40048 (grub_envblk_size): Likewise.
40049
40050 * lib/envblk.c: Include grub/mm.h.
40051 (grub_env_find): Removed.
40052 (grub_envblk_open): New function.
40053 (grub_envblk_close): Likewise.
40054 (escaped_value_len): Likewise.
40055 (find_next_line): Likewise.
40056 (grub_envblk_insert): Removed.
40057 (grub_envblk_set): New function.
40058 (grub_envblk_delete): Complete rewrite.
40059 (grub_envblk_iterate): Likewise.
40060
40061 2009-03-28 Robert Millan <rmh@aybabtu.com>
40062
40063 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
40064 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
40065 variables. Use 16-bit loader.
40066 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
40067 loader.
40068 * kern/i386/loader.S (grub_linux_boot): Rename to ...
40069 (grub_linux16_boot): ... this. Update all users.
40070 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
40071 (grub_linux_boot): ... this. Update all users.
40072
40073 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
40074 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
40075 commands to `linux16' and `initrd16'.
40076 (GRUB_MOD_FINI(linux)): Rename to ...
40077 (GRUB_MOD_FINI(linux16)): ... this.
40078
40079 2009-03-24 Pavel Roskin <proski@gnu.org>
40080
40081 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
40082 not just for compilation.
40083
40084 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
40085
40086 Move multiboot helper out of kernel
40087
40088 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
40089 `loader/i386/multiboot_helper.S'.
40090 * conf/i386-coreboot.rmk: Likewise
40091 * conf/i386-ieee1275.rmk: Likewise
40092
40093 * kern/i386/loader.S: Move multiboot helpers from here...
40094 * loader/i386/multiboot_helper.S: ...moved here
40095 * include/grub/i386/loader.h: Move declarations of multiboot
40096 helpers from here...
40097 * include/grub/i386/multiboot.h: ...moved here
40098 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
40099
40100 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40101
40102 * kern/env.c (grub_env_context_open): Added an argument to specify
40103 whether a new context inherits exported variables from current
40104 one. This is useful when making a sandbox to interpret a config
40105 file.
40106 All callers updated.
40107
40108 * include/grub/env.h (grub_env_context_open): Updated the prototype.
40109
40110 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40111
40112 * kern/env.c (grub_env_context_close): Fix memory leaks.
40113
40114 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40115
40116 * normal/main.c (grub_normal_execute): Added an argument
40117 BATCH to specify if an interactive interface should be provided
40118 after reading a config file.
40119 All callers updated.
40120 (read_command_list): Prevent being executed twice.
40121 (read_fs_list): Likewise.
40122
40123 * include/grub/normal.h (grub_normal_execute): Updated the
40124 prototype.
40125
40126 2009-03-22 Pavel Roskin <proski@gno.org>
40127
40128 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
40129 _start.
40130 * kern/i386/pc/startup.S: Likewise.
40131 * kern/i386/efi/startup.S: Likewise.
40132 * kern/i386/ieee1275/startup.S: Likewise.
40133 * kern/i386/coreboot/startup.S: Likewise.
40134 * kern/x86_64/efi/startup.S: Likewise.
40135
40136 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
40137 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
40138 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
40139
40140 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
40141
40142 Bugfixes in multiboot for bugs uncovered by solaris kernel.
40143
40144 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
40145 limit detection.
40146 Use vaddr of correct segment for entry_point.
40147
40148 2009-03-21 Bean <bean123ch@gmail.com>
40149
40150 * commands/blocklist.c: Add include file <grub/command.h>, remove
40151 <grub/normal.h> and <grub/arg.h>.
40152 (grub_cmd_blocklist): Use the new command interface.
40153 (GRUB_MOD_INIT): Likewise.
40154 (GRUB_MOD_FINI): Likewise.
40155 * commands/boot.c: Likewise.
40156 * commands/cat.c: Likewise.
40157 * commands/cmp.c: Likewise.
40158 * commands/configfile.c: Likewise.
40159 * commands/crc.c: Likewise.
40160 * commands/echo.c: Likewise.
40161 * commands/halt.c: Likewise.
40162 * commands/handler.c: Likewise.
40163 * commands/hdparm.c: Likewise.
40164 * commands/help.c: Likewise.
40165 * commands/hexdump.c: Likewise.
40166 * commands/loadenv.c: Likewise.
40167 * commands/ls.c: Likewise.
40168 * commands/lsmmap.c: Likewise.
40169 * commands/lspci.c: Likewise.
40170 * commands/loadenv.c: Likewise.
40171 * commands/read.c: Likewise.
40172 * commands/reboot.c: Likewise.
40173 * commands/search.c: Likewise.
40174 * commands/sleep.c: Likewise.
40175 * commands/test.c: Likewise.
40176 * commands/usbtest.c: Likewise.
40177 * commands/videotest.c: Likewise.
40178 * commands/i386/cpuid.c: Likewise.
40179 * commands/i386/pc/halt.c: Likewise.
40180 * commands/i386/pc/play.c: Likewise.
40181 * commands/i386/pc/pxecmd.c: Likewise.
40182 * commands/i386/pc/vbeinfo.c: Likewise.
40183 * commands/i386/pc/vbetest.c: Likewise.
40184 * commands/ieee1275/suspend.c: Likewise.
40185 * disk/loopback.c: Likewise.
40186 * font/font_cmd.c: Likewise.
40187 * hello/hello.c: Likewise.
40188 * loader/efi/appleloader.c: Likewise.
40189 * loader/efi/chainloader.c: Likewise.
40190 * loader/i386/bsd.c: Likewise.
40191 * loader/i386/efi/linux.c: Likewise.
40192 * loader/i386/ieee1275/linux.c: Likewise.
40193 * loader/i386/linux.c: Likewise.
40194 * loader/i386/pc/chainloader.c: Likewise.
40195 * loader/i386/pc/linux.c: Likewise.
40196 * loader/powerpc/ieee1275/linux.c: Likewise.
40197 * loader/multiboot_loader.c: Likewise.
40198 * term/gfxterm.c: Likewise.
40199 * term/i386/pc/serial.c: Likewise.
40200 * term/terminfo.c: Likewise.
40201
40202 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
40203 * term/i386/pc/vga.c: Likewise.
40204 * video/readers/jpeg.c: Likewise.
40205 * video/readers/png.c: Likewise.
40206 * video/readers/tga.c: Likewise.
40207
40208 * util/grub-fstest (cmd_loopback): Removed.
40209 (cmd_blocklist): Likewise.
40210 (cmd_ls): Likewise.
40211 (grub_register_command): Likewise.
40212 (grub_unregister_command): Likewise.
40213 (execute_command): Use grub_command_find to locate command and execute
40214 it.
40215
40216 * include/grub/efi/chainloader.h: Removed.
40217 * loader/efi/chainloader_normal.c: Likewise.
40218 * loader/i386/bsd_normal.c: Likewise.
40219 * loader/i386/pc/chainloader_normal.c: Likewise.
40220 * loader/i386/pc/multiboot_normal.c: Likewise.
40221 * loader/linux_normal.c: Likewise.
40222 * loader/multiboot_loader_normal.c: Likewise.
40223 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
40224
40225 * gencmdlist.sh: Scan new registration command grub_register_extcmd
40226 and grub_register_command_p1.
40227
40228 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
40229 kern/command.c, lib/arg.c and commands/extcmd.c.
40230 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
40231 (minicmd_mod_SOURCES): New variable.
40232 (minicmd_mod_CFLAGS): Likewise.
40233 (minicmd_mod_LDFLAGS): Likewise.
40234 (extcmd_mod_SOURCES): Likewise.
40235 (extcmd_mod_CFLAGS): Likewise.
40236 (extcmd_mod_LDFLAGS): Likewise.
40237 (boot_mod_SOURCES): Removed.
40238 (boot_mod_CFLAGS): Likewise.
40239 (boot_mod_LDFLAGS): Likewise.
40240
40241 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
40242 kern/corecmd.c.
40243 (kernel_img_HEADERS): Add command.h.
40244 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
40245 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
40246 and lib/arg.c.
40247 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
40248 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
40249 remove the corresponding normal mode command.
40250 (normal_mod_SOURCES): Remove normal/arg.c.
40251 * conf/i386-coreboot.rmk: Likewise.
40252 * conf/i386-efi.rmk: Likewise.
40253 * conf/i386-ieee1275.rmk: Likewise.
40254 * conf/powerpc-ieee1275.rmk: Likewise.
40255 * conf/x86_64-efi.rmk: Likewise.
40256
40257 * include/grub/arg.h: Move from here ...
40258 * include/grub/lib/arg.h: ... to here.
40259
40260 * normal/arg.c: Move from here ...
40261 * lib/arg.c: ... to here.
40262
40263 * commands/extcmd.c: New file.
40264 * commands/minicmd.c: Likewise.
40265 * include/grub/command.h: Likewise.
40266 * include/grub/extcmd.h: Likewise.
40267 * kern/command.c: Likewise.
40268 * kern/corecmd.c: Likewise.
40269
40270 * kern/list.c (grub_list_iterate): Return int instead of void.
40271 (grub_list_insert): New function.
40272 (grub_prio_list_insert): Likewise.
40273
40274 * kern/rescue.c (grub_rescue_command): Removed.
40275 (grub_rescue_command_list): Likewise.
40276 (grub_rescue_register_command): Likewise.
40277 (grub_rescue_unregister_command): Likewise.
40278 (grub_rescue_cmd_boot): Move to minicmd.c
40279 (grub_rescue_cmd_help): Likewise.
40280 (grub_rescue_cmd_info): Likewise.
40281 (grub_rescue_cmd_boot): Likewise.
40282 (grub_rescue_cmd_testload): Likewise.
40283 (grub_rescue_cmd_dump): Likewise.
40284 (grub_rescue_cmd_rmmod): Likewise.
40285 (grub_rescue_cmd_lsmod): Likewise.
40286 (grub_rescue_cmd_exit): Likewise.
40287 (grub_rescue_print_devices): Moved to corecmd.c.
40288 (grub_rescue_print_files): Likewise.
40289 (grub_rescue_cmd_ls): Likewise.
40290 (grub_rescue_cmd_insmod): Likewise.
40291 (grub_rescue_cmd_set): Likewise.
40292 (grub_rescue_cmd_unset): Likewise.
40293 (attempt_normal_mode): Use grub_command_find to get normal module.
40294 (grub_enter_rescue_mode): Use grub_register_core_commands to register
40295 commands, remove grub_rescue_register_command calls.
40296
40297 * normal/command.c (grub_register_command): Removed.
40298 (grub_unregister_command): Likewise.
40299 (grub_command_find): Likewise.
40300 (grub_iterate_commands): Likewise.
40301 (rescue_command): Likewise.
40302 (export_command): Moved to corecmd.c.
40303 (set_command): Removed.
40304 (unset_command): Likewise.
40305 (insmod_command): Likewise.
40306 (rmmod_command): Likewise.
40307 (lsmod_command): Likewise.
40308 (grub_command_init): Likewise.
40309
40310 * normal/completion.c (iterate_command): Use cmd->prio to check for
40311 active command.
40312 (complete_arguments): Use grub_extcmd_t structure to find options.
40313 (grub_normal_do_completion): Change function grub_iterate_commands to
40314 grub_command_iterate.
40315
40316 * normal/execute.c (grub_script_execute_cmd): No need to parse
40317 argument here.
40318
40319 * normal/main.c (grub_dyncmd_dispatcher): New function.
40320 (read_command_list): Register unload commands as dyncmd.
40321 (grub_cmd_normal): Use new command interface, register rescue,
40322 unregister normal at entry, register normal, unregister rescue at exit.
40323
40324 * include/grub/list.h (grub_list_test_t): New type.
40325 (grub_list_iterate): Return int instead of void.
40326 (grub_list_insert): New function.
40327 (GRUB_AS_NAMED_LIST_P): New macro.
40328 (GRUB_AS_PRIO_LIST): Likewise.
40329 (GRUB_AS_PRIO_LIST_P): Likewise.
40330 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
40331 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
40332 (grub_prio_list): New structure.
40333 (grub_prio_list_insert): New function.
40334 (grub_prio_list_remove): New inline function.
40335
40336 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
40337 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
40338 (GRUB_COMMAND_FLAG_MENU): Likewise.
40339 (GRUB_COMMAND_FLAG_BOTH): Likewise.
40340 (GRUB_COMMAND_FLAG_TITLE): Likewise.
40341 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
40342 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
40343 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
40344 (grub_command): Likewise.
40345 (grub_register_command): Likewise.
40346 (grub_command_find): Likewise.
40347 (grub_iterate_commands): Likewise.
40348 (grub_command_init): Likewise.
40349 (grub_arg_parse): Likewise.
40350 (grub_arg_show_help): Likewise.
40351
40352 * include/grub/rescue.h (grub_rescue_register_command): Removed.
40353 (grub_rescue_unregister_command): Likewise.
40354
40355 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
40356 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
40357 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
40358
40359 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
40360 grub_rescue_cmd_initrd.
40361 * include/grub/i386/loader.h: Likewise.
40362 * include/grub/x86_64/loader.h: Likewise.
40363
40364 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
40365
40366 2009-03-21 Bean <bean123ch@gmail.com>
40367
40368 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
40369 instead of stat in mingw environment.
40370
40371 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
40372
40373 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
40374
40375 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
40376 AC_CONFIG_LINKS.
40377
40378 2009-03-21 Bean <bean123ch@gmail.com>
40379
40380 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
40381 out of range error.
40382
40383 2009-03-18 Michel Dänzer <michel@daenzer.net>
40384
40385 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
40386 checking inode flags for EXT4_EXTENTS_FLAG.
40387
40388 2009-03-18 Robert Millan <rmh@aybabtu.com>
40389
40390 * loader/i386/linux.c: Include `<grub/video.h>' and
40391 `<grub/i386/pc/vbe.h>'..
40392 (grub_linux_setup_video): New function. Loosely based on the EFI one.
40393 (grub_linux32_boot): Attempt to configure video settings with
40394 grub_linux_setup_video().
40395 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
40396 to avoid grub_console_fini() which would step out of graphical mode
40397 unconditionally.
40398
40399 2009-03-14 Robert Millan <rmh@aybabtu.com>
40400
40401 Fix build on powerpc.
40402 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
40403
40404 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
40405
40406 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
40407 background image command.
40408
40409 2009-03-12 Colin D Bennett <colin@gibibit.com>
40410
40411 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
40412 (grub_gfxterm_putchar): Extract pairs of identical calls to
40413 draw_cursor out of conditional blocks.
40414
40415 2009-03-11 Pavel Roskin <proski@gnu.org>
40416
40417 * fs/hfs.c (grub_hfs_strncasecmp): New function.
40418 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
40419
40420 2009-03-11 Robert Millan <rmh@aybabtu.com>
40421
40422 * loader/i386/multiboot_elfxx.c
40423 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
40424
40425 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
40426
40427 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
40428 `kern/handler.c'.
40429
40430 2009-03-11 Robert Millan <rmh@aybabtu.com>
40431
40432 * loader/i386/multiboot.c (code_size): New variable.
40433 (grub_multiboot): Define offsets by adding to `code_size' rather
40434 than subtracting from `grub_multiboot_payload_size'. Provide
40435 4-byte alignment to MBI and others by increasing
40436 `boot_loader_name_length' appropriately.
40437
40438 * loader/i386/multiboot_elfxx.c
40439 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
40440
40441 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
40442
40443 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
40444 `fs/ext2.c'.
40445
40446 2009-03-08 Robert Millan <rmh@aybabtu.com>
40447
40448 Make loader/i386/linux.c usable on i386-pc again.
40449
40450 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
40451 memory to heap.
40452 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
40453 `#error' stanza.
40454
40455 2009-03-07 Bean <bean123ch@gmail.com>
40456
40457 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
40458 allocation.
40459
40460 2009-03-06 Robert Millan <rmh@aybabtu.com>
40461
40462 Fix display issue on terminals with screen size other than 80x25
40463 (e.g. gfxterm with resolution higher than 640x480).
40464
40465 * normal/main.c (grub_normal_init_page): Display title text in a
40466 position relative to the center of the terminal instead of relying
40467 on a hardcoded offset.
40468
40469 2009-03-04 Robert Millan <rmh@aybabtu.com>
40470
40471 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
40472 installed.
40473
40474 * Makefile.in (host_kernel): New variable.
40475 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
40476 scripts instead of just the windows one.
40477 * configure.ac: Initialize and AC_SUBST `host_kernel'.
40478
40479 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40480
40481 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
40482 `kern/handler.c'.
40483 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40484 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40485 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40486 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40487 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40488 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40489
40490 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40491
40492 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
40493 or if there's no space for the disk label and print the partition number on a
40494 invalid magic.
40495
40496 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40497
40498 * util/misc.c: Include <time.h>.
40499 (grub_millisleep): New function.
40500
40501 2009-03-04 Bean <bean123ch@gmail.com>
40502
40503 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
40504 another option -mno-red-zone.
40505
40506 * commands/handler.c: Change module description.
40507
40508 * kern/handler.c: Add missing space at the end of description line.
40509
40510 * kern/list.c: Likewise.
40511
40512 2009-03-03 Robert Millan <rmh@aybabtu.com>
40513
40514 Move more components to the relocation area, and fix mbi pointer
40515 handling to use the destination rather than the origin (thanks to
40516 Vladimir Serbinenko for spotting).
40517
40518 * loader/i386/multiboot.c (mbi_dest): New variable.
40519 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
40520 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
40521 relocation area.
40522
40523 2009-03-01 Bean <bean123ch@gmail.com>
40524
40525 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
40526 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
40527 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
40528 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
40529
40530 * loader/i386/efi/linux.c (acpi_guid): New variable.
40531 (acpi_guid): Likewise.
40532 (EBDA_SEG_ADDR): New constant.
40533 (LOW_MEM_ADDR): Likewise.
40534 (FAKE_EBDA_SEG): Likewise.
40535 (fake_bios_data): New function.
40536 (grub_linux_boot): Call fake_bios_data.
40537
40538 2009-03-01 Bean <bean123ch@gmail.com>
40539
40540 * commands/terminal.c: Removed.
40541
40542 * commands/handler.c: New file.
40543
40544 * include/grub/list.h: Likewise.
40545
40546 * include/grub/handler.h: Likewise.
40547
40548 * kern/list.c: Likewise.
40549
40550 * kern/handler.c: Likewise.
40551
40552 * kern/term.h: Include header file <grub/handler.h>.
40553 (grub_term_input): Move next field to the beginning.
40554 (grub_term_output): Likewise.
40555 (grub_term_input_class): New variable.
40556 (grub_term_output_class): Likewise.
40557 (grub_term_register_input): Changed to inline function.
40558 (grub_term_register_output): Likewise.
40559 (grub_term_unregister_input): Likewise.
40560 (grub_term_unregister_output): Likewise.
40561 (grub_term_set_current_input): Likewise.
40562 (grub_term_set_current_output): Likewise.
40563 (grub_term_get_current_input): Likewise.
40564 (grub_term_get_current_output): Likewise.
40565 (grub_term_iterate_input): Removed.
40566 (grub_term_iterate_output): Likewise.
40567
40568 * kern/term.c (grub_term_list_input): Removed.
40569 (grub_term_list_output): Likewise.
40570 (grub_term_input_class): New variable.
40571 (grub_term_output_class): Likewise.
40572 (grub_cur_term_input): Change variable as macro.
40573 (grub_cur_term_output): Likewise.
40574 (grub_term_register_input): Removed.
40575 (grub_term_register_output): Likewise.
40576 (grub_term_unregister_input): Likewise.
40577 (grub_term_unregister_output): Likewise.
40578 (grub_term_set_current_input): Likewise.
40579 (grub_term_set_current_output): Likewise.
40580 (grub_term_iterate_input): Likewise.
40581 (grub_term_iterate_output): Likewise.
40582 (grub_term_get_current_input): Likewise.
40583 (grub_term_get_current_output): Likewise.
40584
40585 * util/grub-editenv.c: Include header file <grub/handler.h>.
40586 (grub_term_get_current_input): Removed.
40587 (grub_term_get_current_output): Likewise.
40588 (grub_term_input_class): New variable.
40589 (grub_term_output_class): Likewise.
40590
40591 * util/grub-fstest.c (grub_term_get_current_input): Removed.
40592 (grub_term_get_current_output): Likewise.
40593 (grub_term_input_class): New variable.
40594 (grub_term_output_class): Likewise.
40595
40596 * util/grub-probe.c (grub_term_get_current_input): Removed.
40597 (grub_term_get_current_output): Likewise.
40598 (grub_term_input_class): New variable.
40599 (grub_term_output_class): Likewise.
40600
40601 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
40602 (grub_term_get_current_output): Likewise.
40603 (grub_term_input_class): New variable.
40604 (grub_term_output_class): Likewise.
40605
40606 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
40607 (terminal_mod_SOURCES): Likewise.
40608 (terminal_mod_CFLAGS): Likewise.
40609 (terminal_mod_LDFLAGS): Likewise.
40610
40611 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
40612 handler.c.
40613 (kernel_img_SOURCES): Add list.c and handler.c.
40614 (kernel_img_HEADERS): Add list.h and handler.h.
40615
40616 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40617 handler.c.
40618 (kernel_mod_SOURCES): Add list.c and handler.c.
40619 (kernel_mod_HEADERS): Add list.h and handler.h.
40620
40621 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
40622 handler.c.
40623 (kernel_elf_SOURCES): Add list.c and handler.c.
40624 (kernel_elf_HEADERS): Add list.h and handler.h.
40625
40626 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40627 handler.c.
40628 (kernel_elf_SOURCES): Add list.c and handler.c.
40629 (kernel_elf_HEADERS): Add list.h and handler.h.
40630
40631 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40632 handler.c.
40633 (kernel_mod_SOURCES): Add list.c and handler.c.
40634 (kernel_mod_HEADERS): Add list.h and handler.h.
40635
40636 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40637 handler.c.
40638 (kernel_elf_SOURCES): Add list.c and handler.c.
40639 (kernel_elf_HEADERS): Add list.h and handler.h.
40640
40641 2009-02-27 Robert Millan <rmh@aybabtu.com>
40642
40643 Factorize elf32 / elf64 code in Multiboot loader. This will
40644 prevent it from getting out of sync again.
40645
40646 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
40647 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
40648 grub_multiboot_load_elf64): Move from here ...
40649 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
40650 grub_multiboot_load_elf): ... to here (new file).
40651
40652 2009-02-27 Robert Millan <rmh@aybabtu.com>
40653
40654 * util/grub.d/10_linux.in: Rename "single-user mode" to
40655 "recovery mode".
40656
40657 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
40658
40659 Don't leak in SCSI code.
40660 * disk/scsi.c (grub_scsi_close): free `scsi'.
40661
40662 2009-02-27 Robert Millan <rmh@aybabtu.com>
40663
40664 * loader/i386/pc/multiboot.c: Move from here ...
40665 * loader/i386/multiboot.c: ... to here. Update all users.
40666
40667 2009-02-27 Robert Millan <rmh@aybabtu.com>
40668
40669 Patch from Alexandre Bique <bique.alexandre@gmail.com>
40670 * util/i386/pc/grub-setup.c (setup): Fix directory path.
40671
40672 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
40673
40674 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
40675 b-tree.
40676
40677 2009-02-27 Robert Millan <rmh@aybabtu.com>
40678
40679 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
40680 `0x' qualifier as 0 when base is specified as parameter).
40681
40682 2009-02-24 Bean <bean123ch@gmail.com>
40683
40684 * configure.ac: Check for -mcmodel=large in x86_64 target.
40685
40686 * include/grub/efi/api.h (efi_call_10): New macro.
40687 (efi_wrap_10): New function.
40688
40689 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
40690 (GRUB_PE32_REL_BASED_HIGH): Likewise.
40691 (GRUB_PE32_REL_BASED_LOW): Likewise.
40692 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
40693 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
40694 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
40695 (GRUB_PE32_REL_BASED_SECTION): Likewise.
40696 (GRUB_PE32_REL_BASED_REL): Likewise.
40697 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
40698 (GRUB_PE32_REL_BASED_DIR64): Likewise.
40699 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
40700
40701 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
40702 issue.
40703
40704 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
40705 (efi_wrap_10): New function.
40706
40707 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
40708
40709 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
40710 MB/MBP model (NV chipset).
40711 (devdata_devs): Add devpath_5 to the list.
40712
40713 * load/i386/efi/linux.c (video_base): Remove variable.
40714 (RGB_MASK): New macro.
40715 (RGB_MAGIC): Likewise.
40716 (LINE_MIN): Likewise.
40717 (LINE_MAX): Likewise.
40718 (FBTEST_STEP): Likewise.
40719 (FBTEST_COUNT): Likewise.
40720 (fb_list): New variable.
40721 (grub_find_video_card): Remove function.
40722 (find_framebuf): New function.
40723 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
40724 line length.
40725
40726 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
40727 problem for x86_64.
40728
40729 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
40730
40731 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
40732
40733 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
40734 coding tool name.
40735
40736 2009-02-22 Robert Millan <rmh@aybabtu.com>
40737
40738 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
40739 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
40740 in our relocation, instead of using it directly from heap. Also
40741 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
40742
40743 2009-02-21 Robert Millan <rmh@aybabtu.com>
40744
40745 Implement USB keyboard support (based on patch by Marco Gerards)
40746
40747 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
40748 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
40749 (usb_keyboard_mod_LDFLAGS): New variables.
40750
40751 * term/usb_keyboard.c: New file.
40752
40753 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
40754
40755 Corrected wrong declaration
40756
40757 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
40758
40759 2009-02-14 Christian Franke <franke@computer.org>
40760
40761 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
40762 (grub_lspci_iter): Print class code and programming interface byte.
40763
40764 2009-02-14 Christian Franke <franke@computer.org>
40765
40766 * gendistlist.sh: Ignore `.svn' directories.
40767
40768 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
40769
40770 * fs/fat.c: Add 2009 to Copyright line.
40771
40772 2009-02-14 Christian Franke <franke@computer.org>
40773
40774 * commands/hdparm.c: New file. Provides `hdparm' command
40775 which sends ATA commands via grub_disk_ata_pass_through ().
40776
40777 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
40778
40779 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
40780 and <grub/cpu/io.h> to include/grub/ata.h.
40781 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
40782 (GRUB_CDROM_SECTOR_SIZE): Remove.
40783 (GRUB_ATA_*): Move to include/grub/ata.h.
40784 (GRUB_ATAPI_*): Likewise.
40785 (enum grub_ata_commands): Likewise.
40786 (enum grub_ata_timeout_milliseconds): Likewise.
40787 (struct grub_ata_device): Likewise.
40788 (grub_ata_regset): Likewise.
40789 (grub_ata_regget): Likewise.
40790 (grub_ata_regset2): Likewise.
40791 (grub_ata_regget2): Likewise.
40792 (grub_ata_check_ready): Likewise.
40793 (grub_ata_wait_not_busy): Remove static, exported in
40794 include/grub/ata.h.
40795 (grub_ata_wait_drq): Likewise.
40796 (grub_ata_pio_read): Likewise.
40797
40798 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
40799 function for hdparm.mod.
40800
40801 * include/grub/ata.h: New file, contains declarations from
40802 disk/ata.c.
40803 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
40804
40805 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
40806 (grub_disk_ata_pass_through): New exported variable.
40807
40808 * kern/disk.c (grub_disk_ata_pass_through): New variable.
40809
40810 2009-02-13 Colin D Bennett <colin@gibibit.com>
40811
40812 Support multiple fallback entries, and provide an API to support
40813 executing default+fallback menu entries. Renamed the `terminal' menu
40814 viewer to `text'.
40815
40816 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
40817 variable declaration.
40818 (grub_menu_execute_callback): New structure declaration.
40819 (grub_menu_execute_callback_t): New typedef.
40820 (grub_menu_execute_with_fallback): New function declaration.
40821 (grub_menu_get_entry): Likewise.
40822 (grub_menu_get_timeout): Likewise.
40823 (grub_menu_set_timeout): Likewise.
40824
40825 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
40826
40827 * normal/menu.c (grub_wait_after_message): Moved to
40828 `normal/menu_text.c'.
40829 (draw_border): Likewise.
40830 (print_message): Likewise.
40831 (print_entry): Likewise.
40832 (print_entries): Likewise.
40833 (grub_menu_init_page): Likewise.
40834 (get_entry_number): Likewise.
40835 (print_timeout): Likewise.
40836 (run_menu): Likewise.
40837 (grub_menu_execute_entry): Likewise.
40838 (show_text_menu): Likewise.
40839 (get_and_remove_first_entry_number): New function.
40840 (grub_menu_execute_with_fallback): Likewise.
40841 (get_entry): Renamed to ...
40842 (grub_menu_get_entry): .. this and made it global.
40843 (get_timeout): Renamed to ...
40844 (grub_menu_get_timeout): ... this and made it global.
40845 (set_timeout): Renamed to ...
40846 (grub_menu_set_timeout): ... this and made it global.
40847 (grub_normal_terminal_menu_viewer): Renamed to ...
40848 (grub_normal_text_menu_viewer): ... this.
40849
40850 * normal/menu_text.c: New file. Extracted text-menu-specific code
40851 from normal/menu.c.
40852
40853 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
40854 (normal_mod_SOURCES): Likewise.
40855
40856 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40857 (normal_mod_SOURCES): Likewise.
40858
40859 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40860 (normal_mod_SOURCES): Likewise.
40861
40862 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
40863 (normal_mod_SOURCES): Likewise.
40864
40865 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40866 (normal_mod_SOURCES): Likewise.
40867
40868 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40869 (normal_mod_SOURCES): Likewise.
40870
40871 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40872 (normal_mod_SOURCES): Likewise.
40873
40874 2009-02-11 Robert Millan <rmh@aybabtu.com>
40875
40876 * util/grub.d/00_header.in: Update old reference to `font' command.
40877
40878 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
40879
40880 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
40881
40882 Based on patch from Javier Martín.
40883
40884 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
40885
40886 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
40887 to avoid false positives with FAT.
40888 (grub_fstest_SOURCES): Likewise.
40889 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
40890 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40891 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40892 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40893 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40894 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40895
40896 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
40897
40898 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
40899 bpb.version_specific.fat12_or_fat16.fstype and
40900 bpb.version_specific.fat32.fstype.
40901
40902 2009-02-08 Robert Millan <rmh@aybabtu.com>
40903
40904 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
40905
40906 2009-02-08 Robert Millan <rmh@aybabtu.com>
40907
40908 * Makefile.in (host_os, host_cpu): New variables.
40909 (target_os): Remove. Update all users.
40910
40911 2009-02-08 Marco Gerards <marco@gnu.org>
40912
40913 * Makefile.in (enable_grub_emu_usb): New variable.
40914 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
40915 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
40916 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
40917 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
40918 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
40919 `usbtest.mod' and `usbms.mod'.
40920 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
40921 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
40922 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
40923 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
40924 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
40925 variables.
40926
40927 * disk/usbms.c: New file.
40928
40929 * include/grub/usb.h: Likewise.
40930
40931 * include/grub/usbtrans.h: Likewise.
40932
40933 * include/grub/usbdesc.h: Likewise.
40934
40935 * bus/usb/usbtrans.c: Likewise.
40936
40937 * bus/usb/ohci.c: Likewise.
40938
40939 * bus/usb/uhci.c: Likewise.
40940
40941 * bus/usb/usbhub.c: Likewise.
40942
40943 * bus/usb/usb.c: Likewise.
40944
40945 * commands/usbtest.c: Likewise.
40946
40947 * util/usb.c: Likewise.
40948
40949 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
40950
40951 * configure.ac: Test for libusb presence.
40952
40953 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
40954
40955 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
40956
40957 * kern/mm.c: Add more comments.
40958
40959 2009-02-08 Robert Millan <rmh@aybabtu.com>
40960
40961 Patch from Javier Martín.
40962 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
40963 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
40964
40965 2009-02-08 Robert Millan <rmh@aybabtu.com>
40966
40967 * fs/cpio.c: Split tar functionality to ...
40968 * fs/tar.c: ... here (new file). Update all users.
40969
40970 2009-02-07 Robert Millan <rmh@aybabtu.com>
40971
40972 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
40973 backward-incompatible features.
40974
40975 Based on patch from Javier Martín, with some adjustments.
40976
40977 2009-02-07 Michael Scherer <misc@mandriva.org>
40978
40979 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
40980
40981 2009-02-07 Robert Millan <rmh@aybabtu.com>
40982
40983 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
40984 position of `disk/lvm.c' to ensure grub_init_all() always picks it
40985 after the RAID stuff.
40986
40987 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
40988
40989 Fixes problem when running vbetest command as reported by
40990 Vladimir Serbinenko <phcoder@gmail.com>.
40991
40992 * (grub_vbe_set_video_mode): Fixed problem with text modes.
40993
40994 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
40995
40996 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
40997 /dev/md/NpN style mdraid devices.
40998
40999 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41000
41001 * util/unifont2pff.rb: Remove.
41002
41003 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41004
41005 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
41006 `#'.
41007
41008 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41009
41010 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
41011 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41012 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41013 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
41014 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41015 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41016 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41017
41018 2009-02-02 Christian Franke <franke@computer.org>
41019
41020 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
41021
41022 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
41023
41024 * INSTALL: Note that we now require at least autoconf 2.59 and
41025 that LZO is optional.
41026
41027 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41028
41029 Base on patch on bug #24154 created by Tomas Tintera
41030 <trosos@seznam.cz>.
41031
41032 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
41033
41034 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41035
41036 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
41037 <bero@arklinux.org>.
41038
41039 * normal/parser.y (script_init): Add missing semicolon.
41040
41041 2009-01-31 Colin D Bennett <colin@gibibit.com>
41042
41043 * normal/main.c: Add include to grub/menu_viewer.h.
41044 (free_menu_entry_classes): Added.
41045 (grub_normal_menu_addentry): Added class property handling.
41046 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
41047 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
41048
41049 * normal/menu_viewer.c: New file.
41050
41051 * normal/menu.c (run_menu_entry): Renamed to ...
41052 (grub_menu_execute_entry): ... this and made it as global.
41053 (grub_menu_run): Renamed to ...
41054 (show_text_menu): ... this and made it local.
41055 (show_text_menu): Adapt to new function names.
41056 (grub_normal_terminal_menu_viewer): New global variable.
41057
41058 * include/grub/menu.h: New file.
41059
41060 * include/grub/menu_viewer.h: New file.
41061
41062 * include/grub/normal.h: Added include to grub/menu.h.
41063 (grub_menu_entry): Moved to include/grub/menu.h.
41064 (grub_menu_entry_t): Likewise.
41065 (grub_menu): Likewise.
41066 (grub_menu_t): Likewise.
41067 (grub_normal_terminal_menu_viewer): Added.
41068 (grub_menu_execute_entry): Likewise.
41069 (grub_menu_run): Removed.
41070
41071 * DISTLIST: Added include/grub/menu.h.
41072 Added include/grub/menu_viewer.h.
41073 Added normal/menu_viewer.c.
41074
41075 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
41076
41077 * normal/execute.c (grub_script_execute_menuentry): Changed to use
41078 arglist for menutitle arguments.
41079
41080 * normal/main.c (grub_normal_menu_addentry): Likewise.
41081
41082 * normal/parser.y (menuentry): Likewise.
41083
41084 * normal/script.c (grub_script_create_cmdmenu): Likewise.
41085
41086 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
41087 (grub_script_create_cmdmenu): Likewise.
41088
41089 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
41090
41091 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
41092 changes.
41093
41094 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
41095
41096 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
41097
41098 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
41099
41100 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41101
41102 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41103
41104 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41105
41106 2009-01-30 Christian Franke <franke@computer.org>
41107
41108 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
41109 in option help text.
41110
41111 2009-01-27 Pavel Roskin <proski@gnu.org>
41112
41113 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
41114
41115 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41116
41117 * commands/lsmmap.c: Add include to grub/machine/memory.h.
41118
41119 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
41120
41121 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
41122 unregister function.
41123
41124 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41125
41126 * disk/scsi.c (grub_scsi_read): Fix sign problem.
41127
41128 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
41129
41130 * util/grub-mkfont.c (usage): Fix typo.
41131
41132 * util/elf/grub-mkimage.c (load_modules): Fix warning.
41133
41134 2009-01-26 Daniel Mierswa <impulze@impulze.org>
41135
41136 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
41137
41138 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
41139
41140 * kern/misc.c (grub_strcasecmp): New function.
41141 (grub_strcasecmp): Use grub_size_t instead of int for length.
41142 Fix return value.
41143 * include/grub/misc.h: Update function prototypes.
41144
41145 2009-01-26 Robert Millan <rmh@aybabtu.com>
41146
41147 * configure.ac: Fix cross-compilation check.
41148
41149 2009-01-22 Christian Franke <franke@computer.org>
41150
41151 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
41152 (precision) digit string. Allow `.format2' without `format1' (width).
41153 Limit input chars for `%s' output to `format2' if specified. This is
41154 compatible with standard printf ().
41155
41156 2009-01-22 Christian Franke <franke@computer.org>
41157
41158 * disk/ata.c (grub_ata_wait_status): Replace by ...
41159 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
41160 other status bits may be invalid while BSY is asserted.
41161 (grub_ata_check_ready): New function.
41162 (grub_ata_cmd): Removed.
41163 (grub_ata_wait_drq): New function.
41164 (grub_ata_strncpy): Remove inline.
41165 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
41166 and error check now done by grub_ata_wait_drq ().
41167 (grub_ata_pio_write): Likewise.
41168 (grub_atapi_identify): Set DEV before check for !BSY. Use
41169 grub_ata_wait_drq () to wait for data.
41170 (grub_ata_device_initialize): Add status register check to
41171 detect missing SATA slave devices. Add debug messages.
41172 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
41173 (grub_atapi_packet): Set DEV before check for !BSY. Replace
41174 transfer loop by grub_ata_pio_write ().
41175 (grub_ata_identify): Set DEV before check for !BSY. Use
41176 grub_ata_wait_drq () to wait for data.
41177 (grub_ata_setaddress): Set DEV before check for !BSY.
41178 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
41179 read/write in one loop. Fix invalid command on write. Fix incomplete
41180 command on (size % batch) == 0. Add missing error check after write of
41181 last block. Add debug messages.
41182 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
41183
41184 2009-01-19 Christian Franke <franke@computer.org>
41185
41186 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
41187 (GRUB_ATAPI_IREASON_*): Likewise.
41188 (grub_ata_pio_write): Fix timeout error return.
41189 (grub_atapi_identify): Add grub_ata_wait () after cmd.
41190 (grub_atapi_wait_drq): New function.
41191 (grub_atapi_packet): New parameter `size'.
41192 Use grub_atapi_wait_drq () and direct write instead of
41193 grub_ata_pio_write ().
41194 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
41195 reads the number of bytes requested by the device for each DRQ
41196 assertion.
41197 (grub_atapi_write): Remove old implementation, return not
41198 implemented instead.
41199
41200 2009-01-19 Christian Franke <franke@computer.org>
41201
41202 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
41203 of 512 to calculate data size.
41204 (grub_scsi_read12): Likewise.
41205 (grub_scsi_write10): Likewise.
41206 (grub_scsi_write12): Likewise.
41207 (grub_scsi_read): Adjust size according to blocksize.
41208 Add checks for invalid blocksize and unaligned transfer.
41209
41210 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
41211
41212 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
41213
41214 * term/gfxterm.c (write_char): Fix background rendering for wide
41215 width glyphs.
41216
41217 2009-01-19 Robert Millan <rmh@aybabtu.com>
41218
41219 * config.guess: Update to latest version from config git.
41220 * config.sub: Likewise.
41221
41222 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
41223
41224 * Makefile.in: Change font compilation to use new grub-mkfont instead
41225 of java version.
41226
41227 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
41228 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41229 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41230 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41231 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41232 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41233 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41234 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41235 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41236
41237 2009-01-16 Christian Franke <franke@computer.org>
41238
41239 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
41240 (enum grub_ata_timeout_milliseconds): New enum.
41241 (grub_ata_wait_status): Add parameter milliseconds.
41242 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
41243 recovery from timed-out commands.
41244 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
41245 return grub_errno instead of REG_ERROR.
41246 (grub_ata_pio_write): Add parameter milliseconds.
41247 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
41248 Pass milliseconds to grub_ata_wait_status () and
41249 grub_ata_pio_read ().
41250 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
41251 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
41252 grub_ata_wait_status (). Fix IDENTIFY timeout check.
41253 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
41254 It is not suitable for device detection, because DEV bit is ignored,
41255 the command may run too long, and not all devices set the signature
41256 properly.
41257 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
41258 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
41259 Fix device selection, DEV bit must be set first to address the registers
41260 of the correct device.
41261 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
41262 grub_ata_pio_read/write ().
41263 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
41264 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
41265
41266 2009-01-13 Carles Pina i Estany <carles@pina.cat>
41267
41268 * util/grub-editenv.c (main): Use fseeko(), not fseek().
41269
41270 2009-01-13 Bean <bean123ch@gmail.com>
41271
41272 * util/grub-mkfont.c (write_font): forget to remove some debug code.
41273
41274 2009-01-13 Bean <bean123ch@gmail.com>
41275
41276 * Makefile.in: (enable_grub_mkfont): New variable.
41277 (freetype_cflags): Likewise.
41278 (freetype_libs): Likewise.
41279
41280 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
41281 (grub_mkfont_SOURCES): New variable.
41282 (grub_mkfont_CFLAGS): Likewise.
41283 (grub_mkfont_LDFLAGS): Likewise.
41284
41285 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
41286 library if `--enable-grub-mkfont' is requested.
41287 (enable_grub_mkfont): New variable.
41288 (freetype_cflags): Likewise.
41289 (freetype_libs): Likewise.
41290
41291 * util/grub-mkfont.c: New file.
41292
41293 2009-01-12 Christian Franke <franke@computer.org>
41294
41295 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
41296 mode check. Fix setting of compat_use[].
41297
41298 2009-01-10 Robert Millan <rmh@aybabtu.com>
41299
41300 Update a few copyright years which we forgot to do in 2008 (only for
41301 files whose changes made in 2008 were copyright-significant)
41302
41303 * Makefile.in: Add 2008 to Copyright line.
41304 * disk/ieee1275/ofdisk.c: Likewise.
41305 * disk/efi/efidisk.c: Likewise.
41306 * kern/dl.c: Likewise.
41307 * kern/sparc64/ieee1275/init.c: Likewise.
41308 * kern/mm.c: Likewise.
41309 * kern/efi/mm.c: Likewise.
41310 * boot/i386/pc/boot.S: Likewise.
41311 * genfslist.sh: Likewise.
41312 * fs/iso9660.c: Likewise.
41313 * fs/hfs.c: Likewise.
41314 * fs/jfs.c: Likewise.
41315 * fs/minix.c: Likewise.
41316 * fs/ufs.c: Likewise.
41317 * gensymlist.sh.in: Likewise.
41318 * genkernsyms.sh.in: Likewise.
41319 * include/grub/misc.h: Likewise.
41320 * include/grub/types.h: Likewise.
41321 * include/grub/symbol.h: Likewise.
41322 * include/grub/elf.h: Likewise.
41323 * include/grub/kernel.h: Likewise.
41324 * include/grub/disk.h: Likewise.
41325 * include/grub/dl.h: Likewise.
41326 * include/grub/i386/linux.h: Likewise.
41327 * include/grub/i386/pc/biosdisk.h: Likewise.
41328 * include/grub/efi/api.h: Likewise.
41329 * include/grub/efi/pe32.h: Likewise.
41330 * include/grub/util/misc.h: Likewise.
41331 * normal/execute.c: Likewise.
41332 * normal/arg.c: Likewise.
41333 * normal/completion.c: Likewise.
41334 * normal/lexer.c: Likewise.
41335 * normal/parser.y: Likewise.
41336 * normal/misc.c: Likewise.
41337 * commands/i386/pc/vbeinfo.c: Likewise.
41338 * commands/hexdump.c: Likewise.
41339 * commands/terminal.c: Likewise.
41340 * commands/ls.c: Likewise.
41341 * commands/help.c: Likewise.
41342 * partmap/pc.c: Likewise.
41343 * loader/efi/chainloader.c: Likewise.
41344 * loader/multiboot_loader.c: Likewise.
41345 * loader/i386/pc/multiboot2.c: Likewise.
41346 * term/efi/console.c: Likewise.
41347 * term/i386/pc/serial.c: Likewise.
41348 * util/lvm.c: Likewise.
41349 * util/console.c: Likewise.
41350 * util/i386/efi/grub-mkimage.c: Likewise.
41351 * util/raid.c: Likewise.
41352
41353 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
41354
41355 * commands/videotest.c: Removed include to grub/machine/memory.h.
41356
41357 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
41358 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
41359 (video_mod_SOURCES): Removed.
41360 (video_mod_CFLAGS): Likewise.
41361 (video_mod_LDFLAGS): Likewise.
41362 (gfxterm_mod_SOURCES): Likewise.
41363 (gfxterm_mod_CFLAGS): Likewise.
41364 (gfxterm_mod_LDFLAGS): Likewise.
41365 (videotest_mod_SOURCES): Likewise.
41366 (videotest_mod_CFLAGS): Likewise.
41367 (videotest_mod_LDFLAGS): Likewise.
41368 (bitmap_mod_SOURCES): Likewise.
41369 (bitmap_mod_CFLAGS): Likewise.
41370 (bitmap_mod_LDFLAGS): Likewise.
41371 (tga_mod_SOURCES): Likewise.
41372 (tga_mod_CFLAGS): Likewise.
41373 (tga_mod_LDFLAGS): Likewise.
41374 (jpeg_mod_SOURCES): Likewise.
41375 (jpeg_mod_CFLAGS): Likewise.
41376 (jpeg_mod_LDFLAGS): Likewise.
41377 (png_mod_SOURCES): Likewise.
41378 (png_mod_CFLAGS): Likewise.
41379 (png_mod_LDFLAGS): Likewise.
41380
41381 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
41382 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
41383 (video_mod_SOURCES): Added.
41384 (video_mod_CFLAGS): Likewise.
41385 (video_mod_LDFLAGS): Likewise.
41386 (videotest_mod_SOURCES): Likewise.
41387 (videotest_mod_CFLAGS): Likewise.
41388 (videotest_mod_LDFLAGS): Likewise.
41389 (bitmap_mod_SOURCES): Likewise.
41390 (bitmap_mod_CFLAGS): Likewise.
41391 (bitmap_mod_LDFLAGS): Likewise.
41392 (tga_mod_SOURCES): Likewise.
41393 (tga_mod_CFLAGS): Likewise.
41394 (tga_mod_LDFLAGS): Likewise.
41395 (jpeg_mod_SOURCES): Likewise.
41396 (jpeg_mod_CFLAGS): Likewise.
41397 (jpeg_mod_LDFLAGS): Likewise.
41398 (png_mod_SOURCES): Likewise.
41399 (png_mod_CFLAGS): Likewise.
41400 (png_mod_LDFLAGS): Likewise.
41401 (gfxterm_mod_SOURCES): Likewise.
41402 (gfxterm_mod_CFLAGS): Likewise.
41403 (gfxterm_mod_LDFLAGS): Likewise.
41404
41405 * term/gfxterm.c: Removed include to grub/machine/memory.h,
41406 grub/machine/console.h.
41407
41408 2009-01-04 Jerone Young <jerone@gmail.com>
41409
41410 Make on screen instructions clearer
41411
41412 Based on patch created by Jidanni <jidanni@jidanni.org>
41413
41414 * normal/menu.c: print clearer instructions on the screen
41415
41416 2009-01-02 Colin D Bennett <colin@gibibit.com>
41417
41418 New font engine.
41419
41420 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
41421 build system and fixed gfxterm.c to work with different sized fonts.
41422
41423 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
41424
41425 * configure: Re-generated.
41426
41427 * DISTLIST: Removed font/manager.c.
41428 Added font/font.c.
41429 Added font/font_cmd.c.
41430
41431 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
41432 compilation.
41433
41434 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
41435
41436 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
41437
41438 * kern/term.c: Changed users of grub_utf8_to_ucs4.
41439
41440 * normal/menu.c: Likewise.
41441
41442 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
41443 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
41444
41445 * include/grub/font.h: Replaced with new file.
41446
41447 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
41448 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
41449 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
41450 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
41451 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
41452 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
41453 fg_red, fg_green, fg_blue, fg_alpha.
41454 (grub_video_adapter): Removed blit_glyph.
41455 (grub_video_blit_glyph): Removed.
41456
41457 * font/manager.c: Removed file.
41458
41459 * font/font.c: New file.
41460
41461 * font/font_cmd.c: Likewise.
41462
41463 * video/video.c (grub_video_blit_glyph): Removed.
41464
41465 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
41466 (grub_video_vbe_map_rgba): Likewise.
41467 (grub_video_vbe_unmap_color_int): Likewise.
41468 (grub_video_vbe_blit_glyph): Removed.
41469 (grub_video_vbe_adapter): Removed blit_glyph.
41470
41471 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
41472 (get_pixel): Likewise.
41473 (set_pixel): Likewise.
41474
41475 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
41476
41477 * term/gfxterm.c: Adapted to new font engine.
41478
41479 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
41480
41481 * term/i386/pc/vga.c: Likewise.
41482
41483 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
41484
41485 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41486
41487 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41488
41489 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41490
41491 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41492
41493 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41494
41495 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41496
41497 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41498
41499 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41500
41501 * util/grub.d/00_header.in: Changed to use new loadfont command.
41502
41503 * util/grub-mkconfig_lib.in: Changed font extension.
41504
41505 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
41506
41507 * util/getroot.c (grub_util_get_grub_dev): Add support for
41508 /dev/md/dNNpNN style partitionable mdraid devices.
41509
41510 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
41511
41512 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
41513 at a time limit of the PXE TFTP API correctly.
41514 (grub_pxefs_close): Likewise.
41515
41516 2008-11-29 Robert Millan <rmh@aybabtu.com>
41517
41518 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
41519 grub_ata_device_initialize() calls.
41520
41521 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
41522
41523 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
41524 iteration failed.
41525 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
41526
41527 2008-11-28 Robert Millan <rmh@aybabtu.com>
41528
41529 Fix build on powerpc-ieee1275. Based on patch created by
41530 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
41531 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
41532 `kern/ieee1275/mmap.c'.
41533 * include/grub/powerpc/ieee1275/memory.h: New file.
41534
41535 Provide grub-install on coreboot.
41536 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
41537 (grub_install_SOURCES): New variable.
41538 * util/i386/pc/grub-install.in: Add a few condition checks to make it
41539 usable on coreboot.
41540
41541 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
41542
41543 * util/grub-fstest.c (grub_term_get_current_input): Change return type
41544 to `grub_term_input_t'.
41545 (grub_term_get_current_output): Change return type to
41546 `grub_term_output_t'.
41547
41548 2008-11-22 Robert Millan <rmh@aybabtu.com>
41549
41550 Fix breakage on coreboot due to declaration mismatch.
41551 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
41552 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
41553 grub_vga_text_cls().
41554
41555 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
41556 comments. Avoid copying one more byte than necessary (just in case).
41557
41558 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
41559 to 0x200000 (avoids trouble with some OFW implementations, and matches
41560 with the one in Yaboot).
41561 Reported by Manoel Abranches
41562
41563 2008-11-20 Robert Millan <rmh@aybabtu.com>
41564
41565 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
41566 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
41567
41568 * util/grub-mkconfig_lib.in (grub_warn): New function.
41569 (convert_system_path_to_grub_path): Use grub_warn() when issuing
41570 warnings, to obtain consistent formatting.
41571 * util/grub.d/00_header.in: Likewise.
41572 * util/update-grub_lib.in: Likewise.
41573
41574 * loader/i386/linux.c (allocate_pages): Fix a warning.
41575 Move comment text to `#error' stanza.
41576
41577 Harmonize ieee1275's grub_available_iterate() with the generic
41578 grub_machine_mmap_iterate() interface (fixes a recently-introduced
41579 build problem on i386-ieee1275):
41580 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
41581 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
41582 parameter `type'. Update all users of this function.
41583 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
41584 `kern/ieee1275/mmap.c'.
41585 * kern/ieee1275/init.c
41586 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
41587 with ...
41588 (grub_machine_mmap_iterate): ... this.
41589 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
41590 return type to `grub_err_t'. Update all implementations of this
41591 function prototype.
41592 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
41593 Likewise.
41594
41595 Add `lsmmap' command (lists firmware-provided memory map):
41596 * commands/lsmmap.c: New file.
41597 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
41598 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
41599 variables.
41600 * conf/powerpc-ieee1275.rmk: Likewise.
41601 * conf/i386-coreboot.rmk: Likewise.
41602 * conf/i386-ieee1275.rmk: Likewise.
41603
41604 2008-11-19 Robert Millan <rmh@aybabtu.com>
41605
41606 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
41607 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
41608 constraints to initrd allocation (based on code from
41609 loader/i386/pc/linux.c). Without them, initrd was allocated too high
41610 for Linux to find it.
41611
41612 2008-11-14 Robert Millan <rmh@aybabtu.com>
41613
41614 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
41615 order to cope with duplicate slashes.
41616
41617 2008-11-14 Robert Millan <rmh@aybabtu.com>
41618
41619 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
41620 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
41621 don't want to mess with lower memory, because it is used in the Linux
41622 loader.
41623
41624 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
41625 an appropriate place in lower memory, between 0x10000 and 0x90000,
41626 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
41627 is in our heap (probably as a result of it being corrupted during
41628 decompression). Add #error instance with comment to explain why this
41629 loader isn't currently usable on PC/BIOS.
41630
41631 2008-11-14 Robert Millan <rmh@aybabtu.com>
41632
41633 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
41634 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
41635
41636 2008-11-12 Robert Millan <rmh@aybabtu.com>
41637
41638 Make loader/i386/linux.c buildable on i386-pc (although disabled).
41639
41640 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
41641 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
41642 from here ...
41643 * include/grub/i386/pc/memory.h: ... to here.
41644
41645 2008-11-12 Robert Millan <rmh@aybabtu.com>
41646
41647 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
41648 split).
41649
41650 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
41651 (grub_console_cur_color, grub_console_real_putchar)
41652 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41653 (grub_console_setcolorstate, grub_console_setcolor)
41654 (grub_console_getcolor): Move from here ...
41655 * include/grub/i386/vga_common.h: ... to here (new file).
41656
41657 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
41658 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
41659 `<grub/i386/io.h>'.
41660 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
41661 `<grub/i386/vga_common.h>'.
41662
41663 2008-11-12 Robert Millan <rmh@aybabtu.com>
41664
41665 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
41666 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
41667 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
41668 variables.
41669 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41670 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
41671
41672 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
41673 grub_console_init() with call to grub_vga_text_init().
41674 (grub_machine_fini): Replace call to
41675 grub_console_fini() with call to grub_vga_text_fini() and
41676 grub_at_keyboard_fini().
41677
41678 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
41679 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41680 (grub_console_setcolorstate, grub_console_setcolor)
41681 (grub_console_getcolor): New function prototypes.
41682
41683 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
41684 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
41685 (grub_vga_text_setcursor): Static-ize.
41686 (grub_vga_text_term): New structure.
41687 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
41688
41689 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
41690 (grub_console_cur_color, grub_console_standard_color)
41691 (grub_console_normal_color, grub_console_highlight_color)
41692 (map_char, grub_console_putchar, grub_console_getcharwidth)
41693 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
41694 (grub_console_getcolor): Move from here ...
41695 * term/i386/vga_common.c: ... to here (same function names).
41696
41697 2008-11-12 Robert Millan <rmh@aybabtu.com>
41698
41699 Use newly-added Multiboot support in coreboot.
41700
41701 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41702 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
41703
41704 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
41705 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
41706 (codestart): Store the MBI in `startup_multiboot_info' when we're
41707 being loaded using Multiboot.
41708
41709 * kern/i386/coreboot/init.c (grub_machine_init): Move
41710 grub_at_keyboard_init() call to beginning of function (useful for
41711 debugging). Call grub_machine_mmap_init() before attempting to use
41712 grub_machine_mmap_iterate().
41713 (grub_lower_mem, grub_upper_mem): Move from here ...
41714 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
41715 here (new file).
41716
41717 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
41718 function prototype.
41719
41720 2008-11-12 Robert Millan <rmh@aybabtu.com>
41721
41722 Fix a regression introduced by the at_keyboard.mod split. Because
41723 some terminals are default on some platforms and non-default on
41724 others, the first terminal being registered determines which is
41725 going to be default.
41726
41727 * kern/term.c (grub_term_register_input): If this is the first
41728 terminal being registered, set it as the current one.
41729 (grub_term_register_output): Likewise.
41730
41731 * term/efi/console.c (grub_console_init): Do not call
41732 grub_term_set_current_output() or grub_term_set_current_input().
41733 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
41734 * term/i386/pc/console.c (grub_console_init): Likewise.
41735 (grub_console_fini): Do not call grub_term_set_current_input()
41736 (but leave grub_term_set_current_output() to restore text mode).
41737
41738 2008-11-10 Robert Millan <rmh@aybabtu.com>
41739
41740 * util/grub.d/00_header.in: Add backward compatibility check for
41741 versions of terminal.mod that don't understand `terminal_input' or
41742 `terminal_output'.
41743
41744 2008-11-09 Robert Millan <rmh@aybabtu.com>
41745
41746 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
41747 `terminal_input' / `terminal_output', not `terminal'.
41748
41749 2008-11-08 Robert Millan <rmh@aybabtu.com>
41750
41751 * Makefile.in (include_DATA): Fix srcdir=. assumption.
41752 (DISTCLEANFILES): Add `build_env.mk'.
41753
41754 2008-11-08 Robert Millan <rmh@aybabtu.com>
41755
41756 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
41757 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41758 members. Update all users.
41759 * util/console.c (grub_ncurses_term): Split in ...
41760 (grub_ncurses_term_input): ... this, and ...
41761 (grub_ncurses_term_output): ... this. Update all users.
41762 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
41763
41764 2008-11-08 Robert Millan <rmh@aybabtu.com>
41765
41766 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
41767 (PKGDATA): Add $(pkgdata_SRCDIR).
41768 (pkglib_BUILDDIR): New variable.
41769 (pkgdata_SRCDIR): New variable.
41770 (build_env.mk): New target.
41771 (include_DATA): New variable.
41772 (install-local): Install $(include_DATA) files in $(includedir).
41773
41774 2008-11-07 Pavel Roskin <proski@gnu.org>
41775
41776 * gendistlist.sh: Use C locale for sorting to ensure consistent
41777 output on all systems.
41778
41779 * util/grub.d/00_header.in: Remove incorrect space before
41780 "serial".
41781
41782 2008-11-07 Robert Millan <rmh@aybabtu.com>
41783
41784 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
41785 per specification.
41786 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
41787 * loader/multiboot_loader.c (find_multi_boot2_header): New function
41788 (based on find_multi_boot1_header).
41789 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
41790 using find_multi_boot2_header(), and abort if neither Multiboot or
41791 Multiboot headers were found.
41792
41793 2008-11-07 Robert Millan <rmh@aybabtu.com>
41794
41795 Modularize at_keyboard.mod:
41796
41797 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
41798 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
41799 (at_keyboard_mod_LDFLAGS): New variables.
41800
41801 Actual terminal split:
41802
41803 * include/grub/term.h (struct grub_term): Split in ...
41804 (struct grub_term_input): ... this, and ...
41805 (struct grub_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/term.c (grub_term_list): Split in ...
41823 (grub_term_list_input): ... this, and ...
41824 (grub_term_list_output): ... this. Update all users.
41825 (grub_cur_term): Split in ...
41826 (grub_cur_term_input): ... this, and ...
41827 (grub_cur_term_output): ... this. Update all users.
41828 (grub_term_set_current): Split in ...
41829 (grub_term_set_current_input): ... this, and ...
41830 (grub_term_set_current_output): ... this.
41831 (grub_term_get_current): Split in ...
41832 (grub_term_get_current_input): ... this, and ...
41833 (grub_term_get_current_output): ... this.
41834 (grub_term_register): Split in ...
41835 (grub_term_register_input): ... this, and ...
41836 (grub_term_register_output): ... this.
41837 (grub_term_unregister): Split in ...
41838 (grub_term_unregister_input): ... this, and ...
41839 (grub_term_unregister_output): ... this.
41840 (grub_term_iterate): Split in ...
41841 (grub_term_iterate_input): ... this, and ...
41842 (grub_term_iterate_output): ... this.
41843
41844 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
41845 a check for input and one for output (and only attempt to get keys
41846 from user when input works).
41847
41848 * util/grub-probe.c (grub_term_get_current): Split in ...
41849 (grub_term_get_current_input): ... this, and ...
41850 (grub_term_get_current_output): ... this.
41851 * util/grub-fstest.c: Likewise.
41852 * util/i386/pc/grub-setup.c: Likewise.
41853 * util/grub-editenv.c: Likewise.
41854
41855 Portability adjustments:
41856
41857 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
41858 `term/i386/pc/at_keyboard.c'.
41859 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
41860 grub_keyboard_controller_init() (now handled by terminal .init).
41861 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
41862 grub_at_keyboard_init().
41863 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
41864 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
41865 at_keyboard.mod via input terminal interface).
41866 * include/grub/i386/coreboot/console.h: Convert into a stub for
41867 `<grub/i386/pc/console.h>'.
41868
41869 Migrate full terminals to new API:
41870
41871 * term/efi/console.c (grub_console_term): Split into ...
41872 (grub_console_term_input): ... this, and ...
41873 (grub_console_term_output): ... this. Update all users.
41874 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
41875 (grub_ofconsole_init): Split into ...
41876 (grub_ofconsole_init_input): ... this, and ...
41877 (grub_ofconsole_init_output): ... this.
41878 (grub_ofconsole_term): Split into ...
41879 (grub_ofconsole_term_input): ... this, and ...
41880 (grub_ofconsole_term_output): ... this. Update all users.
41881 * term/i386/pc/serial.c (grub_serial_term): Split into ...
41882 (grub_serial_term_input): ... this, and ...
41883 (grub_serial_term_output): ... this. Update all users.
41884 * term/i386/pc/console.c (grub_console_term): Split into ...
41885 (grub_console_term_input): ... this, and ...
41886 (grub_console_term_output): ... this. Update all users.
41887 (grub_console_term_input): Only enable it on PC/BIOS platform.
41888 (grub_console_init): Remove grub_keyboard_controller_init() call.
41889
41890 Migrate input terminals to new API:
41891
41892 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
41893 `i386' and `i386/pc' to enable build on x86_64 (this driver is
41894 i386-specific anyway).
41895 (grub_console_checkkey): Rename to ...
41896 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
41897 users.
41898 (grub_keyboard_controller_orig): New variable.
41899 (grub_console_getkey): Rename to ...
41900 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
41901 users.
41902 (grub_keyboard_controller_init): Static-ize. Save original
41903 controller value so that it can be restored ...
41904 (grub_keyboard_controller_fini): ... here (new function).
41905 (grub_at_keyboard_term): New structure.
41906 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
41907 functions.
41908
41909 Migrate output terminals to new API:
41910
41911 * term/i386/pc/vga.c (grub_vga_term): Change type to
41912 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41913 members. Update all users.
41914 * term/gfxterm.c (grub_video_term): Change type to
41915 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41916 members. Update all users.
41917 * include/grub/i386/pc/console.h (grub_console_checkkey)
41918 (grub_console_getkey): Do not export (no longer needed by gfxterm,
41919 etc).
41920
41921 Migrate `terminal' command and userland tools to new API:
41922
41923 * commands/terminal.c (grub_cmd_terminal): Split into ...
41924 (grub_cmd_terminal_input): ... this, and ...
41925 (grub_cmd_terminal_output): ... this.
41926 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
41927 `terminal_input' and `terminal_output'.
41928 * util/grub.d/00_header.in: Adjust `terminal' calls to new
41929 `terminal_input' / `terminal_output' API.
41930 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
41931 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
41932 provided ${GRUB_TERMINAL}, convert it).
41933
41934 2008-11-04 Robert Millan <rmh@aybabtu.com>
41935
41936 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
41937 for FreeBSD.
41938 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
41939
41940 2008-11-03 Bean <bean123ch@gmail.com>
41941
41942 * kern/elf.c (grub_elf32_load): Revert to previous code.
41943 (grub_elf64_load): Likewise.
41944
41945 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
41946
41947 2008-11-01 Robert Millan <rmh@aybabtu.com>
41948
41949 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
41950 (TARGET_CPPFLAGS): Likewise.
41951 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
41952
41953 2008-11-01 Carles Pina i Estany <carles@pina.cat>
41954
41955 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
41956
41957 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
41958
41959 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
41960 addition of objects until the code is not going to be able to fail.
41961
41962 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
41963
41964 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
41965 (add a missing NULL check, and correct them by moving the pointer
41966 operations after the actual check).
41967
41968 2008-10-29 Robert Millan <rmh@aybabtu.com>
41969
41970 * util/i386/pc/grub-install.in: Handle empty string as output from
41971 make_system_path_relative_to_its_root().
41972
41973 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
41974
41975 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
41976 circular metadata worst case scenario. If the metadata is circular
41977 then copy the wrap in place.
41978 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
41979 project lib/format_text/layout.h
41980 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
41981
41982 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
41983
41984 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
41985
41986 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
41987
41988 * util/update-grub_lib.in: Mention filename in warning message.
41989
41990 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
41991
41992 * NEWS: Update for rename of update-grub to grub-mkconfig.
41993
41994 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
41995
41996 * util/update-grub_lib.in: Copy to ...
41997 * util/grub-mkconfig_lib.in: ... this. Update all users.
41998 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
41999 * util/update-grub.in: Rename to ...
42000 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
42001 option. Add `--output' option to allow users to specify the generated
42002 configuration file. Default to stdout.
42003 (update_grub_dir): Rename to ...
42004 (grub_mkconfig_dir): ... this.
42005 (grub_cfg): Default to an empty string.
42006 * conf/common.rmk (update-grub): Rename to ...
42007 (grub-mkconfig): ... this.
42008 (update-grub_lib): Copy to ...
42009 (grub-mkconfig_lib): ... this.
42010 (update-grub_SCRIPTS): Copy to ...
42011 (grub-mkconfig_SCRIPTS): ... this. Update all users.
42012 (update-grub_DATA): Rename to ...
42013 (grub-mkconfig_DATA): ... this.
42014
42015 2008-09-28 Robert Millan <rmh@aybabtu.com>
42016
42017 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
42018 to `modified'. Add the real `created' field.
42019 (grub_iso9660_uuid): Use `modified' rather than `created' for
42020 constructing the UUID.
42021
42022 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
42023
42024 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
42025 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
42026
42027 2008-09-28 Bean <bean123ch@gmail.com>
42028
42029 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
42030 Thanks to Christian Franke for finding this bug.
42031
42032 2008-09-25 Robert Millan <rmh@aybabtu.com>
42033
42034 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
42035 instances of grub_util_get_disk_name() (see previous commit).
42036
42037 2008-09-25 Robert Millan <rmh@aybabtu.com>
42038
42039 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
42040 `util/i386/get_disk_name.c'.
42041 * conf/i386-efi.rmk: Likewise.
42042 * conf/x86_64-efi.rmk: Likewise.
42043 * conf/i386-coreboot.rmk: Likewise.
42044 * conf/i386-ieee1275.rmk: Likewise.
42045 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
42046 `util/ieee1275/get_disk_name.c'.
42047 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
42048 * util/ieee1275/get_disk_name.c: Remove file.
42049 * util/i386/get_disk_name.c: Remove file.
42050 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
42051 "hd%d" for device.map entries, rather than using
42052 grub_util_get_disk_name().
42053
42054 2008-09-24 Carles Pina i Estany <carles@pina.cat>
42055
42056 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
42057 warning.
42058 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
42059
42060 2008-09-24 Carles Pina i Estany <carles@pina.cat>
42061
42062 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
42063 Changed to 0x5100.
42064 (GRUB_TERM_PPAGE): Changed to 0x4900.
42065
42066 2008-09-24 Robert Millan <rmh@aybabtu.com>
42067
42068 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
42069 macros (they were i386-pc specific).
42070 * include/grub/sparc64/ieee1275/console.h: Likewise.
42071 * include/grub/efi/console.h: Likewise.
42072
42073 2008-09-22 Bean <bean123ch@gmail.com>
42074
42075 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
42076 resident and in attribute list.
42077
42078 * include/grub/ntfs.h (BMP_LEN): Removed.
42079
42080 2008-09-22 Bean <bean123ch@gmail.com>
42081
42082 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
42083 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
42084
42085 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
42086 error occurs, as grub_disk_open will call grub_disk_close, which will
42087 call p->close (scsi).
42088
42089 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42090
42091 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
42092 (AC_PREREQ): Bumped to 2.59.
42093 (AC_TRY_COMPILE): Replace obsolete macro with ...
42094 (AC_COMPILE_IFELSE): ... this.
42095 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
42096 (AC_LINK_IFELSE): ... this.
42097
42098 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42099
42100 * autogen.sh: Add a call to `gendistlist.sh'.
42101
42102 2008-09-19 Christian Franke <franke@computer.org>
42103
42104 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
42105 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
42106 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
42107 Export __enable_execute_stack() to modules.
42108 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
42109 New function.
42110
42111 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42112
42113 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
42114 Sort the list.
42115
42116 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42117
42118 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
42119 #include <grub/util/hostdisk.h>.
42120
42121 2008-09-08 Robert Millan <rmh@aybabtu.com>
42122
42123 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
42124 segments when their filesz is zero (grub_file_read() interprets
42125 zero-size as "read until EOF", which results in memory corruption).
42126 Use `lowest_segment' rather than 0 for calculating the current
42127 segment load address.
42128
42129 2008-09-08 Robert Millan <rmh@aybabtu.com>
42130
42131 * util/hostdisk.c (open_device): Replace a grub_util_info() call
42132 with grub_dprintf("hostdisk", ...), as it was so verbose that it
42133 clobbered useful information.
42134
42135 2008-09-08 Robert Millan <rmh@aybabtu.com>
42136
42137 * include/grub/util/biosdisk.h: Move to ...
42138 * include/grub/util/hostdisk.h: ... here. Update all users.
42139 * util/biosdisk.c: Move to ...
42140 * util/hostdisk.c: ... here. Update all users.
42141
42142 2008-09-07 Robert Millan <rmh@aybabtu.com>
42143
42144 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
42145 variables.
42146 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
42147 and length can be stored directly in the `mbi->mmap_addr' and
42148 `mbi->mmap_length' struct fields.
42149
42150 2008-09-07 Robert Millan <rmh@aybabtu.com>
42151
42152 * conf/i386.rmk: New file. Provides declaration for building
42153 `cpuid.mod'.
42154 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
42155 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
42156 variables.
42157 Include `conf/i386.mk'.
42158 * conf/i386-efi.rmk: Likewise.
42159 * conf/x86_64-efi.rmk: Likewise.
42160 * conf/i386-coreboot.rmk: Likewise.
42161 * conf/i386-ieee1275.rmk: Likewise.
42162
42163 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
42164
42165 Based on patch created by Colin D Bennett <colin@gibibit.com>.
42166 Adds optimization support for BGR based modes.
42167
42168 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
42169 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42170 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42171 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42172 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42173 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42174 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42175 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42176 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42177 (grub_video_i386_vbeblit_index_index): Likewise.
42178 (grub_video_i386_vbeblit_replace_directN): Added.
42179 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42180 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42181 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42182 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42183 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42184 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42185 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42186 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42187 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42188 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42189 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42190 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42191 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42192
42193 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
42194 (grub_video_i386_vbefill_R8G8B8): Likewise.
42195 (grub_video_i386_vbefill_index): Likewise.
42196 (grub_video_i386_vbefill_direct32): Added.
42197 (grub_video_i386_vbefill_direct24): Likewise.
42198 (grub_video_i386_vbefill_direct16): Likewise.
42199 (grub_video_i386_vbefill_direct8): Likewise.
42200
42201 * include/grub/video.h (grub_video_blit_format): Removed
42202 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
42203 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
42204 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
42205 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
42206 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
42207
42208 * video/video.c (grub_video_get_blit_format): Updated to use new
42209 blit formats. Added handling for 16 bit color modes.
42210
42211 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
42212 fillers.
42213 (common_blitter): Updated to use new blitters.
42214
42215 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
42216 Removed.
42217 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42218 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42219 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42220 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42221 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42222 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42223 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42224 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42225 (grub_video_i386_vbeblit_index_index): Likewise.
42226 (grub_video_i386_vbeblit_replace_directN): Added.
42227 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42228 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42229 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42230 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42231 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42232 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42233 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42234 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42235 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42236 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42237 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42238 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42239 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42240
42241 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
42242 (grub_video_i386_vbefill_R8G8B8): Likewise.
42243 (grub_video_i386_vbefill_index): Likewise.
42244 (grub_video_i386_vbefill_direct32): Added.
42245 (grub_video_i386_vbefill_direct24): Likewise.
42246 (grub_video_i386_vbefill_direct16): Likewise.
42247 (grub_video_i386_vbefill_direct8): Likewise.
42248
42249 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
42250 types.
42251
42252 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
42253 types.
42254
42255 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
42256 blitter types.
42257
42258 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
42259 types.
42260
42261 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42262
42263 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
42264 RAID level 1.
42265
42266 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42267
42268 * fs/iso9660.c (grub_iso9660_date): New structure.
42269 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
42270 (grub_iso9660_uuid): New function.
42271
42272 2008-09-05 Bean <bean123ch@gmail.com>
42273
42274 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
42275
42276 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
42277 insensitive bit for names in Win32 and Win32 & DOS namespace.
42278
42279 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
42280
42281 * include/grub/types.h (LONG_MAX): Likewise.
42282
42283 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42284
42285 * util/getroot.c: Include <config.h>.
42286 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
42287 add support for /dev/md/N devices and handle LVM double dash escaping.
42288
42289 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42290
42291 * config.guess: Update to latest version from config git.
42292 * config.sub: Likewise.
42293
42294 2008-09-03 Robert Millan <rmh@aybabtu.com>
42295
42296 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
42297 `disk->total_sectors'.
42298
42299 2008-09-01 Colin D Bennett <colin@gibibit.com>
42300
42301 * include/grub/normal.h: Fixed incorrect comment for
42302 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
42303
42304 2008-09-01 Colin D Bennett <colin@gibibit.com>
42305
42306 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
42307 values with defines.
42308
42309 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
42310 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
42311 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
42312 (GRUB_VBE_MODEATTR_COLOR): Likewise.
42313 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
42314 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
42315 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
42316 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
42317 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
42318 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
42319 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
42320 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
42321 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
42322 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
42323 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
42324 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
42325 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
42326 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
42327 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
42328
42329 2008-08-31 Robert Millan <rmh@aybabtu.com>
42330
42331 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
42332 declaration.
42333 (grub_multiboot): Fix a few warnings.
42334
42335 2008-08-31 Robert Millan <rmh@aybabtu.com>
42336
42337 * loader/i386/pc/multiboot.c: Update comment not to say that
42338 boot_device support is unimplemented.
42339
42340 2008-08-31 Robert Millan <rmh@aybabtu.com>
42341
42342 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
42343 or memory map support are unimplemented.
42344
42345 2008-08-31 Colin D Bennett <colin@gibibit.com>
42346
42347 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
42348
42349 2008-08-31 Colin D Bennett <colin@gibibit.com>
42350
42351 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
42352 total video memory in 'vbeinfo' output; show color format details for
42353 each video mode.
42354
42355 2008-08-30 Pavel Roskin <proski@gnu.org>
42356
42357 * util/genmoddep.c: Remove for real this time.
42358 * DISTLIST: Remove util/genmoddep.c.
42359
42360 2008-08-30 Robert Millan <rmh@aybabtu.com>
42361
42362 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
42363 as required by Multiboot spec (it was already 4-byte aligned, but
42364 only by chance).
42365
42366 2008-08-29 Pavel Roskin <proski@gnu.org>
42367
42368 * kern/powerpc/ieee1275/crt0.S: Rename to ...
42369 * kern/powerpc/ieee1275/startup.S: ... this.
42370 * conf/powerpc-ieee1275.rmk: Adjust for the above.
42371 * DISTLIST: Likewise.
42372
42373 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
42374 grub/cpu/kernel.h. Add start label for consistency with other
42375 platforms. Add grub_prefix immediately after start. Add jump
42376 to the code after grub_prefix.
42377 * include/grub/powerpc/kernel.h: Provide valid values for
42378 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
42379
42380 2008-08-29 Bean <bean123ch@gmail.com>
42381
42382 * configure.ac: Change host_os to cygwin for mingw.
42383 (asprintf): New check for function.
42384
42385 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
42386 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
42387
42388 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
42389 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
42390 sync, sleep and grub_util_get_disk_size for mingw.
42391
42392 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
42393 to get size in mingw.
42394 (open_device): Use flag O_BINARY if it's defined.
42395 (find_root_device): Add dummy code for mingw.
42396
42397 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
42398 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
42399 (get_scsi_disk_name): Return 0 for mingw.
42400
42401 * util/hostfs.c: #include <grub/util/misc.h>.
42402 (grub_hostfs_open): Use "rb" flag to open file, use
42403 grub_util_get_disk_size to get disk size for mingw.
42404
42405 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
42406 (asprintf): New function if HAVE_ASPRINTF is not set.
42407 (sync): New function for mingw.
42408 (sleep): Likewise.
42409 (grub_util_get_disk_size): Likewise.
42410
42411 2008-08-28 Pavel Roskin <proski@gnu.org>
42412
42413 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
42414 kern/time.c.
42415
42416 2008-08-28 Robert Millan <rmh@aybabtu.com>
42417
42418 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
42419
42420 2008-08-28 Robert Millan <rmh@aybabtu.com>
42421
42422 Change find_grub_drive() syntax so it doesn't prevent it from
42423 detecting NULL names as errors.
42424
42425 * util/biosdisk.c (find_grub_drive): Move free slot search code
42426 from here ...
42427 (find_free_slot): ... to here.
42428 (read_device_map): Use find_free_slot() to search for free slots.
42429
42430 2008-08-27 Marco Gerards <marco@gnu.org>
42431
42432 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
42433 (scsi_mod_SOURCES): New variable.
42434 (scsi_mod_CFLAGS): Likewise
42435 (scsi_mod_LDFLAGS): Likewise.
42436
42437 * disk/scsi.c: New file.
42438
42439 * include/grub/scsi.h: Likewise.
42440
42441 * include/grub/scsicmd.h: Likewise.
42442
42443 * disk/ata.c: Include <grub/scsi.h>.
42444 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
42445 instead.
42446 (grub_ata_iterate): Skip ATAPI devices.
42447 (grub_ata_open): Only handle ATAPI devices.
42448 (struct grub_atapi_read): Removed.
42449 (grub_atapi_readsector): Likewise.
42450 (grub_ata_read): No longer handle ATAPI devices.
42451 (grub_ata_write): Likewise.
42452 (grub_atapi_iterate): New function.
42453 (grub_atapi_read): Likewise.
42454 (grub_atapi_write): Likewise.
42455 (grub_atapi_open): Likewise.
42456 (grub_atapi_close): Likewise.
42457 (grub_atapi_dev): New variable.
42458 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
42459 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
42460
42461 * include/grub/disk.h (enum grub_disk_dev_id): Add
42462 `GRUB_DISK_DEVICE_SCSI_ID'.
42463
42464 2008-08-26 Robert Millan <rmh@aybabtu.com>
42465
42466 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
42467 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
42468 descriptive.
42469
42470 2008-08-23 Bean <bean123ch@gmail.com>
42471
42472 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
42473 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42474 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
42475 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
42476 dm_nv.mod.
42477 (raid5rec_mod_SOURCES): New macro.
42478 (raid5rec_mod_CFLAGS): Likewise.
42479 (raid5rec_mod_LDFLAGS): Likewise.
42480 (raid6rec_mod_SOURCES): Likewise.
42481 (raid6rec_mod_CFLAGS): Likewise.
42482 (raid6rec_mod_LDFLAGS): Likewise.
42483 (mdraid_mod_SOURCES): Likewise.
42484 (mdraid_mod_CFLAGS): Likewise.
42485 (mdraid_mod_LDFLAGS): Likewise.
42486 (dm_nv_mod_SOURCES): Likewise.
42487 (dm_nv_mod_CFLAGS): Likewise.
42488 (dm_nv_mod_LDFLAGS): Likewise.
42489
42490 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
42491 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42492 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42493
42494 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
42495 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42496
42497 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42498
42499 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
42500
42501 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42502
42503 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42504
42505 * disk/raid5_recover.c: New file.
42506
42507 * disk/raid6_recover.c: Likewise.
42508
42509 * disk/mdraid_linux.c: Likewise.
42510
42511 * disk/dmraid_nvidia.c: Likewise.
42512
42513 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
42514 ULONG_MAX.
42515
42516 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
42517 calculate the size of raid device.
42518 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
42519 different layout of raid5.
42520 (grub_raid_scan_device): Remove code specific to mdraid.
42521 (grub_raid_list): New variable.
42522 (free_array): New function.
42523 (grub_raid_register): Likewise.
42524 (grub_raid_unregister): Likewise.
42525 (grub_raid_rescan): Likewise.
42526 (GRUB_MOD_INIT): Don't iterate device here.
42527 (GRUB_MOD_FINI): Use free_array to release resource.
42528
42529 * include/grub/raid.h: Remove macro and structure specific to mdraid.
42530 (grub_raid5_recover_func_t): New function variable type.
42531 (grub_raid6_recover_func_t): Likewise.
42532 (grub_raid5_recover_func): New variable.
42533 (grub_raid6_recover_func): Likewise.
42534 (grub_raid_register): New function.
42535 (grub_raid_unregister): Likewise.
42536 (grub_raid_rescan): Likewise.
42537 (grub_raid_block_xor): Likewise.
42538
42539 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
42540 (CMD_CRC): New macro.
42541 (part): Removed.
42542 (read_file): Handle device as well as file.
42543 (cmd_crc): New function.
42544 (fstest): Handle multiple disks.
42545 (options): Remove part, raw and long, add root and diskcount.
42546 (usage): Add crc, remove -p, -r, -l, add -r and -c.
42547 (main): Find the first non option entry and ignore subsequent options,
42548 add handling for the new options, support multiple disks.
42549
42550 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
42551
42552 2008-08-23 Bean <bean123ch@gmail.com>
42553
42554 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
42555
42556 * genfslist.sh: Ignore kernel.mod.
42557
42558 * genpartmaplist.sh: Likewise.
42559
42560 2008-08-23 Robert Millan <rmh@aybabtu.com>
42561
42562 * util/getroot.c (find_root_device): Skip anything that starts with
42563 a dot, not just directories. This avoids things like /dev/.tmp.md0.
42564
42565 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
42566
42567 * util/update-grub.in (GRUB_GFXMODE): Export variable.
42568 * util/grub.d/00_header.in: Allow the administrator to change default
42569 gfxmode via ${GRUB_GFXMODE}.
42570
42571 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
42572
42573 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
42574
42575 2008-08-21 Robert Millan <rmh@aybabtu.com>
42576
42577 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
42578 loader.
42579 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
42580 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
42581
42582 2008-08-20 Carles Pina i Estany <carles@pina.cat>
42583
42584 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
42585 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
42586
42587 2008-08-19 Robert Millan <rmh@aybabtu.com>
42588
42589 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
42590 (struct grub_virtual_screen): Remove `cursor_color'.
42591 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
42592 initialization.
42593 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
42594
42595 2008-08-18 Robert Millan <rmh@aybabtu.com>
42596
42597 Unify (identical) linux_normal.c files.
42598 * loader/i386/efi/linux_normal.c: Move from here ...
42599 * loader/linux_normal.c: ... to here. Update all users.
42600 * loader/i386/pc/linux_normal.c: Delete. Update all users.
42601 * loader/i386/ieee1275/linux_normal.c: Likewise.
42602
42603 2008-08-18 Robert Millan <rmh@aybabtu.com>
42604
42605 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
42606 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
42607 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
42608 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
42609 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
42610 New macros.
42611 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
42612 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
42613 (GRUB_LINUX_CL_END_OFFSET): ... to here.
42614 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
42615 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
42616 (GRUB_EFI_CL_END_OFFSET): Rename to ...
42617 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
42618 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
42619 Initialize `params->video_cursor_x' and `params->video_cursor_y'
42620 portably using grub_getxy().
42621 Replace `-EFI' with `-bzImage' in boot message.
42622
42623 2008-08-17 Robert Millan <rmh@aybabtu.com>
42624
42625 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
42626
42627 2008-08-17 Robert Millan <rmh@aybabtu.com>
42628
42629 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
42630
42631 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
42632 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
42633 (grub_machine_mmap_iterate): New function declaration.
42634 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
42635 structure.
42636 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
42637 macros.
42638
42639 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
42640 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
42641 Move e820 parsing from here ...
42642 * kern/i386/pc/mmap.c: New file.
42643 (grub_machine_mmap_iterate): ... to here.
42644
42645 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
42646 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
42647 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
42648 (grub_available_iterate): Redeclare to return `void', and redeclare
42649 its hook to use grub_uint64_t as addr and size parameters, and rename
42650 to ...
42651 (grub_machine_mmap_iterate): ... this. Update all users.
42652
42653 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
42654 to make it more readable. Rename to ...
42655 (grub_machine_mmap_iterate): ... this.
42656
42657 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
42658 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
42659 (grub_multiboot): Allocate an extra region after the payload, and fill
42660 it with a Multiboot memory map. Adjust a.out loader to calculate size
42661 with the extra space.
42662 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
42663 with the extra space.
42664
42665 2008-08-17 Carles Pina i Estany <carles@pina.cat>
42666
42667 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
42668
42669 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
42670
42671 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
42672 mdate-sh to the list `find' searches for.
42673 * DISTLIST: Regenerated.
42674
42675 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
42676
42677 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
42678 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
42679 genmoddep.awk, gensymlist.sh.in.
42680 (DISTDIRS): Add bus, docs, hook, lib.
42681 * DISTLIST: Regenerated.
42682 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
42683
42684 2008-08-16 Robert Millan <rmh@aybabtu.com>
42685
42686 * disk/raid.c (grub_raid_init): Handle/report errors set by
42687 grub_device_iterate().
42688 * disk/lvm.c (grub_lvm_init): Likewise.
42689
42690 2008-08-15 Bean <bean123ch@gmail.com>
42691
42692 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42693 and datehook.mod.
42694 (datetime_mod_SOURCES): New macro.
42695 (datetime_mod_CFLAGS): Likewise.
42696 (datetime_mod_LDFLAGS): Likewise.
42697 (date_mod_SOURCES): Likewise.
42698 (date_mod_CFLAGS): Likewise.
42699 (date_mod_LDFLAGS): Likewise.
42700 (datehook_mod_SOURCES): Likewise.
42701 (datehook_mod_CFLAGS): Likewise.
42702 (datehook_mod_LDFLAGS): Likewise.
42703
42704 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42705 and datehook.mod.
42706 (datetime_mod_SOURCES): New macro.
42707 (datetime_mod_CFLAGS): Likewise.
42708 (datetime_mod_LDFLAGS): Likewise.
42709 (date_mod_SOURCES): Likewise.
42710 (date_mod_CFLAGS): Likewise.
42711 (date_mod_LDFLAGS): Likewise.
42712 (datehook_mod_SOURCES): Likewise.
42713 (datehook_mod_CFLAGS): Likewise.
42714 (datehook_mod_LDFLAGS): Likewise.
42715
42716 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42717 and datehook.mod.
42718 (datetime_mod_SOURCES): New macro.
42719 (datetime_mod_CFLAGS): Likewise.
42720 (datetime_mod_LDFLAGS): Likewise.
42721 (date_mod_SOURCES): Likewise.
42722 (date_mod_CFLAGS): Likewise.
42723 (date_mod_LDFLAGS): Likewise.
42724 (datehook_mod_SOURCES): Likewise.
42725 (datehook_mod_CFLAGS): Likewise.
42726 (datehook_mod_LDFLAGS): Likewise.
42727
42728 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42729 and datehook.mod.
42730 (datetime_mod_SOURCES): New macro.
42731 (datetime_mod_CFLAGS): Likewise.
42732 (datetime_mod_LDFLAGS): Likewise.
42733 (date_mod_SOURCES): Likewise.
42734 (date_mod_CFLAGS): Likewise.
42735 (date_mod_LDFLAGS): Likewise.
42736 (datehook_mod_SOURCES): Likewise.
42737 (datehook_mod_CFLAGS): Likewise.
42738 (datehook_mod_LDFLAGS): Likewise.
42739
42740 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42741 and datehook.mod.
42742 (datetime_mod_SOURCES): New macro.
42743 (datetime_mod_CFLAGS): Likewise.
42744 (datetime_mod_LDFLAGS): Likewise.
42745 (date_mod_SOURCES): Likewise.
42746 (date_mod_CFLAGS): Likewise.
42747 (date_mod_LDFLAGS): Likewise.
42748 (datehook_mod_SOURCES): Likewise.
42749 (datehook_mod_CFLAGS): Likewise.
42750 (datehook_mod_LDFLAGS): Likewise.
42751
42752 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
42753
42754 * commands/date.c: New file.
42755
42756 * hook/datehook.c: Likewise.
42757
42758 * include/grub/lib/datetime.h: Likewise.
42759
42760 * include/grub/i386/cmos.h: Likewise.
42761
42762 * lib/datetime.c: Likewise.
42763
42764 * lib/i386/datetime.c: Likewise.
42765
42766 * lib/efi/datetime.c: Likewise.
42767
42768 2008-08-14 Robert Millan <rmh@aybabtu.com>
42769
42770 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
42771 (grub_mkelfimage_SOURCES): New variable.
42772 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
42773
42774 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
42775 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
42776 * conf/powerpc-ieee1275.rmk: Likewise.
42777 * conf/i386-ieee1275.rmk: Likewise.
42778
42779 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
42780 * kern/i386/coreboot/init.c: Likewise.
42781
42782 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
42783 with `<grub/cpu/kernel.h>'.
42784 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
42785 to ...
42786 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
42787 * kern/i386/coreboot/startup.S: Likewise.
42788
42789 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
42790 (GRUB_MOD_GAP): Remove.
42791 * include/grub/powerpc/kernel.h: New file.
42792 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
42793 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42794 * include/grub/i386/kernel.h: New file.
42795 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
42796 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
42797 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42798
42799 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
42800 `grub-mkelfimage'.
42801 Use --directory when invoking grub_mkimage.
42802
42803 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
42804 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
42805 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
42806 and GRUB_KERNEL_CPU_PREFIX.
42807
42808 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
42809
42810 * include/grub/err.h (grub_err_printf): New function prototype.
42811 * util/misc.c (grub_err_printf): New function.
42812 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
42813 grub_printf.
42814 * kern/err.c (grub_print_error): Use grub_err_printf.
42815
42816 2008-08-13 Robert Millan <rmh@aybabtu.com>
42817
42818 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
42819
42820 2008-08-13 Robert Millan <rmh@aybabtu.com>
42821
42822 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
42823 boot entry.
42824
42825 2008-08-12 Robert Millan <rmh@aybabtu.com>
42826
42827 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
42828 of the relocation code from here ...
42829 (grub_multiboot): ... to here.
42830 (forward_relocator, backward_relocator): Move from here ...
42831 * kern/i386/loader.S (grub_multiboot_forward_relocator)
42832 (grub_multiboot_backward_relocator): ... to here.
42833 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
42834 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
42835 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
42836 (grub_multiboot_forward_relocator_end)
42837 (grub_multiboot_backward_relocator)
42838 (grub_multiboot_backward_relocator_end): New variables.
42839
42840 2008-08-12 Bean <bean123ch@gmail.com>
42841
42842 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
42843
42844 2008-08-11 Robert Millan <rmh@aybabtu.com>
42845
42846 * kern/i386/linuxbios/startup.S: Move from here ...
42847 * kern/i386/coreboot/startup.S: ... to here.
42848
42849 * kern/i386/linuxbios/init.c: Move from here ...
42850 * kern/i386/coreboot/init.c: ... to here.
42851
42852 * kern/i386/linuxbios/table.c: Move from here ...
42853 * kern/i386/coreboot/mmap.c: ... to here.
42854
42855 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
42856
42857 2008-08-11 Robert Millan <rmh@aybabtu.com>
42858
42859 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
42860 errors. Leave it to the upper layer to handle them.
42861
42862 2008-08-09 Christian Franke <franke@computer.org>
42863
42864 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
42865 * conf/common.rmk: Install `grub-pe2elf' only if requested.
42866 Install `grub.d/10_windows' only on Cygwin.
42867 * configure.ac: Add subst of `target_os'.
42868 Check `target_os' also before setting TARGET_OBJ2ELF.
42869 Add `--enable-grub-pe2elf'.
42870
42871 2008-08-08 Robert Millan <rmh@aybabtu.com>
42872
42873 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
42874 (grub_last_time): Change type to grub_uint64_t.
42875 (grub_disk_open): Migrate code from to using grub_get_time_ms().
42876 (grub_disk_close): Likewise.
42877
42878 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
42879 (run_menu): Migrate code from to using grub_get_time_ms().
42880
42881 * util/misc.c (grub_get_time_ms): New function.
42882
42883 2008-08-08 Marco Gerards <marco@gnu.org>
42884
42885 * disk/ata.c (grub_ata_regget): Change return type to
42886 `grub_uint8_t'.
42887 (grub_ata_regget2): Likewise.
42888 (grub_ata_wait_status): New function.
42889 (grub_ata_wait_busy): Removed function, updated all users to use
42890 `grub_ata_wait_status'.
42891 (grub_ata_wait_drq): Likewise.
42892 (grub_ata_cmd): New function.
42893 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
42894 error handling.
42895 (grub_ata_pio_write): Add error handling.
42896 (grub_atapi_identify): Likewise.
42897 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
42898 handling.
42899 (grub_ata_identify): Use `grub_ata_cmd' and improve error
42900 handling. Actually use the detected registers. Reorder the
42901 detection logic such that it is easier to read.
42902 (grub_ata_pciinit): Do not assign the same ID to each controller.
42903 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
42904 handling.
42905 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
42906
42907 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
42908
42909 2008-08-08 Marco Gerards <marco@gnu.org>
42910
42911 * NEWS: Update.
42912
42913 2008-08-07 Bean <bean123ch@gmail.com>
42914
42915 * include/grub/x86_64/pci.h: New file.
42916
42917 2008-08-07 Christian Franke <franke@computer.org>
42918
42919 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
42920 (TIMER2_GATE): Likewise.
42921 (grub_pit_wait): Add enable/disable of the timer2 gate
42922 bit of port 0x61. This fixes a possible infinite loop.
42923
42924 2008-08-07 Bean <bean123ch@gmail.com>
42925
42926 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
42927 kern/i386/tsc.c and kern/i386/pit.c.
42928
42929 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
42930 x86_64 platform.
42931
42932 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
42933 <grub/i386/tsc.h>.
42934
42935 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
42936
42937 2008-08-07 Bean <bean123ch@gmail.com>
42938
42939 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
42940
42941 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
42942
42943 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
42944 multiple inclusion. Add #include <grub/types.h>.
42945
42946 2008-08-06 Christian Franke <franke@computer.org>
42947
42948 * conf/common.rmk: Build and install `10_windows'.
42949 * util/grub.d/10_windows.in: New script.
42950
42951 2008-08-06 Pavel Roskin <proski@gnu.org>
42952
42953 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
42954
42955 2008-08-06 Robert Millan <rmh@aybabtu.com>
42956
42957 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
42958 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
42959
42960 2008-08-06 Bean <bean123ch@gmail.com>
42961
42962 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
42963 (grub_pxefs_fs_int): Remove dummy definition.
42964 (grub_pxefs_open): Use data->block_size to store the current block
42965 size setting.
42966 (grub_pxefs_read): Use block size stored in data->block_size. As the
42967 value of grub_pxe_blksize can be changed after the file is opened.
42968
42969 2008-08-06 Bean <bean123ch@gmail.com>
42970
42971 * fs/i386/pc/pxe.c (curr_file): new variable.
42972 (grub_pxefs_open): Simply the handling of pxe file system. Don't
42973 require the dummy internal file system anymore.
42974 (grub_pxefs_read): Removed.
42975 (grub_pxefs_close): Likewise.
42976 (grub_pxefs_fs_int): Likewise.
42977 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
42978 connection when we switch file.
42979 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
42980
42981 2008-08-06 Robert Millan <rmh@aybabtu.com>
42982
42983 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
42984 `halt.mod'.
42985 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
42986 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
42987
42988 * kern/i386/halt.c: New file.
42989 * kern/i386/reboot.c: Likewise.
42990 * include/grub/i386/reboot.h: Likewise.
42991 * include/grub/i386/halt.h: Likewise.
42992
42993 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
42994 Include `<grub/cpu/halt.h>'.
42995 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
42996 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
42997
42998 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
42999 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
43000 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
43001 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
43002 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
43003 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
43004 from here ...
43005 * include/grub/i386/at_keyboard.h: ... to here.
43006
43007 2008-08-05 Robert Millan <rmh@aybabtu.com>
43008
43009 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
43010 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
43011 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
43012 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43013 `kern/generic/millisleep.c'.
43014
43015 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
43016 instead of grub_get_rtc().
43017 (grub_tsc_init): Initialize `tsc_boot_time'.
43018
43019 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
43020 (grub_machine_init): Use grub_tsc_init() rather than
43021 installing an RTC-based handler via grub_install_get_time_ms().
43022
43023 * kern/i386/pit.c: New file.
43024 * include/grub/i386/pit.h: Likewise.
43025
43026 2008-08-05 Bean <bean123ch@gmail.com>
43027
43028 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
43029
43030 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
43031 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
43032 (pxe_mod_SOURCES): New macro.
43033 (pxe_mod_CFLAGS): Likewise.
43034 (pxe_mod_LDFLAGS): Likewise.
43035 (pxecmd_mod_SOURCES): Likewise.
43036 (pxecmd_mod_CFLAGS): Likewise.
43037 (pxecmd_mod_LDFLAGS): Likewise.
43038
43039 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
43040 (grub_pxe_call): Likewise.
43041
43042 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
43043
43044 * commands/i386/pc/pxecmd.c: New file.
43045
43046 * fs/i386/pc/pxe.c: Likewise.
43047
43048 * include/grub/i386/pc/pxe.h: Likewise.
43049
43050 2008-08-05 Bean <bean123ch@gmail.com>
43051
43052 * util/console.c (grub_console_cur_color): New variable.
43053 (grub_console_standard_color): Likewise.
43054 (grub_console_normal_color): Likewise.
43055 (grub_console_highlight_color): Likewise.
43056 (color_map): Likewise.
43057 (use_color): Likewise.
43058 (NUM_COLORS): New macro.
43059 (grub_ncurses_setcolorstate): Handle color properly.
43060 (grub_ncurses_setcolor): Don't change color here, just remember the
43061 settings, color will be set in grub_ncurses_setcolorstate.
43062 (grub_ncurses_getcolor): New function.
43063 (grub_ncurses_init): Initialize color pairs.
43064 (grub_ncurses_term): New member grub_ncurses_getcolor.
43065
43066 2008-08-05 Colin D Bennett <colin@gibibit.com>
43067
43068 High resolution timer support. Implemented for x86 CPUs using TSC.
43069 Extracted generic grub_millisleep() so it's linked in only as needed.
43070 This requires a Pentium compatible CPU; if the RDTSC instruction is
43071 not supported, then it falls back on the generic grub_get_time_ms()
43072 implementation that uses the machine's RTC.
43073
43074 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
43075 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43076 `kern/generic/millisleep.c'.
43077
43078 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
43079 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
43080
43081 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
43082 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
43083
43084 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43085
43086 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
43087 `kern/generic/millisleep.c'.
43088
43089 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43090
43091 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
43092
43093 * kern/generic/rtc_get_time_ms.c: New file.
43094
43095 * kern/generic/millisleep.c: New file.
43096
43097 * kern/misc.c: Don't include
43098 <kern/time.h> anymore.
43099 (grub_millisleep_generic): Removed.
43100
43101 * commands/sleep.c (grub_interruptible_millisleep): Uses
43102 grub_get_time_ms() instead of grub_get_rtc().
43103
43104 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
43105 function.
43106 (grub_cpu_is_cpuid_supported): New inline function.
43107 (grub_cpu_is_tsc_supported): New inline function.
43108 (grub_tsc_init): New function prototype.
43109 (grub_tsc_get_time_ms): New function prototype.
43110
43111 * kern/i386/tsc.c (grub_get_time_ms): New file.
43112
43113 * include/grub/time.h: Include <grub/types.h.
43114 (grub_millisleep_generic): Removed.
43115 (grub_get_time_ms): New prototype.
43116 (grub_install_get_time_ms): New prototype.
43117 (grub_rtc_get_time_ms): New prototype.
43118
43119 * kern/time.c (grub_get_time_ms): New function.
43120 (grub_install_get_time_ms): New function.
43121
43122 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
43123 <grub/time.h> anymore.
43124 (grub_millisleep): Removed.
43125 (grub_machine_init): Call grub_tsc_init.
43126
43127 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
43128 get_time_ms() implementation.
43129
43130 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
43131 (ieee1275_get_time_ms): New function.
43132 (grub_machine_init): Install get_time_ms() implementation.
43133
43134 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
43135 (grub_machine_init): Call grub_tsc_init().
43136 (grub_millisleep): Removed.
43137
43138 * kern/ieee1275/init.c (grub_millisleep): Removed.
43139 (grub_machine_init): Install ieee1275_get_time_ms()
43140 implementation.
43141 (ieee1275_get_time_ms): New function.
43142 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
43143 real work.
43144
43145 2008-08-05 Marco Gerards <marco@gnu.org>
43146
43147 * disk/ata.c: Include <grub/pci.h>.
43148 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
43149 (grub_ata_initialize): Rewritten.
43150 (grub_ata_device_initialize): New function.
43151
43152 2008-08-04 Pavel Roskin <proski@gnu.org>
43153
43154 * kern/main.c: Include grub/mm.h.
43155
43156 2008-08-04 Robert Millan <rmh@aybabtu.com>
43157
43158 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
43159 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
43160 corruption problem).
43161
43162 2008-08-04 Robert Millan <rmh@aybabtu.com>
43163
43164 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
43165 warnings introduced in my last commit.
43166
43167 2008-08-03 Robert Millan <rmh@aybabtu.com>
43168
43169 Make PCI available on all i386 architectures.
43170
43171 * include/grub/i386/pc/pci.h: Move from here ...
43172 * include/grub/i386/pci.h: ... to here.
43173
43174 * include/grub/i386/pc/pci.h: Remove.
43175 * include/grub/i386/efi/pci.h: Remove.
43176 * include/grub/x86_64/efi/pci.h: Remove.
43177
43178 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
43179 `<grub/cpu/pci.h>'.
43180
43181 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
43182 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
43183 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
43184
43185 * conf/i386-ieee1275.rmk: Likewise.
43186
43187 2008-08-03 Robert Millan <rmh@aybabtu.com>
43188
43189 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
43190 (grub_console_setcursor): Make it possible to set cursor off.
43191
43192 2008-08-03 Robert Millan <rmh@aybabtu.com>
43193
43194 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
43195 of modules instead of assuming which platform provides what.
43196 * util/update-grub.in: Likewise.
43197
43198 2008-08-03 Robert Millan <rmh@aybabtu.com>
43199
43200 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
43201 instead of `grub_install_dos_part' to determine whether a drive needs
43202 to be prepended to prefix (`grub_install_dos_part' is not reliable,
43203 because it can be overridden when loading GRUB via Multiboot).
43204
43205 2008-08-02 Robert Millan <rmh@aybabtu.com>
43206
43207 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
43208
43209 2008-08-02 Robert Millan <rmh@aybabtu.com>
43210
43211 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
43212 of informational grub_dprintf() calls.
43213
43214 2008-08-02 Robert Millan <rmh@aybabtu.com>
43215
43216 * disk/memdisk.c (memdisk_size): Don't initialize.
43217 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
43218
43219 * include/grub/i386/pc/kernel.h
43220 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
43221 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
43222 (grub_memdisk_image_size, grub_arch_memdisk_addr)
43223 (grub_arch_memdisk_size): Remove.
43224
43225 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
43226 field (was only used to transfer a constant). Add `type' field to
43227 support multiple module types.
43228 (grub_module_iterate): New function.
43229
43230 * kern/device.c (grub_device_open): Do not hide error messages
43231 when grub_disk_open() fails. Use grub_print_error() instead.
43232
43233 * kern/i386/pc/init.c (grub_arch_modules_addr)
43234 (grub_arch_memdisk_size): Remove functions.
43235 (grub_arch_modules_addr): Return the module address in high memory
43236 (now that it isn't copied anymore).
43237
43238 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
43239 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
43240 decompression routine (grub_total_module_size already includes that
43241 now). Don't copy modules back to low memory.
43242
43243 * kern/main.c: Include `<grub/mm.h>'.
43244 (grub_load_modules): Split out (and use) ...
43245 (grub_module_iterate): ... this function, which iterates through
43246 module objects and runs a hook.
43247 Comment out grub_mm_init_region() call, as it would cause non-ELF
43248 modules to be overwritten.
43249
43250 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
43251 the memdisk image in its own region, make it part of the module list.
43252 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
43253 (main): Parse --memdisk|-m option, and pass user-provided path as
43254 parameter to generate_image().
43255 (add_segments): Pass `memdisk_path' down to load_modules().
43256 (load_modules): Embed memdisk image in module section when requested.
43257 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
43258 `header.type' instead of `header.offset'.
43259
43260 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
43261 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
43262 (memdisk_mod_LDFLAGS): New variables.
43263 * conf/i386-coreboot.rmk: Likewise.
43264 * conf/i386-ieee1275.rmk: Likewise.
43265
43266 2008-08-02 Robert Millan <rmh@aybabtu.com>
43267
43268 * loader/i386/pc/multiboot.c (playground, forward_relocator)
43269 (backward_relocator): New variables. Used to allocate and relocate
43270 the payload, respectively.
43271 (grub_multiboot_load_elf32): Load into heap instead of requested
43272 address, install the appropriate relocator code in each bound of
43273 the payload, and set the entry point such that
43274 grub_multiboot_real_boot() will jump to one of them.
43275
43276 * kern/i386/loader.S (grub_multiboot_payload_size)
43277 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43278 (grub_multiboot_payload_entry_offset): New variables.
43279 (grub_multiboot_real_boot): Set cpu context to what the relocator
43280 expects, and jump to the relocator instead of the payload.
43281
43282 * include/grub/i386/loader.h (grub_multiboot_payload_size)
43283 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43284 (grub_multiboot_payload_entry_offset): Export.
43285
43286 2008-08-01 Bean <bean123ch@gmail.com>
43287
43288 * normal/menu_entry.c (editor_getline): Don't return the original
43289 string as result, as it will be released by lexer once it has done
43290 using it.
43291
43292 2008-08-01 Robert Millan <rmh@aybabtu.com>
43293
43294 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
43295 within menuentries, not before them.
43296 util/grub.d/10_hurd.in: Likewise.
43297
43298 2008-08-01 Bean <bean123ch@gmail.com>
43299
43300 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
43301 (bufio_mod_SOURCES): New macro.
43302 (bufio_mod_CFLAGS): Likewise.
43303 (bufio_mod_LDFLAGS): Likewise.
43304
43305 * include/grub/bufio.h: New file.
43306
43307 * io/bufio.c: Likewise.
43308
43309 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
43310 (grub_video_reader_png): Use grub_buffile_open to open file.
43311
43312 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
43313 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
43314
43315 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
43316 (grub_video_reader_tga): Use grub_buffile_open to open file.
43317
43318 * font/manager.c: Include <grub/bufio.h>.
43319 (add_font): Use grub_buffile_open to open file.
43320
43321 2008-07-31 Robert Millan <rmh@aybabtu.com>
43322
43323 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
43324 ELF segments, use a macro for arbitrarily accessing any of them instead
43325 of preparing a pointer that allows access to one at a time.
43326 (grub_multiboot_load_elf64): Likewise.
43327
43328 2008-07-31 Bean <bean123ch@gmail.com>
43329
43330 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
43331 GRUB_KERNEL_MACHINE_DATA_END.
43332
43333 2008-07-30 Robert Millan <rmh@aybabtu.com>
43334
43335 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
43336 Increase from 0x50 to 0x60.
43337 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
43338 use UUIDs to identify the root drive for them. If that's not
43339 possible, abort.
43340 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
43341 check, for cross-disk installs.
43342
43343 2008-07-30 Robert Millan <rmh@aybabtu.com>
43344
43345 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
43346 is non-empty, use it to set the `prefix' environment variable instead
43347 of the usual approach.
43348 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
43349 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
43350 environment variable instead of dummy make_install_device().
43351
43352 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
43353 (start): Insert a data section, with `grub_prefix' variable.
43354 * kern/i386/linuxbios/startup.S: Likewise.
43355
43356 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
43357 New variable reference.
43358 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
43359 New macro. Defines offset of `grub_prefix' within startup.S (relative
43360 to `start').
43361 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
43362 section within startup.S (relative to `start').
43363 * include/grub/i386/coreboot/kernel.h: Likewise.
43364
43365 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
43366 Overwrite grub_prefix with its contents, at the beginning of the
43367 first segment.
43368 (main): Understand -p|--prefix.
43369
43370 2008-07-30 Robert Millan <rmh@aybabtu.com>
43371
43372 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
43373
43374 2008-07-30 Robert Millan <rmh@aybabtu.com>
43375
43376 * term/i386/pc/vga_text.c (grub_console_cls): Use
43377 grub_console_gotoxy() to go back to beginning of the screen.
43378 Found by Patrick Georgi <patrick.georgi@coresystems.de>
43379
43380 2008-07-29 Christian Franke <franke@computer.org>
43381
43382 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
43383 Add conversion of emulated mount points on Cygwin.
43384
43385 2008-07-29 Christian Franke <franke@computer.org>
43386
43387 * util/update-grub.in: Add a check for admin
43388 group on Cygwin.
43389 Remove old `grub.cfg.new' before creation.
43390 Add `-f' to `mv' to handle the different filesystem
43391 semantics of Windows.
43392
43393 2008-07-29 Bean <bean123ch@gmail.com>
43394
43395 * normal/main.c (get_line): Fix buffer overflow bug.
43396
43397 2008-07-28 Robert Millan <rmh@aybabtu.com>
43398
43399 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
43400 (struct grub_apple_header): New struct. Describes the layout of
43401 the partmap header.
43402 (apple_partition_map_iterate): Check the header magic as well as the
43403 partition magic (which was already being checked).
43404
43405 2008-07-28 Pavel Roskin <proski@gnu.org>
43406
43407 * genmk.rb: Add a warning to the beginning of the output that
43408 it's a generated file and should not be edited.
43409
43410 2008-07-28 Robert Millan <rmh@aybabtu.com>
43411
43412 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
43413 with the same number are found, just use issue a warning with
43414 grub_dprintf(), as this error has been reported to be non-fatal.
43415
43416 2008-07-27 Robert Millan <rmh@aybabtu.com>
43417
43418 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
43419 information.
43420
43421 2008-07-27 Bean <bean123ch@gmail.com>
43422
43423 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
43424 (grub_fat_find_dir): Ignore case when comparing filename.
43425
43426 2008-07-27 Bean <bean123ch@gmail.com>
43427
43428 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
43429 smallino, as it's more descriptive, and i8count can be confused with
43430 the other field count.
43431 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
43432 inode type.
43433
43434 2008-07-27 Bean <bean123ch@gmail.com>
43435
43436 * commands/crc.c: New file.
43437
43438 * lib/crc.c: Likewise.
43439
43440 * include/grub/lib/crc.h: Likewise.
43441
43442 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
43443
43444 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
43445 (hexdump): Move this function to ...
43446
43447 * lib/hexdump.c: ... here.
43448
43449 * include/grub/hexdump.h: Renamed to ...
43450
43451 * include/grub/lib/hexdump.h: ... this.
43452
43453 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
43454
43455 * util/grub-editenv.c: Likewise.
43456
43457 * include/envblk.h: Renamed to ...
43458
43459 * include/lib/envblk.h: ... this.
43460
43461 * util/envblk.c: Renamed to ...
43462
43463 * lib/envblk.c: ... this.
43464
43465 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
43466 lib/hexdump.c.
43467 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
43468 (pkglib_MODULES): Add crc.mod.
43469 (hexdump_mod_SOURCES): Add lib/hexdump.c.
43470 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
43471 (crc_mod_SOURCES): New macro.
43472 (crc_mod_CFLAGS): Likewise.
43473 (crc_mod_LDFLAGS): Likewise.
43474
43475 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
43476
43477 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
43478
43479 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
43480
43481 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43482
43483 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
43484
43485 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
43486
43487 * commands/help.c: Include <grub/term.h>.
43488 (TERM_WIDTH): Removed. Updated all users.
43489
43490 2008-07-27 Pavel Roskin <proski@gnu.org>
43491
43492 * util/getroot.c (find_root_device): Rephrase a comment to avoid
43493 spurious warnings about a comment within a comment.
43494
43495 2008-07-25 Robert Millan <rmh@aybabtu.com>
43496
43497 * util/getroot.c (find_root_device): Skip devices that match
43498 /dev/dm-[0-9]. This lets the real device be found for any type of
43499 abstraction (LVM, EVMS, RAID..).
43500 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
43501 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
43502 device is found first, find_root_device() will now skip it.
43503
43504 2008-07-24 Pavel Roskin <proski@gnu.org>
43505
43506 * include/grub/types.h: Use __builtin_bswap32() and
43507 __builtin_bswap64() with gcc 4.3 and newer.
43508
43509 2008-07-24 Christian Franke <franke@computer.org>
43510
43511 * util/i386/pc/grub-install.in: If `--debug' is specified,
43512 pass `--verbose' to grub-setup.
43513 Abort script if make_system_path_relative_to_its_root() fails.
43514
43515 2008-07-24 Bean <bean123ch@gmail.com>
43516
43517 * configure.ac: Fixed a bug caused by the previous cygwin patch,
43518 variable `target_platform' should be `platform'.
43519
43520 2008-07-24 Bean <bean123ch@gmail.com>
43521
43522 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
43523 (grub_png_init_fixed_block): New function.
43524 (grub_png_decode_image_data): Handle fixed huffman code compression.
43525
43526 2008-07-24 Bean <bean123ch@gmail.com>
43527
43528 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
43529 (grub_pe2elf_SOURCES): New macro.
43530 (CLEANFILES): Add grub-pe2elf.
43531
43532 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
43533 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
43534 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
43535 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
43536 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
43537 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
43538 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
43539 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
43540 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
43541 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
43542 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
43543 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
43544 (GRUB_PE32_DT_FUNCTION): Likewise.
43545 (GRUB_PE32_REL_I386_DIR32): Likewise.
43546 (GRUB_PE32_REL_I386_REL32): Likewise.
43547 (grub_pe32_symbol): New structure.
43548 (grub_pe32_reloc): Likewise.
43549
43550 * util/grub-pe2elf.c: New file.
43551
43552 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
43553 start symbol in non pc platform.
43554
43555 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
43556
43557 The following patches are from Christian Franke.
43558
43559 * include/grub/dl.h: Remove .previous, gas supports this only
43560 for ELF format.
43561
43562 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
43563 Remove .type, gas supports this only for ELF format.
43564
43565 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
43566 nullbytes in symbol table. This fixes an infinite loop if table is
43567 zero filled.
43568
43569 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
43570 TARGET_IMG_LDFLAGS and EXEEXT.
43571
43572 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
43573 TARGET_IMG_LDFLAGS_AC.
43574 (grub_CHECK_STACK_ARG_PROBE): New function.
43575
43576 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
43577
43578 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
43579
43580 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
43581 to set TARGET_IMG_LD* accordingly.
43582 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
43583 Add call to grub_CHECK_STACK_ARG_PROBE.
43584 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
43585
43586 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
43587
43588 * genmk.rb: Add EXEEXT to CLEANFILES.
43589
43590 2008-07-23 Robert Millan <rmh@aybabtu.com>
43591
43592 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
43593 define the codes for arrows and lines used for the menu).
43594 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
43595 as well.
43596
43597 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
43598 fonts, because the latter are too slow.
43599
43600 2008-07-21 Bean <bean123ch@gmail.com>
43601
43602 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
43603 a20. Run keyboard test last, as it will cause macbook to halt.
43604
43605 2008-07-18 Pavel Roskin <proski@gnu.org>
43606
43607 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
43608 load foreign architecture modules correctly anyway. Keep
43609 support for loading host architecture modules, whether we
43610 compile them or not.
43611
43612 2008-07-17 Pavel Roskin <proski@gnu.org>
43613
43614 * configure.ac: Use -m32 or -m64 regardless of whether we had to
43615 change target_cpu. The compiler default can mismatch target_cpu
43616 in any case.
43617
43618 * disk/efi/efidisk.c: Fix format warnings on x86_64.
43619 * kern/efi/efi.c: Likewise.
43620
43621 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
43622 target compiler is functional.
43623 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
43624 are set up.
43625
43626 * configure.ac: Default to efi platform for x86_64-apple. Allow
43627 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
43628 adjustments from the rest, only do them if target is not
43629 explicitly given. Merge other adjustments with the final sanity
43630 check. Remove an extraneous check for supported CPU. Be
43631 specific which CPU and which platform is not supported.
43632
43633 * configure.ac: Default to pc platform for x86_64.
43634
43635 2008-07-17 Robert Millan <rmh@aybabtu.com>
43636
43637 Partial LinuxBIOS -> Coreboot rename.
43638
43639 * conf/i386-linuxbios.rmk: Renamed to ...
43640 * conf/i386-coreboot.rmk: ... this.
43641 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
43642 * configure.ac: Accept "coreboot" as input platform (but maintain
43643 compatibility with "linuxbios").
43644 * include/grub/i386/linuxbios: Renamed to ...
43645 * include/grub/i386/coreboot: ... this.
43646
43647 2008-07-17 Bean <bean123ch@gmail.com>
43648
43649 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
43650 (appleldr_mod_SOURCE): New variable.
43651 (appleldr_mod_CFLAGS): Likewise.
43652 (appleldr_mod_LDFLAGS): Likewise.
43653 (pci_mod_SOURCES): Likewise.
43654 (pci_mod_CFLAGS): Likewise.
43655 (pci_mod_LDFLAGS): Likewise.
43656 (lspci_mod_SOURCES): Likewise.
43657 (lspci_mod_CFLAGS): Likewise.
43658 (lspci_mod_LDFLAGS): Likewise.
43659
43660 * conf/x86_64-efi.rmk: New file.
43661
43662 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
43663 macro.
43664 (grub_efidisk_write): Likewise.
43665
43666 * include/efi/api.h (efi_call_0): New macro.
43667 (efi_call_1): Likewise.
43668 (efi_call_2): Likewise.
43669 (efi_call_3): Likewise.
43670 (efi_call_4): Likewise.
43671 (efi_call_5): Likewise.
43672 (efi_call_6): Likewise.
43673
43674 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
43675 grub_rescue_cmd_chainloader.
43676
43677 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
43678 (grub_pe32_optional_header): Change some fields based on i386 or
43679 x86_64 platform.
43680 (GRUB_PE32_PE32_MAGIC): Likewise.
43681
43682 * include/grub/efi/uga_draw.h: New file.
43683
43684 * include/grub/elf.h (STN_ABS): New constant.
43685 (R_X86_64_NONE): Relocation constant for x86_64.
43686 (R_X86_64_64): Likewise.
43687 (R_X86_64_PC32): Likewise.
43688 (R_X86_64_GOT32): Likewise.
43689 (R_X86_64_PLT32): Likewise.
43690 (R_X86_64_COPY): Likewise.
43691 (R_X86_64_GLOB_DAT): Likewise.
43692 (R_X86_64_JUMP_SLOT): Likewise.
43693 (R_X86_64_RELATIVE): Likewise.
43694 (R_X86_64_GOTPCREL): Likewise.
43695 (R_X86_64_32): Likewise.
43696 (R_X86_64_32S): Likewise.
43697 (R_X86_64_16): Likewise.
43698 (R_X86_64_PC16): Likewise.
43699 (R_X86_64_8): Likewise.
43700 (R_X86_64_PC8): Likewise.
43701
43702 * include/grub/i386/efi/pci.h: New file.
43703
43704 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
43705 Change it value based on platform.
43706 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
43707 (GRUB_E820_RAM): Likewise.
43708 (GRUB_E820_RESERVED): Likewise.
43709 (GRUB_E820_ACPI): Likewise.
43710 (GRUB_E820_NVS): Likewise.
43711 (GRUB_E820_EXEC_CODE): Likewise.
43712 (GRUB_E820_MAX_ENTRY): Likewise.
43713 (grub_e820_mmap): New structure.
43714 (linux_kernel_header): Change the efi field according to different
43715 kernel version, also field from linux_kernel_header.
43716
43717 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
43718
43719 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
43720 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
43721 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
43722 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
43723 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
43724 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
43725 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
43726 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
43727 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
43728 (GRUB_PCI_ADDR_IO_MASK): Likewise.
43729
43730 * include/grub/x86_64/efi/kernel.h: New file.
43731
43732 * include/grub/x86_64/efi/loader.h: Likewise.
43733
43734 * include/grub/x86_64/efi/machine.h: Likewise.
43735
43736 * include/grub/x86_64/efi/pci.h: Likewise.
43737
43738 * include/grub/x86_64/efi/time.h: Likewise.
43739
43740 * include/grub/x86_64/linux.h: Likewise.
43741
43742 * include/grub/x86_64/setjmp.h: Likewise.
43743
43744 * include/grub/x86_64/time.h: Likewise.
43745
43746 * include/grub/x86_64/types.h: Likewise.
43747
43748 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
43749 GRUB_TARGET_SIZEOF_VOID_P.
43750
43751 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
43752 (grub_efi_locate_handle): Likewise.
43753 (grub_efi_open_protocol): Likewise.
43754 (grub_efi_set_text_mode): Likewise.
43755 (grub_efi_stall): Likewise.
43756 (grub_exit): Likewise.
43757 (grub_reboot): Likewise.
43758 (grub_halt): Likewise.
43759 (grub_efi_exit_boot_services): Likewise.
43760 (grub_get_rtc): Likewise.
43761
43762 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
43763 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
43764 (grub_efi_allocate_pages): Wrap efi calls.
43765 (grub_efi_free_pages): Wrap efi calls.
43766 (grub_efi_get_memory_map): Wrap efi calls.
43767
43768 * kern/x86_64/dl.c: New file.
43769
43770 * kern/x86_64/efi/callwrap.S: Likewise.
43771
43772 * kern/x86_64/efi/startup.S: Likewise.
43773
43774 * loader/efi/appleloader.c: Likewise.
43775
43776 * loader/efi/chainloader.c (cmdline): New variable.
43777 (grub_chainloader_unload): Wrap efi calls.
43778 (grub_chainloader_boot): Likewise.
43779 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
43780 command line.
43781
43782 * loader/efi/chainloader_normal.c (chainloader_command):
43783 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
43784 command line.
43785
43786 * loader/i386/efi/linux.c (allocate_pages): Change allocation
43787 method.
43788 (grub_e820_add_region): New function.
43789 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
43790 booting.
43791 (grub_find_video_card): New function.
43792 (grub_linux_setup_video): New function.
43793 (grub_rescue_cmd_linux): Probe for video information.
43794
43795 * normal/x86_64/setjmp.S: New file.
43796
43797 * term/efi/console.c (map_char): New function.
43798 (grub_console_putchar): Map unicode char.
43799 (grub_console_checkkey): Wrap efi calls.
43800 (grub_console_getkey): Likewise.
43801 (grub_console_getwh): Likewise.
43802 (grub_console_gotoxy): Likewise.
43803 (grub_console_cls): Likewise.
43804 (grub_console_setcolorstate): Likewise.
43805 (grub_console_setcursor): Likewise.
43806
43807 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
43808
43809 2008-07-16 Pavel Roskin <proski@gnu.org>
43810
43811 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
43812 format strings.
43813
43814 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
43815 pointer, not an integer. This fixes a warning and prevents
43816 precision loss on 64-bit systems.
43817 (relocate_addresses): Remove unneeded cast.
43818
43819 2008-07-15 Pavel Roskin <proski@gnu.org>
43820
43821 * kern/i386/ieee1275/init.c: Include grub/cache.h.
43822
43823 * term/ieee1275/ofconsole.c: Disable code unused on i386.
43824
43825 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
43826 Fix comparison between signed and unsigned.
43827
43828 * include/grub/i386/ieee1275/console.h: Declare
43829 grub_console_init() and grub_console_fini().
43830
43831 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
43832 It's empty and unused.
43833
43834 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
43835 beginning to avoid warnings with some compilers.
43836
43837 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
43838 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
43839
43840 2008-07-14 Pavel Roskin <proski@gnu.org>
43841
43842 * kern/env.c (grub_register_variable_hook): Don't copy empty
43843 string, it leaks memory. Pass "" to grub_env_set(), it should
43844 handle constant strings.
43845
43846 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
43847 * commands/cmp.c (grub_cmd_cmp): Likewise.
43848 * kern/dl.c (grub_dl_flush_cache): Likewise.
43849 (grub_dl_load_core): Likewise.
43850 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
43851 (grub_elf64_load_phdrs): Likewise.
43852
43853 2008-07-13 Pavel Roskin <proski@gnu.org>
43854
43855 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
43856 between signed and unsigned.
43857 (LzmaEnc_Finish): Fix warning about an unused parameter.
43858
43859 2008-07-13 Bean <bean123ch@gmail.com>
43860
43861 * Makefile.in (enable_lzo): New rule.
43862
43863 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
43864
43865 * configure.ac (ENABLE_LZO): New option --enable-lzo.
43866
43867 * boot/i386/pc/lnxboot.S: #include <config.h>.
43868
43869 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
43870 its value according to the compression algorithm used, lzo or lzma.
43871
43872 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
43873 compression algorithm according to configure macro.
43874
43875 * kern/i386/pc/startup.S (codestart): Likewise.
43876
43877 * kern/i386/pc/lzma_decode.S: New file.
43878
43879 * include/grub/lib/LzFind.h: Likewise.
43880
43881 * include/grub/lib/LzHash.h: Likewise.
43882
43883 * include/grub/lib/LzmaDec.h: Likewise.
43884
43885 * include/grub/lib/LzmaEnc.h: Likewise.
43886
43887 * include/grub/lib/LzmaTypes.h: Likewise.
43888
43889 * lib/LzFind.c: Likewise.
43890
43891 * lib/LzmaDec.c: Likewise.
43892
43893 * lib/LzmaEnc.c: Likewise.
43894
43895 2008-07-13 Bean <bean123ch@gmail.com>
43896
43897 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
43898 (grub_ext4_extent_header): New structure.
43899 (grub_ext4_extent): Likewise.
43900 (grub_ext4_extent_idx): Likewise.
43901 (grub_ext4_find_leaf): New function.
43902 (grub_ext2_read_block): Handle extents.
43903
43904 2008-07-12 Robert Millan <rmh@aybabtu.com>
43905
43906 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
43907
43908 2008-07-11 Robert Millan <rmh@aybabtu.com>
43909
43910 * util/grub.d/40_custom.in: New file. Example on how to add custom
43911 entries to /etc/grub.d.
43912 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
43913 40_custom (implicitly, by merging all the grub.d rules).
43914
43915 2008-07-11 Pavel Roskin <proski@gnu.org>
43916
43917 * commands/read.c (grub_getline): Fix invalid memory access.
43918 Don't add newline to the variable value.
43919
43920 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
43921 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
43922 (serial_hw_get_port): Check validity of the port number.
43923 (grub_cmd_serial): Check return value of serial_hw_get_port().
43924
43925 2008-07-07 Pavel Roskin <proski@gnu.org>
43926
43927 * boot/i386/pc/diskboot.S (notification_string): Replace
43928 "Loading kernel" with just "loading". This is shorter, less
43929 confusing and saves a few bytes for possible future changes.
43930
43931 2008-07-05 Pavel Roskin <proski@gnu.org>
43932
43933 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
43934 size for ATAPI devices, they are undefined. Output sector
43935 number in decimal form.
43936
43937 * disk/ata.c: Use named constants for status bits.
43938
43939 2008-07-04 Pavel Roskin <proski@gnu.org>
43940
43941 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
43942 grub_addr_t before casting it to the void pointer to fix a
43943 warning. Non-addressable regions are discarded earlier.
43944 (grub_arch_modules_addr): Cast _end to grub_addr_t.
43945 * kern/i386/linuxbios/table.c: Include grub/misc.h.
43946 (check_signature): Don't shadow table_header.
43947 (grub_linuxbios_table_iterate): Cast numeric constants to
43948 grub_linuxbios_table_header_t.
43949 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
43950 grub_stop().
43951
43952 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
43953 prevent warnings.
43954
43955 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
43956 pointer, which can cause warnings. Support 64-bit addresses.
43957
43958 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
43959 of sizeof(long). This fixes PowerPC image generation on x86_64.
43960
43961 2008-07-04 Robert Millan <rmh@aybabtu.com>
43962
43963 This fixes a performance issue when pc & gpt partmap iterators
43964 didn't abort iteration even after our hook found what it was
43965 looking for (often causing expensive probes of non-existent drives).
43966
43967 Some callers relied on previous buggy behaviour, since they would
43968 raise an error when their own hooks caused early abortion of its
43969 iteration.
43970
43971 * kern/device.c (grub_device_open): Improve error message.
43972 * disk/lvm.c (grub_lvm_open): Likewise.
43973 * disk/raid.c (grub_raid_open): Likewise.
43974
43975 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
43976 when hook requests it, independently of grub_errno.
43977 (pc_partition_map_probe): Do not fail when find_func() caused
43978 early abortion of pc_partition_map_iterate().
43979
43980 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
43981 when hook requests it, independently of grub_errno.
43982 (gpt_partition_map_probe): Do not fail when find_func() caused
43983 early abortion of gpt_partition_map_iterate().
43984
43985 * kern/partition.c (grub_partition_iterate): Abort parent iteration
43986 when hook requests it, independently of grub_errno. Do not fail when
43987 part_map_iterate_hook() caused early abortion of p->iterate().
43988
43989 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
43990 when grub_partition_iterate() returned with non-zero.
43991
43992 2008-07-03 Pavel Roskin <proski@gnu.org>
43993
43994 * disk/ata.c (grub_ata_pio_write): Check status before writing,
43995 like we do in grub_ata_pio_read().
43996 (grub_ata_readwrite): Always write individual sectors. Fix the
43997 sector count for the remainder.
43998 (grub_ata_write): Enable writing to ATA devices. Correctly
43999 report error for ATAPI devices.
44000
44001 2008-07-02 Pavel Roskin <proski@gnu.org>
44002
44003 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
44004 warning.
44005
44006 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
44007 for every read sector, we already increment it for the whole
44008 batch. This fixes reading more than 256 sectors at once.
44009
44010 * util/grub-editenv.c (cmd_info): Cast argument to long
44011 explicitly. ptrdiff_t reduces to int on i386.
44012
44013 * util/grub-editenv.c (main): Be specific which parameter is
44014 missing.
44015
44016 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
44017 (memdisk): Make memdisk_orig_addr a pointer.
44018
44019 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
44020 for file offsets, use grub_off_t instead. Fix printf format
44021 warnings.
44022
44023 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
44024 there. Real unexpected warnings should not drown in the noise
44025 about known problems.
44026
44027 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
44028 grub_disk_addr_t for memory addresses.
44029
44030 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
44031 explicitly to fix a warning.
44032
44033 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
44034
44035 * Makefile.in (MODULE_LDFLAGS): New variable.
44036 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
44037 the linker accepts --build-id=none.
44038 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
44039 MODULE_LDFLAGS.
44040 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
44041
44042 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
44043 those in Linux XFS code. Provide a way to access 64-bit parent
44044 inode.
44045 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
44046 the end of struct grub_xfs_dir_header.
44047
44048 2008-07-02 Bean <bean123ch@gmail.com>
44049
44050 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
44051 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44052 and GRUB_IEEE1275_FLAG_NO_ANSI.
44053
44054 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
44055 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44056 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
44057
44058 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
44059 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
44060
44061 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
44062 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
44063
44064 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
44065 esc sequence on non ANSI terminal.
44066 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
44067
44068 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
44069 beginning of file.
44070
44071 2008-07-02 Bean <bean123ch@gmail.com>
44072
44073 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
44074 (grub_editenv_SOURCES): New variable.
44075 (pkglib_MODULES): Add loadenv.mod.
44076 (loadenv_mod_SOURCES): New variable.
44077 (loadenv_mod_CFLAGS): Likewise.
44078 (loadenv_mod_LDFLAGS): Likewise.
44079
44080 * include/grub/envblk.h: New file.
44081
44082 * util/envblk.c: New file.
44083
44084 * util/grub-editenv.c: New file.
44085
44086 * commands/loadenv.c: New file.
44087
44088 2008-07-01 Pavel Roskin <proski@gnu.org>
44089
44090 * include/multiboot2.h (struct multiboot_tag_module): Use char,
44091 not unsigned char. This fixes warnings and is consistent with
44092 other tags.
44093
44094 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
44095
44096 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
44097
44098 * term/tparm.c (analyze): Always set *popcount.
44099
44100 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
44101 cast to fix a warning.
44102
44103 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
44104 cast to suppress a warning.
44105
44106 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
44107 grub_fshelp_read_file() expects.
44108
44109 * fs/fat.c: Fix UUID calculation on big-endian systems. We
44110 write uuid as a 32-bit value in CPU byte order, so declare and
44111 use it as such.
44112
44113 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
44114 long if the format specifier expects it.
44115 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
44116 * partmap/pc.c (pc_partition_map_iterate): Likewise.
44117 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
44118 long to fix a warning.
44119 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
44120 grub_dprintf() arguments to fix warnings.
44121
44122 2008-06-30 Pavel Roskin <proski@gnu.org>
44123
44124 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
44125 install_bsd_part immediately before core.img is embedded or
44126 modified on disk. This fixes core.img verification if core.img
44127 cannot be embedded.
44128
44129 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
44130 core_path to calculate the blocklist.
44131 Patch from Javier Martín <lordhabbit@gmail.com>
44132
44133 2008-06-29 Robert Millan <rmh@aybabtu.com>
44134
44135 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
44136 block to disk block.
44137 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
44138 Patch from Niels Böhm <bitbucket@arcor.de>
44139
44140 2008-06-29 Robert Millan <rmh@aybabtu.com>
44141
44142 * util/update-grub_lib.in (font_path): Search for fonts in
44143 /boot/grub first, which is more likely to be readable (we aren't
44144 deciding where fonts live, just looking for them).
44145
44146 2008-06-26 Pavel Roskin <proski@gnu.org>
44147
44148 * util/biosdisk.c (read_device_map): Don't leave dead map
44149 entries for devices failing stat() check.
44150
44151 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
44152 core_path_dev for the core.img path on the target device.
44153
44154 2008-06-26 Robert Millan <rmh@aybabtu.com>
44155
44156 * disk/fs_uuid.c: New file.
44157 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
44158 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
44159 (fs_uuid_mod_LDFLAGS): New variables.
44160 * include/grub/disk.h (grub_disk_dev_id): Add
44161 `GRUB_DISK_DEVICE_UUID_ID'.
44162 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
44163 implement iterate().
44164
44165 2008-06-26 Robert Millan <rmh@aybabtu.com>
44166
44167 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
44168 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
44169 Linux image includes no initrd.
44170
44171 2008-06-21 Javier Martín <lordhabbit@gmail.com>
44172
44173 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
44174 call to resolve the core image location that effectively appended the
44175 name twice.
44176
44177 2008-06-21 Robert Millan <rmh@aybabtu.com>
44178
44179 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
44180 call from here ...
44181
44182 * util/grub.d/10_hurd.in: ... to here ...
44183 * util/grub.d/10_linux.in: ... and here.
44184
44185 2008-06-19 Robert Millan <rmh@aybabtu.com>
44186
44187 * kern/main.c (grub_main): Export `prefix' variable immediately
44188 after it has been set by grub_machine_set_prefix().
44189
44190 2008-06-19 Robert Millan <rmh@aybabtu.com>
44191
44192 * commands/search.c (search_label, search_fs_uuid, search_file): Print
44193 search result when not saving to variable, not the other way around.
44194 When saving to variable, abort iteration as soon as a match is found.
44195
44196 2008-06-19 Robert Millan <rmh@aybabtu.com>
44197
44198 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
44199 check for partition that provides /boot/grub. Its logic is flawed,
44200 as it prevents prepare_grub_to_access_device() from being called
44201 multiple times.
44202
44203 2008-06-19 Robert Millan <rmh@aybabtu.com>
44204
44205 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
44206 "insmod" command directly when abstraction modules are needed,
44207 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
44208 since it had already been processed).
44209
44210 2008-06-19 Pavel Roskin <proski@gnu.org>
44211
44212 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
44213 changed. This is needed in case GRUB_LIBDIR changes.
44214 * conf/i386-ieee1275.rmk: Likewise.
44215 * conf/i386-linuxbios.rmk: Likewise.
44216 * conf/i386-pc.rmk: Likewise.
44217 * conf/powerpc-ieee1275.rmk: Likewise.
44218
44219 2008-06-18 Pavel Roskin <proski@gnu.org>
44220
44221 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
44222 kernel_elf_symlist.c to symlist.c for consistency with other
44223 architectures. Update all users.
44224 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
44225
44226 2008-06-18 Robert Millan <rmh@aybabtu.com>
44227
44228 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
44229 it in prefix.
44230
44231 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
44232 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
44233 a RAID device, run setup() for all members independently on whether
44234 LVM abstraction is being used.
44235 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
44236 If grub-mkimage has set `*install_dos_part == -2', don't override this
44237 value.
44238 Perform *install_dos_part adjustments independently on whether
44239 we're embedding or not.
44240 Clarify error message when image is too big for embedding.
44241 Remove duplicate *install_dos_part stanza.
44242
44243 2008-06-17 Robert Millan <rmh@aybabtu.com>
44244
44245 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
44246 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
44247 variables.
44248 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
44249 values in grub_ofconsole_normal_color and
44250 grub_ofconsole_highlight_color (they're not directly related to
44251 background and foreground).
44252 (grub_ofconsole_setcolorstate): Extract background and foreground
44253 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
44254
44255 2008-06-17 Robert Millan <rmh@aybabtu.com>
44256
44257 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
44258 /boot/grub for the check in last commit, not /boot (they could be
44259 different partitions).
44260
44261 2008-06-16 Robert Millan <rmh@aybabtu.com>
44262
44263 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
44264 asked to setup access for the same partition that provides /boot,
44265 don't bother using UUIDs since our root already has the value we
44266 want.
44267
44268 2008-06-16 Robert Millan <rmh@aybabtu.com>
44269
44270 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
44271 I2O devices.
44272 Patch from Sven Mueller <sven@debian.org>.
44273
44274 2008-06-16 Robert Millan <rmh@aybabtu.com>
44275
44276 * util/update-grub.in: Check for $EUID instead of $UID.
44277 Reported by Vincent Zweije.
44278
44279 2008-06-16 Bean <bean123ch@gmail.com>
44280
44281 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
44282 (grub_ext2_read_block): Likewise.
44283 (grub_ext2_read_inode): Likewise.
44284 (grub_ext2_mount): Likewise.
44285 (grub_ext2_close): Likewise.
44286 (grub_ext3_get_journal): Removed.
44287
44288 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
44289 (grub_reiserfs_read_symlink): Likewise.
44290 (grub_reiserfs_mount): Likewise.
44291 (grub_reiserfs_open): Likewise.
44292 (grub_reiserfs_read): Likewise.
44293 (grub_reiserfs_close): Likewise.
44294 (grub_reiserfs_get_journal): Removed.
44295
44296 * fs/fshelp.c (grub_fshelp_read): Removed.
44297 (grub_fshelp_map_block): Likewise.
44298
44299 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
44300 (grub_fshelp_journal): Likewise.
44301 (grub_fshelp_read): Likewise.
44302 (grub_fshelp_map_block): Likewise.
44303
44304 2008-06-16 Pavel Roskin <proski@gnu.org>
44305
44306 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
44307 floating point anymore.
44308 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
44309
44310 2008-06-15 Pavel Roskin <proski@gnu.org>
44311
44312 * commands/ls.c (grub_ls_list_files): Use integer calculations
44313 for human readable format, avoid floating point use.
44314 * kern/misc.c (grub_ftoa): Remove.
44315 (grub_vsprintf): Remove floating point support.
44316
44317 2008-06-15 Robert Millan <rmh@aybabtu.com>
44318
44319 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
44320 devices.
44321 Reported by Max Vozeler.
44322
44323 2008-06-15 Robert Millan <rmh@aybabtu.com>
44324
44325 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
44326 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
44327 skipped later.
44328 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
44329 the beginning of the prefix.
44330
44331 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
44332 It is assumed that if we have a memdisk, grub-mkimage has set
44333 grub_prefix to include the "(memdisk)" drive in it.
44334
44335 2008-06-15 Robert Millan <rmh@aybabtu.com>
44336
44337 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
44338 Initialize keyboard controller after registering the terminal, so that
44339 grub_printf() can be called from grub_keyboard_controller_init().
44340
44341 2008-06-15 Robert Millan <rmh@aybabtu.com>
44342
44343 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
44344 extent-btree which is written as big endian on disk.
44345 Reported by Alain Greppin <al@chilibi.org>.
44346
44347 2008-06-14 Robert Millan <rmh@aybabtu.com>
44348
44349 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
44350 * util/i386/pc/grub-install.in (modules): Likewise.
44351
44352 2008-06-13 Pavel Roskin <proski@gnu.org>
44353
44354 * commands/ls.c (grub_ls_list_files): Fix format warnings.
44355
44356 2008-06-13 Bean <bean123ch@gmail.com>
44357
44358 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
44359
44360 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
44361
44362 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
44363 to indicate sparse block.
44364
44365 2008-06-12 Pavel Roskin <proski@gnu.org>
44366
44367 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
44368 number, grub_fshelp_read() does it for us.
44369
44370 * fs/fshelp.c (grub_fshelp_read): New function. Implement
44371 linear disk read with journal translation.
44372 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
44373 * include/grub/fshelp.h: Declare grub_fshelp_read().
44374
44375 2008-06-09 Pavel Roskin <proski@gnu.org>
44376
44377 * fs/minix.c (grub_minix_mount): Handle error reading
44378 superblock.
44379
44380 2008-06-08 Robert Millan <rmh@aybabtu.com>
44381
44382 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
44383 don't append the RAID prefix afterwards.
44384 Reported by Clint Adams.
44385
44386 2008-06-08 Robert Millan <rmh@aybabtu.com>
44387
44388 Based on description from Pavel:
44389 * kern/disk.c (grub_disk_check_range): Rename to ...
44390 (grub_disk_adjust_range): ... this. Add a comment explaining the
44391 tasks performed by this function.
44392
44393 2008-06-08 Robert Millan <rmh@aybabtu.com>
44394
44395 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
44396 `num_serial' (for consistency with other variables).
44397 (struct grub_ntfs_data): Add `uuid' member.
44398 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
44399 (grub_ntfs_uuid): New function.
44400 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
44401
44402 2008-06-07 Pavel Roskin <proski@gnu.org>
44403
44404 * util/biosdisk.c (open_device): Revert last change to the
44405 function, it broke installation. The sector needs to be
44406 different dependent on which device is opened.
44407
44408 2008-06-06 Robert Millan <rmh@aybabtu.com>
44409
44410 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
44411 rest of GRUB, and breakage doesn't happen if its value were modified.
44412
44413 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44414 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
44415 a constant (same value).
44416 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
44417 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
44418
44419 2008-06-06 Robert Millan <rmh@aybabtu.com>
44420
44421 * util/biosdisk.c (open_device): Do not modify sector offset when
44422 accessing a partition. kern/disk.c already handles this for us.
44423
44424 2008-06-06 Robert Millan <rmh@aybabtu.com>
44425
44426 * util/grub-emu.c (grub_machine_init): Move code in this function from
44427 here ...
44428 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
44429 segfault in case grub_printf() is called).
44430
44431 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
44432 grub_probe. Update all users not to explicitly add it again.
44433 (grub_device): New variable; contains corresponding device for grubdir.
44434 (fs_module, partmap_module, devabstraction_module): Pass
44435 `--device ${grub_device}' to grub_probe to avoid traversing /dev
44436 every time.
44437
44438 2008-06-05 Robert Millan <rmh@aybabtu.com>
44439
44440 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
44441 is found, print it (same layout as with labels).
44442
44443 2008-06-04 Robert Millan <rmh@aybabtu.com>
44444
44445 * util/biosdisk.c (get_drive): Rename to ...
44446 (find_grub_drive): ... this. Update all users.
44447
44448 (get_os_disk): Rename to ...
44449 (convert_system_partition_to_system_disk): ... this. Update all users.
44450
44451 (find_drive): Rename to ...
44452 (find_system_device): ... this. Update all users.
44453
44454 2008-06-04 Robert Millan <rmh@aybabtu.com>
44455
44456 * util/biosdisk.c (get_os_disk): Handle IDA devices.
44457 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44458 (make_device_map): Likewise.
44459
44460 2008-06-01 Robert Millan <rmh@aybabtu.com>
44461
44462 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
44463 before dereferencing it.
44464
44465 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
44466 union with fat12/fat16-specific ones. Add some new fields, including
44467 `num_serial' for both versions.
44468 (struct grub_fat_data): Add `uuid' member.
44469 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
44470 names. Initialize `data->uuid' using `num_serial'.
44471 (grub_fat_uuid): New function.
44472 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
44473
44474 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
44475 (grub_reiserfs_uuid): New function.
44476 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
44477 member.
44478
44479 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
44480 (grub_xfs_uuid): New function.
44481 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
44482
44483 2008-06-01 Robert Millan <rmh@aybabtu.com>
44484
44485 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
44486 code that is backward compatible with pre-uuid search command.
44487
44488 2008-05-31 Robert Millan <rmh@aybabtu.com>
44489
44490 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
44491 floppies after everything else, to ensure floppy drive isn't accessed
44492 unnecessarily (patch from Bean).
44493
44494 2008-05-31 Robert Millan <rmh@aybabtu.com>
44495
44496 * commands/search.c (search_label, search_fs_uuid, search_file): Do
44497 not print device names when we were asked to set a variable.
44498
44499 2008-05-31 Robert Millan <rmh@aybabtu.com>
44500
44501 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
44502 using "cursor-on" and "cursor-off" commands (understood at least by
44503 the Open Firmware flavour on OLPC).
44504
44505 2008-05-31 Michael Gorven <michael@gorven.za.net>
44506
44507 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
44508 on and off sequences.
44509
44510 2008-05-31 Robert Millan <rmh@aybabtu.com>
44511
44512 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
44513 * util/update-grub.in: Likewise.
44514
44515 2008-05-30 Pavel Roskin <proski@gnu.org>
44516
44517 * util/biosdisk.c (linux_find_partition): Simplify logic and
44518 make the code more universal. Keep special processing for
44519 devfs, but use a simple rule for all other devices. If the
44520 device ends with a number, append 'p' and the partition number.
44521 Otherwise, append only the partition number.
44522
44523 2008-05-30 Robert Millan <rmh@aybabtu.com>
44524
44525 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
44526 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
44527 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
44528 the `root' parameter to Linux.
44529
44530 2008-05-30 Robert Millan <rmh@aybabtu.com>
44531
44532 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
44533 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
44534 --fs_uuid with --fs-uuid.
44535 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
44536 all filesystems support them).
44537
44538 2008-05-30 Robert Millan <rmh@aybabtu.com>
44539
44540 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
44541 grub_printf() flags, since we're printing in units of 2 bytes.
44542
44543 2008-05-30 Robert Millan <rmh@aybabtu.com>
44544
44545 * util/grub.d/00_header.in: Remove obsolete comment referencing
44546 convert_system_path_to_grub_path().
44547 * util/update-grub.in: Likewise.
44548 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
44549 (convert_system_path_to_grub_path): Add a warning message explaining
44550 that this function is deprecated. Rely on is_path_readable_by_grub()
44551 for the readability checks.
44552 (font_path): Use is_path_readable_by_grub() for the readability
44553 check rather than convert_system_path_to_grub_path().
44554
44555 2008-05-30 Robert Millan <rmh@aybabtu.com>
44556
44557 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
44558 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
44559 converting it first.
44560 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
44561 grub.cfg for access to font file, and afterwards call it again to set
44562 the root device.
44563
44564 2008-05-30 Robert Millan <rmh@aybabtu.com>
44565
44566 * commands/search.c (options): Add --fs_uuid option.
44567 (search_fs_uuid): New function.
44568 (grub_cmd_search): Fix --set argument passing.
44569 Use search_fs_uuid() when requested via --fs_uuid.
44570 (grub_search_init): Update help message.
44571 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
44572 and redeclare it as an array of 16-bit words.
44573 (grub_ext2_uuid): New function.
44574 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
44575 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
44576 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
44577 (GRUB_DEVICE_BOOT_UUID): New variables.
44578 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
44579 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
44580 whenever possible.
44581 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
44582 just assume `root' variable has the right value.
44583 * util/grub.d/10_linux.in: Likewise.
44584 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
44585 via PRINT_FS_UUID.
44586 (main): Recognise `-t fs_uuid' argument.
44587
44588 2008-05-30 Robert Millan <rmh@aybabtu.com>
44589
44590 * util/biosdisk.c (map): Redefine structure to hold information
44591 about GRUB drive name.
44592 (get_drive): Reimplement without assuming (and verifying) BIOS-like
44593 drive names.
44594 (call_hook): Remove.
44595 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
44596 member. Assume drive has partitions.
44597 (grub_util_biosdisk_open): Access device names via `.device' struct
44598 member.
44599 (open_device): Likewise.
44600 (find_drive): Likewise.
44601 (read_device_map): Adjust map[] usage to match the new struct
44602 definition. Don't check for duplicates (still possible, but not cheap
44603 anymore).
44604 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
44605 (make_device_name): Remove assumption of BIOS-like drive names.
44606
44607 2008-05-30 Pavel Roskin <proski@gnu.org>
44608
44609 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
44610 compiling execute.c doesn't need grub_script.tab.h anymore.
44611 (normal/command.c_DEPENDENCIES): Likewise.
44612 (normal/function.c_DEPENDENCIES): Likewise.
44613 * conf/i386-ieee1275.rmk: Likewise.
44614 * conf/i386-linuxbios.rmk: Likewise.
44615 * conf/i386-pc.rmk: Likewise.
44616 * conf/powerpc-ieee1275.rmk: Likewise.
44617 * conf/sparc64-ieee1275.rmk: Likewise.
44618
44619 2008-05-29 Pavel Roskin <proski@gnu.org>
44620
44621 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
44622 when scanning metadata for volume group name.
44623
44624 * include/grub/script.h: Don't include grub_script.tab.h. It's
44625 a generated file, which may only be included from the files with
44626 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
44627 use union YYSTYPE, as the later allows forward declaration.
44628 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
44629
44630 2008-05-29 Robert Millan <rmh@aybabtu.com>
44631
44632 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
44633 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
44634 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
44635 (grub_console_checkkey): Add grub_dprintf() call to report unknown
44636 scan codes.
44637
44638 2008-05-29 Robert Millan <rmh@aybabtu.com>
44639
44640 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
44641 control key combinations.
44642
44643 2008-05-29 Robert Millan <rmh@aybabtu.com>
44644
44645 * util/powerpc/ieee1275/grub-install.in: Move from here ...
44646 * util/ieee1275/grub-install.in: ... to here.
44647 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
44648 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
44649 (grub_install_SOURCES): Likewise.
44650
44651 2008-05-29 Robert Millan <rmh@aybabtu.com>
44652
44653 * fs/affs.c: Update copyright year.
44654 * fs/ext2.c: Likewise.
44655 * fs/fshelp.c: Likewise.
44656 * fs/hfsplus.c: Likewise.
44657 * fs/ntfs.c: Likewise.
44658 * fs/xfs.c: Likewise.
44659 * include/grub/fshelp.h: Likewise.
44660 * util/grub-mkdevicemap.c: Likewise.
44661
44662 2008-05-28 Robert Millan <rmh@aybabtu.com>
44663
44664 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
44665 might need to be fatfs to support some firmware implementations
44666 (e.g. OFW or EFI).
44667
44668 2008-05-28 Robert Millan <rmh@aybabtu.com>
44669
44670 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
44671 devices.
44672 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44673 (make_device_map): Likewise.
44674
44675 2008-05-20 Bean <bean123ch@gmail.com>
44676
44677 * fs/fshelp.c (grub_fshelp_map_block): New function.
44678 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
44679 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
44680
44681 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
44682 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
44683 (grub_fshelp_journal): New structure.
44684 (grub_fshelp_map_block): New function prototype.
44685 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
44686 (grub_fshelp_map_block): Likewise.
44687
44688 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
44689 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
44690 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
44691 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
44692 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
44693 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
44694 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
44695 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
44696 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
44697 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
44698 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
44699 (grub_ext2_sblock): New members for journal support.
44700 (grub_ext3_journal_header): New structure.
44701 (grub_ext3_journal_revoke_header): Likewise.
44702 (grub_ext3_journal_block_tag): Likewise.
44703 (grub_ext3_journal_sblock): Likewise.
44704 (grub_fshelp_node): New members logfile and journal.
44705 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
44706 grub_fshelp_map_block to get real block number.
44707 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
44708 number.
44709 (grub_ext2_read_inode): Likewise.
44710 (grub_ext3_get_journal): New function.
44711 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
44712 (grub_ext2_close): Release memory used by journal.
44713
44714 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
44715 (REISERFS_MAGIC_DESC_BLOCK): New macro.
44716 (grub_reiserfs_transaction_header): Renamed to
44717 grub_reiserfs_description_block, replace field data with real_blocks.
44718 (grub_reiserfs_commit_block): New structure.
44719 (grub_reiserfs_data): New member journal.
44720 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
44721 number.
44722 (grub_reiserfs_read_symlink): Likewise.
44723 (grub_reiserfs_iterate_dir): Likewise.
44724 (grub_reiserfs_open): Likewise.
44725 (grub_reiserfs_read): Likewise.
44726 (grub_reiserfs_get_journal): New function.
44727 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
44728 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
44729 using grub_reiserfs_get_journal.
44730 (grub_reiserfs_close): Release memory used by journal.
44731
44732 * fs/affs.c (grub_affs_read_block): Change block type to
44733 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
44734
44735 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
44736
44737 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
44738
44739 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
44740
44741 * fs/udf.c (grub_udf_read_block): Change block type to
44742 grub_disk_addr_t. Use type cast to avoid warning.
44743
44744 * fs/xfs.c (grub_xfs_read_block): Likewise.
44745
44746 2008-05-16 Christian Franke <franke@computer.org>
44747
44748 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
44749 to ensure that break with ESC will always work.
44750 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
44751 Remove ESC from keyboard queue.
44752
44753 2008-05-16 Christian Franke <franke@computer.org>
44754
44755 * util/biosdisk.c: [__CYGWIN__] Add includes.
44756 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
44757 (get_os_disk): Move variable declarations to OS specific
44758 parts to avoid warning.
44759 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
44760 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
44761 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
44762 Cygwin.
44763 * util/getroot.c: [__CYGWIN__] Add includes.
44764 (strip_extra_slashes): Fix "/" case.
44765 [__CYGWIN__] (get_win32_path): New function.
44766 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
44767 [__CYGWIN__] (find_root_device): Disable.
44768 [__CYGWIN__] (get_bootsec_serial): New function.
44769 [__CYGWIN__] (find_cygwin_root_device): Likewise.
44770 [__linux__] (grub_guess_root_device): Add early returns to simplify
44771 structure.
44772 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
44773 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
44774 check for Linux only.
44775
44776 2008-05-15 Bean <bean123ch@gmail.com>
44777
44778 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
44779 keyboard hang problem in apple's intel mac.
44780
44781 2008-05-09 Robert Millan <rmh@aybabtu.com>
44782
44783 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
44784 devices.
44785 * util/grub-mkdevicemap.c (get_virtio_disk_name)
44786 (make_device_map): Likewise.
44787 Reported by Aurelien Jarno <aurel32@debian.org>
44788
44789 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
44790
44791 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
44792 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
44793 (make_device_map): Output entries for xvd type disks.
44794
44795 2008-05-07 Robert Millan <rmh@aybabtu.com>
44796
44797 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
44798 devices.
44799 * util/grub-mkdevicemap.c (get_cciss_disk_name)
44800 (make_device_map): Likewise.
44801 Reported by Roland Dreier <rdreier@cisco.com>
44802
44803 2008-05-07 Robert Millan <rmh@aybabtu.com>
44804
44805 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
44806 grub_strstr() call. Correct a few mistakes in failure path handling.
44807
44808 2008-05-06 Robert Millan <rmh@aybabtu.com>
44809
44810 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
44811 Do not print a trailing slash (therefore, the root directory is an
44812 empty string).
44813 (convert_system_path_to_grub_path): Do not remove trailing slash
44814 from make_system_path_relative_to_its_root() output.
44815
44816 * util/i386/pc/grub-install.in: Add trailing slash to output from
44817 make_system_path_relative_to_its_root().
44818
44819 2008-05-06 Robert Millan <rmh@aybabtu.com>
44820
44821 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
44822 ensures that output lines aren't intermangled with those sent to
44823 stderr (via grub_util_info()).
44824 * util/grub-probe.c (grub_refresh): Likewise.
44825 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
44826
44827 2008-05-05 Christian Franke <franke@computer.org>
44828
44829 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
44830 Add Cygwin device names.
44831 (get_ide_disk_name) [__CYGWIN__]: Likewise.
44832 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
44833 (check_device): Return error instead of success on empty name.
44834 (make_device_map): Move label inside linux specific code to
44835 prevent compiler warning.
44836
44837 2008-04-30 Robert Millan <rmh@aybabtu.com>
44838
44839 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
44840 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
44841 first boot option.
44842 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
44843
44844 2008-04-29 Robert Millan <rmh@aybabtu.com>
44845
44846 * docs/grub.cfg: New file (example GRUB configuration).
44847
44848 2008-04-26 Robert Millan <rmh@aybabtu.com>
44849
44850 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
44851 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
44852 and `disk/ieee1275/nand.c'.
44853
44854 2008-04-25 Bean <bean123ch@gmail.com>
44855
44856 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
44857 i386-linuxbios.
44858
44859 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
44860 change the buffer size to 4096 for cdrom device.
44861
44862 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
44863 and nand.mod.
44864 (_linux_mod_SOURCES): New variable.
44865 (_linux_mod_CFLAGS): Likewise.
44866 (_linux_mod_LDFLAGS): Likewise.
44867 (linux_mod_SOURCES): Likewise.
44868 (linux_mod_CFLAGS): Likewise.
44869 (linux_mod_LDFLAGS): Likewise.
44870 (nand_mod_SOURCES): Likewise.
44871 (nand_mod_CFLAGS): Likewise.
44872 (nand_mod_LDFLAGS): Likewise.
44873
44874 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
44875 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
44876 type property. (nand device in olpc don't have this property)
44877
44878 * include/grub/disk.h (grub_disk_dev_id): New macro
44879 GRUB_DISK_DEVICE_NAND_ID.
44880
44881 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
44882 function prototype.
44883 (grub_rescue_cmd_initrd): Likewise.
44884
44885 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
44886 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
44887 ofw_cif_handler and ofw_idt, adjust padding number.
44888
44889 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
44890 GRUB_MACHINE_IEEE1275 is defined.
44891
44892 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
44893 Use NESTED_FUNC_ATTR attribute on the hook parameter.
44894
44895 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
44896 on nested function heap_init.
44897 (grub_upper_mem): New variable for i386-ieee1275.
44898 (grub_get_extended_memory): New function for i386-ieee1275.
44899 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
44900
44901 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
44902 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
44903 property.
44904
44905 * loader/i386/ieee1275/linux.c: New file.
44906
44907 * loader/i386/ieee1275/linux_normal.c: New file.
44908
44909 * disk/ieee1275/nand.c: New file.
44910
44911 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
44912
44913 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
44914 value.
44915 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
44916
44917 2008-04-18 Robert Millan <rmh@aybabtu.com>
44918
44919 Restructures early code path on ieee1275 to unify grub_main() as
44920 the first C function that is executed in every platform.
44921
44922 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
44923 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
44924 cmain().
44925 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
44926 * kern/ieee1275/cmain.c (cmain): Rename to ...
44927 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
44928 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
44929 at the beginning.
44930
44931 2008-04-18 Robert Millan <rmh@aybabtu.com>
44932
44933 * util/update-grub.in: Fix syntax error when setting
44934 `GRUB_PRELOAD_MODULES'.
44935 Reported by Stephane Chazelas <stephane@artesyncp.com>
44936
44937 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
44938
44939 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
44940 section into account, newer toolchains generate unique build ids
44941 * configure.ac: remove the test for --build-id=none acceptance,
44942 we want build ids to be preserved
44943 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
44944 far from other sections don't cause the raw binary images grow
44945 size
44946
44947 2008-04-15 Robert Millan <rmh@aybabtu.com>
44948
44949 * disk/lvm.c: Update copyright year.
44950 * kern/misc.c: Likewise.
44951
44952 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
44953
44954 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
44955 there is no memory left for physical volume name.
44956
44957 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
44958
44959 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
44960 volume name mapping to support bigger than 9 character names properly.
44961
44962 2008-04-13 Robert Millan <rmh@aybabtu.com>
44963
44964 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
44965 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
44966
44967 2008-04-13 Christian Franke <franke@computer.org>
44968
44969 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
44970 to create a floppy emulation boot CD when non emulation mode
44971 does not work.
44972 Enable Joliet CD filesystem extension.
44973
44974 2008-04-13 Robert Millan <rmh@aybabtu.com>
44975
44976 * kern/misc.c (grub_strncat): Fix off-by-one error.
44977 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
44978
44979 * kern/env.c (grub_env_context_close): Clear current context, not
44980 previous one.
44981 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
44982
44983 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
44984
44985 2008-04-13 Robert Millan <rmh@aybabtu.com>
44986
44987 Improve robustness when handling LVM.
44988
44989 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
44990 (and leave `*p' unmodified).
44991 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
44992 through it.
44993 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
44994 iterating through it.
44995 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
44996 through it.
44997 (grub_lvm_scan_device): Check the return value (and fail gracefully
44998 when due) on each grub_lvm_getvalue() or grub_strstr() call.
44999 Don't assume `vg->pvs != NULL' when iterating through it.
45000
45001 2008-04-13 Robert Millan <rmh@aybabtu.com>
45002
45003 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
45004 * genmk.rb (partmap): New variable.
45005 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
45006 (#{partmap}): New target rule.
45007 * genpartmaplist.sh: New file.
45008 * Makefile.in (pkglib_DATA): Add partmap.lst.
45009 (partmap.lst): New target rule.
45010 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
45011 modules (including all partition maps), instead of preloading them.
45012
45013 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
45014
45015 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
45016 `linux-boot-prober' (if installed) to detect other operating
45017 systems which are installed on the computer and add them to
45018 the boot menu.
45019 * conf/common.rmk: Build and install 30_os-prober.
45020
45021 2008-04-12 Robert Millan <rmh@aybabtu.com>
45022
45023 * kern/powerpc/ieee1275/init.c: Move from here ...
45024 * kern/ieee1275/init.c: ... to here. Update all users.
45025
45026 * kern/powerpc/ieee1275/cmain.c: Move from here ...
45027 * kern/ieee1275/cmain.c: ... to here. Update all users.
45028
45029 * kern/powerpc/ieee1275/openfw.c: Move from here ...
45030 * kern/ieee1275/openfw.c: ... to here. Update all users.
45031
45032 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
45033 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
45034
45035 2008-04-10 Pavel Roskin <proski@gnu.org>
45036
45037 * configure.ac: Always use "_cv_" in cache variables for
45038 compatibility with Autoconf 2.62.
45039
45040 2008-04-07 Robert Millan <rmh@aybabtu.com>
45041
45042 Revert grub/machine/init.h addition by Pavel (since it breaks on
45043 i386-ieee1275 and others):
45044 * util/i386/pc/misc.c: Remove grub/machine/init.h.
45045 * util/powerpc/ieee1275/misc.c: Likewise.
45046
45047 2008-04-07 Robert Millan <rmh@aybabtu.com>
45048
45049 * util/grub-probe.c (probe): Improve error message.
45050
45051 2008-04-07 Robert Millan <rmh@aybabtu.com>
45052
45053 * util/biosdisk.c (read_device_map): Skip devices that don't exist
45054 (this prevents the presence of a bogus entry from ruining the whole
45055 thing).
45056
45057 2008-04-06 Pavel Roskin <proski@gnu.org>
45058
45059 * util/biosdisk.c: Include grub/util/biosdisk.h.
45060 * util/grub-fstest.c (execute_command): Make static.
45061 * util/grub-mkdevicemap.c (check_device): Likewise.
45062 * util/i386/pc/misc.c: Include grub/machine/init.h.
45063 * util/powerpc/ieee1275/misc.c: Likewise.
45064 * util/lvm.c: Include grub/util/lvm.h.
45065 * util/misc.c: Include grub/kernel.h, grub/misc.h and
45066 grub/cache.h.
45067 * util/raid.c: Include grub/util/raid.h.
45068 (grub_util_getdiskname): Make static.
45069
45070 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
45071 grub_hostfs_fini(), as they are called from grub_init_all() and
45072 grub_fini_all() respectively. This fixes an infinite loop in
45073 grub-fstest due to double registration of hostfs.
45074 Reported by Christian Franke <Christian.Franke@t-online.de>
45075
45076 2008-04-05 Pavel Roskin <proski@gnu.org>
45077
45078 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
45079 all 8 functions. Otherwise, probe function 0 only.
45080
45081 2008-04-04 Pavel Roskin <proski@gnu.org>
45082
45083 * commands/lspci.c (grub_lspci_iter): Print the bus number
45084 correctly.
45085
45086 * commands/lspci.c (grub_pci_classes): Fix typos.
45087 (grub_lspci_iter): Don't print func twice. Print vendor ID
45088 before device ID, as it's normally done.
45089
45090 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
45091 Fix signedness warnings.
45092 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
45093 Likewise.
45094 * util/ieee1275/get_disk_name.c: Include config.h so that
45095 _GNU_SOURCE is defined and getline() is declared. Mark an
45096 unused argument as such. Fix a signedness warning.
45097
45098 2008-04-02 Pavel Roskin <proski@gnu.org>
45099
45100 * genkernsyms.sh.in: Use more robust assignments for CC and
45101 srcdir. Quote srcdir.
45102 * gensymlist.sh.in: Likewise. Assert at the compile time that
45103 the symbol table is not empty.
45104
45105 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
45106 * fs/cpio.c (grub_cpio_read): Likewise.
45107
45108 2008-04-01 Pavel Roskin <proski@gnu.org>
45109
45110 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
45111 * disk/host.c (grub_host_open): Likewise.
45112 * disk/loopback.c (grub_loopback_open): Likewise.
45113 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
45114 disk->id as in disk/host.c, not a multi-character constant.
45115
45116 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
45117 later is obsolete, potentially dangerous and sets a bad example.
45118 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
45119 * util/misc.c (grub_util_get_image_size): Likewise.
45120
45121 * disk/loopback.c (options): Improve help for "--partitions".
45122
45123 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
45124 options to align them with the short options, e.g. "echo -e".
45125
45126 2008-03-31 Bean <bean123ch@gmail.com>
45127
45128 * video/reader/png.c (grub_png_data): New member is_16bit and
45129 image_data.
45130 (grub_png_decode_image_header): Detect 16 bit png image.
45131 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
45132 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
45133 (grub_video_reader_png): Release memory occupied by image_data.
45134
45135 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
45136 4096 bytes.
45137 (grub_nfs_mount): Skip the test for sector per cluster.
45138
45139 * include/grub/ntfs.h (MAX_SPC): Removed.
45140
45141 2008-03-31 Bean <bean123ch@gmail.com>
45142
45143 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
45144 (grub_probe_SOURCES): Add fs/afs.c.
45145 (grub_fstest_SOURCES): Likewise.
45146 (afs_mod_SOURCES): New variable.
45147 (afs_mod_CFLAGS): Likewise.
45148 (afs_mod_LDFLAGS): Likewise.
45149
45150 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
45151 (grub_emu_SOURCES): Likewise.
45152
45153 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45154
45155 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45156
45157 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45158
45159 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45160
45161 * fs/afs.c: New file.
45162
45163 2008-03-30 Pavel Roskin <proski@gnu.org>
45164
45165 * disk/host.c: Include grub/misc.h to fix a warning.
45166 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
45167 warnings about implicit declarations.
45168
45169 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
45170 variable.
45171 * include/grub/i386/loader.h: Change declaration of
45172 grub_linux_boot() to match what grub_loader_set() expects.
45173 * util/getroot.c (grub_guess_root_device): Return const char* to
45174 fix a warning.
45175 * util/grub-probe.c (probe): Fix a warning about uninitialized
45176 abstraction_name variable.
45177 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
45178 second argument as unused to fix a warning.
45179
45180 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
45181 missing grub_error() call.
45182
45183 * util/update-grub_lib.in: Define datarootdir, since Autoconf
45184 2.60 and newer uses it to define datadir.
45185
45186 * commands/sleep.c: Fix warning about implicit declaration.
45187 * disk/memdisk.c: Likewise.
45188 * loader/aout.c: Likewise.
45189 * loader/i386/bsd_normal.c: Likewise.
45190 * util/grub-probe.c: Likewise.
45191
45192 * commands/i386/cpuid.c (has_longmode): Make static.
45193 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
45194 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
45195
45196 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
45197 GDT. This is more robust, as %ds can change.
45198 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
45199 calling real_to_prot().
45200 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
45201
45202 2008-03-28 Pavel Roskin <proski@gnu.org>
45203
45204 * kern/i386/pc/startup.S: Assert that uncompressed functions
45205 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
45206 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
45207 code, as they push parts of the code (error handlers) beyond
45208 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
45209 code as correctness and size.
45210
45211 2008-03-28 Pavel Roskin <proski@gnu.org>
45212
45213 * kern/i386/pc/startup.S
45214 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
45215 data block address to the real mode, keep offset minimal. This
45216 works around a bug in AWARD BIOS on old Athlon systems, which
45217 makes CD detection hang.
45218
45219 2008-03-26 Pavel Roskin <proski@gnu.org>
45220
45221 * normal/color.c (grub_parse_color_name_pair): Make `name' a
45222 const.
45223 * include/grub/normal.h: Add grub_parse_color_name_pair()
45224 declaration.
45225
45226 2008-03-24 Bean <bean123ch@gmail.com>
45227
45228 * disk/i386/pc/biosdisk.c (cd_start): Removed.
45229 (cd_count): Removed.
45230 (cd_drive): New variable.
45231 (grub_biosdisk_get_drive): Don't check for (cdN) device.
45232 (grub_biosdisk_call_hook): Likewise.
45233 (grub_biosdisk_iterate): Change cdrom detection method.
45234 (grub_biosdisk_open): Replace cd_start with cd_drive.
45235 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
45236 detect cdrom device.
45237
45238 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
45239 Removed.
45240 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
45241 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
45242 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
45243 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
45244 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
45245 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
45246 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
45247 (grub_biosdisk_cdrp): New structure.
45248 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
45249
45250 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
45251
45252 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
45253 device.
45254
45255 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
45256 New function.
45257
45258 2008-03-20 Robert Millan <rmh@aybabtu.com>
45259
45260 Remove 2 TiB limit in ata.mod.
45261 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
45262 (grub_ata_dumpinfo): Print sector count with 0x%llx.
45263 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
45264 grub_uint64_t instead of grub_uint32_t.
45265
45266 2008-03-05 Bean <bean123ch@gmail.com>
45267
45268 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
45269 (grub_multiboot): Set boot device.
45270
45271 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
45272
45273 2008-03-02 Bean <bean123ch@gmail.com>
45274
45275 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
45276 symlink_buffer.
45277
45278 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
45279
45280 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
45281 texinfo.tex.
45282
45283 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
45284 modified.
45285
45286 * docs/fdl.texi: New file.
45287
45288 * docs/mdate-sh: New file. Copied from gnulib.
45289 * docs/texinfo.tex: Likewise.
45290
45291 * config.guess: Updated from gnulib.
45292 * install-sh: Likewise.
45293
45294 2008-02-28 Robert Millan <rmh@aybabtu.com>
45295
45296 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
45297 (aout_mod_SOURCES): New variable.
45298 (aout_mod_CFLAGS): Likewise.
45299 (aout_mod_LDFLAGS): Likewise.
45300
45301 * conf/i386-ieee1275.rmk: Likewise.
45302
45303 2008-02-28 Robert Millan <rmh@aybabtu.com>
45304
45305 * util/update-grub.in: Reorganise terminal validity check. Accept
45306 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
45307 Based on suggestion by Franklin PIAT.
45308
45309 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
45310
45311 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
45312 function.
45313 * util/getroot.c (grub_util_check_block_device): New function that
45314 returns the given argument if it is a block device and returns NULL else.
45315 * util/grub-probe.c (argument_is_device): New variable.
45316 (probe): Promote device_name from a variable to an argument. Receive
45317 device_name from grub_util_check_block_device() if path is NULL and from
45318 grub_guess_root_device() else. Do not free() device_name anymore.
45319 (options): Introduce new parameter '-d, --device'.
45320 (main): Add description of the new parameter to the help screen.
45321 Rename path variable to argument. Set argument_is_device if the '-d'
45322 option is given. Pass argument to probe() depending on
45323 argument_is_device.
45324
45325 2008-02-24 Bean <bean123ch@gmail.com>
45326
45327 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
45328 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
45329 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
45330 (GRUB_ISO9660_VOLDESC_PART): Likewise.
45331 (GRUB_ISO9660_VOLDESC_END): Likewise.
45332 (grub_iso9660_primary_voldesc): New member escape.
45333 (grub_iso9660_data): New member joliet.
45334 (grub_iso9660_convert_string): New function.
45335 (grub_iso9660_mount): Detect joliet extension.
45336 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
45337 (grub_iso9660_iso9660_label): Likewise.
45338
45339 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
45340 (grub_setup_SOURCES): Add fs/udf.c.
45341 (grub_fstest_SOURCES): Likewise.
45342 (udf_mod_SOURCES): New variable.
45343 (udf_mod_CFLAGS): Likewise.
45344 (udf_mod_LDFLAGS): Likewise.
45345
45346 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
45347 (grub_emu_SOURCES): Likewise.
45348
45349 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45350
45351 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45352
45353 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45354
45355 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45356
45357 * fs/udf.c: New file.
45358
45359 2008-02-24 Robert Millan <rmh@aybabtu.com>
45360
45361 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
45362 (normal/lexer.c_DEPENDENCIES): New variables.
45363 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45364 (normal/lexer.c_DEPENDENCIES): Likewise.
45365 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
45366 (normal/lexer.c_DEPENDENCIES): Likewise.
45367 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
45368 (normal/lexer.c_DEPENDENCIES): Likewise.
45369 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45370 (normal/lexer.c_DEPENDENCIES): Likewise.
45371 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45372 (normal/lexer.c_DEPENDENCIES): Likewise.
45373
45374 2008-02-23 Robert Millan <rmh@aybabtu.com>
45375
45376 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
45377 since they were intended to be in hex. This didn't break previously
45378 because of a bug in gpt_partition_map_iterate() (see below).
45379
45380 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
45381 when checking the validity of GPT header.
45382 Remove `partno', since it always provides the same information as `i'.
45383
45384 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
45385
45386 * include/grub/efi/time.h: Fix a wrong comment.
45387
45388 2008-02-19 Pavel Roskin <proski@gnu.org>
45389
45390 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
45391 message.
45392
45393 2008-02-19 Bean <bean123ch@gmail.com>
45394
45395 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
45396 (aout_mod_SOURCES): New variable.
45397 (aout_mod_CFLAGS): Likewise.
45398 (aout_mod_LDFLAGS): Likewise.
45399 (_bsd_mod_SOURCES): New variable.
45400 (_bsd_mod_CFLAGS): Likewise.
45401 (_bsd_mod_LDFLAGS): Likewise.
45402 (bsd_mod_SOURCES): New variable.
45403 (bsd_mod_CFLAGS): Likewise.
45404 (bsd_mod_LDFLAGS): Likewise.
45405
45406 * include/grub/aout.h: New file.
45407
45408 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
45409
45410 * include/grub/i386/bsd.h: New file.
45411
45412 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
45413 to make it public.
45414
45415 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
45416 function is called, so that it's possible to change it inside the hook.
45417 (grub_elf64_load): Likewise.
45418 (grub_elf_file): Don't close the file if elf header is not found.
45419 (grub_elf_close): Close the file if grub_elf_file fails (The new
45420 grub_elf_file won't close it).
45421 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
45422 (grub_elf64_size): Likewise.
45423
45424 * kern/i386/loader.S (grub_unix_real_boot): New function.
45425
45426 * loader/aout.c: New file.
45427
45428 * loader/i386/bsd.c: New file.
45429
45430 * loader/i386/bsd_normal.c: New file.
45431
45432 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
45433
45434 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
45435 can test other formats.
45436
45437 2008-02-19 Robert Millan <rmh@aybabtu.com>
45438
45439 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
45440 (grub_gpt_partition_type_empty): Redefine with macro from
45441 `<grub/gpt_partition.h>'.
45442 (gpt_partition_map_iterate): Adjust partition type comparison.
45443
45444 Export `entry' as partmap-specific `part.data' struct.
45445 (grub_gpt_header, grub_gpt_partentry): Move from here ...
45446
45447 * include/grub/gpt_partition.h (grub_gpt_header)
45448 (grub_gpt_partentry): ... to here (new file).
45449
45450 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
45451
45452 (grub_gpt_partition_type_bios_boot): New const variable, defined
45453 with macro from `<grub/gpt_partition.h>'.
45454
45455 (setup): Replace `first_start' with `embed_region', which keeps
45456 track of the embed region (and is partmap-agnostic).
45457
45458 Replace find_first_partition_start() with find_usable_region(),
45459 which finds a usable region for embedding using partmap-specific
45460 knowledge (supports PC/MSDOS and GPT).
45461
45462 Fix all assumptions that the embed region start at sector 1, using
45463 `embed_region.start' from now on. Similarly, use `embed_region.end'
45464 rather than `first_start' to calculate available size.
45465
45466 In grub_util_info() message, replace "into after the MBR" with an
45467 indication of the specific sector our embed region starts at.
45468
45469 2008-02-19 Robert Millan <rmh@aybabtu.com>
45470
45471 * DISTLIST: Replace `commands/ieee1275/halt.c' and
45472 `commands/ieee1275/reboot.c' with `commands/halt.c' and
45473 `commands/reboot.c'.
45474 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45475 (halt_mod_SOURCES): Likewise.
45476 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45477 (halt_mod_SOURCES): Likewise.
45478
45479 2008-02-17 Christian Franke <franke@computer.org>
45480
45481 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
45482
45483 2008-02-17 Robert Millan <rmh@aybabtu.com>
45484
45485 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45486 set `first_start' to 0 for non-PC/MSDOS partition maps.
45487
45488 2008-02-16 Robert Millan <rmh@aybabtu.com>
45489
45490 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45491 do not assume partition map is PC/MSDOS before performing checks that
45492 are specific to that layout.
45493
45494 2008-02-13 Robert Millan <rmh@aybabtu.com>
45495
45496 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
45497 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
45498 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
45499
45500 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
45501
45502 * configure.ac: Only a cosmetic change on the handling of
45503 -fno-stack-protector.
45504
45505 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
45506
45507 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
45508 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
45509 reboot.c.
45510 (grub_install_SOURCES): Add halt.mod and reboot.mod.
45511 (halt_mod_SOURCES): New variable.
45512 (halt_mod_CFLAGS): Likewise.
45513 (halt_mod_LDFLAGS): Likewise.
45514 (reboot_mod_SOURCES): Likewise.
45515 (reboot_mod_CFLAGS): Likewise.
45516 (reboot_mod_LDFLAGS): Likewise.
45517
45518 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
45519 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
45520 reboot.c.
45521 (halt_mod_SOURCES): Likewise.
45522 (reboot_mod_SOURCES): Likewise.
45523
45524 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
45525 commands/i386/pc/reboot.c by commands/reboot.c.
45526 (reboot_mod_SOURCES): Likewise.
45527
45528 * commands/i386/pc/reboot.c: merge this file ...
45529
45530 * commands/ieee1275/reboot.c: ... and this file ...
45531
45532 * commands/reboot.c: ... to this file.
45533 Add some precompiler directive to include the correct header for
45534 each machine.
45535
45536 * commands/ieee1275/halt.c: move this file ...
45537
45538 * commands/halt.c: ... to here.
45539 Add some precompiler directive to include the correct header for
45540 each machine.
45541
45542 * include/grub/efi/efi.h (grub_reboot): New function declaration.
45543 (grub_halt): Likewise.
45544
45545 * kern/efi/efi.c (grub_reboot): New function.
45546 (grub_halt): Likewise.
45547
45548 2008-02-12 Robert Millan <rmh@aybabtu.com>
45549
45550 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
45551 /dev (like it is done for /dev/mapper). This doesn't provide support
45552 for EVMS, but at least it is now easy to identify the problem when it
45553 arises.
45554
45555 2008-02-11 Robert Millan <rmh@aybabtu.com>
45556
45557 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
45558 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
45559 comparing it with -1, not 0.
45560
45561 2008-02-10 Robert Millan <rmh@aybabtu.com>
45562
45563 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
45564 `disk/lvm.c'.
45565 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45566 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
45567
45568 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
45569 `disk/lvm.c' to the end of the list.
45570 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45571 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
45572
45573 2008-02-10 Robert Millan <rmh@aybabtu.com>
45574
45575 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
45576 grub_print_error() instead. This will let user know why we're entering
45577 rescue mode.
45578 Based on suggestions from Sam Morris.
45579
45580 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
45581
45582 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
45583 on remaining N args, instead of "--" arg N times.
45584
45585 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
45586
45587 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
45588 (fill_with_default_glyph): Changed to use unknown_glyph for fill
45589 pattern for unknown glyphs.
45590
45591 2008-02-09 Robert Millan <rmh@aybabtu.com>
45592
45593 * configure.ac: Probe for `help2man'.
45594 * Makefile.in (builddir): New variable.
45595 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
45596 or otherwise add a few flags/options to it.
45597 (install-local): For every executable utility or script that is
45598 installed, invoke $(HELP2MAN) to install a manpage based on --help
45599 output.
45600
45601 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
45602 that it doesn't prevent --help from working in build tree.
45603
45604 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
45605 with `bug-grub@gnu.org'.
45606 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
45607 * util/update-grub.in (usage): New function.
45608 Implement proper argument check, with support for --help and --version
45609 (as well as existing -y).
45610
45611 2008-02-09 Christian Franke <franke@computer.org>
45612
45613 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
45614 avoid overwriting previous output.
45615 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
45616
45617 2008-02-09 Robert Millan <rmh@aybabtu.com>
45618
45619 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
45620 drawing the menu.
45621
45622 2008-02-09 Robert Millan <rmh@aybabtu.com>
45623
45624 * commands/sleep.c: New file.
45625 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
45626 (sleep_mod_SOURCES): New variable.
45627 (sleep_mod_CFLAGS): Likewise.
45628 (sleep_mod_LDFLAGS): Likewise.
45629
45630 2008-02-09 Robert Millan <rmh@aybabtu.com>
45631
45632 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
45633 situations in which we can deduce the RAID size and the superblock
45634 doesn't match it.
45635
45636 2008-02-09 Robert Millan <rmh@aybabtu.com>
45637
45638 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
45639 and return a grub_diskmemberlist_t composed of LVM physical volumes.
45640 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
45641
45642 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
45643 and return a grub_diskmemberlist_t composed of physical array members.
45644 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
45645
45646 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
45647 prototype.
45648 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
45649 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
45650 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
45651
45652 * util/grub-probe.c (probe): Move partmap probing code from here ...
45653 (probe_partmap): ... to here.
45654 (probe): Use probe_partmap() once for the disk we're probing, and
45655 additionally, when such disk contains a memberlist() struct member,
45656 once for each disk that is contained in the structure returned by
45657 memberlist().
45658
45659 2008-02-09 Robert Millan <rmh@aybabtu.com>
45660
45661 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
45662 environment variable to 'all' in order to obtain debug output from
45663 non-util/ code.
45664 * util/i386/pc/grub-setup.c (main): Likewise.
45665
45666 2008-02-08 Robert Millan <rmh@aybabtu.com>
45667
45668 * disk/raid.c (grub_raid_scan_device): Check for
45669 `array->device[sb.this_disk.number]' rather than for
45670 `array->device[sb.this_disk.number]->name', since the latter is not
45671 guaranteed to be accessible.
45672
45673 2008-02-08 Robert Millan <rmh@aybabtu.com>
45674
45675 * disk/raid.c: Update copyright.
45676 * fs/cpio.c: Likewise.
45677 * include/grub/raid.h: Likewise.
45678 * loader/i386/pc/multiboot.c: Likewise.
45679 * util/hostfs.c: Likewise.
45680
45681 2008-02-08 Robert Millan <rmh@aybabtu.com>
45682
45683 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
45684 to a grub_disk_t array.
45685 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
45686 `device[x]'.
45687 (grub_raid_scan_device): Replace `device[x].name' accesses with
45688 `device[x]->name'. Simplify initialization of `array->device[x]'.
45689
45690 2008-02-08 Robert Millan <rmh@aybabtu.com>
45691
45692 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
45693 grub_dprintf() calls.
45694 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
45695 error message.
45696
45697 2008-02-07 Christian Franke <franke@computer.org>
45698
45699 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
45700 instead of fseek and ftell to support large files.
45701 (grub_hostfs_read): Likewise.
45702
45703 2008-02-07 Robert Millan <rmh@aybabtu.com>
45704
45705 Patch from Jeroen Dekkers.
45706 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
45707 failure, since successfully reading all array members might not be
45708 required.
45709
45710 2008-02-06 Robert Millan <rmh@aybabtu.com>
45711
45712 * util/grub-probe.c (probe): Simplify partmap probing (with the
45713 assumption that the first word up to the underscore equals to
45714 the module name).
45715
45716 2008-02-06 Christian Franke <franke@computer.org>
45717
45718 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
45719 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
45720 last block of a cpio or tar stream.
45721 Check for "TRAILER!!!" instead of any empty data
45722 block to detect last block of a cpio stream.
45723 (grub_cpio_dir): Fix constness of variable np.
45724 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
45725 cpio or tar trailer is detected. This fixes a crash
45726 on open of a non existing file.
45727
45728 2008-02-05 Bean <bean123ch@gmail.com>
45729
45730 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
45731 address of entry.
45732 (grub_multiboot_load_elf64): Likewise.
45733 (grub_multiboot): Initialize mbi structure.
45734
45735 * util/grub-fstest.c: Don't include unused header file script.h.
45736
45737 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
45738 of file.
45739 (grub_fstest_SOURCES): Likewise.
45740
45741 2008-02-05 Robert Millan <rmh@aybabtu.com>
45742
45743 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
45744 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
45745 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
45746 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
45747
45748 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
45749 (translation_table): Replace hardcoded values with macros
45750 provided by `<grub/term.h>'.
45751
45752 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
45753 (keyboard_map): Correct/add a few values, with macros provided
45754 by `<grub/term.h>'.
45755 (keyboard_map_shift): Zero values that don't differ from their
45756 `keyboard_map' equivalents.
45757 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
45758 Discard the second scan code that is always sent by Caps lock.
45759 Only use `keyboard_map_shift' when it provides a non-zero value,
45760 otherwise fallback to `keyboard_map'.
45761
45762 2008-02-04 Bean <bean123ch@gmail.com>
45763
45764 * Makefile.in (enable_grub_fstest): New variable.
45765
45766 * conf/common.rmk (grub_fstest_init.lst): New rule.
45767 (grub_fstest_init.h): Likewise.
45768 (grub_fstest_init.c): Likewise.
45769 (util/grub-fstest.c_DEPENDENCIES): New variable.
45770 (grub_fstest_SOURCES): Likewise.
45771
45772 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
45773
45774 * util/grub-fstest.c: New file.
45775
45776 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45777
45778 Make grub-setup handle a separate root device.
45779
45780 * util/i386/pc/grub-setup.c (setup): Always open the root device,
45781 so that the root device can be compared with the destination
45782 device.
45783 When embedding the core image, if the root and destination devices
45784 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
45785 0xFF.
45786 When not embedding, set ROOT_DRIVE to 0xFF.
45787
45788 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45789
45790 Add support for having a grub directory in a different drive. This
45791 is still only the data handling part.
45792
45793 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
45794 (codestart): Save %dh in GRUB_ROOT_DRIVE.
45795 (grub_root_drive): New variable.
45796
45797 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
45798 instead of GRUB_BOOT_DRIVE to construct a device name. Set
45799 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
45800 as it was.
45801
45802 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
45803
45804 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
45805 macro.
45806 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
45807
45808 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
45809 is bogus, because PXE booting does not specify any drive
45810 correctly.
45811
45812 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
45813 am not sure if this is really correct.
45814
45815 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
45816 is always identical to the boot drive when booting from a CD.
45817
45818 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
45819 longer.
45820 (root_drive): New variable.
45821 (real_start): Unconditionally set %dh to ROOT_DRIVE.
45822 (setup_sectors): Push %dx right after popping it, because %dh will
45823 be modified later.
45824 (copy_buffer): Restore %dx.
45825
45826 2008-02-03 Robert Millan <rmh@aybabtu.com>
45827
45828 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
45829 use `cdboot.img' for cdrom images.
45830
45831 2008-02-03 Robert Millan <rmh@aybabtu.com>
45832
45833 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
45834 only setup gfxterm when `font' command has succeeded.
45835
45836 2008-02-03 Robert Millan <rmh@aybabtu.com>
45837
45838 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
45839 (grub_rescue_cmd_multiboot_loader)
45840 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
45841
45842 2008-02-03 Pavel Roskin <proski@gnu.org>
45843
45844 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
45845 %edx and %esi from stack only after grub_gate_a20() is called.
45846 grub_gate_a20() clobbers %edx.
45847
45848 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45849
45850 * configure.ac (AC_INIT): Bumped to 1.96.
45851
45852 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
45853 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
45854 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
45855 video/readers/png.c.
45856
45857 2008-02-03 Bean <bean123ch@gmail.com>
45858
45859 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
45860 (cdboot_img_SOURCES): New variable.
45861 (cdboot_img_ASFLAGS): New variable.
45862 (cdboot_img_LDFLAGS): New variable.
45863
45864 * boot/i386/pc/cdboot.S: New file.
45865
45866 * disk/i386/pc/biosdisk.c (cd_start): New variable.
45867 (cd_count): Likewise.
45868 (grub_biosdisk_get_drive): Add support for cd device.
45869 (grub_biosdisk_call_hook): Likewise.
45870 (grub_biosdisk_iterate): Likewise.
45871 (grub_biosdisk_open): Likewise.
45872 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
45873 (grub_biosdisk_rw): Support reading from cd device.
45874 (GRUB_MOD_INIT): Iterate cd devices.
45875
45876 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
45877 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
45878 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
45879
45880 * kern/i386/pc/init.c (make_install_device): Check for cd device.
45881
45882 2008-02-02 Robert Millan <rmh@aybabtu.com>
45883
45884 * commands/read.c: New file.
45885 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
45886 (read_mod_SOURCES): New variable.
45887 (read_mod_CFLAGS): Likewise.
45888 (read_mod_LDFLAGS): Likewise.
45889
45890 2008-02-02 Robert Millan <rmh@aybabtu.com>
45891
45892 * normal/main.c (grub_normal_execute): Check for `menu->size' when
45893 determining whether menu has to be displayed.
45894
45895 2008-02-02 Marco Gerards <marco@gnu.org>
45896
45897 * bus/pci.c: New file.
45898
45899 * include/grub/pci.h: Likewise.
45900
45901 * include/grub/i386/pc/pci.h: Likewise.
45902
45903 * commands/lspci.c: Likewise.
45904
45905 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
45906 `lspci.mod'.
45907 (pci_mod_SOURCES): New variable.
45908 (pci_mod_CFLAGS): Likewise.
45909 (pci_mod_LDFLAGS): Likewise.
45910 (lspci_mod_SOURCES): Likewise.
45911 (lspci_mod_CFLAGS): Likewise.
45912 (lspci_mod_LDFLAGS): Likewise.
45913
45914 2008-02-02 Bean <bean123ch@gmail.com>
45915
45916 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
45917 (grub_ufs_get_file_block): Fix indirect block calculation problem.
45918
45919 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
45920 (grub_xfs_btree_node): New structure.
45921 (grub_xfs_btree_root): New structure.
45922 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
45923 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
45924 (GRUB_XFS_EXTENT_BLOCK): Likewise.
45925 (GRUB_XFS_EXTENT_SIZE): Likewise.
45926 (grub_xfs_read_block): Support btree format type.
45927 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
45928 Use directory block as basic unit.
45929
45930 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
45931
45932 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
45933 __attribute__ ((__regparm__ (1))).
45934
45935 2008-02-01 Robert Millan <rmh@aybabtu.com>
45936
45937 Correct a mistake in previous commit.
45938
45939 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
45940 top.
45941 (normal/command.c_DEPENDENCIES): New variable.
45942
45943 2008-02-01 Robert Millan <rmh@aybabtu.com>
45944
45945 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
45946 top.
45947 (normal/command.c_DEPENDENCIES): New variable.
45948 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
45949 * conf/i386-ieee1275.rmk: Likewise.
45950 * conf/i386-linuxbios.rmk: Likewise.
45951 * conf/i386-pc.rmk: Likewise.
45952 * conf/sparc64-ieee1275.rmk: Likewise.
45953 * conf/powerpc-ieee1275.rmk: Likewise.
45954 (grub_emu_SOURCES): Add `fs/fshelp.c'.
45955
45956 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
45957
45958 2008-02-01 Robert Millan <rmh@aybabtu.com>
45959
45960 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
45961 call at beginning of function.
45962
45963 2008-01-31 Pavel Roskin <proski@gnu.org>
45964
45965 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
45966 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
45967 (grub_mkrescue_SOURCES): Likewise.
45968 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
45969
45970 2008-01-30 Robert Millan <rmh@aybabtu.com>
45971
45972 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
45973 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
45974 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
45975 (grub_probe_SOURCES): ... to here.
45976
45977 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
45978 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
45979 * conf/i386-ieee1275.rmk: Likewise.
45980 * conf/i386-linuxbios.rmk: Likewise.
45981 * conf/powerpc-ieee1275.rmk: Likewise.
45982
45983 2008-01-30 Tristan Gingold <gingold@free.fr>
45984
45985 * kern/rescue.c: Silently accept empty lines.
45986
45987 2008-01-29 Bean <bean123ch@gmail.com>
45988
45989 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
45990 (real_code_2): Code cleanup and change comment style.
45991 (move_memory): Avoid using 32-bit address mode.
45992
45993 2008-01-29 Bean <bean123ch@gmail.com>
45994
45995 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
45996 (png_mod_SOURCES): New variable.
45997 (png_mod_CFLAGS): Likewise.
45998 (png_mod_LDFLAGS): Likewise.
45999
46000 * video/readers/png.c: New file.
46001
46002 2008-01-28 Robert Millan <rmh@aybabtu.com>
46003
46004 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
46005 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
46006 `ifndef GRUB_MOD_GAP' hack.
46007 * util/elf/grub-mkimage.c (add_segments): Likewise.
46008
46009 2008-01-27 Robert Millan <rmh@aybabtu.com>
46010
46011 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
46012 `GRUB_MOD_GAP' for platforms in which it's not defined.
46013 * util/elf/grub-mkimage.c (add_segments): Likewise.
46014
46015 2008-01-27 Robert Millan <rmh@aybabtu.com>
46016
46017 Get grub-emu to build again (including parallel builds).
46018
46019 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
46020 Split into ...
46021 (util/grub-emu.c_DEPENDENCIES): ... this, ...
46022 (normal/execute.c_DEPENDENCIES): ... this, ...
46023 (grub-emu_DEPENDENCIES): ... and this.
46024
46025 * conf/i386-efi.rmk: Likewise.
46026 * conf/i386-linuxbios.rmk: Likewise.
46027 * conf/i386-ieee1275.rmk: Likewise.
46028 * conf/powerpc-ieee1275.rmk: Likewise.
46029 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
46030
46031 2008-01-27 Robert Millan <rmh@aybabtu.com>
46032
46033 * NEWS: Add a few items.
46034
46035 2008-01-27 Robert Millan <rmh@aybabtu.com>
46036
46037 Fix parallel builds with grub-emu. Based on earlier commit for
46038 grub-probe and grub-setup.
46039
46040 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46041 (util/grub-emu.c_DEPENDENCIES): ... this.
46042 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46043 (util/grub-emu.c_DEPENDENCIES): ... this.
46044 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46045 (util/grub-emu.c_DEPENDENCIES): ... this.
46046 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46047 (util/grub-emu.c_DEPENDENCIES): ... this.
46048 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46049 (util/grub-emu.c_DEPENDENCIES): ... this.
46050
46051 2008-01-27 Pavel Roskin <proski@gnu.org>
46052
46053 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
46054 to create a gap between _end and the modules added to the image
46055 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
46056 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
46057 * util/elf/grub-mkimage.c (add_segments): Likewise.
46058
46059 2008-01-26 Pavel Roskin <proski@gnu.org>
46060
46061 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
46062 just return an error.
46063
46064 2008-01-26 Bean <bean123ch@gmail.com>
46065
46066 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
46067 (grub_reiserfs_get_item): Save offset of the next item.
46068 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
46069
46070 2008-01-25 Robert Millan <rmh@aybabtu.com>
46071
46072 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
46073 make all filesystem sources appear together (possibly fixing omissions
46074 while at it).
46075 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
46076 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46077 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
46078 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46079
46080 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
46081 add `kern/file.c'.
46082 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
46083 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46084 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
46085 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46086
46087 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
46088 (probe): Add a sanity check to make sure of our ability to read
46089 requested files when probing for filesystem type.
46090
46091 * genmk.rb: Update copyright year (2007).
46092
46093 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
46094 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
46095 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
46096 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
46097 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
46098 : Remove function prototypes.
46099
46100 2008-01-25 Robert Millan <rmh@aybabtu.com>
46101
46102 Revert my previous commits (based on wrong assumption of how grub_errno
46103 works).
46104
46105 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
46106 * kern/file.c (grub_file_open): Likewise.
46107
46108 2008-01-24 Pavel Roskin <proski@gnu.org>
46109
46110 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
46111 that hang if GRUB tries to setup colors.
46112 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
46113 colors for firmwares that don't support it.
46114 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
46115 Recognize Open Hack'Ware, set flags to work around its
46116 limitations.
46117
46118 2008-01-24 Robert Millan <rmh@aybabtu.com>
46119
46120 * kern/file.c (grub_file_open): Do not account previous failures of
46121 unrelated functions when grub_errno is checked for.
46122 Reported by Oleg Strikov.
46123
46124 2008-01-24 Bean <bean123ch@gmail.com>
46125
46126 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
46127 (grub_ufs_sblock): New member volume name.
46128 (grub_ufs_find_file): Fix string copy bug.
46129 (grub_ufs_label): Implement this function properly.
46130
46131 * fs/hfs.c (grub_hfs_cnid_type): New enum.
46132 (grub_hfs_iterate_records): Use the correct file number for extents
46133 and catalog file. Fix problem in next index calculation.
46134 (grub_hfs_find_node): Replace recursive function call with loop.
46135 (grub_hfs_iterate_dir): Replace recursive function call with loop.
46136
46137 2008-01-23 Robert Millan <rmh@aybabtu.com>
46138
46139 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
46140 `<grub/symbol.h>' and `<grub/multiboot.h>'.
46141 (grub_multiboot2_real_boot): New function prototype.
46142
46143 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
46144 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
46145
46146 * kern/i386/ieee1275/init.c (grub_os_area_addr)
46147 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
46148
46149 2008-01-23 Robert Millan <rmh@aybabtu.com>
46150
46151 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
46152 #ifdef'ed out grub_printf().
46153
46154 2008-01-23 Robert Millan <rmh@aybabtu.com>
46155
46156 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
46157 grub_dprintf calls, since they make "debug=all" mode unusable.
46158 (grub_console_checkkey): Likewise.
46159
46160 2008-01-23 Robert Millan <rmh@aybabtu.com>
46161
46162 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
46163 `term/i386/pc/at_keyboard.c'.
46164 (pkglib_MODULES): Add `serial.mod'.
46165 (serial_mod_SOURCES): New variable.
46166 (serial_mod_CFLAGS): Likewise.
46167 (serial_mod_LDFLAGS): Likewise.
46168
46169 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
46170 `<grub/powerpc/ieee1275/console.h>'.
46171 (grub_keyboard_controller_init): New function prototype.
46172 (grub_console_checkkey): Likewise.
46173 (grub_console_getkey): Likewise.
46174
46175 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
46176 keyboard on i386.
46177
46178 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
46179 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
46180
46181 2008-01-23 Robert Millan <rmh@aybabtu.com>
46182
46183 * kern/i386/pc/init.c (make_install_device): When memdisk image is
46184 present, "(memdisk)/boot/grub" becomes the default prefix.
46185
46186 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
46187 a memdisk tarball with all the modules. Add --overlay=DIR option that
46188 allows users to overlay additional files into the image.
46189
46190 2008-01-23 Robert Millan <rmh@aybabtu.com>
46191
46192 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
46193 and `machine/memory.h'.
46194 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
46195 (_multiboot_mod_SOURCES): New variable.
46196 (_multiboot_mod_CFLAGS): Likewise.
46197 (_multiboot_mod_LDFLAGS): Likewise.
46198 (multiboot_mod_SOURCES): Likewise.
46199 (multiboot_mod_CFLAGS): Likewise.
46200 (multiboot_mod_LDFLAGS): Likewise.
46201
46202 * include/grub/i386/ieee1275/loader.h: New file.
46203
46204 * include/grub/i386/ieee1275/machine.h: Likewise.
46205
46206 * include/grub/i386/ieee1275/memory.h: Likewise.
46207
46208 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
46209 variable declaration.
46210 (grub_os_area_size): Likewise.
46211
46212 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
46213 (grub_lower_mem, grub_upper_mem): New variables.
46214 (grub_stop_floppy): New function (just to make
46215 grub_multiboot2_real_boot() happy).
46216
46217 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
46218 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
46219 (grub_stop): New function.
46220 Include `"../realmode.S"' and `"../loader.S"'.
46221
46222 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
46223 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
46224
46225 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
46226 rely on grub_multiboot2_real_boot() for final boot.
46227
46228 2008-01-22 Robert Millan <rmh@aybabtu.com>
46229
46230 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
46231 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
46232 device that doesn't look like an SD card.
46233 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
46234 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
46235 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
46236 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
46237 found.
46238
46239 2008-01-22 Robert Millan <rmh@aybabtu.com>
46240
46241 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
46242 avoid claiming over our own code.
46243
46244 2008-01-22 Bean <bean123ch@gmail.com>
46245
46246 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
46247 (jpeg_mod_SOURCES): New variable.
46248 (jpeg_mod_CFLAGS): Likewise.
46249 (jpeg_mod_LDFLAGS): Likewise.
46250
46251 * video/readers/jpeg.c : New file.
46252
46253 2008-01-22 Bean <bean123ch@gmail.com>
46254
46255 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
46256 there are no more items.
46257
46258 2008-01-21 Robert Millan <rmh@aybabtu.com>
46259
46260 * kern/mm.c (grub_mm_init_region): Improve debug message.
46261
46262 2008-01-21 Robert Millan <rmh@aybabtu.com>
46263
46264 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
46265 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
46266 address.
46267 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
46268 a C macro.
46269 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
46270 Indicates start of upper memory.
46271 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
46272 (generate_image): Abort when image size is big enough to corrupt
46273 upper memory.
46274
46275 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
46276 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
46277 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46278 instead of hardcoding 0xA0000.
46279 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
46280 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46281 instead of hardcoding 0xA0000.
46282
46283 2008-01-21 Robert Millan <rmh@aybabtu.com>
46284
46285 * disk/memdisk.c (memdisk_size): New variable.
46286 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
46287 `memdisk_size'.
46288 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
46289 image to dynamic memory.
46290 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
46291 `memdisk_size'. Free memdisk block.
46292
46293 2008-01-21 Robert Millan <rmh@aybabtu.com>
46294
46295 Fix detection of very small filesystems (like tar).
46296
46297 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
46298 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
46299 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
46300 a problem with this disk).
46301
46302 2008-01-21 Robert Millan <rmh@aybabtu.com>
46303
46304 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
46305 on grub_biosdisk_rw_standard() error.
46306
46307 2008-01-21 Robert Millan <rmh@aybabtu.com>
46308
46309 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
46310 recent changes.
46311 * kern/elf.c: Likewise.
46312 * kern/ieee1275/ieee1275.c: Likewise.
46313 * kern/powerpc/ieee1275/openfw.c: Likewise.
46314 * term/ieee1275/ofconsole.c: Likewise.
46315
46316 2008-01-21 Robert Millan <rmh@aybabtu.com>
46317
46318 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
46319
46320 * include/grub/kernel.h (grub_arch_memdisk_addr)
46321 (grub_arch_memdisk_size): Moved from here ...
46322
46323 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
46324 (grub_arch_memdisk_size): ... to here.
46325
46326 2008-01-21 Robert Millan <rmh@aybabtu.com>
46327
46328 Mostly based on bugfix from Bean.
46329
46330 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
46331 attribute with hook() parameter.
46332 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
46333 declaration.
46334 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
46335 attribute with hook() parameter.
46336 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
46337 declaration.
46338
46339 2008-01-21 Robert Millan <rmh@aybabtu.com>
46340
46341 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
46342 (pkglib_MODULES): Add `memdisk.mod'.
46343 (memdisk_mod_SOURCES): New variable.
46344 (memdisk_mod_CFLAGS): Likewise.
46345 (memdisk_mod_LDFLAGS): Likewise.
46346
46347 * disk/memdisk.c: New file.
46348
46349 * include/grub/disk.h (grub_disk_dev_id): Add
46350 `GRUB_DISK_DEVICE_MEMDISK_ID'.
46351
46352 * include/grub/i386/pc/kernel.h
46353 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
46354 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
46355 (grub_kernel_image_size): New variable declaration.
46356 (grub_total_module_size): Likewise.
46357 (grub_memdisk_image_size): Likewise.
46358
46359 * include/grub/i386/pc/memory.h
46360 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
46361
46362 * include/grub/kernel.h: Include `<grub/symbol.h>'.
46363 (grub_arch_memdisk_addr): New variable declaration.
46364 (grub_arch_memdisk_size): Likewise.
46365
46366 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
46367 (grub_arch_memdisk_size): Likewise.
46368
46369 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
46370 (codestart): Replace hardcoded `0x100000' with
46371 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
46372
46373 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
46374 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
46375 not NULL, append the contents of the file it refers to, at the end of
46376 the compressed kernel image. Initialize `grub_memdisk_image_size'
46377 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
46378 (options): Add "memdisk"|'m' option.
46379 (main): Parse --memdisk|-m option, and pass user-provided path as
46380 parameter to generate_image().
46381
46382 2008-01-20 Robert Millan <rmh@aybabtu.com>
46383
46384 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
46385 grub_dprintf() calls from here ...
46386 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
46387
46388 2008-01-20 Robert Millan <rmh@aybabtu.com>
46389
46390 Fix detection of "real mode" when /options/real-mode? doesn't exist.
46391
46392 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
46393 declaration.
46394 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
46395 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
46396 `GRUB_IEEE1275_FLAG_REAL_MODE'.
46397 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
46398 property).
46399 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
46400 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
46401
46402 2008-01-19 Robert Millan <rmh@aybabtu.com>
46403
46404 Get rid of confusing function (superseded by
46405 `grub_ieee1275_get_integer_property')
46406 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
46407 prototype.
46408 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
46409 function.
46410 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
46411 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
46412 in native endianness from grub_ieee1275_get_integer_property().
46413
46414 2008-01-19 Robert Millan <rmh@aybabtu.com>
46415
46416 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
46417 command after "shut-down", since implementations differ on which
46418 the command for halt is.
46419
46420 2008-01-19 Robert Millan <rmh@aybabtu.com>
46421
46422 * include/grub/i386/linuxbios/console.h: Add header protection.
46423 (grub_keyboard_controller_init): New function prototype.
46424 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
46425 (KEYBOARD_COMMAND_READ): Likewise.
46426 (KEYBOARD_COMMAND_WRITE): Likewise.
46427 (KEYBOARD_SCANCODE_SET1): Likewise.
46428 (grub_keyboard_controller_write): New function.
46429 (grub_keyboard_controller_read): Likewise.
46430 (grub_keyboard_controller_init): Likewise.
46431
46432 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
46433 (grub_console_init): On coreboot/LinuxBIOS, call
46434 grub_keyboard_controller_init().
46435
46436 2008-01-19 Robert Millan <rmh@aybabtu.com>
46437
46438 PowerPC changes provided by Pavel Roskin.
46439
46440 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
46441 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
46442 don't rely on cmain() doing it.
46443 * kern/i386/ieee1275/startup.S (_start): Store %eax in
46444 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
46445
46446 2008-01-16 Robert Millan <rmh@aybabtu.com>
46447
46448 * include/grub/i386/linuxbios/memory.h
46449 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
46450 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
46451 receive `table_header' as argument. Instead, probe for it in the
46452 known memory ranges where it can be present.
46453 (grub_available_iterate): Do not pass a fixed `table_header' address
46454 to grub_linuxbios_table_iterate().
46455
46456 2008-01-15 Robert Millan <rmh@aybabtu.com>
46457
46458 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
46459 * conf/i386-ieee1275.rmk: New file.
46460 * include/grub/i386/ieee1275/console.h: Likewise.
46461 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
46462 * include/grub/i386/ieee1275/kernel.h: Likewise.
46463 * include/grub/i386/ieee1275/time.h: Likewise.
46464 * kern/i386/ieee1275/init.c: Likewise.
46465 * kern/i386/ieee1275/startup.S: Likewise.
46466
46467 2008-01-15 Robert Millan <rmh@aybabtu.com>
46468
46469 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
46470 when pointers are 32-bit (but still do set it to one when they are
46471 64-bit).
46472
46473 2008-01-15 Robert Millan <rmh@aybabtu.com>
46474
46475 * include/grub/ieee1275/ieee1275.h
46476 (grub_ieee1275_get_integer_property): New function prototype.
46477
46478 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
46479 (grub_ieee1275_get_integer_property): New function. Wraps around
46480 grub_ieee1275_get_property() to handle endianness.
46481
46482 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
46483 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
46484 where appropriate.
46485 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
46486 (grub_map): Likewise.
46487 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
46488
46489 2008-01-15 Bean <bean123ch@gmail.com>
46490
46491 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
46492 (grub_script_execute_cmdline): Reset grub_errno.
46493
46494 * normal/main.c (read_config_file): Reset grub_errno.
46495
46496 * normal/parse.y (script_init): New.
46497 (script): Move function and menuentry here.
46498 (delimiter): New.
46499 (command): Add delimiter at the end of command.
46500 (commands): Adjust to match the new command.
46501 (commandblock): Remove grub_script_lexer_record_start.
46502 (menuentry): Add grub_script_lexer_record_start, use the new commands.
46503 (if): Use the new commands.
46504
46505 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
46506
46507 2008-01-15 Robert Millan <rmh@aybabtu.com>
46508
46509 * normal/menu.c (run_menu): Move timeout message from here ...
46510 (print_timeout): ... to here.
46511 (run_menu): Use print_timeout() once during initial draw to print
46512 the whole message, and again in every clock tick to update only
46513 the number of seconds.
46514
46515 2008-01-15 Robert Millan <rmh@aybabtu.com>
46516
46517 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
46518 actual size of `available' from grub_ieee1275_get_property(), and
46519 restrict parsing to that bound.
46520
46521 2008-01-15 Christian Franke <franke@computer.org>
46522
46523 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
46524 (argp_program_version): Remove variable.
46525 (argp_program_bug_address): Likewise.
46526 (options): Convert from struct argp_option to struct option.
46527 (struct arguments): Remove.
46528 (parse_opt): Remove.
46529 (usage): New function.
46530 (main): Replace struct args members by simple variables.
46531 Replace argp_parse() by getopt_long().
46532 Add switch to evaluate options.
46533 Add missing "(...)" around root_dev in prefix string.
46534
46535 2008-01-14 Robert Millan <rmh@aybabtu.com>
46536
46537 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
46538 for grub_ieee1275_exit(), in order to improve portability.
46539
46540 2008-01-14 Robert Millan <rmh@aybabtu.com>
46541
46542 * util/grub.d/10_linux.in (prefix): Define.
46543 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
46544
46545 2008-01-13 Pavel Roskin <proski@gnu.org>
46546
46547 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
46548 grub_errno if no errors have been detected.
46549
46550 2008-01-12 Robert Millan <rmh@aybabtu.com>
46551
46552 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
46553 (grub_util_get_dev_abstraction): New function prototype.
46554
46555 * util/getroot.c: Include `<grub/util/getroot.h>'
46556 (grub_util_get_grub_dev): Move detection of abstraction type to ...
46557 (grub_util_get_dev_abstraction): ... here (new function).
46558
46559 * util/grub-probe.c: Convert PRINT_* to an enum. Add
46560 `PRINT_ABSTRACTION'.
46561 (probe): Probe for abstraction type when requested.
46562 (main): Understand `--target=abstraction'.
46563
46564 * util/i386/efi/grub-install.in: Add abstraction module to core
46565 image when it is found to be necessary.
46566 * util/i386/pc/grub-install.in: Likewise.
46567 * util/powerpc/ieee1275/grub-install.in: Likewise.
46568
46569 * util/update-grub_lib.in (font_path): Return system path without
46570 converting to GRUB path.
46571 * util/update-grub.in: Convert system path returned by font_path()
46572 to a GRUB path. Use `grub-probe -t abstraction' to determine what
46573 abstraction module is needed for loading fonts (if any). Export
46574 that as `GRUB_PRELOAD_MODULES'.
46575 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
46576 insmod commands).
46577
46578 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
46579
46580 Remove some unused code from reiserfs.
46581
46582 * fs/reiserfs.c (struct grub_reiserfs_key)
46583 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
46584 (struct grub_reiserfs_node_body): Removed.
46585 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46586 Likewise.
46587 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46588 Likewise.
46589 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46590 Likewise.
46591 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46592 Likewise.
46593 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46594 Likewise.
46595 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
46596 Likewise.
46597 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46598 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46599 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46600
46601 2008-01-10 Robert Millan <rmh@aybabtu.com>
46602
46603 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
46604 Determines if a file is garbage left by packaging systems, etc.
46605 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
46606 for processing /etc/grub.d scripts.
46607 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
46608 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
46609 as a condition for processing Linux images.
46610
46611 2008-01-10 Pavel Roskin <proski@gnu.org>
46612
46613 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
46614 to compile reiserfs.c on PowerPC.
46615
46616 2008-01-10 Robert Millan <rmh@aybabtu.com>
46617
46618 * kern/device.c (grub_device_iterate): Do not abort device iteration
46619 when one of the devices cannot be opened.
46620 * kern/disk.c (grub_disk_open): Do not account previous failures of
46621 unrelated functions when grub_errno is checked for.
46622
46623 2008-01-08 Robert Millan <rmh@aybabtu.com>
46624
46625 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
46626 `! grub_linux_is_bzimage', change order of address comparison to make
46627 it more intuitive, and improve "too big zImage" error message.
46628
46629 2008-01-08 Robert Millan <rmh@aybabtu.com>
46630
46631 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
46632 `$(update-grub_DATA)'.
46633 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
46634 targets.
46635
46636 2008-01-07 Robert Millan <rmh@aybabtu.com>
46637
46638 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
46639 which instruction is modified by grub-setup during installation
46640 (since it wasn't obvious by only looking at this file).
46641
46642 2008-01-07 Robert Millan <rmh@aybabtu.com>
46643
46644 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
46645 listing actual TODO items.
46646
46647 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46648
46649 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
46650 correctly.
46651 (grub_reiserfs_get_key_offset): Likewise.
46652 (grub_reiserfs_set_key_offset): Likewise.
46653 (grub_reiserfs_set_key_type): Likewise.
46654 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
46655
46656 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
46657 better to remove the bitfield version completely.
46658
46659 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46660
46661 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
46662 allocated from the heap, due to the fshelp implementation.
46663 (grub_reiserfs_dir): Free NODE, due to the same reason.
46664
46665 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46666
46667 Mostly from Vincent Pelletier:
46668
46669 * fs/reiserfs.c: New file.
46670
46671 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
46672 (reiserfs_mod_SOURCES): New variable.
46673 (reiserfs_mod_CFLAGS): Likewise.
46674 (reiserfs_mod_LDFLAGS): Likewise.
46675
46676 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
46677 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
46678 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
46679 normal/color.c.
46680
46681 2008-01-06 Robert Millan <rmh@aybabtu.com>
46682
46683 * normal/color.c: Remove `<grub/env.h>'.
46684
46685 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
46686
46687 * include/grub/normal.h: Include <grub/env.h>.
46688
46689 2008-01-05 Robert Millan <rmh@aybabtu.com>
46690
46691 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
46692 usage example with `(hd0,1)'.
46693 Reported by Samuel Thibault.
46694
46695 2008-01-05 Robert Millan <rmh@aybabtu.com>
46696
46697 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
46698 (grub_linux_boot_zimage): Rename to ...
46699 (grub_linux_boot): ... this.
46700 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
46701 (grub_linux_boot_zimage): Conditionalize zImage copy.
46702
46703 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
46704 (grub_linux_boot_bzimage): Remove prototype.
46705 (grub_linux_boot_zimage): Rename to ...
46706 (grub_linux_boot): ... this.
46707
46708 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
46709 (grub_linux_boot): Remove function.
46710
46711 2008-01-05 Robert Millan <rmh@aybabtu.com>
46712
46713 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
46714 (grub_env_write_color_highlight): Likewise.
46715 (grub_wait_after_message): Likewise.
46716
46717 * normal/color.c: New file.
46718
46719 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46720 (normal_mod_DEPENDENCIES): Likewise.
46721
46722 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46723 (normal_mod_DEPENDENCIES): Likewise.
46724
46725 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46726 (normal_mod_DEPENDENCIES): Likewise.
46727
46728 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46729 (normal_mod_DEPENDENCIES): Likewise.
46730
46731 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
46732 for waiting after a message is printed.
46733 * normal/main.c (read_config_file): Likewise.
46734 (grub_normal_init): Register grub_env_write_color_normal() and
46735 grub_env_write_color_highlight() hooks. Mark `color_normal' and
46736 `color_highlight' variables as global.
46737
46738 * normal/menu.c (grub_wait_after_message): New function.
46739 (grub_color_menu_normal): New variable. Replaces ...
46740 (GRUB_COLOR_MENU_NORMAL): ... this macro.
46741 (grub_color_menu_highlight): New variable. Replaces ...
46742 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
46743 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
46744 `GRUB_TERM_COLOR_STANDARD'.
46745 (print_message): Use `grub_setcolorstate' to reload colors. Rename
46746 `normal_code' and `highlight_code' to `old_color_normal' and
46747 `old_color_highlight', respectively.
46748 (grub_menu_init_page): Update colors when drawing the menu, based on
46749 `menu_color_normal' and `menu_color_highlight' variables.
46750 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
46751 a message is printed.
46752
46753 2008-01-05 Robert Millan <rmh@aybabtu.com>
46754
46755 * kern/env.c (grub_env_context_open): Propagate hooks for global
46756 variables to new context.
46757
46758 * kern/main.c (grub_set_root_dev): Export `root' variable.
46759
46760 2008-01-05 Robert Millan <rmh@aybabtu.com>
46761
46762 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
46763 discs unconditionally, since udev and others have options to provide
46764 them.
46765
46766 2008-01-05 Robert Millan <rmh@aybabtu.com>
46767
46768 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
46769
46770 2008-01-04 Christian Franke <franke@computer.org>
46771
46772 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
46773 of eisa_mmap.
46774
46775 2008-01-03 Pavel Roskin <proski@gnu.org>
46776
46777 * kern/i386/linuxbios/init.c: Put "void" to all function
46778 declarations with no arguments.
46779 * kern/powerpc/ieee1275/init.c: Likewise.
46780 * term/i386/pc/at_keyboard.c: Likewise.
46781 * term/i386/pc/vga_text.c: Likewise.
46782 * util/grub-mkdevicemap.c: Likewise.
46783
46784 2008-01-02 Robert Millan <rmh@aybabtu.com>
46785
46786 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
46787 message when loaded image is out of bounds.
46788 (grub_multiboot_load_elf64): Likewise.
46789
46790 2008-01-02 Pavel Roskin <proski@gnu.org>
46791
46792 * util/grub.d/10_linux.in: Try version without ".old" when
46793 looking for initrd. It's better to use initrd from the newer
46794 kernel of the same version than no initrd at all.
46795
46796 2008-01-01 Robert Millan <rmh@aybabtu.com>
46797
46798 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
46799
46800 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
46801
46802 * include/grub/video.h: Added grub_video_unmap_color and
46803 grub_video_get_active_render_target.
46804 (grub_video_adapter): Added unmap_color and get_active_render_target.
46805
46806 * video/video.c: Added grub_video_unmap_color and
46807 grub_video_get_active_render_target.
46808 (grub_video_get_info): Changed method to accept NULL pointer as an
46809 argument to allow detection of active video adapter.
46810
46811 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
46812 grub_video_vbe_unmap_color_int.
46813 Added grub_video_vbe_unmap_color and
46814 grub_video_vbe_get_active_render_target.
46815 (grub_video_vbe_adapter): Added unmap_color and
46816 get_active_render_target.
46817
46818 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
46819 with grub_video_vbe_unmap_color_int.
46820
46821 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
46822 (DEFAULT_NORMAL_COLOR): Likewise.
46823 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
46824 (DEFAULT_FG_COLOR): Removed.
46825 (DEFAULT_BG_COLOR): Likewise.
46826 (DEFAULT_CURSOR_COLOR): Changed value.
46827 (grub_virtual_screen): Added standard_color_setting,
46828 normal_color_setting, highlight_color_setting and term_color.
46829 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
46830 (bitmap_width): Added.
46831 (bitmap_height): Likewise.
46832 (bitmap): Likewise.
46833 (set_term_color): Likewise.
46834 (grub_virtual_screen_setup): Changed to use new terminal coloring
46835 settings.
46836 (grub_gfxterm_init): Added init for bitmap.
46837 (grub_gfxterm_fini): Added destroy for bitmap.
46838 (redraw_screen_rect): Updated to use background bitmap and new
46839 terminal coloring.
46840 (scroll_up): Added optimization for case when there is no bitmap.
46841 (grub_gfxterm_cls): Fixed to use correct background color.
46842 (grub_virtual_screen_setcolorstate): Changed to use new terminal
46843 coloring.
46844 (grub_virtual_screen_setcolor): Likewise.
46845 (grub_virtual_screen_getcolor): Added.
46846 (grub_gfxterm_background_image_cmd): Likewise.
46847 (grub_video_term): Added setcolor and getcolor.
46848 (MOD_INIT): Added registration of background_image command.
46849 (MOD_TERM): Added unregistration for background_image command.
46850
46851 2007-12-30 Pavel Roskin <proski@gnu.org>
46852
46853 * loader/multiboot_loader.c: Fix multiboot command
46854 unregistration. Fix all typos in the word "multiboot".
46855
46856 2007-12-29 Pavel Roskin <proski@gnu.org>
46857
46858 * util/grub.d/10_linux.in: Refactor search for initrd. Add
46859 support for initrd names used in Fedora.
46860
46861 2007-12-26 Bean <bean123ch@gmail.com>
46862
46863 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
46864 (cpio_mod_SOURCES): New variable.
46865 (cpio_mod_CFLAGS): Likewise.
46866 (cpio_mod_LDFLAGS): Likewise.
46867
46868 * fs/cpio.c: New file.
46869
46870 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
46871
46872 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
46873
46874 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
46875
46876 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46877
46878 2007-12-25 Robert Millan <rmh@aybabtu.com>
46879
46880 * include/grub/term.h (struct grub_term): Add `getcolor' function.
46881 (grub_getcolor): New function.
46882
46883 * kern/term.c (grub_getcolor): New function.
46884 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
46885 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
46886 (print_entry): Set normal and highlight colors to
46887 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
46888 respectively, before printing and restore them to old
46889 values afterwards.
46890 (grub_menu_init_page): Likewise. Fill an additional colored space
46891 that would otherwise be left blank.
46892
46893 * term/efi/console.c (grub_console_getcolor): New function.
46894 (struct grub_console_term.getcolor): New variable.
46895 * term/i386/pc/console.c (grub_console_getcolor): New function.
46896 (struct grub_console_term.getcolor): New variable.
46897 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
46898 (struct grub_console_term.getcolor): New variable.
46899
46900 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
46901 (struct grub_console_term.setcolor): Remove variable.
46902 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
46903 (struct grub_console_term.setcolor): Remove variable.
46904 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
46905 (struct grub_console_term.setcolor): Remove variable.
46906 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
46907 (struct grub_console_term.setcolor): Remove variable.
46908
46909 2007-12-25 Robert Millan <rmh@aybabtu.com>
46910
46911 * configure.ac: Search for possible unifont.hex locations, and
46912 define UNIFONT_HEX if found.
46913
46914 * Makefile.in (UNIFONT_HEX): Define variable.
46915 (DATA): Rename to ...
46916 (PKGLIB): ... this. Update all users.
46917 (PKGDATA): New variable.
46918 (pkgdata_IMAGES): Rename to ...
46919 (pkglib_IMAGES): ... this. Update all users.
46920 (pkgdata_MODULES): Rename to ...
46921 (pkglib_MODULES): ... this. Update all users.
46922 (pkgdata_PROGRAMS): Rename to ...
46923 (pkglib_PROGRAMS): ... this. Update all users.
46924 (pkgdata_DATA): Rename to ...
46925 (pkglib_DATA): ... this. Update all users.
46926 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
46927 (unicode.pff, ascii.pff): New rules.
46928 (all-local): Add `$(PKGDATA)' dependency.
46929 (install-local): Process `$(PKGDATA)'.
46930
46931 * util/update-grub_lib.in (font_path): Search for *.pff files in
46932 a few more locations, including `${pkgdata}'.
46933
46934 2007-12-23 Robert Millan <rmh@aybabtu.com>
46935
46936 Patch from Bean <bean123ch@gmail.com>:
46937 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
46938 `size'.
46939
46940 2007-12-21 Bean <bean123ch@gmail.com>
46941
46942 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
46943 (ntfscomp_mod_SOURCES): New variable.
46944 (ntfscomp_mod_CFLAGS): Likewise.
46945 (ntfscomp_mod_LDFLAGS): Likewise.
46946
46947 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
46948 (grub_probe_SOURCES): Likewise.
46949 (grub_emu_SOURCES): Likewise.
46950
46951 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
46952 (grub_emu_SOURCES): Likewise.
46953
46954 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
46955 (grub_emu_SOURCES): Likewise.
46956
46957 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
46958 (grub_emu_SOURCES): Likewise.
46959
46960 * fs/ntfs.c (grub_ntfscomp_func): New variable.
46961 (read_run_list): Renamed to grub_ntfs_read_run_list.
46962 (decomp_nextvcn): Moved to ntfscomp.c.
46963 (decomp_getch): Likewise.
46964 (decomp_get16): Likewise.
46965 (decomp_block): Likewise.
46966 (read_block): Likewise.
46967 (read_data): Partially moved to ntfscomp.c.
46968 (fixup): Change unsigned to grub_uint16_t.
46969 (read_mft): Change unsigned long to grub_uint32_t.
46970 (read_attr): Likewise.
46971 (read_data): Likewise.
46972 (read_run_data): Likewise.
46973 (read_run_list): Likewise.
46974 (read_mft): Likewise.
46975
46976 * fs/ntfscomp.c: New file.
46977
46978 * include/grub/ntfs.h: New file.
46979
46980 2007-12-16 Robert Millan <rmh@aybabtu.com>
46981
46982 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
46983 IDE disk check, since Linux is known to support 20 IDE disks.
46984 Reported by Colin Watson.
46985
46986 2007-12-15 Bean <bean123ch@gmail.com>
46987
46988 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
46989 (lnxboot_img_SOURCES): New variable.
46990 (lnxboot_img_ASFLAGS): Likewise.
46991 (lnxboot_img_LDFLAGS): Likewise.
46992
46993 * boot/i386/pc/lnxboot.S: New file.
46994
46995 2007-11-24 Pavel Roskin <proski@gnu.org>
46996
46997 * configure.ac: Test if '--build-id=none' is supported by the
46998 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
46999 objcopy to generate incorrect binary files (binutils
47000 2.17.50.0.18-1 as shipped by Fedora 8).
47001 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
47002 linking, so that build ID doesn't break the test.
47003
47004 2007-11-24 Pavel Roskin <proski@gnu.org>
47005
47006 * include/grub/i386/time.h: use "void" in the argument list
47007 of grub_cpu_idle().
47008 * include/grub/powerpc/time.h: Likewise.
47009 * include/grub/sparc64/time.h: Likewise.
47010
47011 2007-11-18 Christian Franke <franke@computer.org>
47012
47013 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
47014 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
47015 This fixes the problem that function keys did not work in grub-emu.
47016
47017 2007-11-18 Christian Franke <franke@computer.org>
47018
47019 * disk/host.c (grub_host_open): Remove attribute unused from
47020 name parameter. Add check for "host". This fixes the problem
47021 that grub-emu does not find partitions.
47022
47023 2007-11-18 Christian Franke <franke@computer.org>
47024
47025 * util/hostfs.c (is_dir): New function.
47026 (grub_hostfs_dir): Handle missing dirent.d_type case.
47027 (grub_hostfs_read): Add missing fseek().
47028 (grub_hostfs_label): Clear label pointer. This fixes a crash
47029 of grub-emu on "ls (host)".
47030
47031 2007-11-18 Christian Franke <franke@computer.org>
47032
47033 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
47034 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
47035 to 64 bit boundary by default.
47036
47037 2007-11-18 Bean <bean123ch@gmail.com>
47038
47039 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
47040 (hexdump_mod_SOURCES): New variable.
47041 (hexdump_mod_CFLAGS): Likewise.
47042 (hexdump_mod_LDFLAGS): Likewise.
47043
47044 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47045
47046 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47047
47048 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47049
47050 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47051
47052 * include/grub/hexdump.h: New file.
47053
47054 * commands/hexdump.c: New file.
47055
47056 2007-11-10 Robert Millan <rmh@aybabtu.com>
47057
47058 * commands/i386/pc/play.c (beep_off): Switch order of arguments
47059 in grub_outb() calls.
47060 (beep_on): Likewise.
47061
47062 2007-11-10 Christian Franke <franke@computer.org>
47063
47064 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
47065 (grub_menu_run): Likewise.
47066
47067 2007-11-10 Robert Millan <rmh@aybabtu.com>
47068
47069 * include/grub/i386/efi/machine.h: New file.
47070 * include/grub/i386/linuxbios/machine.h: Likewise.
47071 * include/grub/i386/pc/machine.h: Likewise.
47072 * include/grub/powerpc/ieee1275/machine.h: Likewise.
47073 * include/grub/sparc64/ieee1275/machine.h: Likewise.
47074
47075 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
47076 (serial_hw_io_addr): New variable.
47077 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
47078 instead of `(unsigned short *) 0x400'.
47079
47080 2007-11-10 Bean <bean123ch@gmail.com>
47081
47082 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
47083
47084 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47085
47086 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
47087 (vga_mod_SOURCES): Added.
47088 (vga_mod_CFLAGS): Likewise.
47089 (vga_mod_LDFLAGS): Likewise.
47090
47091 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
47092 grub_outb() calls.
47093 (set_map_mask): Likewise.
47094 (set_read_map): Likewise.
47095 (set_read_address): Likewise.
47096 (vga_font): Removed variable.
47097 (get_vga_glyph): Removed function.
47098 (invalidate_char): Likewise.
47099 (write_char): Changed to use grub_font_get_glyph() for font
47100 information.
47101 (grub_vga_putchar): Likewise.
47102 (grub_vga_getcharwidth): Likewise.
47103
47104 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47105
47106 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
47107 flags.
47108 (pxeboot_img_LDFLAGS): Likewise.
47109 (diskboot_img_LDFLAGS): Likewise.
47110 (kernel_img_LDFLAGS): Likewise.
47111
47112 2007-11-06 Robert Millan <rmh@aybabtu.com>
47113
47114 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
47115 in grub_outb() calls.
47116 (serial_hw_init): Likewise.
47117
47118 2007-11-05 Robert Millan <rmh@aybabtu.com>
47119
47120 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
47121 spaces. Skip non-regular files.
47122
47123 2007-11-05 Robert Millan <rmh@aybabtu.com>
47124
47125 * kern/disk.c (grub_disk_firmware_fini)
47126 (grub_disk_firmware_is_tainted): New variables.
47127
47128 * include/grub/disk.h (grub_disk_firmware_fini)
47129 (grub_disk_firmware_is_tainted): Likewise.
47130
47131 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
47132 (grub_disk_biosdisk_fini): ... to here.
47133 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
47134 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
47135 is set. Register grub_disk_biosdisk_fini() in
47136 `grub_disk_firmware_fini'.
47137
47138 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
47139 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
47140 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
47141 to finish existing firmware disk interface.
47142
47143 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
47144 (ata_mod_SOURCES): New variable.
47145 (ata_mod_CFLAGS): Likewise.
47146 (ata_mod_LDFLAGS): Likewise.
47147
47148 2007-11-05 Robert Millan <rmh@aybabtu.com>
47149
47150 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
47151 (grub_ata_wait): Reimplement using grub_millisleep().
47152
47153 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
47154 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
47155
47156 2007-11-03 Marco Gerards <marco@gnu.org>
47157
47158 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
47159 (CRTC_ADDR_PORT): New macro.
47160 (CRTC_DATA_PORT): Likewise.
47161 (CRTC_CURSOR): Likewise.
47162 (CRTC_CURSOR_ADDR_HIGH): Likewise.
47163 (CRTC_CURSOR_ADDR_LOW): Likewise.
47164 (update_cursor): New function.
47165 (grub_console_real_putchar): Call `update_cursor'.
47166 (grub_console_gotoxy): Likewise.
47167 (grub_console_cls): Set the default color when clearing the
47168 screen.
47169 (grub_console_setcursor): Implemented.
47170
47171 2007-11-03 Marco Gerards <marco@gnu.org>
47172
47173 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
47174 become activate.
47175 (grub_ata_pio_write): Likewise.
47176
47177 (grub_atapi_identify): Wait after issuing an ATA command.
47178 (grub_atapi_packet): Likewise.
47179 (grub_ata_identify): Likewise.
47180 (grub_ata_readwrite): Likewise.
47181
47182 2007-11-03 Marco Gerards <marco@gnu.org>
47183
47184 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
47185 (grub_ata_pio_write): Likewise.
47186 (grub_ata_readwrite): Use `grub_error', instead of
47187 returning `grub_errno'.
47188
47189 2007-11-03 Marco Gerards <marco@gnu.org>
47190
47191 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
47192 grub_ata_pio_write once for every single sector, instead of for
47193 multiple sectors.
47194
47195 2007-10-31 Robert Millan <rmh@aybabtu.com>
47196
47197 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
47198
47199 * conf/i386-linuxbios.rmk: New file.
47200
47201 * kern/i386/pc/hardware.c: Likewise.
47202 * term/i386/pc/at_keyboard.c: Likewise.
47203 * term/i386/pc/vga_text.c: Likewise.
47204
47205 * include/grub/i386/linuxbios/boot.h: Likewise.
47206 * include/grub/i386/linuxbios/console.h: Likewise.
47207 * include/grub/i386/linuxbios/init.h: Likewise.
47208 * include/grub/i386/linuxbios/kernel.h: Likewise.
47209 * include/grub/i386/linuxbios/loader.h: Likewise.
47210 * include/grub/i386/linuxbios/memory.h: Likewise.
47211 * include/grub/i386/linuxbios/serial.h: Likewise.
47212 * include/grub/i386/linuxbios/time.h: Likewise.
47213
47214 * kern/i386/linuxbios/init.c: Likewise.
47215 * kern/i386/linuxbios/startup.S: Likewise.
47216 * kern/i386/linuxbios/table.c: Likewise.
47217
47218 2007-10-31 Marco Gerards <marco@gnu.org>
47219
47220 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
47221 (ata_mod_SOURCES): New variable.
47222 (ata_mod_CFLAGS): Likewise.
47223 (ata_mod_LDFLAGS): Likewise.
47224
47225 * disk/ata.c: New file.
47226
47227 * include/grub/disk.h (grub_disk_dev_id): Add
47228 `GRUB_DISK_DEV_ATA_ID'.
47229
47230 2007-10-31 Robert Millan <rmh@aybabtu.com>
47231
47232 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
47233 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
47234
47235 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
47236 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
47237
47238 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
47239 `<grub/types.h>'.
47240
47241 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
47242
47243 2007-10-27 Robert Millan <rmh@aybabtu.com>
47244
47245 * include/grub/types.h (ULONG_MAX): Define macro.
47246
47247 2007-10-22 Robert Millan <rmh@aybabtu.com>
47248
47249 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
47250 `"../realmode.S"'.
47251 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
47252
47253 2007-10-22 Robert Millan <rmh@aybabtu.com>
47254
47255 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
47256 (pkgdata_MODULES): Add `biosdisk.mod'.
47257 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
47258 variables.
47259
47260 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
47261 (grub_biosdisk_init): Replace with ...
47262 (GRUB_MOD_INIT(biosdisk)): ... this.
47263 (grub_biosdisk_fini): Replace with ...
47264 (GRUB_MOD_FINI(biosdisk)): ... this.
47265
47266 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
47267 (grub_machine_init): Remove call to grub_biosdisk_init().
47268 (grub_machine_fini): Remove call to grub_machine_fini().
47269
47270 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
47271
47272 2007-10-22 Robert Millan <rmh@aybabtu.com>
47273
47274 * include/grub/time.h: New file.
47275 * include/grub/i386/time.h: Likewise.
47276 * include/grub/powerpc/time.h: Likewise.
47277 * include/grub/sparc64/time.h: Likewise.
47278
47279 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
47280 instances to ...
47281 (KERNEL_MACHINE_TIME_HEADER): ... this.
47282 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47283 instances to ...
47284 (KERNEL_MACHINE_TIME_HEADER): ... this.
47285 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47286 instances to ...
47287 (KERNEL_MACHINE_TIME_HEADER): ... this.
47288
47289 * kern/i386/efi/init.c: Include `<grub/time.h>'.
47290 (grub_millisleep): New function.
47291 * kern/i386/pc/init.c: Include `<grub/time.h>'.
47292 (grub_millisleep): New function.
47293 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
47294 Remove `grub/machine/time.h' include.
47295 (grub_millisleep): New function.
47296 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
47297 Remove `grub/machine/time.h' include.
47298 (grub_millisleep): New function.
47299
47300 * include/grub/misc.h (grub_div_roundup): New function.
47301
47302 * kern/misc.c: Include `<grub/time.h>'.
47303 (grub_millisleep_generic): New function.
47304
47305 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
47306 Add `time.h'.
47307 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
47308 Add `time.h'.
47309 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
47310 `machine/time.h'. Add `time.h'.
47311 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
47312
47313 2007-10-21 Robert Millan <rmh@aybabtu.com>
47314
47315 * include/grub/misc.h (grub_max): New function.
47316
47317 2007-10-21 Robert Millan <rmh@aybabtu.com>
47318
47319 * util/misc.c (grub_util_info): Call fflush() before returning.
47320
47321 2007-10-20 Robert Millan <rmh@aybabtu.com>
47322
47323 * genmk.rb (Image): Copy `extra_flags' from here ...
47324 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
47325
47326 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
47327 to `argc' and `args' arguments.
47328
47329 2007-10-17 Robert Millan <rmh@aybabtu.com>
47330
47331 * kern/i386/loader.S: New file.
47332
47333 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
47334 * kern/i386/loader.S (grub_linux_prot_size)... to here.
47335 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
47336 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
47337 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
47338 * kern/i386/loader.S (grub_linux_real_addr)... to here.
47339 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
47340 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
47341 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
47342 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
47343 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
47344 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
47345 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
47346 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
47347
47348 * kern/i386/realmode.S: New file.
47349
47350 * kern/i386/pc/startup.S (protstack): Moved from here ...
47351 * kern/i386/realmode.S (protstack)... to here.
47352 * kern/i386/pc/startup.S (gdt): Moved from here ...
47353 * kern/i386/realmode.S (gdt)... to here.
47354 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
47355 * kern/i386/realmode.S (prot_to_real)... to here.
47356
47357 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
47358 `kern/i386/realmode.S'.
47359
47360 2007-10-17 Robert Millan <rmh@aybabtu.com>
47361
47362 * include/grub/i386/loader.h: New file.
47363
47364 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
47365 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47366 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47367 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47368 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
47369 * include/grub/i386/loader.h (grub_linux_prot_size)
47370 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47371 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47372 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47373 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
47374
47375 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
47376
47377 2007-10-15 Robert Millan <rmh@aybabtu.com>
47378
47379 * normal/misc.c (grub_normal_print_device_info): Do not probe for
47380 filesystem when dev->disk is unset.
47381 Do probe for filesystem even when dev->disk->has_partitions is set.
47382 In case a filesystem is found, always report it.
47383 In case it isn't, if dev->disk->has_partitions is set, report that
47384 a partition table was found instead of reporting that no filesystem
47385 could be identified.
47386
47387 2007-10-12 Robert Millan <rmh@aybabtu.com>
47388
47389 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
47390 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
47391
47392 * include/grub/types.h (grub_host_to_target16): New macro.
47393 (grub_host_to_target32): Likewise.
47394 (grub_host_to_target64): Likewise.
47395 (grub_target_to_host16): Likewise.
47396 (grub_target_to_host32): Likewise.
47397 (grub_target_to_host64): Likewise.
47398
47399 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
47400 Renamed from to ...
47401 (GRUB_MOD_ALIGN): ...this. Update all users.
47402
47403 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
47404 grub_host_to_target32.
47405 Replace grub_be_to_cpu32 with grub_target_to_host32.
47406 (load_modules): Likewise.
47407 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
47408 Replace grub_be_to_cpu32 with grub_target_to_host32.
47409 Replace grub_cpu_to_be16 with grub_host_to_target16.
47410 Replace grub_cpu_to_be32 grub_host_to_target32.
47411
47412 2007-10-12 Robert Millan <rmh@aybabtu.com>
47413
47414 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
47415 * util/elf/grub-mkimage.c: ... here.
47416
47417 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
47418 `util/powerpc/ieee1275/grub-mkimage.c'.
47419
47420 2007-10-07 Robert Millan <rmh@aybabtu.com>
47421
47422 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
47423 and make it easier to figure out.
47424 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
47425 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
47426 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
47427 leave us with less than HEAP_MIN_SIZE total heap.
47428 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
47429
47430 2007-10-03 Robert Millan <rmh@aybabtu.com>
47431
47432 * include/grub/i386/io.h: New file.
47433 * commands/i386/pc/play.c (inb): Removed.
47434 (outb): Removed.
47435 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47436 with grub_outb().
47437 * term/i386/pc/serial.c (inb): Removed.
47438 (outb): Removed.
47439 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47440 with grub_outb().
47441 * term/i386/pc/vga.c (inb): Removed.
47442 (outb): Removed.
47443 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47444 with grub_outb().
47445
47446 2007-10-02 Robert Millan <rmh@aybabtu.com>
47447
47448 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
47449 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47450 Reported by Marcin Kurek.
47451
47452 2007-09-07 Robert Millan <rmh@aybabtu.com>
47453
47454 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
47455 SmartFirmware version updates (as released by Sven Luther), and avoid
47456 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
47457 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
47458 known broken.
47459
47460 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47461
47462 From Hitoshi Ozeki:
47463 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
47464 when merging two regions.
47465
47466 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47467
47468 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
47469 * normal/completion.c (grub_normal_do_completion): Likewise.
47470 Reported by Hitoshi Ozeki.
47471
47472 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47473
47474 Do not use devices at boot in chainloading.
47475
47476 * loader/i386/pc/chainloader.c (boot_drive): New variable.
47477 (boot_part_addr): Likewise.
47478 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
47479 with BOOT_DRIVE and BOOT_PART_ADDR.
47480 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
47481 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
47482
47483 2007-08-29 Robert Millan <rmh@aybabtu.com>
47484
47485 Patch from Simon Peter <dn.tlp@gmx.net>:
47486 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
47487 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
47488 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
47489 util/i386/pc/grub-setup.c_DEPENDENCIES.
47490 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
47491 util/grub-probe.c_DEPENDENCIES.
47492 * conf/powerpc-ieee1275.rmk: Likewise.
47493
47494 2007-08-28 Robert Millan <rmh@aybabtu.com>
47495
47496 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
47497 to tell grub-mkdevicemap how to name devices.
47498 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
47499 feature).
47500
47501 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
47502 util/i386/get_disk_name.c.
47503 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
47504 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
47505 util/ieee1275/get_disk_name.c.
47506
47507 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
47508
47509 * DISTLIST: Add util/i386/get_disk_name.c and
47510 util/ieee1275/get_disk_name.c.
47511
47512 * util/grub-mkdevicemap.c: Replace device naming logic with
47513 grub_util_get_disk_name() calls.
47514
47515 2007-08-20 Robert Millan <rmh@aybabtu.com>
47516
47517 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
47518 (so that it works for both plural and singular quantities).
47519
47520 2007-08-05 Robert Millan <rmh@aybabtu.com>
47521
47522 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
47523 so that [xz] isn't taken into account when determining order.
47524
47525 2007-08-02 Marco Gerards <marco@gnu.org>
47526
47527 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
47528 `include/multiboot2.h', `include/grub/elfload.h',
47529 `include/multiboot.h', `include/grub/multiboot.h',
47530 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
47531 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
47532 `kern/elf.c', `loader/multiboot_loader.c',
47533 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
47534 `loader/i386/pc/multiboot2.c',
47535 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
47536 `util/i386/pc/grub-mkrescue.in'. Remove
47537 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
47538 `include/grub/i386/pc/util/biosdisk.h' and
47539 `include/grub/powerpc/ieee1275/multiboot.h'.
47540
47541 2007-08-02 Bean <bean123ch@gmail.com>
47542
47543 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
47544 (ntfs_mod_SOURCES): New variable.
47545 (ntfs_mod_CFLAGS): Likewise.
47546 (ntfs_mod_LDFLAGS): Likewise.
47547
47548 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
47549 (grub_probe_SOURCES): Likewise.
47550 (grub_emu_SOURCES): Likewise.
47551
47552 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47553 (grub_emu_SOURCES): Likewise.
47554
47555 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47556 (grub_emu_SOURCES): Likewise.
47557
47558 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
47559
47560 * fs/ntfs.c: New file.
47561
47562 2007-08-02 Bean <bean123ch@gmail.com>
47563
47564 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
47565
47566 * file.h (grub_file): Likewise.
47567
47568 * fshelp.h (grub_fshelp_read_file): Likewise.
47569
47570 * util/i386/pc/grub-setup.c (setup): Likewise.
47571 (save_first_sector): Likewise.
47572 (save_blocklists): Likewise.
47573
47574 * fs/affs.c (grub_affs_read_file): Likewise.
47575
47576 * fs/ext2.c (grub_ext2_read_file): Likewise.
47577
47578 * fs/fat.c (grub_fat_read_data): Likewise.
47579
47580 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
47581
47582 * fs/hfs.c (grub_hfs_read_file): Likewise.
47583
47584 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
47585
47586 * fs/jfs.c (grub_jfs_read_file): Likewise.
47587
47588 * fs/minix.c (grub_minix_read_file): Likewise.
47589
47590 * fs/sfs.c (grub_sfs_read_file): Likewise.
47591
47592 * fs/ufs.c (grub_ufs_read_file): Likewise.
47593
47594 * fs/xfs.c (grub_xfs_read_file): Likewise.
47595
47596 * command/blocklist.c (read_blocklist): Likewise.
47597 (print_blocklist): Likewise.
47598
47599 2007-08-02 Marco Gerards <marco@gnu.org>
47600
47601 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
47602 `util/hostfs.c'.
47603
47604 * disk/host.c: New file.
47605
47606 * util/hostfs.c: Likewise.
47607
47608 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
47609 return `GRUB_ERR_BAD_FS'.
47610 * fs/sfs.c (grub_sfs_mount): Likewise.
47611 * fs/xfs.c (grub_xfs_mount): Likewise.
47612
47613 * include/grub/disk.h (enum grub_disk_dev_id): Add
47614 `GRUB_DISK_DEVICE_HOST_ID'.
47615
47616 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
47617
47618 2007-07-24 Jerone Young <jerone@gmail.com>
47619
47620 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
47621 modules for compilation.
47622 * conf/powerpc-ieee1275.rmk: Likewise.
47623
47624 * include/multiboot.h: Move multiboot definitions to one file. Rename
47625 many definitions to not get grub specific.
47626 * include/multiboot2.h: Create header with multiboot 2 definitions.
47627 * include/grub/multiboot.h: Header for grub specific function
47628 prototypes and definitions.
47629 * include/grub/multiboot2.h: Likewise.
47630 * include/grub/multiboot_loader.h: Likewise.
47631 * include/grub/i386/pc/multiboot.h: Removed.
47632 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
47633
47634 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
47635 and 2 to allow for one multiboot and module commands.
47636 * loader/multiboot2.c: Add multiboot2 functionality.
47637 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
47638 and definition names.
47639 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
47640 2 functions.
47641 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
47642 ieee1275 specific multiboot2 code.
47643
47644 * kern/i386/pc/startup.S: Change headers and definition names for
47645 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
47646
47647 2007-07-22 Robert Millan <rmh@aybabtu.com>
47648
47649 * geninitheader.sh: Process file specified in first parameter rather
47650 than hardcoding grub_modules_init.lst.
47651 * geninit.sh: Likewise. Also, construct header name dynamically rather
47652 than hardcoding grub_modules_init.h.
47653
47654 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
47655 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
47656 grub_probe_init.[ch] and grub_setup_init.[ch].
47657
47658 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
47659 grub_modules_init.h with grub_emu_init.h.
47660 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
47661 grub_probe_init.[ch] files.
47662 * conf/i386-efi.rmk: Likewise.
47663 * conf/i386-pc.rmk: Likewise.
47664 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
47665 grub_setup_init.[ch] files.
47666
47667 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
47668 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
47669 to initialize modules rather than a list of hardcoded functions.
47670 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
47671 grub_init_all() to initialize modules rather than a list of hardcoded
47672 functions.
47673
47674 2007-07-22 Robert Millan <rmh@aybabtu.com>
47675
47676 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
47677 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
47678
47679 2007-07-22 Robert Millan <rmh@aybabtu.com>
47680
47681 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
47682 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
47683 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
47684 flag when running on SmartFirmware.
47685 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
47686 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
47687 was set.
47688
47689 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
47690 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
47691 rather than decreasing it.
47692
47693 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
47694 there's not enough space to do it, fail in the same way as when it
47695 can't be done because there are no partitions.
47696
47697 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
47698 when nvsetenv failed.
47699
47700 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47701
47702 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
47703 because this rule is automatically generated.
47704 (grub-mkrescue): Removed for the same reason as above.
47705
47706 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47707
47708 Migrate to GNU General Public License Version 3.
47709
47710 * COPYING: Replaced with the plain text version of GPLv3.
47711
47712 * config.guess: Updated from gnulib.
47713 * config.sub: Likewise.
47714
47715 * geninit.sh: Output a GPLv3 copyright notice.
47716 * geninitheader.sh: Likewise.
47717 * genmodsrc.sh: Likewise.
47718 * gensymlist.sh.in: Likewise.
47719
47720 * boot/i386/pc/boot.S: Upgraded to GPLv3.
47721 * boot/i386/pc/diskboot.S: Likewise.
47722 * boot/i386/pc/pxeboot.S: Likewise.
47723 * commands/blocklist.c: Likewise.
47724 * commands/boot.c: Likewise.
47725 * commands/cat.c: Likewise.
47726 * commands/cmp.c: Likewise.
47727 * commands/configfile.c: Likewise.
47728 * commands/echo.c: Likewise.
47729 * commands/help.c: Likewise.
47730 * commands/ls.c: Likewise.
47731 * commands/search.c: Likewise.
47732 * commands/terminal.c: Likewise.
47733 * commands/test.c: Likewise.
47734 * commands/videotest.c: Likewise.
47735 * commands/i386/cpuid.c: Likewise.
47736 * commands/i386/pc/halt.c: Likewise.
47737 * commands/i386/pc/play.c: Likewise.
47738 * commands/i386/pc/reboot.c: Likewise.
47739 * commands/i386/pc/vbeinfo.c: Likewise.
47740 * commands/i386/pc/vbetest.c: Likewise.
47741 * commands/ieee1275/halt.c: Likewise.
47742 * commands/ieee1275/reboot.c: Likewise.
47743 * commands/ieee1275/suspend.c: Likewise.
47744 * disk/loopback.c: Likewise.
47745 * disk/lvm.c: Likewise.
47746 * disk/raid.c: Likewise.
47747 * disk/efi/efidisk.c: Likewise.
47748 * disk/i386/pc/biosdisk.c: Likewise.
47749 * disk/ieee1275/ofdisk.c: Likewise.
47750 * font/manager.c: Likewise.
47751 * fs/affs.c: Likewise.
47752 * fs/ext2.c: Likewise.
47753 * fs/fat.c: Likewise.
47754 * fs/fshelp.c: Likewise.
47755 * fs/hfs.c: Likewise.
47756 * fs/hfsplus.c: Likewise.
47757 * fs/iso9660.c: Likewise.
47758 * fs/jfs.c: Likewise.
47759 * fs/minix.c: Likewise.
47760 * fs/sfs.c: Likewise.
47761 * fs/ufs.c: Likewise.
47762 * fs/xfs.c: Likewise.
47763 * hello/hello.c: Likewise.
47764 * include/grub/acorn_filecore.h: Likewise.
47765 * include/grub/arg.h: Likewise.
47766 * include/grub/bitmap.h: Likewise.
47767 * include/grub/boot.h: Likewise.
47768 * include/grub/cache.h: Likewise.
47769 * include/grub/device.h: Likewise.
47770 * include/grub/disk.h: Likewise.
47771 * include/grub/dl.h: Likewise.
47772 * include/grub/elfload.h: Likewise.
47773 * include/grub/env.h: Likewise.
47774 * include/grub/err.h: Likewise.
47775 * include/grub/file.h: Likewise.
47776 * include/grub/font.h: Likewise.
47777 * include/grub/fs.h: Likewise.
47778 * include/grub/fshelp.h: Likewise.
47779 * include/grub/gzio.h: Likewise.
47780 * include/grub/hfs.h: Likewise.
47781 * include/grub/kernel.h: Likewise.
47782 * include/grub/loader.h: Likewise.
47783 * include/grub/lvm.h: Likewise.
47784 * include/grub/misc.h: Likewise.
47785 * include/grub/mm.h: Likewise.
47786 * include/grub/net.h: Likewise.
47787 * include/grub/normal.h: Likewise.
47788 * include/grub/parser.h: Likewise.
47789 * include/grub/partition.h: Likewise.
47790 * include/grub/pc_partition.h: Likewise.
47791 * include/grub/raid.h: Likewise.
47792 * include/grub/rescue.h: Likewise.
47793 * include/grub/script.h: Likewise.
47794 * include/grub/setjmp.h: Likewise.
47795 * include/grub/symbol.h: Likewise.
47796 * include/grub/term.h: Likewise.
47797 * include/grub/terminfo.h: Likewise.
47798 * include/grub/tparm.h: Likewise.
47799 * include/grub/types.h: Likewise.
47800 * include/grub/video.h: Likewise.
47801 * include/grub/efi/api.h: Likewise.
47802 * include/grub/efi/chainloader.h: Likewise.
47803 * include/grub/efi/console.h: Likewise.
47804 * include/grub/efi/console_control.h: Likewise.
47805 * include/grub/efi/disk.h: Likewise.
47806 * include/grub/efi/efi.h: Likewise.
47807 * include/grub/efi/pe32.h: Likewise.
47808 * include/grub/efi/time.h: Likewise.
47809 * include/grub/i386/linux.h: Likewise.
47810 * include/grub/i386/setjmp.h: Likewise.
47811 * include/grub/i386/types.h: Likewise.
47812 * include/grub/i386/efi/kernel.h: Likewise.
47813 * include/grub/i386/efi/loader.h: Likewise.
47814 * include/grub/i386/efi/time.h: Likewise.
47815 * include/grub/i386/pc/biosdisk.h: Likewise.
47816 * include/grub/i386/pc/boot.h: Likewise.
47817 * include/grub/i386/pc/chainloader.h: Likewise.
47818 * include/grub/i386/pc/console.h: Likewise.
47819 * include/grub/i386/pc/init.h: Likewise.
47820 * include/grub/i386/pc/kernel.h: Likewise.
47821 * include/grub/i386/pc/loader.h: Likewise.
47822 * include/grub/i386/pc/memory.h: Likewise.
47823 * include/grub/i386/pc/multiboot.h: Likewise.
47824 * include/grub/i386/pc/serial.h: Likewise.
47825 * include/grub/i386/pc/time.h: Likewise.
47826 * include/grub/i386/pc/vbe.h: Likewise.
47827 * include/grub/i386/pc/vbeblit.h: Likewise.
47828 * include/grub/i386/pc/vbefill.h: Likewise.
47829 * include/grub/i386/pc/vbeutil.h: Likewise.
47830 * include/grub/i386/pc/vga.h: Likewise.
47831 * include/grub/ieee1275/ieee1275.h: Likewise.
47832 * include/grub/ieee1275/ofdisk.h: Likewise.
47833 * include/grub/powerpc/libgcc.h: Likewise.
47834 * include/grub/powerpc/setjmp.h: Likewise.
47835 * include/grub/powerpc/types.h: Likewise.
47836 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
47837 * include/grub/powerpc/ieee1275/console.h: Likewise.
47838 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
47839 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
47840 * include/grub/powerpc/ieee1275/loader.h: Likewise.
47841 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
47842 * include/grub/powerpc/ieee1275/time.h: Likewise.
47843 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
47844 * include/grub/sparc64/libgcc.h: Likewise.
47845 * include/grub/sparc64/setjmp.h: Likewise.
47846 * include/grub/sparc64/types.h: Likewise.
47847 * include/grub/sparc64/ieee1275/console.h: Likewise.
47848 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
47849 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
47850 * include/grub/sparc64/ieee1275/time.h: Likewise.
47851 * include/grub/util/biosdisk.h: Likewise.
47852 * include/grub/util/getroot.h: Likewise.
47853 * include/grub/util/lvm.h: Likewise.
47854 * include/grub/util/misc.h: Likewise.
47855 * include/grub/util/raid.h: Likewise.
47856 * include/grub/util/resolve.h: Likewise.
47857 * io/gzio.c: Likewise.
47858 * kern/device.c: Likewise.
47859 * kern/disk.c: Likewise.
47860 * kern/dl.c: Likewise.
47861 * kern/elf.c: Likewise.
47862 * kern/env.c: Likewise.
47863 * kern/err.c: Likewise.
47864 * kern/file.c: Likewise.
47865 * kern/fs.c: Likewise.
47866 * kern/loader.c: Likewise.
47867 * kern/main.c: Likewise.
47868 * kern/misc.c: Likewise.
47869 * kern/mm.c: Likewise.
47870 * kern/parser.c: Likewise.
47871 * kern/partition.c: Likewise.
47872 * kern/rescue.c: Likewise.
47873 * kern/term.c: Likewise.
47874 * kern/efi/efi.c: Likewise.
47875 * kern/efi/init.c: Likewise.
47876 * kern/efi/mm.c: Likewise.
47877 * kern/i386/dl.c: Likewise.
47878 * kern/i386/efi/init.c: Likewise.
47879 * kern/i386/efi/startup.S: Likewise.
47880 * kern/i386/pc/init.c: Likewise.
47881 * kern/i386/pc/lzo1x.S: Likewise.
47882 * kern/i386/pc/startup.S: Likewise.
47883 * kern/ieee1275/ieee1275.c: Likewise.
47884 * kern/powerpc/cache.S: Likewise.
47885 * kern/powerpc/dl.c: Likewise.
47886 * kern/powerpc/ieee1275/cmain.c: Likewise.
47887 * kern/powerpc/ieee1275/crt0.S: Likewise.
47888 * kern/powerpc/ieee1275/init.c: Likewise.
47889 * kern/powerpc/ieee1275/openfw.c: Likewise.
47890 * kern/sparc64/cache.S: Likewise.
47891 * kern/sparc64/dl.c: Likewise.
47892 * kern/sparc64/ieee1275/init.c: Likewise.
47893 * kern/sparc64/ieee1275/openfw.c: Likewise.
47894 * loader/efi/chainloader.c: Likewise.
47895 * loader/efi/chainloader_normal.c: Likewise.
47896 * loader/i386/efi/linux.c: Likewise.
47897 * loader/i386/efi/linux_normal.c: Likewise.
47898 * loader/i386/pc/chainloader.c: Likewise.
47899 * loader/i386/pc/chainloader_normal.c: Likewise.
47900 * loader/i386/pc/linux.c: Likewise.
47901 * loader/i386/pc/linux_normal.c: Likewise.
47902 * loader/i386/pc/multiboot.c: Likewise.
47903 * loader/i386/pc/multiboot_normal.c: Likewise.
47904 * loader/powerpc/ieee1275/linux.c: Likewise.
47905 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
47906 * normal/arg.c: Likewise.
47907 * normal/cmdline.c: Likewise.
47908 * normal/command.c: Likewise.
47909 * normal/completion.c: Likewise.
47910 * normal/execute.c: Likewise.
47911 * normal/function.c: Likewise.
47912 * normal/lexer.c: Likewise.
47913 * normal/main.c: Likewise.
47914 * normal/menu.c: Likewise.
47915 * normal/menu_entry.c: Likewise.
47916 * normal/misc.c: Likewise.
47917 * normal/parser.y: Likewise.
47918 * normal/script.c: Likewise.
47919 * normal/i386/setjmp.S: Likewise.
47920 * normal/powerpc/setjmp.S: Likewise.
47921 * normal/sparc64/setjmp.S: Likewise.
47922 * partmap/acorn.c: Likewise.
47923 * partmap/amiga.c: Likewise.
47924 * partmap/apple.c: Likewise.
47925 * partmap/gpt.c: Likewise.
47926 * partmap/pc.c: Likewise.
47927 * partmap/sun.c: Likewise.
47928 * term/gfxterm.c: Likewise.
47929 * term/terminfo.c: Likewise.
47930 * term/efi/console.c: Likewise.
47931 * term/i386/pc/console.c: Likewise.
47932 * term/i386/pc/serial.c: Likewise.
47933 * term/i386/pc/vesafb.c: Likewise.
47934 * term/i386/pc/vga.c: Likewise.
47935 * term/ieee1275/ofconsole.c: Likewise.
47936 * util/biosdisk.c: Likewise.
47937 * util/console.c: Likewise.
47938 * util/genmoddep.c: Likewise.
47939 * util/getroot.c: Likewise.
47940 * util/grub-emu.c: Likewise.
47941 * util/grub-mkdevicemap.c: Likewise.
47942 * util/grub-probe.c: Likewise.
47943 * util/lvm.c: Likewise.
47944 * util/misc.c: Likewise.
47945 * util/raid.c: Likewise.
47946 * util/resolve.c: Likewise.
47947 * util/update-grub.in: Likewise.
47948 * util/update-grub_lib.in: Likewise.
47949 * util/grub.d/00_header.in: Likewise.
47950 * util/grub.d/10_hurd.in: Likewise.
47951 * util/grub.d/10_linux.in: Likewise.
47952 * util/i386/efi/grub-install.in: Likewise.
47953 * util/i386/efi/grub-mkimage.c: Likewise.
47954 * util/i386/pc/grub-install.in: Likewise.
47955 * util/i386/pc/grub-mkimage.c: Likewise.
47956 * util/i386/pc/grub-mkrescue.in: Likewise.
47957 * util/i386/pc/grub-setup.c: Likewise.
47958 * util/i386/pc/misc.c: Likewise.
47959 * util/powerpc/ieee1275/grub-install.in: Likewise.
47960 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
47961 * util/powerpc/ieee1275/misc.c: Likewise.
47962 * video/bitmap.c: Likewise.
47963 * video/video.c: Likewise.
47964 * video/i386/pc/vbe.c: Likewise.
47965 * video/i386/pc/vbeblit.c: Likewise.
47966 * video/i386/pc/vbefill.c: Likewise.
47967 * video/i386/pc/vbeutil.c: Likewise.
47968 * video/readers/tga.c: Likewise.
47969
47970 2007-07-02 Robert Millan <rmh@aybabtu.com>
47971
47972 * conf/i386-efi.rmk: Replace obsolete reference to
47973 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
47974 with util/getroot.c.
47975 * conf/powerpc-ieee1275.rmk: Likewise.
47976 * conf/sparc64-ieee1275.rmk: Likewise.
47977
47978 * util/grub-emu.c (main): Fix unchecked pointer handling.
47979
47980 2007-07-02 Robert Millan <rmh@aybabtu.com>
47981
47982 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
47983 invocation to fail, in order to support partition-less media.
47984
47985 * util/i386/pc/grub-install.in: Likewise.
47986
47987 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
47988 which fs or partmap modules are needed (akin to its sister scripts).
47989
47990 Also use grub-probe to get rid of unportable /proc/mounts check.
47991
47992 Print the same informational message that the other scripts do, before
47993 exiting.
47994
47995 2007-06-23 Robert Millan <rmh@aybabtu.com>
47996
47997 * util/update-grub_lib.in (font_path): New function. Determine whether
47998 a font file can be found and, if so, echo the GRUB path to it.
47999
48000 * util/update-grub.in: Handle multiple terminals depending on user
48001 input, platform availability and font file presence. Propagate
48002 variables of our findings to /etc/grub.d/ children.
48003
48004 * util/grub.d/00_header.in: Handle multiple terminals, based on
48005 environment setup by update-grub.
48006
48007 2007-06-23 Robert Millan <rmh@aybabtu.com>
48008
48009 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
48010
48011 2007-06-21 Robert Millan <rmh@aybabtu.com>
48012
48013 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
48014 indicate end of data section in kernel image.
48015 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
48016 GRUB_KERNEL_MACHINE_DATA_END.
48017
48018 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
48019 space for it.
48020 * kern/i386/efi/startup.S: Likewise.
48021
48022 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
48023 during image generation. Implement --prefix option to override this
48024 patch.
48025 * util/i386/efi/grub-mkimage.c: Likewise.
48026
48027 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
48028 code to make path relative to its root into a separate function.
48029
48030 * util/i386/pc/grub-install.in: Use newly provided
48031 make_system_path_relative_to_its_root() to convert ${grubdir}, then
48032 pass the result to grub-install --prefix.
48033
48034 2007-06-13 Robert Millan <rmh@aybabtu.com>
48035
48036 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
48037 DEFAULT_DEVICE_MAP.
48038 * util/grub-emu.c: Use above definitions from misc.h instead of
48039 defining them.
48040 * util/grub-mkdevicemap.c: Likewise.
48041 * util/i386/pc/grub-setup.c: Likewise.
48042 * util/grub-probe.c: Likewise.
48043 (probe): Abort with grub_util_error() when either
48044 grub_guess_root_device or grub_util_get_grub_dev fails.
48045
48046 2007-06-12 Robert Millan <rmh@aybabtu.com>
48047
48048 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
48049 "pager" assignment.
48050 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
48051 "pcdata".
48052 * util/grub-probe.c (probe): Likewise for "drive_name".
48053
48054 2007-06-11 Robert Millan <rmh@aybabtu.com>
48055
48056 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
48057 not just the cdrom one.
48058
48059 2007-06-11 Robert Millan <rmh@aybabtu.com>
48060
48061 * util/i386/pc/grub-mkrescue.in: Add "set -e".
48062 Add --pkglibdir=DIR option to override pkglibdir.
48063 Mention --image-type=TYPE in help output.
48064 Fix --grub-mkimage (it was a no-op).
48065 Abort gracefully when no parameter is given.
48066
48067 2007-06-11 Robert Millan <rmh@aybabtu.com>
48068
48069 * util/i386/pc/grub-mkrescue.in: New file.
48070 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
48071 * Makefile.in: Handle bin_SCRIPTS.
48072
48073 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
48074
48075 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
48076 list of video modes.
48077
48078 2007-06-06 Robert Millan <rmh@aybabtu.com>
48079
48080 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
48081 file doesn't exist, or if it is in a filesystem grub can't read.
48082
48083 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
48084 not abort if GRUB_DRIVE could not be defined. Rearrange generated
48085 header comment to fit in 80 columns when the variables are resolved.
48086
48087 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
48088 could be identified by update-grub. Remove redundant check for
48089 unifont.pff existence (since convert_system_path_to_grub_path now
48090 handles that).
48091
48092 2007-06-04 Robert Millan <rmh@aybabtu.com>
48093
48094 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
48095
48096 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
48097
48098 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
48099
48100 2007-06-04 Robert Millan <rmh@aybabtu.com>
48101
48102 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
48103
48104 * include/grub/partition.h: Declare grub_apple_partition_map_init and
48105 grub_apple_partition_map_fini.
48106
48107 * util/biosdisk.c
48108 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
48109 to access >2 TiB disks).
48110
48111 Print disk->total_sectors with %llu instead of %lu, since this
48112 variable is always 64-bit (prevents wrong disk size from being displayed
48113 on either >2 TiB disk or big-endian CPU).
48114
48115 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
48116 into a generic case that supports all (sane) partition maps.
48117
48118 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
48119 breaks big-endian.
48120
48121 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
48122 and grub_apple_partition_map_fini() after that.
48123
48124 2007-06-01 Robert Millan <rmh@aybabtu.com>
48125
48126 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
48127
48128 * util/grub.d/00_header.in: Only enable gfxterm when
48129 convert_system_path_to_grub_path() succeeds.
48130
48131 2007-05-20 Robert Millan <rmh@aybabtu.com>
48132
48133 * util/update-grub_lib.in: New file.
48134 * DISTLIST: Add update-grub_lib.in.
48135 * conf/common.rmk: Generate update-grub_lib and install it in
48136 $(lib_DATA).
48137 * Makefile.in: Add install routine for $(lib_DATA).
48138
48139 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
48140 function provided by update-grub_lib to support arbitrary paths of
48141 unifont.pff.
48142 * util/update-grub.in: Use convert_system_path_to_grub_path() to
48143 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
48144
48145 2007-05-19 Robert Millan <rmh@aybabtu.com>
48146
48147 * commands/i386/cpuid.c: New module.
48148 * DISTLIST: Add it.
48149 * conf/i386-efi.rmk: Enable cpuid.mod.
48150 * conf/i386-pc.rmk: Likewise.
48151
48152 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48153
48154 * kern/disk.c (grub_disk_read): Check return value of
48155 grub_realloc().
48156
48157 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48158
48159 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
48160 arrays.
48161 * disk/raid.c (grub_raid_open): Likewise.
48162
48163 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48164
48165 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
48166 stack instead of on the heap.
48167
48168 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
48169 before doing a read on it.
48170
48171 * configure.ac: Only use -fno-stack-protector for the target
48172 environment.
48173
48174 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48175
48176 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
48177 __attribute_ ((unused)) to mode_type argument.
48178
48179 * util/getroot.c (grub_guess_root_device): Fix #endif.
48180
48181 * kern/misc.c (memcmp): Fix prototype.
48182
48183 * include/grub/partition.h [GRUB_UTIL]
48184 (grub_gpt_partition_map_init): Add prototype.
48185 (grub_gpt_partition_map_fini): Likewise.
48186
48187 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
48188 at the right place.
48189
48190 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
48191 (grub_fat_read_data): Likewise.
48192 (grub_fat_find_dir): Likewise.
48193
48194 * font/manager.c (find_glyph): Make table a const.
48195 (grub_font_get_glyph): Remove bitmap from if statement.
48196
48197 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
48198
48199 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
48200 code, first search for device in /dev/mapper, then in /dev.
48201 (grub_util_get_grub_dev): New function.
48202 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
48203 prototype.
48204 * util/grub-probe.c (probe): Remove check for RAID, call
48205 grub_util_get_grub_dev() instead of
48206 grub_util_biosdisk_get_grub_dev().
48207 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
48208 grub_util_biosdisk_get_grub_dev().
48209 * util/i386/pc/grub-setup.c (main): Likewise.
48210
48211 2007-05-16 Robert Millan <rmh@aybabtu.com>
48212
48213 * DISTLIST: Update for the latest changes.
48214 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
48215 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
48216 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
48217 grub/util/biosdisk.h.
48218 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
48219 grub/util/biosdisk.h.
48220
48221 2007-05-16 Robert Millan <rmh@aybabtu.com>
48222
48223 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
48224
48225 2007-05-16 Robert Millan <rmh@aybabtu.com>
48226
48227 * util/i386/efi/grub-install.in: New.
48228 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
48229 newly added grub-install.
48230 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
48231 include.
48232 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
48233 grub/util/biosdisk.h.
48234 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
48235 grub/util/biosdisk.h.
48236
48237 2007-05-16 Robert Millan <rmh@aybabtu.com>
48238
48239 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
48240 * include/grub/util/biosdisk.h: ... here.
48241 * util/i386/pc/biosdisk.c: Moved to ...
48242 * util/biosdisk.c: ... here.
48243 * util/i386/pc/getroot.c: Moved to ...
48244 * util/getroot.c: ... here.
48245 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
48246 * util/grub-mkdevicemap.c: ... here.
48247 * util/i386/pc/grub-probe.c: Moved to ...
48248 * util/grub-probe.c: ... here.
48249
48250 2007-05-15 Robert Millan <rmh@aybabtu.com>
48251
48252 * util/update-grub.in: Remove duplicated line in grub.cfg header
48253 message.
48254
48255 2007-05-13 Robert Millan <rmh@aybabtu.com>
48256
48257 * util/update-grub.in: Fix a few assumptions about the devices holding
48258 /, /boot and /boot/grub being the same.
48259 * util/grub.d/00_header.in: Likewise.
48260 * util/grub.d/10_hurd.in: Likewise.
48261 * util/grub.d/10_linux.in: Likewise.
48262
48263 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
48264 patterns. Use that to define the `.old' suffix as older than `'.
48265
48266 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
48267
48268 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
48269 the grub.cfg header message.
48270
48271 2007-05-11 Robert Millan <rmh@aybabtu.com>
48272
48273 * util/update-grub.in: Create device.map if it doesn't already exist,
48274 before attempting to run grub-probe.
48275 Check for grub-probe and grub-mkdevicemap with the same code
48276 grub-install is using.
48277 Remove test mode.
48278
48279 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
48280
48281 * Makefile.in: Add the datarootdir autoconf variable.
48282
48283 2007-05-09 Robert Millan <rmh@aybabtu.com>
48284
48285 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
48286 fail gracefully if dev->disk->partition == NULL.
48287
48288 2007-05-07 Robert Millan <rmh@aybabtu.com>
48289
48290 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
48291 determine partition map module.
48292 * util/i386/pc/grub-install.in: Use this feature to decide which
48293 partition module to load, instead of hardcoding pc and gpt.
48294
48295 2007-05-07 Robert Millan <rmh@aybabtu.com>
48296
48297 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
48298 source directory differs from build directory.
48299
48300 2007-05-05 Robert Millan <rmh@aybabtu.com>
48301
48302 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
48303 initialisation.
48304
48305 2007-05-05 Robert Millan <rmh@aybabtu.com>
48306
48307 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
48308
48309 2007-05-05 Robert Millan <rmh@aybabtu.com>
48310
48311 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
48312 command-line arguments via ${GRUB_CMDLINE_LINUX}.
48313
48314 2007-05-05 Robert Millan <rmh@aybabtu.com>
48315
48316 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
48317 (grub_probe_SOURCES): Likewise.
48318 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
48319 GPT and initialize dos_part and bsd_part accordingly.
48320 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
48321 install_bsd_part.
48322 (main): Activate gpt module for use during partition identification,
48323 and deactivate it afterwards.
48324 * util/i386/pc/grub-install.in: Add gpt module to core.img.
48325 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
48326 partition identification, and deactivate it afterwards.
48327
48328 2007-05-05 Robert Millan <rmh@aybabtu.com>
48329
48330 * term/i386/pc/console.c (grub_console_fini): Call
48331 grub_term_set_current() before grub_term_unregister().
48332
48333 2007-05-04 Robert Millan <rmh@aybabtu.com>
48334
48335 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
48336 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
48337 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
48338 and update-grub_DATA.
48339 * conf/common.rmk: Build and install update-grub components.
48340 * conf/common.mk: Regenerate.
48341 * util/update-grub.in: New. Core of update-grub.
48342 * util/grub.d/00_header.in: New. Generates grub.cfg header.
48343 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
48344 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
48345 * util/grub.d/README: New. Document grub.d directory layout.
48346
48347 2007-05-01 Robert Millan <rmh@aybabtu.com>
48348
48349 * util/grub-emu.c: Move initialization functions
48350 grub_util_biosdisk_init() and grub_init_all() before
48351 grub_util_biosdisk_get_grub_dev(), which relies on them.
48352
48353 2007-04-19 Robert Millan <rmh@aybabtu.com>
48354
48355 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
48356 it is used later.
48357
48358 2007-04-18 Jerone Young <jerone@gmail.com>
48359
48360 * kernel/elf.c: Add missing parenthesis for conditional statement
48361 stanza.
48362
48363 2007-04-10 Jerone Young <jerone@gmail.com>
48364
48365 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
48366 continue on and look for device node with real device name.
48367
48368 2007-04-10 Jerone Young <jerone@gmail.com>
48369
48370 * configure.ac: Add argument for autoconf to use transformation
48371 ability.
48372 * Makefile.in: Add autoconf package transformation code.
48373 * util/i386/pc/grub-install.in: Likewise.
48374 * util/powerpc/ieee1275/grub-install.in: Likewise.
48375
48376 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
48377
48378 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
48379 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
48380 (EXT2_REVISION): Likewise.
48381 (EXT2_INODE_SIZE): Likewise.
48382 (struct grub_ext2_block_group): Added a missing member
48383 "used_dirs".
48384 (grub_ext2_read_inode): Divide by the inode size in a superblock
48385 instead of 128 to obtain INODES_PER_BLOCK.
48386 Use the macro EXT2_INODE_SIZE instead of directly using
48387 SBLOCK->INODE_SIZE.
48388
48389 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
48390
48391 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
48392 superblock instead of the structure size to compute an
48393 offset. This fixes the problem that GRUB could not read a
48394 filesystem when inode size is different from 128-byte.
48395
48396 2007-03-05 Marco Gerards <marco@gnu.org>
48397
48398 * normal/main.c (read_config_file): When "menu" is not set, create
48399 an initial context.
48400
48401 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48402
48403 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
48404 (HEAP_LIMIT): New macro.
48405 (grub_claim_heap): Claim memory up to `heaplimit'.
48406
48407 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48408
48409 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
48410 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
48411 (_start): Likewise.
48412 (grub_arch_modules_addr): Return address after `_end'.
48413 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
48414 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
48415 (add_segments): Calculate `_end' from phdr size and location.
48416 (ALIGN_UP): Moved to ...
48417 * include/grub/misc.h: here.
48418 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
48419 New macro.
48420 (GRUB_IEEE1275_MODULE_BASE): Removed.
48421
48422 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48423
48424 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
48425 loop boundary.
48426
48427 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48428
48429 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
48430 All users updated.
48431 (grub_elf64_load_hook_t): Likewise.
48432 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
48433 debug output.
48434
48435 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48436
48437 * kern/mm.c: Update copyright.
48438 (grub_mm_debug): Correct syntax error.
48439 (grub_mm_dump_free): New function.
48440 (grub_debug_free): Call `grub_free'.
48441 * include/grub/mm.h: Update copyright.
48442 (grub_mm_dump_free): Add declaration.
48443
48444 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48445
48446 * include/grub/ieee1275/ieee1275.h: Update copyright.
48447 * kern/powerpc/ieee1275/init.c: Likewise.
48448 * kern/powerpc/ieee1275/openfw.c: Likewise.
48449
48450 * loader/powerpc/ieee1275/linux.c: Likewise.
48451 * include/grub/elfload.h: Likewise.
48452 * kern/elf.c: Likewise.
48453 (grub_elf32_load): Pass `base' and `size' parameters. Update all
48454 callers.
48455 (grub_elf64_load): Likewise.
48456 (grub_elf32_load_segment): Move to a nested function.
48457 (grub_elf64_load_segment): Likewise.
48458
48459 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48460
48461 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
48462 prototype.
48463 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
48464 (grub_heap_len): Likewise.
48465 (HEAP_SIZE): New macro.
48466 (grub_claim_heap): New function.
48467 (grub_machine_init): Don't claim heap directly. Call
48468 `grub_claim_heap'.
48469 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
48470 (grub_available_iterate): New function.
48471
48472 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
48473
48474 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
48475 * configure.ac: Use it for testing the HOST and TARGET compilers.
48476
48477 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
48478
48479 * Makefile.in (enable_grub_emu): New variable.
48480 * configure.ac (--enable-grub-emu): New option.
48481 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
48482 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
48483 * conf/i386-pc.rmk: Likewise.
48484 * conf/powerpc-ieee1275.rmk: Likewise.
48485 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
48486
48487 2006-12-12 Marco Gerards <marco@gnu.org>
48488
48489 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
48490
48491 * kern/env.c (grub_env_unset): Don't free the member `value' when
48492 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
48493 pointer.
48494
48495 * normal/main.c (current_menu): Removed.
48496 (free_menu): Unset the `menu' environment variable.
48497 (grub_normal_menu_addentry): Make use of the environment variable
48498 `menu', instead of using the global `current_menu'. Allocate
48499 memory for the sourcecode of this entry.
48500 (read_config_file): New argument `nested', changed all callers.
48501 Only in the case of a new context, initialize a new menu. Set the
48502 `menu' environment variable.
48503 (grub_normal_execute): Don't set and unset the environment
48504 variable `menu' here anymore. Only free the menu when leaving the
48505 context.
48506
48507 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
48508 leak.
48509
48510 2006-12-11 Marco Gerards <marco@gnu.org>
48511
48512 * normal/menu_entry.c (run): Fix off by one bug so the last line
48513 is executed. Move the loader check to outside the loop.
48514
48515 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
48516
48517 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
48518
48519 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
48520
48521 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
48522 the number of sectors. Reported by Andrey Shuvikov
48523 <mr_hyro@yahoo.com>.
48524
48525 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
48526
48527 * kern/disk.c (grub_disk_read): When there is a read error, always
48528 try to read only the necessary data.
48529
48530 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
48531 disk/raid.c.
48532 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
48533 prototype.
48534 [GRUB_UTIL] (grub_raid_fini): Likewise.
48535 [GRUB_UTIL] (grub_lvm_init): Likewise.
48536 [GRUB_UTIL] (grub_lvm_fini): Likewise.
48537 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
48538 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
48539 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
48540 and grub_raid_fini().
48541
48542 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
48543
48544 * include/grub/types.h (__unused): Rename to UNUSED.
48545 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
48546 (grub_elf64_size): Likewise.
48547
48548 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48549
48550 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
48551 grub_error_push and grub_error_pop in the error-handling path.
48552 (grub_elf32_load_segment): Only call grub_file_read with non-zero
48553 length.
48554
48555 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48556
48557 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
48558 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
48559 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
48560 (kernel_elf_SOURCES): Likewise.
48561 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
48562 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
48563 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48564 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48565 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
48566 (elf_mod_SOURCES): New variable.
48567 (elf_mod_CFLAGS): Likewise.
48568 (elf_mod_LDFLAGS): Likewise.
48569 * include/grub/types.h (__unused): New macro.
48570 * include/grub/elfload.h: New file.
48571 * kern/elf.c: Likewise.
48572 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
48573 (ELF32_LOADMASK): New macro.
48574 (ELF64_LOADMASK): Likewise.
48575 (vmlinux): Removed.
48576 (grub_linux_load32): New function.
48577 (grub_linux_load64): Likewise.
48578 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
48579 Use grub_elf_t instead of grub_file_t.
48580
48581 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
48582
48583 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
48584 `catch_result' to struct set_color_args.
48585
48586 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
48587
48588 * normal/menu.c: Include grub/script.h.
48589 * normal/menu_entry.c: Likewise.
48590 * include/grub/normal.h: Do not include grub/script.h.
48591
48592 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48593
48594 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
48595
48596 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48597
48598 * kern/disk.c (grub_disk_open): Print debug messages when opening a
48599 disk.
48600 (grub_disk_close): Print debug messages when closing a disk.
48601 (grub_disk_read): Print debug messages when disk read fails.
48602 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
48603 filesystem type.
48604 * kern/partition.c: Include misc.h.
48605 (grub_partition_iterate): Print debug messages when detecting
48606 partition type.
48607
48608 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48609
48610 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
48611 is negative.
48612 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
48613
48614 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
48615
48616 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
48617 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
48618
48619 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
48620
48621 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
48622 instead of sizeof(lv). Patch by Michael Guntsche.
48623
48624 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
48625
48626 * disk/lvm.c: Rename VGS to VG_LIST.
48627 (grub_lvm_iterate): Change VGS->LV to VG-LV.
48628 (grub_lvm_open): Likewise.
48629 Thanks to Michael Guntsche for finding this bug.
48630
48631 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48632
48633 * configure.ac (AC_INIT): Bumped to 1.95.
48634
48635 2006-10-14 Robert Millan <rmh@aybabtu.com>
48636
48637 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
48638 with "/dev/.static/dev/md".
48639
48640 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48641
48642 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
48643 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
48644 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
48645 DRIVE_NAME are always freed.
48646
48647 * util/i386/pc/biosdisk.c (make_device_name): Add one into
48648 DOS_PART, as a DOS partition is counted from one instead of zero
48649 now. Reported by Robert Millan.
48650
48651 2006-10-14 Robert Millan <rmh@aybabtu.com>
48652
48653 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
48654 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
48655 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
48656 string returned by grub_guess_root_device.
48657 * util/i386/pc/grub-setup.c: Likewise.
48658 * util/i386/pc/grub-probefs.c: Likewise.
48659
48660 * util/i386/pc/grub-probefs.c: Rename to ...
48661 * util/i386/pc/grub-probe.c: ... this.
48662 * DISTLIST: Remove grub-probefs, add grub-probe.
48663 * conf/i386-efi.rmk: Likewise.
48664 * conf/i386-pc.rmk: Likewise.
48665 * util/i386/pc/grub-install.in: Likewise.
48666
48667 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
48668 choose which information we want to print.
48669
48670 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48671
48672 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
48673 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
48674 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
48675 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
48676 video/readers/tga.c and video/i386/pc/vbeutil.c.
48677
48678 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
48679
48680 Added support for RAID and LVM.
48681
48682 * disk/lvm.c: New file.
48683 * disk/raid.c: Likewise.
48684 * include/grub/lvm.h: Likewise.
48685 * include/grub/raid.h: Likewise.
48686 * include/grub/util/lvm.h: Likewise.
48687 * include/grub/util/raid.h: Likewise.
48688 * util/lvm.c: Likewise.
48689 * util/raid.c: Likewise.
48690
48691 * include/grub/disk.h (grub_disk_dev_id): Add
48692 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
48693 (grub_disk_get_size): New prototype.
48694 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
48695 returns a partition.
48696 (grub_disk_get_size): New function.
48697
48698 * kern/i386/pc/init.c (make_install_device): Copy the prefix
48699 verbatim if grub_install_dos_part is -2.
48700
48701 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
48702 and LVM devices.
48703
48704 * util/i386/pc/grub-setup.c (setup): New argument
48705 MUST_EMBED. Force embedding of GRUB when the argument is
48706 true. Close FILE before returning.
48707 (main): Add support for RAID and LVM.
48708
48709 * conf/common.rmk: Add RAID and LVM modules.
48710 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
48711 util/lvm.c.
48712 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
48713
48714 * kern/misc.c (grub_strstr): New function.
48715 * include/grub/misc.h (grub_strstr): New prototype.
48716
48717 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
48718
48719 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
48720
48721 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
48722
48723 * kern/misc.c (grub_strtoull): Guess the base only if not
48724 specified.
48725
48726 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48727
48728 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
48729 PowerMac support.
48730
48731 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48732
48733 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
48734
48735 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
48736 Remove `flags' argument. All callers changed.
48737 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
48738 (IEEE1275_IHANDLE_INVALID): New variable.
48739 (IEEE1275_CELL_INVALID): New variable.
48740 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
48741 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
48742 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
48743 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
48744 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
48745 codes from Open Firmware. All callers updated.
48746 (grub_ieee1275_next_property): Directly return Open Firmware return
48747 code.
48748 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
48749 Standardize error checking from `grub_ieee1275_get_property'.
48750 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
48751 `devalias' to `aliases'. Correct comments. Consolidate error paths.
48752
48753 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48754
48755 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
48756 `instance_to_package_args' to `instance_to_path_args'.
48757
48758 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
48759 `grub_ieee1275_chosen'.
48760
48761 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
48762 `grub_ieee1275_interpret'.
48763
48764 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48765
48766 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
48767
48768 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48769
48770 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
48771 (__cmpdi): Likewise.
48772
48773 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
48774 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
48775 `grub_ssize_t'.
48776
48777 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
48778
48779 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
48780 to type `grub_ssize_t'.
48781 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
48782
48783 2006-09-22 Marco Gerards <marco@gnu.org>
48784
48785 * normal/script.c (grub_script_create_cmdmenu): Skip leading
48786 newlines.
48787
48788 2006-09-22 Marco Gerards <marco@gnu.org>
48789
48790 * commands/echo.c: New file.
48791
48792 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
48793
48794 * conf/common.rmk (echo_mod_SOURCES): New variable.
48795 (echo_mod_CFLAGS): Likewise.
48796 (echo_mod_LDFLAGS): Likewise.
48797
48798 2006-09-22 Marco Gerards <marco@gnu.org>
48799
48800 * normal/main.c (get_line): Malloc memory instead of using
48801 preallocated memory. Removed the arguments `cmdline' and
48802 `max_len'. Updated all callers.
48803
48804 2006-09-22 Marco Gerards <marco@gnu.org>
48805
48806 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
48807 (normal_mod_DEPENDENCIES): Likewise.
48808
48809 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
48810 (normal_mod_DEPENDENCIES): Likewise.
48811
48812 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
48813
48814 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
48815
48816 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
48817 programs.
48818 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
48819 (normal_mod_DEPENDENCIES): Likewise.
48820 * conf/i386-pc.mk: Regenerate.
48821 * conf/i386-efi.mk: Likewise
48822 * conf/common.mk: Likewise.
48823 * conf/powerpc-ieee1275.mk: Likewise.
48824 * conf/sparc64-ieee1275.mk: Likewise.
48825
48826 2006-09-22 Robert Millan <rmh@aybabtu.com>
48827
48828 Sync with i386 version.
48829 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
48830 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
48831
48832 2006-09-21 Robert Millan <rmh@aybabtu.com>
48833
48834 Import from GRUB Legacy (lib/device.c):
48835 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
48836 (init_device_map) [__linux__]: Add support for I2O devices.
48837
48838 2006-09-14 Marco Gerards <marco@gnu.org>
48839
48840 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
48841 `-melf_i386'.
48842
48843 2006-09-14 Robert Millan <rmh@aybabtu.com>
48844
48845 * util/i386/pc/grub-install.in: Skip menu.lst when removing
48846 /boot/grub/*.lst.
48847
48848 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
48849
48850 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
48851 before adding it to device.map.
48852
48853 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
48854
48855 * genmk.rb: Let GCC generate dependencies the first time it
48856 compiles a file; using the -MD option.
48857 * conf/common.mk: Regenerate.
48858 * conf/i386-pc.mk: Likewise.
48859 * conf/i386-efi.mk: Likewise.
48860 * conf/powerpc-ieee1275.mk: Likewise.
48861 * conf/sparc64-ieee1275.mk: Likewise.
48862
48863 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
48864
48865 Move the prototypes of grub_setjmp and grub_longjmp to
48866 cpu/setjmp.h, so that each architecture may specify different
48867 attributes.
48868
48869 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
48870 (grub_longjmp): Likewise.
48871 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
48872 (grub_longjmp): Likewise.
48873 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
48874 (grub_longjmp): Likewise.
48875
48876 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
48877 [!GRUB_UTIL] (grub_longjmp): Removed.
48878
48879 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
48880
48881 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
48882 "color!" method does not return any value.
48883
48884 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
48885
48886 * include/grub/bitmap.h: New file.
48887
48888 * include/grub/i386/pc/vbeutil.h: Likewise.
48889
48890 * video/bitmap.c: Likewise.
48891
48892 * video/readers/tga.c: Likewise.
48893
48894 * video/i386/pc/vbeutil.c: Likewise.
48895
48896 * commands/videotest.c: Code cleanup and updated to reflect to new
48897 video API.
48898
48899 * term/gfxterm.c: Likewise.
48900
48901 * video/video.c: Likewise.
48902
48903 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
48904 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
48905 (bitmap_mod_SOURCES): New entry.
48906 (bitmap_mod_CFLAGS): Likewise.
48907 (bitmap_mod_LDFLAGS): Likewise.
48908 (tga_mod_SOURCES): Likewise.
48909 (tga_mod_CFLAGS): Likewise.
48910 (tga_mod_LDFLAGS): Likewise.
48911
48912 * include/grub/video.h (grub_video_blit_operators): New enum type.
48913 (grub_video_render_target): Changed as forward declaration and moved
48914 actual definition to be video driver specific.
48915 (grub_video_adapter.blit_bitmap): Added blitting operator.
48916 (grub_video_adapter.blit_render_target): Likewise.
48917 (grub_video_blit_bitmap): Likewise.
48918 (grub_video_blit_render_target): Likewise.
48919
48920 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
48921 driver specific render target definition.
48922 (grub_video_vbe_map_rgba): Added driver internal helper.
48923 (grub_video_vbe_unmap_color): Updated to use
48924 grub_video_i386_vbeblit_info.
48925 (grub_video_vbe_get_video_ptr): Likewise.
48926
48927 * include/grub/i386/pc/vbeblit.h
48928 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
48929 grub_video_i386_vbeblit_info.
48930 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
48931 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
48932 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
48933 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
48934 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
48935 (grub_video_i386_vbeblit_index_index): Likewise.
48936 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
48937 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
48938 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
48939 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
48940 operator.
48941 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
48942 operator.
48943
48944 * video/i386/pc/vbeblit.c: Updated to reflect changes on
48945 include/grub/i386/pc/vbeblit.h.
48946
48947 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
48948 Updated to use grub_video_i386_vbeblit_info.
48949 (grub_video_i386_vbefill_R8G8B8): Likewise.
48950 (grub_video_i386_vbefill_index): Likewise.
48951 (grub_video_i386_vbefill): Added generic filler.
48952
48953 * video/i386/pc/vbefill.c: Updated to reflect changes on
48954 include/grub/i386/pc/vbefill.h.
48955
48956 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
48957 grub_video_i386_vbeblit_info.
48958 (grub_video_vbe_unmap_color): Likewise.
48959 (grub_video_vbe_blit_glyph): Likewise.
48960 (grub_video_vbe_scroll): Likewise.
48961 (grub_video_vbe_draw_pixel): Removed function.
48962 (grub_video_vbe_get_pixel): Likewise.
48963 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
48964 updated code to use it.
48965 (common_blitter): Added common blitter for render target and bitmap.
48966 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
48967 (grub_video_vbe_blit_render_target): Likewise.
48968
48969 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
48970
48971 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
48972 is in text mode if there is no console control protocol instance
48973 available.
48974
48975 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
48976
48977 * include/grub/video.h: Code cleanup.
48978
48979 * include/grub/i386/pc/vbe.h: Likewise.
48980
48981 * video/i386/pc/vbe.c: Likewise.
48982
48983 * video/i386/pc/vbeblit.c: Likewise.
48984
48985 * video/i386/pc/vbefill.c: Likewise.
48986
48987 * video/video.c: Likewise. Also added more comments.
48988
48989 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
48990
48991 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
48992 (struct grub_biosdisk_dap): Likewise.
48993
48994 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
48995 linkage settings for all functions.
48996
48997 2006-07-12 Marco Gerards <marco@gnu.org>
48998
48999 * configure.ac (--enable-mm-debug): Fix typo.
49000
49001 * genkernsyms.sh.in: Use proper quoting for `CC'.
49002
49003 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
49004
49005 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
49006 (normal_mod_ASFLAGS): Remove "-m32".
49007
49008 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
49009
49010 * util/misc.c: Include config.h.
49011 [!HAVE_MEMALIGN]: Do not include malloc.h.
49012 (grub_memalign): Use posix_memalign, if present. Then, use
49013 memalign, if present. Otherwise, emit an error.
49014
49015 * util/grub-emu.c: Do not include malloc.h.
49016
49017 * include/grub/util/misc.h: Include unistd.h. This is required for
49018 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
49019 D. Eades III <hde@foobar-qux.org>.
49020
49021 * configure.ac (AC_GNU_SOURCE): Added.
49022 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
49023 type.
49024
49025 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
49026
49027 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
49028 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
49029
49030 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
49031
49032 * include/grub/types.h (grub_host_addr_t): Rename to
49033 grub_target_addr_t.
49034 (grub_host_off_t): Rename to grub_target_off_t.
49035 (grub_host_size_t): Rename to grub_target_size_t.
49036 (grub_host_ssize_t): Rename to grub_target_ssize_t.
49037 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
49038
49039 * include/grub/kernel.h (struct grub_module_header): Change type
49040 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
49041 (grub_module_info): Likewise.
49042
49043 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49044
49045 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
49046 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
49047 Velazquez <jesus.velazquez@gmail.com>.
49048
49049 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49050
49051 Count partitions from 1 instead of 0 in the string representation
49052 of partitions. Still use 0-based internally.
49053
49054 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
49055 (sun_partition_map_iterate): Use grub_partition_t instead of
49056 struct grub_partition *. Cast DESC->START_CYLINDER to
49057 grub_uint64_t after converting the endian.
49058 (sun_partition_map_probe): Subtract 1 for PARTNUM.
49059 (sun_partition_map_get_name): Add 1 to P->INDEX.
49060
49061 * partmap/pc.c (grub_partition_parse): Subtract 1 for
49062 PCDATA->DOS_PART.
49063 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
49064
49065 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
49066 zero instead of one.
49067 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
49068 (gpt_partition_map_get_name): Add 1 into P->INDEX.
49069
49070 * partmap/apple.c (apple_partition_map_iterate): Change the type
49071 of POS to unsigned.
49072 (apple_partition_map_probe): Subtract 1 for PARTNUM.
49073 (apple_partition_map_get_name): Add 1 into P->INDEX.
49074
49075 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
49076 of POS to unsigned.
49077 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
49078 calculate the offset of a partition.
49079 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
49080 (amiga_partition_map_get_name): Add 1 into P->INDEX.
49081
49082 * partmap/acorn.c (acorn_partition_map_find): Change the type of
49083 SECTOR to grub_disk_addr_t.
49084 (acorn_partition_map_iterate): Likewise.
49085 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
49086 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
49087 top.
49088 (acorn_partition_map_get_name): Add 1 into P->INDEX.
49089
49090 * kern/i386/pc/init.c (make_install_device): Add 1 into
49091 GRUB_INSTALL_DOS_PART.
49092
49093 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
49094 conditional.
49095
49096 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49097
49098 Clean up the code to support 64-bit addressing in disks and
49099 files. This change is not enough for filesystems yet.
49100
49101 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
49102 type of "start" to grub_uint64_t.
49103 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
49104 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
49105 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
49106 convert addresses.
49107
49108 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
49109 to grub_disk_addr_t.
49110
49111 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
49112 string.
49113
49114 * partmap/pc.c (pc_partition_map_iterate): Likewise.
49115
49116 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
49117 to char *.
49118
49119 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
49120
49121 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
49122
49123 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
49124
49125 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
49126 to grub_off_t, to detect an error from grub_file_seek.
49127 (grub_multiboot_load_elf32): Likewise.
49128
49129 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
49130 maximum unsigned long value when an overflow is detected.
49131 (grub_strtoull): New function.
49132 (grub_divmod64): Likewise.
49133 (grub_lltoa): use grub_divmod64.
49134
49135 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
49136 grub_disk_addr_t.
49137 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
49138 the pointer to next character. Use grub_strtoull instead of
49139 grub_strtoul.
49140 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
49141 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
49142 respectively.
49143
49144 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
49145 return value is signed.
49146 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
49147 test if OFFSET is less than zero, as OFFSET is unsigned now.
49148
49149 * kern/disk.c (struct grub_disk_cache): Change the type of
49150 "sector" to grub_disk_addr_t.
49151 (grub_disk_cache_get_index): Change the type of SECTOR to
49152 grub_disk_addr_t. Calculate the hash with SECTOR casted to
49153 unsigned after shifting.
49154 (grub_disk_cache_invalidate): Change the type of SECTOR to
49155 grub_disk_addr_t.
49156 (grub_disk_cache_unlock): Likewise.
49157 (grub_disk_cache_store): Likewise.
49158 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
49159 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
49160 grub_disk_addr_t and grub_uint64_t, respectively.
49161 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
49162 body, as the value of OFFSET is tweaked by
49163 grub_disk_check_range. Change the types of START_SECTOR, LEN and
49164 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
49165 respectively.
49166 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
49167 body, as the value of OFFSET is tweaked by
49168 grub_disk_check_range. Change the types of LEN and N to
49169 grub_size_t.
49170
49171 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
49172 and "saved_offset" to grub_off_t.
49173 (test_header): Cast BUF to char *.
49174 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
49175 to char *.
49176 (grub_gzio_read): Change the types of OFFSET and SIZE to
49177 grub_off_t and grub_size_t, respectively.
49178
49179 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
49180 Removed.
49181 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
49182 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
49183 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
49184 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
49185 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
49186
49187 * include/grub/types.h (grub_off_t): Unconditionally set to
49188 grub_uint64_t.
49189 (grub_disk_addr_t): Changed to grub_uint64_t.
49190
49191 * include/grub/partition.h (struct grub_partition): Change the
49192 types of "start", "len" and "offset" to grub_disk_addr_t,
49193 grub_uint64_t and grub_disk_addr_t, respectively.
49194 (grub_partition_get_start): Return grub_disk_addr_t.
49195 (grub_partition_get_len): Return grub_uint64_t.
49196
49197 * include/grub/misc.h (grub_strtoull): New prototype.
49198 (grub_divmod64): Likewise.
49199
49200 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
49201 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
49202 grub_off_t, respectively.
49203 All callers and references changed.
49204
49205 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
49206 grub_size_t in "read".
49207 All callers and references changed.
49208
49209 * include/grub/file.h (struct grub_file): Change the types of
49210 "offset" and "size" to grub_off_t and grub_off_t,
49211 respectively. Change the type of SECTOR to grub_disk_addr_t in
49212 "read_hook".
49213 (grub_file_read): Change the type of LEN to grub_size_t.
49214 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
49215 grub_off_t.
49216 (grub_file_size): Return grub_off_t.
49217 (grub_file_tell): Likewise.
49218 All callers and references changed.
49219
49220 * include/grub/disk.h (struct grub_disk_dev): Change the types of
49221 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
49222 "write".
49223 (struct grub_disk): Change the type of "total_sectors" to
49224 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
49225 "read_hook".
49226 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
49227 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
49228 (grub_disk_write): Likewise.
49229 All callers and references changed.
49230
49231 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
49232 char * for grub_strncmp to silence gcc.
49233 (grub_iso9660_mount): Likewise.
49234 (grub_iso9660_mount): Likewise.
49235 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
49236 return statement.
49237 (grub_iso9660_iterate_dir): Likewise.
49238 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
49239
49240 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
49241 LEN to grub_disk_addr_t and grub_size_t, respectively.
49242
49243 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
49244
49245 * fs/jfs.c (grub_jfs_read_file): Likewise.
49246
49247 * fs/minix.c (grub_jfs_read_file): Likewise.
49248
49249 * fs/sfs.c (grub_jfs_read_file): Likewise.
49250
49251 * fs/ufs.c (grub_jfs_read_file): Likewise.
49252
49253 * fs/xfs.c (grub_jfs_read_file): Likewise.
49254
49255 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
49256 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
49257 respectively.
49258
49259 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
49260 BLKNR to -1 instead of returning GRUB_ERRNO.
49261 (grub_ext2_read_file): Change the types of SECTOR and
49262 LEN to grub_disk_addr_t and grub_size_t, respectively.
49263
49264 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
49265 LEN to grub_disk_addr_t and grub_size_t, respectively.
49266
49267 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
49268 grub_file_read.
49269
49270 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
49271 string. Do not cast SECTOR explicitly.
49272
49273 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
49274 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
49275 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
49276 grub_disk_addr_t and grub_size_t, respectively. If the sector is
49277 over 2TB and LBA mode is not supported, raise an error.
49278 (get_safe_sectors): New function.
49279 (grub_biosdisk_read): Use get_safe_sectors.
49280 (grub_biosdisk_write): Likewise.
49281
49282 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
49283 (grub_efidisk_write): Likewise.
49284
49285 * disk/loopback.c (delete_loopback): Cosmetic changes.
49286 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
49287 correctly.
49288 (grub_loopback_open): Likewise.
49289 (grub_loopback_read): Likewise. Also, change the type of POS to
49290 grub_off_t, and fix the usage of grub_memset.
49291
49292 * commands/i386/pc/play.c: Include grub/machine/time.h.
49293
49294 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
49295 print FILE->SIZE.
49296
49297 * commands/configfile.c: Include grub/env.h.
49298
49299 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
49300 GRUB_ERRNO directly instead. Change the type of POS to
49301 grub_off_t. Follow the coding standard.
49302
49303 * commands/blocklist.c: Include grub/partition.h.
49304 (grub_cmd_blocklist): Return an error if the underlying device is
49305 not a disk. Take the starting sector of a partition into account,
49306 if a partition is used.
49307
49308 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
49309 a length field.
49310 (lba_mode): Support 64-bit addresses.
49311 (chs_mode): Likewise.
49312 (copy_buffer): Adapted to the new offsets of a length field and a
49313 segment field.
49314 (blocklist_default_start): Allocate 64-bit space.
49315
49316 * boot/i386/pc/boot.S (force_lba): Removed.
49317 (boot_drive): Moved to under KERNEL_SECTOR.
49318 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
49319 space.
49320 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
49321 is useless.
49322 (lba_mode): Refactored to support a 64-bit address. More size
49323 optimization.
49324 (setup_sectors): Likewise.
49325
49326 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49327
49328 * DISTLIST: Added include/grub/i386/linux.h. Removed
49329 include/grub/i386/pc/linux.h
49330
49331 * configure.ac (AC_INIT): Bumped to 1.94.
49332
49333 * config.guess: Updated from gnulib.
49334 * config.sub: Likewise.
49335 * install-sh: Likewise.
49336 * mkinstalldirs: Likewise.
49337
49338 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49339
49340 * conf/common.rmk (grub_modules_init.lst): Depended on
49341 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
49342 MODSRCFILES.
49343
49344 * genmk.rb (PModule::rule): Reverted the previous change.
49345
49346 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49347
49348 * conf/common.rmk (grub_modules_init.lst): Depends on
49349 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
49350 that the target does not exist before producing.
49351 (grub_modules_init.h): Remove the target before generating.
49352 (grub_emu_init.c): Likewise.
49353
49354 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
49355
49356 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
49357
49358 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
49359 for the target-specific tests. Make sure that we also have the
49360 up-to-date target variables for those tests.
49361
49362 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49363
49364 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
49365 (PModule::rule): Likewise.
49366
49367 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49368
49369 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
49370 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
49371 target-specific flags should be prefixed.
49372 (PModule::rule): Likewise.
49373
49374 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
49375
49376 * configure.ac (CMP): Check if cmp is available explicitly.
49377
49378 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
49379
49380 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
49381 (target_cpu): New variable.
49382 (pkglibdir): Use target_cpu instead of host_cpu.
49383
49384 * util/i386/pc/grub-install.in (host_cpu): Removed.
49385 (target_cpu): New variable.
49386 (pkglibdir): Use target_cpu instead of host_cpu.
49387
49388 * util/genmoddep.c: Removed.
49389
49390 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
49391 instead of GRUB_HOST_SIZEOF_VOID_P.
49392 * kern/dl.c: Likewise.
49393
49394 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
49395 ...
49396 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49397 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49398 (GRUB_TARGET_SIZEOF_LONG): ... this.
49399 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49400 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49401 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49402 to ...
49403 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49404 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49405 (GRUB_TARGET_SIZEOF_LONG): ... this.
49406 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49407 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49408 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49409 to ...
49410 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49411 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49412 (GRUB_TARGET_SIZEOF_LONG): ... this.
49413 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49414 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49415
49416 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
49417 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
49418 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
49419 instead of GRUB_HOST_SIZEOF_LONG.
49420 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
49421 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
49422 GRUB_CPU_WORDS_BIGENDIAN.
49423 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
49424 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
49425 grub_host_ssize_t.
49426
49427 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
49428 (genmoddep_SOURCES): Likewise.
49429 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
49430 (genmoddep_SOURCES): Likewise.
49431 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
49432 (genmoddep_SOURCES): Likewise.
49433 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
49434 Likewise.
49435 (genmoddep_SOURCES): Likewise.
49436
49437 * genmoddep.awk: New file.
49438
49439 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
49440 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
49441 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
49442 (PModule::rule): Likewise.
49443 (Program::rule): Likewise.
49444 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
49445 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
49446 respectively.
49447
49448 * configure.ac: Rewritten intensively to use host and target
49449 instead of build and host, respectively.
49450
49451 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
49452 (host_cpu): Removed.
49453 (target_cpu): New variable.
49454 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
49455 (BUILD_CC): Removed.
49456 (BUILD_CFLAGS): Likewise.
49457 (BUILD_CPPFLAGS): Likewise.
49458 (TARGET_CC): New variable.
49459 (TARGET_CFLAGS): Likewise.
49460 (TARGET_CPPFLAGS): Likewise.
49461 (TARGET_LDFLAGS): Likewise.
49462 (AWK): Likewise.
49463 (include): Use target_cpu instead of host_cpu.
49464 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
49465
49466 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
49467
49468 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
49469
49470 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
49471 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
49472 field 'false' to 'exec_on_false'.
49473 (grub_script_create_cmdif): Renamed argument names to reflect above
49474 changes.
49475
49476 * normal/execute.c (grub_script_execute_cmdif): Likewise.
49477
49478 * normal/script.c (grub_script_create_cmdif): Likewise.
49479
49480 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
49481
49482 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
49483 top.
49484 (grub_hfsplus_btree_recptr): Likewise.
49485 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
49486 FILEBLOCK both to pass a block number and store next block
49487 number.
49488 (grub_hfsplus_read_block): Rewritten heavily to support an extent
49489 overflow file correctly. Specify errors appropriately, because
49490 fshelp expects that GRUB_ERRNO is set when fails. Reuse
49491 grub_hfsplus_btree_recptr to get the pointer to a found key.
49492 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
49493 is found.
49494
49495 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
49496 linux.mod.
49497 (_linux_mod_SOURCES): New variable.
49498 (_linux_mod_CFLAGS): Likewise.
49499 (_linux_mod_LDFLAGS): Likewise.
49500 (linux_mod_SOURCES): Likewise.
49501 (linux_mod_CFLAGS): Likewise.
49502 (linux_mod_LDFLAGS): Likewise.
49503
49504 * DISTLIST: Added loader/i386/efi/linux.c,
49505 loader/i386/efi/linux_normal.c and
49506 include/grub/i386/efi/loader.h.
49507
49508 * loader/i386/efi/linux.c: New file.
49509 * loader/i386/efi/linux_normal.c: Likewise.
49510 * include/grub/i386/efi/loader.h: Likewise.
49511
49512 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
49513
49514 * commands/blocklist.c: New file.
49515
49516 * DISTLIST: Added commands/blocklist.c.
49517
49518 * term/efi/console.c (grub_console_highlight_color): Use a lighter
49519 color for the background, and a darker color for the foreground.
49520 (grub_console_checkkey): Return READ_KEY.
49521 (grub_console_cls): Set the background to
49522 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
49523
49524 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
49525
49526 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
49527 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
49528
49529 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
49530 prototype.
49531
49532 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
49533 BG. The spec is wrong again.
49534
49535 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
49536 prototype.
49537 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
49538
49539 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
49540 commands/blocklist.c.
49541 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
49542
49543 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
49544 (blocklist_mod_SOURCES): New variable.
49545 (blocklist_mod_CFLAGS): Likewise.
49546 (blocklist_mod_LDFLAGS): Likewise.
49547
49548 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
49549
49550 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
49551 duplication.
49552 (lba_mode): Use %eax more intensively to reduce the code size.
49553
49554 2006-05-20 Marco Gerards <marco@gnu.org>
49555
49556 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
49557
49558 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
49559 for `menuentry'.
49560 (script): Accept leading newlines.
49561 (newlines): New rule to describe 0 or more newlines.
49562 (commands): Accept `command' with trailing newline. Fixed the
49563 order in which arguments were passed to `grub_script_add_cmd'.
49564 Accept commands separated by newlines.
49565 (function): Changed to accept newlines.
49566 (menuentry) Rewritten.
49567
49568 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
49569 front of the list, instead of to the end.
49570
49571 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
49572
49573 * util/i386/pc/grub-install.in (bindir): New variable.
49574 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
49575 Shaver <lbgwjl@gmail.com>.
49576
49577 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
49578
49579 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
49580 grub/machine/linux.h
49581 * loader/i386/pc/linux.c: Likewise.
49582
49583 * include/grub/i386/pc/linux.h: Moved to ...
49584 * include/grub/i386/linux.h: ... here.
49585
49586 * include/grub/i386/linux.h (struct linux_kernel_params): New
49587 struct.
49588
49589 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
49590
49591 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
49592 checking.
49593 (grub_video_vbe_blit_glyph): Likewise.
49594 (grub_video_vbe_blit_bitmap): Likewise.
49595 (grub_video_vbe_blit_render_target): Likewise.
49596
49597 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
49598
49599 * configure.ac (--with-platform): Properly quote the square
49600 brackets.
49601
49602 2006-05-08 Marco Gerards <marco@gnu.org>
49603
49604 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
49605 this...
49606 (kernel_elf_HEADERS): ...to this. Updated all users.
49607 (grubof_symlist.c): Renamed from this...
49608 (kernel_elf_symlist.c): ...to this. Updated all users.
49609 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49610 (grubof_SOURCES): Renamed from this...
49611 (kernel_elf_SOURCES): ...to this.
49612 (grubof_HEADERS): Renamed from this...
49613 (kernel_elf_HEADERS): ...to this.
49614 (grubof_CFLAGS): Renamed from this...
49615 (kernel_elf_CFLAGS): ...to this.
49616 (grubof_ASFLAGS): Renamed from this...
49617 (kernel_elf_ASFLAGS): ...to this.
49618 (grubof_LDFLAGS): Renamed from this...
49619 (kernel_elf_LDFLAGS): ...to this.
49620
49621 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
49622 this...
49623 (kernel_elf_HEADERS): ...to this. Updated all users.
49624 (grubof_symlist.c): Renamed from this...
49625 (kernel_elf_symlist.c): ...to this. Updated all users.
49626 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49627 (grubof_SOURCES): Renamed from this...
49628 (kernel_elf_SOURCES): ...to this.
49629 (grubof_HEADERS): Renamed from this...
49630 (kernel_elf_HEADERS): ...to this.
49631 (grubof_CFLAGS): Renamed from this...
49632 (kernel_elf_CFLAGS): ...to this.
49633 (grubof_ASFLAGS): Renamed from this...
49634 (kernel_elf_ASFLAGS): ...to this.
49635 (grubof_LDFLAGS): Renamed from this...
49636 (kernel_elf_LDFLAGS): ...to this.
49637
49638 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
49639 `kernel.elf' instead of `grubof'.
49640
49641 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
49642
49643 Add --with-platform to configure. Use pkglibdir instead of
49644 pkgdatadir. This is reported by Roger Leigh.
49645
49646 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
49647 (host_vendor): Likewise.
49648 (host_os): Likewise.
49649 (pkgdatadir): Likewise.
49650 (platform): New variable.
49651 (pkglibdir): Likewise.
49652 Use PKGLIBDIR instead of PKGDATADIR.
49653
49654 * util/i386/pc/grub-install.in (datadir): Removed.
49655 (host_vendor): Likewise.
49656 (host_os): Likewise.
49657 (pkgdatadir): Likewise.
49658 (platform): New variable.
49659 (pkglibdir): Likewise.
49660 Use PKGLIBDIR instead of PKGDATADIR.
49661
49662 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
49663 instead of GRUB_DATADIR.
49664 (main): Likewise.
49665 * util/i386/pc/grub-mkimage.c (usage): Likewise.
49666 (main): Likewise.
49667 * util/i386/efi/grub-mkimage.c (usage): Likewise.
49668 (main): Likewise.
49669
49670 * configure.ac (--with-platform): New option.
49671 Use PLATFORM instead of HOST_VENDOR to specify a platform.
49672
49673 * Makefile.in: Include a makefile based on PLATFORM instead of
49674 HOST_VENDOR.
49675 (pkgdatadir): Not appended by the machine type.
49676 (pkglibdir): Appended by the machine type.
49677 (host_vendor): Removed.
49678 (platform): New variable.
49679 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
49680 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
49681 (uninstall): Likewise.
49682
49683 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
49684
49685 Use the environment context in the menu. Remove the commands
49686 "default" and "timeout", and use variables instead.
49687
49688 * normal/menu.c: Include grub/env.h.
49689 (print_entry): Cast TITLE to silence gcc.
49690 (get_timeout): New function.
49691 (set_timeout): Likewise.
49692 (get_entry_number): Likewise.
49693 (run_menu): Use a default entry, a fallback entry and a timeout
49694 in the environment variables "default", "fallback" and
49695 "timeout". Also, tweak the default entry if it is not within the
49696 current menu entries.
49697 (grub_menu_run): Use a fallback entry in the environment variable
49698 "fallback".
49699
49700 * normal/main.c (read_config_file): Do not initialize
49701 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
49702 NEWMENU->TIMEOUT.
49703 (grub_normal_execute): Use a data slot to store the menu.
49704
49705 * include/grub/normal.h (struct grub_menu): Removed default_entry,
49706 fallback_entry and timeout.
49707 (struct grub_menu_list): Removed.
49708 (grub_menu_list_t): Likewise.
49709 (struct grub_context): Likewise.
49710 (grub_context_t): Likewise.
49711 (grub_context_get): Likewise.
49712 (grub_context_get_current_menu): Likewise.
49713 (grub_context_push_menu): Likewise.
49714 (grub_context_pop_menu): Likewise.
49715 (grub_default_init): Likewise.
49716 (grub_default_fini): Likewise.
49717 (grub_timeout_init): Likewise.
49718 (grub_timeout_fini): Likewise.
49719
49720 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
49721 and timeout.mod.
49722 (normal_mod_SOURCES): Removed normal/context.c.
49723
49724 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
49725 commands/default.c, commands/timeout.c and normal/context.c.
49726 (normal_mod_SOURCES): Removed normal/context.c.
49727
49728 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
49729 commands/timeout.c and normal/context.c.
49730 (normal_mod_SOURCES): Removed normal/context.c.
49731
49732 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
49733 commands/default.c, commands/timeout.c and normal/context.c.
49734 (normal_mod_SOURCES): Removed normal/context.c.
49735
49736 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
49737 timeout.mod.
49738 (default_mod_SOURCES): Removed.
49739 (default_mod_CFLAGS): Likewise.
49740 (default_mod_LDFLAGS): Likewise.
49741 (timeout_mod_SOURCES): Removed.
49742 (timeout_mod_CFLAGS): Likewise.
49743 (timeout_mod_LDFLAGS): Likewise.
49744
49745 * DISTLIST: Removed commands/default.c, commands/timeout.c and
49746 normal/context.c.
49747
49748 * commands/default.c: Removed.
49749 * commands/timeout.c: Likewise.
49750 * normal/context.c: Likewise.
49751
49752 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
49753
49754 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
49755
49756 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
49757
49758 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
49759 "next" to "prev" for readability.
49760 (struct grub_env_sorted_var): New struct.
49761 (grub_env_context): Renamed to ...
49762 (initial_context): ... this.
49763 (grub_env_var_context): Renamed to ...
49764 (current_context): ... this.
49765 (grub_env_find): Look only at CURRENT_CONTEXT.
49766 (grub_env_context_open): Rewritten to copy exported variables from
49767 previous context.
49768 (grub_env_context_close): Rewritten according to the new
49769 scheme. Also, add an assertion to prevent the initial context from
49770 removed.
49771 (grub_env_insert): Removed the code for the sorted list.
49772 (grub_env_remove): Likewise.
49773 (grub_env_export): Simply mark the variable with
49774 GRUB_ENV_VAR_GLOBAL.
49775 (grub_env_set): A cosmetic change for naming consistency.
49776 (grub_env_get): Likewise.
49777 (grub_env_unset): Likewise.
49778 (grub_env_iterate): Rewritten to sort variables within this
49779 function.
49780 (grub_register_variable_hook): Fixed for naming consistency. Call
49781 grub_env_find again, only if NAME is not found at the first time.
49782 (mangle_data_slot_name): New function.
49783 (grub_env_set_data_slot): Likewise.
49784 (grub_env_get_data_slot): Likewise.
49785 (grub_env_unset_data_slot): Likewise.
49786
49787 * include/grub/env.h (grub_env_var_type): New enum.
49788 (GRUB_ENV_VAR_LOCAL): New constant.
49789 (GRUB_ENV_VAR_GLOBAL): Likewise.
49790 (GRUB_ENV_VAR_DATA): Likewise.
49791 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
49792 "type".
49793 (grub_env_set): Replace VAR with NAME for consistency.
49794 (grub_register_variable_hook): Likewise.
49795 (grub_env_export): Specify the name of the argument.
49796 (grub_env_set_data_slot): New prototype.
49797 (grub_env_get_data_slot): Likewise.
49798 (grub_env_unset_data_slot): Likewise.
49799
49800 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
49801
49802 Extend the loader so that GRUB can accept a loader which comes
49803 back to GRUB when a loaded image exits. Also, this change adds
49804 support for a chainloader on EFI.
49805
49806 * term/efi/console.c: Include grub/misc.h.
49807 (grub_console_checkkey): Display a scan code on the top for
49808 debugging. This will be removed once the EFI port gets stable.
49809 Correct the scan code mapping.
49810
49811 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
49812 allocate memory from larger regions, in order to reduce the number
49813 of allocated regions. Otherwise, the MacOSX loader panics.
49814 (filter_memory_map): Avoid less than 1MB for compatibility with
49815 other loaders.
49816 (add_memory_regions): Allocate from the tail of a region, if
49817 possible, to avoid allocating a region near to 1MB, for the MacOSX
49818 loader.
49819
49820 * kern/efi/init.c (grub_efi_set_prefix): Specify
49821 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
49822
49823 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
49824 argument IMAGE_HANDLE and specify it to get a loaded image.
49825 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
49826 grub_efi_get_loaded_image.
49827 (grub_efi_get_filename): Divide the length by the size of
49828 grub_efi_char16_t.
49829 (grub_efi_get_device_path): New function.
49830 (grub_efi_print_device_path): Print End Device Path nodes. Divide
49831 the length by the size of grub_efi_char16_t for a file path device
49832 path node.
49833
49834 * kern/loader.c (grub_loader_noreturn): New variable.
49835 (grub_loader_set): Accept a new argument NORETURN. Set
49836 GRUB_LOADER_NORETURN to NORETURN.
49837 All callers changed.
49838 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
49839 grub_machine_fini.
49840
49841 * include/grub/efi/efi.h (grub_efi_get_device_path): New
49842 prototype.
49843 (grub_efi_get_loaded_image): Take an argument to specify an image
49844 handle.
49845
49846 * include/grub/loader.h (grub_loader_set): Added one more argument
49847 NORETURN.
49848
49849 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
49850 instead of grub_efi_open_protocol.
49851 (grub_efidisk_get_device_name): Likewise.
49852 (grub_efidisk_close): Print a newline.
49853 (grub_efidisk_get_device_handle): Fixed to use
49854 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
49855 GRUB_EFI_DEVICE_PATH_TYPE.
49856
49857 * disk/efi/efidisk.c (device_path_guid): Moved to ...
49858 * kern/efi/efi.c (device_path_guid): ... here.
49859
49860 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
49861 chain.mod.
49862 (kernel_mod_HEADERS): Added efi/disk.h.
49863 (_chain_mod_SOURCES): New variable.
49864 (_chain_mod_CFLAGS): Likewise.
49865 (_chain_mod_LDFLAGS): Likewise.
49866 (chain_mod_SOURCES): Likewise.
49867 (chain_mod_CFLAGS): Likewise.
49868 (chain_mod_LDFLAGS): Likewise.
49869
49870 * DISTLIST: Added include/grub/efi/chainloader.h,
49871 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
49872
49873 * include/grub/efi/chainloader.h: New file.
49874 * loader/efi/chainloader.c: Likewise.
49875 * loader/efi/chainloader_normal.c: Likewise.
49876
49877 2006-04-30 Marco Gerards <marco@gnu.org>
49878
49879 * commands/configfile.c (grub_cmd_source): New function.
49880 (GRUB_MOD_INIT): Register the commands `source' and `.'.
49881 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
49882
49883 2006-04-30 Marco Gerards <marco@gnu.org>
49884
49885 * normal/execute.c (grub_script_execute_cmd): Change the return
49886 type to `grub_err_t'. Correctly return the error.
49887 (grub_script_execute_cmdline): In case a command line is not a
49888 command or a function, try to interpret it as an assignment.
49889
49890 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
49891
49892 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
49893 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
49894 skip a node whose name is obviously invalid as UTF-16,
49895 i.e. contains a NUL character. Stop the iteration when the last
49896 directory entry is found. Instead of using the return value of
49897 grub_hfsplus_btree_iterate_node, store the value in RET and use
49898 it, because the iterator can be stopped by the last directory
49899 entry.
49900
49901 2006-04-30 Marco Gerards <marco@gnu.org>
49902
49903 * include/grub/env.h (grub_env_export): New prototype. Reported
49904 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
49905
49906 2006-04-30 Marco Gerards <marco@gnu.org>
49907
49908 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
49909 size of the extents in a catalog file record.
49910
49911 2006-04-29 Marco Gerards <marco@gnu.org>
49912
49913 * commands/configfile.c (grub_cmd_configfile): Execute the
49914 configfile within its own context.
49915
49916 * include/grub/env.h (grub_env_context_open): New prototype.
49917 (grub_env_context_close): Likewise.
49918
49919 * kern/env.c (grub_env): Removed.
49920 (grub_env_sorted): Likewise.
49921 (grub_env_context): New variable.
49922 (grub_env_var_context): Likewise.
49923 (grub_env_find): Search both the active context and the global
49924 context.
49925 (grub_env_context_open): New function.
49926 (grub_env_context_close): Likewise.
49927 (grub_env_insert): Likewise.
49928 (grub_env_remove): Likewise.
49929 (grub_env_export): Likewise.
49930 (grub_env_set): Changed to use helper functions to avoid code
49931 duplication.
49932 (grub_env_iterate): Rewritten so both the current context and the
49933 global context are being used.
49934
49935 * normal/command.c (export_command): New function.
49936 (grub_command_init): Register the `export' function.
49937
49938 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
49939
49940 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
49941 explicitly to suppress gcc's warnings.
49942 * fs/fat.c (grub_fat_find_dir): Likewise.
49943 (grub_fat_label): Likewise.
49944 * fs/xfs.c (grub_xfs_read_inode): Likewise.
49945 (grub_xfs_mount): Likewise.
49946 (grub_xfs_label): Likewise.
49947 * fs/affs.c (grub_affs_mount): Likewise.
49948 (grub_affs_label): Likewise.
49949 (grub_affs_iterate_dir): Likewise.
49950 * fs/sfs.c (grub_sfs_mount): Likewise.
49951 (grub_sfs_iterate_dir): Likewise.
49952 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
49953 * fs/hfs.c (grub_hfs_mount): Likewise.
49954 (grub_hfs_cmp_catkeys): Likewise.
49955 (grub_hfs_find_dir): Likewise.
49956 (grub_hfs_dir): Likewise.
49957 (grub_hfs_label): Likewise.
49958 * fs/jfs.c (grub_jfs_mount): Likewise.
49959 (grub_jfs_opendir): Likewise.
49960 (grub_jfs_getent): Likewise.
49961 (grub_jfs_lookup_symlink): Likewise.
49962 (grub_jfs_label): Likewise.
49963 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
49964 (grub_hfsplus_iterate_dir): Likewise.
49965 (grub_hfsplus_btree_iterate_node): Made static.
49966
49967 * util/grub-emu.c (prefix): New variable.
49968 (grub_machine_set_prefix): New function.
49969 (main): Do not set the environment variable "prefix" here. Only
49970 set PREFIX, which is used later by grub_machine_set_prefix.
49971
49972 * include/grub/video.h: Do not include grub/symbol.h.
49973 (grub_video_register): Not exported. This symbol is not defined in
49974 the kernel.
49975 (grub_video_unregister): Likewise.
49976 (grub_video_iterate): Likewise.
49977 (grub_video_setup): Likewise.
49978 (grub_video_restore): Likewise.
49979 (grub_video_get_info): Likewise.
49980 (grub_video_get_blit_format): Likewise.
49981 (grub_video_set_palette): Likewise.
49982 (grub_video_get_palette): Likewise.
49983 (grub_video_set_viewport): Likewise.
49984 (grub_video_get_viewport): Likewise.
49985 (grub_video_map_color): Likewise.
49986 (grub_video_map_rgb): Likewise.
49987 (grub_video_map_rgba): Likewise.
49988 (grub_video_fill_rect): Likewise.
49989 (grub_video_blit_glyph): Likewise.
49990 (grub_video_blit_bitmap): Likewise.
49991 (grub_video_blit_render_target): Likewise.
49992 (grub_video_scroll): Likewise.
49993 (grub_video_swap_buffers): Likewise.
49994 (grub_video_create_render_target): Likewise.
49995 (grub_video_delete_render_target): Likewise.
49996 (grub_video_set_active_render_target): Likewise.
49997
49998 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
49999 Undefined.
50000 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
50001
50002 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
50003 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50004 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50005 instead of $(srcdir)/genkernsyms.sh.
50006
50007 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
50008 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50009 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50010 instead of $(srcdir)/genkernsyms.sh.
50011
50012 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
50013 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50014 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50015 instead of $(srcdir)/genkernsyms.sh.
50016
50017 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
50018 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50019 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50020 instead of $(srcdir)/genkernsyms.sh.
50021
50022 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
50023 genkernsyms.sh.
50024
50025 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
50026 genkernsyms.sh.
50027 (gensymlist.sh): New target.
50028 (genkernsyms.sh): Likewise.
50029
50030 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
50031 genkernsyms.sh.in and gensymlist.sh.in.
50032
50033 * genkernsyms.sh: Removed.
50034 * gensymlist.sh: Likewise.
50035
50036 * genkernsyms.sh.in: New file.
50037 * gensymlist.sh.in: Likewise.
50038
50039 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50040
50041 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
50042 clobber "prefix", since we may have already set it manually.
50043
50044 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50045
50046 * kern/misc.c (abort): New alias for grub_abort.
50047
50048 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
50049
50050 A new machine-specific function "grub_machine_set_prefix" is
50051 defined. This is called after loading modules, so that a prefix
50052 initialization can use modules. Also, this change adds an
50053 intensive debugging feature for the memory manager via the
50054 configure option "--enable-mm-debug".
50055
50056 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
50057 PART.LEN.
50058
50059 * kern/sparc64/ieee1275/init.c (abort): Removed.
50060 (grub_stop): Likewise.
50061 (grub_exit): New function.
50062 (grub_set_prefix): Renamed to ...
50063 (grub_machine_set_prefix): ... this.
50064 (grub_machine_init): Do not call grub_set_prefix.
50065
50066 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
50067 (grub_machine_set_prefix): ... this.
50068 (grub_machine_init): Do not call grub_set_prefix.
50069
50070 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
50071 (grub_machine_init): Do not set the prefix here.
50072
50073 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
50074
50075 * kern/efi/init.c: Include grub/mm.h.
50076 (grub_efi_set_prefix): New function.
50077
50078 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
50079 (grub_efi_get_filename): New function.
50080 (grub_print_device_path): Renamed to ...
50081 (grub_efi_print_device_path): ... this.
50082
50083 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
50084 [MM_DEBUG] (grub_realloc): Likewise.
50085 [MM_DEBUG] (grub_free): Likewise.
50086 [MM_DEBUG] (grub_memalign): Likewise.
50087 [MM_DEBUG] (grub_mm_debug): New variable.
50088 [MM_DEBUG] (grub_debug_malloc): New function.
50089 [MM_DEBUG] (grub_debug_free): New function.
50090 [MM_DEBUG] (grub_debug_realloc): New function.
50091 [MM_DEBUG] (grub_debug_memalign): New function.
50092
50093 * kern/misc.c (grub_abort): Print a newline to distinguish
50094 the message.
50095
50096 * kern/main.c (grub_main): Call grub_machine_set_prefix and
50097 grub_set_root_dev after loading modules. This is necessary when
50098 setting a prefix depends on modules.
50099
50100 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
50101 (grub_efi_print_device_path): ... this.
50102 (grub_efi_get_filename): New prototype.
50103 (grub_efi_set_prefix): Likewise.
50104
50105 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
50106 and grub/disk.h.
50107 (grub_efidisk_get_device_handle): New prototype.
50108 (grub_efidisk_get_device_name): Likewise.
50109
50110 * include/grub/mm.h: Include config.h.
50111 (MM_DEBUG): Removed.
50112 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
50113 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
50114 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
50115 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
50116 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
50117 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
50118 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
50119 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
50120 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
50121
50122 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
50123
50124 * disk/efi/efidisk.c: Include grub/partition.h.
50125 (iterate_child_devices): New function.
50126 (add_device): First, compare only last device path nodes, so that
50127 devices are sorted by the types.
50128 (grub_efidisk_get_device_handle): New function.
50129 (grub_efidisk_get_device_name): Likewise.
50130
50131 * configure.ac (--enable-mm-debug): New option to enable the
50132 memory manager debugging feature. This makes the binary much
50133 bigger, so is disabled by default.
50134
50135 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
50136
50137 Use grub_abort instead of grub_stop, and grub_exit must be
50138 define in each architecture now. Also, this change adds support
50139 for EFI disks.
50140
50141 * util/i386/pc/grub-probefs.c: Include grub/term.h.
50142 (grub_getkey): New function.
50143 (grub_term_get_current): Likewise.
50144
50145 * util/i386/pc/grub-setup.c: Include grub/term.h.
50146 (grub_getkey): New function.
50147 (grub_term_get_current): Likewise.
50148
50149 * util/misc.c (grub_stop): Renamed to ...
50150 (grub_exit): ... this.
50151
50152 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
50153 (grub_exit): ... this.
50154 (grub_machine_init): Use grub_abort instead of abort.
50155 (grub_stop): Removed.
50156
50157 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
50158 abort.
50159
50160 * kern/i386/pc/startup.S (grub_exit): New function.
50161 (cold_reboot): New label.
50162
50163 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
50164 (grub_efi_init): Call grub_efidisk_init.
50165 (grub_efi_fini): Call grub_efidisk_fini.
50166
50167 * kern/efi/efi.c: Include grub/mm.h.
50168 (grub_efi_console_control_guid): Renamed to ...
50169 (console_control_guid): ... this.
50170 (grub_efi_loaded_image_guid): Renamed to ...
50171 (loaded_image_guid): ... this.
50172 (grub_efi_locate_handle): New function.
50173 (grub_efi_open_protocol): Likewise.
50174 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
50175 GRUB_EFI_CONSOLE_CONTROL_GUID.
50176 (grub_efi_exit): Removed.
50177 (grub_stop): Likewise.
50178 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
50179 (grub_exit): New function.
50180 (grub_print_device_path): Likewise.
50181
50182 * kern/rescue.c (grub_rescue_cmd_exit): New function.
50183 (grub_enter_rescue_mode): Register "exit".
50184
50185 * kern/misc.c (grub_real_dprintf): A cosmetic change.
50186 (grub_abort): New function.
50187
50188 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
50189
50190 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
50191
50192 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
50193
50194 * include/grub/efi/efi.h (grub_efi_exit): Removed.
50195 (grub_print_device_path): New prototype.
50196 (grub_efi_locate_handle): Likewise.
50197 (grub_efi_open_protocol): Likewise.
50198
50199 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
50200 * disk/efi/efidisk.c: Likewise.
50201
50202 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
50203
50204 * include/grub/efi/console_control.h
50205 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
50206
50207 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
50208 last 8 bytes as an array.
50209 (GRUB_EFI_DISK_IO_GUID): New macro.
50210 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
50211 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
50212 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
50213 grub_uint8_t.
50214 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
50215 (struct grub_efi_device_path): Rename the member "sub_type" to
50216 "subtype".
50217 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
50218 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
50219 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
50220 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
50221 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
50222 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
50223 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
50224 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
50225 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
50226 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
50227 (struct grub_efi_pci_device_path): New structure.
50228 (grub_efi_pci_device_path_t): New type.
50229 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
50230 (struct grub_efi_pccard_device_path): New structure.
50231 (grub_efi_pccard_device_path_t): New type.
50232 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
50233 (struct grub_efi_memory_mapped_device_path): New structure.
50234 (grub_efi_memory_mapped_device_path_t): New type.
50235 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
50236 (struct grub_efi_vendor_device_path): New structure.
50237 (grub_efi_vendor_device_path_t): New type.
50238 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
50239 (struct grub_efi_controller_device_path): New structure.
50240 (grub_efi_controller_device_path_t): New type.
50241 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
50242 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
50243 (struct grub_efi_acpi_device_path): New structure.
50244 (grub_efi_acpi_device_path_t): New type.
50245 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
50246 (struct grub_efi_expanded_acpi_device_path): New structure.
50247 (grub_efi_expanded_acpi_device_path_t): New type.
50248 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
50249 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
50250 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
50251 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
50252 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
50253 (struct grub_efi_atapi_device_path): New structure.
50254 (grub_efi_atapi_device_path_t): New type.
50255 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
50256 (struct grub_efi_fibre_channel_device_path): New structure.
50257 (grub_efi_fibre_channel_device_path_t): New type.
50258 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
50259 (struct grub_efi_1394_device_path): New structure.
50260 (grub_efi_1394_device_path_t): New type.
50261 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
50262 (struct grub_efi_usb_device_path): New structure.
50263 (grub_efi_usb_device_path_t): New type.
50264 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
50265 (struct grub_efi_usb_class_device_path): New structure.
50266 (grub_efi_usb_class_device_path_t): New type.
50267 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
50268 (struct grub_efi_i2o_device_path): New structure.
50269 (grub_efi_i2o_device_path_t): New type.
50270 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
50271 (struct grub_efi_mac_address_device_path): New structure.
50272 (grub_efi_mac_address_device_path_t): New type.
50273 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
50274 (struct grub_efi_ipv4_device_path): New structure.
50275 (grub_efi_ipv4_device_path_t): New type.
50276 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
50277 (struct grub_efi_ipv6_device_path): New structure.
50278 (grub_efi_ipv6_device_path_t): New type.
50279 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
50280 (struct grub_efi_infiniband_device_path): New structure.
50281 (grub_efi_infiniband_device_path_t): New type.
50282 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
50283 (struct grub_efi_uart_device_path): New structure.
50284 (grub_efi_uart_device_path_t): New type.
50285 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
50286 (struct grub_efi_vendor_messaging_device_path): New structure.
50287 (grub_efi_vendor_messaging_device_path_t): New type.
50288 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
50289 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
50290 (struct grub_efi_hard_drive_device_path): New structure.
50291 (grub_efi_hard_drive_device_path_t): New type.
50292 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
50293 (struct grub_efi_cdrom_device_path): New structure.
50294 (grub_efi_cdrom_device_path_t): New type.
50295 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
50296 (struct grub_efi_vendor_media_device_path): New structure.
50297 (grub_efi_vendor_media_device_path_t): New type.
50298 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
50299 (struct grub_efi_file_path_device_path): New structure.
50300 (grub_efi_file_path_device_path_t): New type.
50301 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
50302 (struct grub_efi_protocol_device_path): New structure.
50303 (grub_efi_protocol_device_path_t): New type.
50304 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
50305 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
50306 (struct grub_efi_bios_device_path): New structure.
50307 (grub_efi_bios_device_path_t): New type.
50308 (struct grub_efi_disk_io): New structure.
50309 (grub_efi_disk_io_t): New type.
50310 (struct grub_efi_block_io_media): New structure.
50311 (grub_efi_block_io_media_t): New type.
50312 (struct grub_efi_block_io): New structure.
50313 (grub_efi_block_io_t): New type.
50314
50315 * include/grub/misc.h (grub_stop): Removed.
50316 (grub_exit): New prototype.
50317 (grub_abort): Likewise.
50318
50319 * include/grub/disk.h (enum grub_disk_dev_id): Added
50320 GRUB_DISK_DEVICE_EFIDISK_ID.
50321
50322 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
50323 disk/efi/efidisk.c.
50324 (kernel_syms.lst): Remove the target if an error occurs.
50325
50326 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
50327
50328 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
50329 as it was simply too buggy.
50330
50331 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
50332
50333 * kern/misc.c (grub_lltoa): New function.
50334 (grub_vsprintf): Added support for the long long suffix,
50335 i.e. "ll".
50336
50337 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
50338
50339 * Makefile.in (LDFLAGS): Add variable.
50340 (LD): Remove variable.
50341 * configure.ac: Add -m32 to LDFLAGS.
50342 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
50343 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
50344 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
50345 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
50346 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
50347 variables.
50348 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
50349 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
50350 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
50351
50352 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
50353
50354 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
50355 length for unknown glyph.
50356
50357 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50358
50359 Add support for pre-loaded modules into the EFI port.
50360
50361 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
50362 completely. Accept one more argument DIR. The caller has changed.
50363
50364 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
50365
50366 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
50367 (grub_efi_loaded_image_guid): New variable.
50368 (grub_efi_get_loaded_image): New function.
50369 (grub_arch_modules_addr): Likewise.
50370
50371 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
50372 prototype.
50373
50374 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
50375 (struct grub_efi_loaded_image): New structure.
50376 (grub_efi_loaded_image_t): New type.
50377
50378 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50379
50380 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
50381 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
50382 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
50383
50384 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
50385
50386 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
50387
50388 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
50389
50390 * DISTLIST: Added include/grub/efi/console.h,
50391 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
50392 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50393
50394 * include/grub/efi/console.h: New file.
50395 * include/grub/efi/time.h: Likewise.
50396 * include/grub/i386/efi/kernel.h: Likewise.
50397 * kern/efi/init.c: Likewise.
50398 * kern/efi/mm.c: Likewise.
50399 * term/efi/console.c: Likewise.
50400
50401 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
50402 (grub_stop): Removed.
50403 (grub_get_rtc): Likewise.
50404 (grub_machine_init): Simply call grub_efi_init.
50405 (grub_machine_fini): Call grub_efi_fini.
50406
50407 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
50408 (grub_efi_output_string): Removed.
50409 (grub_efi_stall): New function.
50410 (grub_stop): Likewise.
50411 (grub_get_rtc): Likewise.
50412
50413 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
50414 (grub_efi_stall): New prototype.
50415 (grub_efi_allocate_pages): Likewise.
50416 (grub_efi_free_pages): Likewise.
50417 (grub_efi_get_memory_map): Likewise.
50418 (grub_efi_mm_init): Likewise.
50419 (grub_efi_mm_fini): Likewise.
50420 (grub_efi_init): Likewise.
50421 (grub_efi_fini): Likewise.
50422
50423 * include/grub/i386/efi/time.h: Do not include
50424 grub/symbol.h. Include grub/efi/time.h.
50425 (GRUB_TICKS_PER_SECOND): Removed.
50426 (grub_get_rtc): Likewise.
50427
50428 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
50429 Added padding. The EFI spec is buggy.
50430 (GRUB_EFI_BLACK): New macro.
50431 (GRUB_EFI_BLUE): Likewise.
50432 (GRUB_EFI_GREEN): Likewise.
50433 (GRUB_EFI_CYAN): Likewise.
50434 (GRUB_EFI_RED): Likewise.
50435 (GRUB_EFI_MAGENTA): Likewise.
50436 (GRUB_EFI_BROWN): Likewise.
50437 (GRUB_EFI_LIGHTGRAY): Likewise.
50438 (GRUB_EFI_BRIGHT): Likewise.
50439 (GRUB_EFI_DARKGRAY): Likewise.
50440 (GRUB_EFI_LIGHTBLUE): Likewise.
50441 (GRUB_EFI_LIGHTGREEN): Likewise.
50442 (GRUB_EFI_LIGHTCYAN): Likewise.
50443 (GRUB_EFI_LIGHTRED): Likewise.
50444 (GRUB_EFI_LIGHTMAGENTA): Likewise.
50445 (GRUB_EFI_YELLOW): Likewise.
50446 (GRUB_EFI_WHITE): Likewise.
50447 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
50448 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
50449 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
50450 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
50451 (GRUB_EFI_BACKGROUND_RED): Likewise.
50452 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
50453 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
50454 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
50455 (GRUB_EFI_TEXT_ATTR): Likewise.
50456
50457 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
50458 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50459 (kernel_mod_HEADERS): Added efi/time.h.
50460
50461 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
50462
50463 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
50464 include/grub/efi/api.h, include/grub/efi/console_control.h,
50465 include/grub/efi/efi.h, include/grub/efi/pe32.h,
50466 include/grub/i386/efi/time.h, kern/efi/efi.c,
50467 kern/i386/efi/init.c, kern/i386/efi/startup.S,
50468 and util/i386/efi/grub-mkimage.c.
50469
50470 * Makefile.in (RMKFILES): Added i386-efi.rmk.
50471
50472 * genmk.rb (PModule#rule): Do not export symbols if
50473 #{prefix}_EXPORTS is set to "no".
50474
50475 * conf/i386-efi.mk: New file.
50476 * conf/i386-efi.rmk: Likewise.
50477 * include/grub/efi/api.h: Likewise.
50478 * include/grub/efi/console_control.h: Likewise.
50479 * include/grub/efi/efi.h: Likewise.
50480 * include/grub/efi/pe32.h: Likewise.
50481 * include/grub/i386/efi/time.h: Likewise.
50482 * kern/efi/efi.c: Likewise.
50483 * kern/i386/efi/init.c: Likewise.
50484 * kern/i386/efi/startup.S: Likewise.
50485 * util/i386/efi/grub-mkimage.c: Likewise.
50486
50487 2006-04-17 Marco Gerards <marco@gnu.org>
50488
50489 * include/grub/script.h: Include <grub/parser.h> and
50490 "grub_script.tab.h".
50491 (struct grub_lexer_param): New struct.
50492 (struct grub_parser_param): Likewise.
50493 (grub_script_create_arglist): Pass the state in an argument.
50494 (grub_script_add_arglist): Likewise.
50495 (grub_script_create_cmdline): Likewise.
50496 (grub_script_create_cmdblock): Likewise.
50497 (grub_script_create_cmdif): Likewise.
50498 (grub_script_create_cmdmenu): Likewise.
50499 (grub_script_add_cmd): Likewise.
50500 (grub_script_arg_add): Likewise.
50501 (grub_script_lexer_ref): Likewise.
50502 (grub_script_lexer_deref): Likewise.
50503 (grub_script_lexer_record_start): Likewise.
50504 (grub_script_lexer_record_stop): Likewise.
50505 (grub_script_mem_record): Likewise.
50506 (grub_script_mem_record_stop): Likewise.
50507 (grub_script_malloc): Likewise.
50508 (grub_script_yylex): Likewise.
50509 (grub_script_yyparse): Likewise.
50510 (grub_script_yyerror): Likewise.
50511 (grub_script_yylex): Likewise.
50512 (grub_script_lexer_init): Return the state.
50513
50514 * normal/lexer.c (grub_script_lexer_state): Removed variable.
50515 (grub_script_lexer_done): Likewise.
50516 (grub_script_lexer_getline): Likewise.
50517 (grub_script_lexer_refs): Likewise.
50518 (script): Likewise.
50519 (newscript): Likewise.
50520 (record): Likewise.
50521 (recording): Likewise.
50522 (recordpos): Likewise.
50523 (recordlen): Likewise.
50524 (grub_script_lexer_init): Return the state instead of setting
50525 global variables.
50526 (grub_script_lexer_ref): Use the newly added argument for state
50527 instead of globals.
50528 (grub_script_lexer_deref): Likewise.
50529 (grub_script_lexer_record_start): Likewise.
50530 (grub_script_lexer_record_stop): Likewise.
50531 (recordchar): Likewise.
50532 (nextchar): Likewise.
50533 (grub_script_yylex2): Likewise.
50534 (grub_script_yylex): Likewise.
50535 (grub_script_yyerror): Likewise.
50536
50537 * normal/parser.y (func_mem): Removed variable.
50538 (menu_entry): Likewise.
50539 (err): Likewise.
50540 (%lex-param): New parser option.
50541 (%parse-param): Likewise.
50542 (script): Always return the AST.
50543 (argument): Pass the state around.
50544 (arguments): Likewise.
50545 (grubcmd): Likewise.
50546 (commands): Likewise.
50547 (function): Likewise.
50548 (menuentry): Likewise.
50549 (if_statement): Likewise.
50550 (if): Likewise.
50551
50552 * normal/script.c (grub_script_memused): Removed variable.
50553 (grub_script_parsed): Likewise.
50554 (grub_script_malloc): Added a state argument. Use that instead of
50555 global variables.
50556 (grub_script_mem_record): Likewise.
50557 (grub_script_mem_record_stop): Likewise.
50558 (grub_script_arg_add): Likewise.
50559 (grub_script_add_arglist): Likewise.
50560 (grub_script_create_cmdline): Likewise.
50561 (grub_script_create_cmdif): Likewise.
50562 (grub_script_create_cmdmenu): Likewise.
50563 (grub_script_add_cmd): Likewise.
50564 (grub_script_parse): Setup the state before calling the parser.
50565
50566 2006-04-16 Marco Gerards <marco@gnu.org>
50567
50568 * normal/command.c (grub_command_init): Remove the title command.
50569
50570 * normal/lexer.c (grub_script_yylex): Renamed from this...
50571 (grub_script_yylex2): ... to this.
50572 (grub_script_yylex): New function. Temporary
50573 introduced to filter some tokens.
50574 (grub_script_yyerror): Print a newline.
50575
50576 * normal/main.c (read_config_file): Output information about the
50577 lines that contain errors. Wait for a key after all lines have
50578 been processed. Don't return an empty menu.
50579
50580 * normal/parser.y (func_mem): Don't initialize.
50581 (menu_entry): Likewise.
50582 (err): New variable.
50583 (script): Don't return anything when an error was encountered.
50584 (ws, returns): Removed rules.
50585 (argument): Disabled concatenated variable support.
50586 (arguments): Remove explicit separators.
50587 (grubcmd): Likewise.
50588 (function): Likewise.
50589 (menuentry): Likewise.
50590 (if): Likewise.
50591 (commands): Likewise. Add error handling.
50592
50593 * normal/script.c (grub_script_create_cmdline): If
50594 `grub_script_parsed' is 0, assume the parser encountered an error.
50595
50596 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
50597
50598 * configure.ac: Add support for EFI. Fix the typo
50599 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
50600
50601 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50602
50603 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
50604 foreign multibyte characters should be shown correctly.
50605
50606 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50607
50608 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
50609 calculation.
50610 (read_config_file): Made it to close file before returning.
50611
50612 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
50613
50614 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
50615 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
50616 video/i386/pc/vbefill.c.
50617
50618 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
50619 video/i386/pc/vbefill.c.
50620
50621 * include/grub/video.h (grub_video_blit_format): New enum.
50622 (grub_video_mode_info): Added new member blit_format.
50623 (grub_video_get_blit_format): New function prototype.
50624
50625 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
50626 function prototype.
50627 (grub_video_vbe_map_rgb): Likewise.
50628 (grub_video_vbe_unmap_color): Likewise.
50629
50630 * include/grub/i386/pc/vbeblit.h: New file.
50631
50632 * include/grub/i386/pc/vbefill.h: New file.
50633
50634 * video/video.c (grub_video_get_blit_format): New function.
50635 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
50636 (grub_video_vbe_map_rgb): Likewise.
50637 (grub_video_vbe_unmap_color): Likewise.
50638
50639 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
50640 optimized fills.
50641 (grub_video_vbe_blit_render_target): Changed to use more optimized
50642 blits.
50643 (grub_video_vbe_setup): Added detection for optimized settings.
50644 (grub_video_vbe_create_render_target): Likewise.
50645
50646 * video/i386/pc/vbeblit.c: New file.
50647
50648 * video/i386/pc/vbefill.c: New file.
50649
50650 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
50651
50652 * font/manager.c (grub_font_get_glyph): Removed font fixup from
50653 here...
50654
50655 * util/unifont2pff.rb: ... and moved it to here. Improved argument
50656 parsing to support both hex and dec ranges. If filename was missing
50657 show usage information.
50658
50659 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
50660
50661 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
50662 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
50663
50664 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
50665 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
50666 (video_mod_SOURCES): Added.
50667 (video_mod_CFLAGS): Likewise.
50668 (video_mod_LDFLAGS): Likewise.
50669 (gfxterm_mod_SOURCES): Likewise.
50670 (gfxterm_mod_CFLAGS): Likewise.
50671 (gfxterm_mod_LDFLAGS): Likewise.
50672 (videotest_mod_SOURCES): Likewise.
50673 (videotest_mod_CFLAGS): Likewise.
50674 (videotest_mod_LDFLAGS): Likewise.
50675 (vesafb_mod_SOURCES): Removed.
50676 (vesafb_mod_CFLAGS): Likewise.
50677 (vesafb_mod_LDFLAGS): Likewise.
50678 (vga_mod_SOURCES): Likewise.
50679 (vga_mod_CFLAGS): Likewise.
50680 (vga_mod_LDFLAGS): Likewise.
50681
50682 * commands/videotest.c: New file.
50683
50684 * font/manager.c (fill_with_default_glyph): Modified to use
50685 grub_font_glyph.
50686 (grub_font_get_glyph): Likewise.
50687 (fontmanager): Renamed from this...
50688 (font_manager): ... to this.
50689
50690 * include/grub/font.h (grub_font_glyph): Added new structure.
50691 (grub_font_get_glyph): Modified to use grub_font_glyph.
50692
50693 * include/grub/misc.h (grub_abs): Added as inline function.
50694
50695 * include/grub/video.h: New file.
50696
50697 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
50698 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
50699 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
50700 (grub_vbe_get_controller_info): Renamed from this...
50701 (grub_vbe_bios_get_controller_info): ... to this.
50702 (grub_vbe_get_mode_info): Renamed from this...
50703 (grub_vbe_bios_get_mode_info): ... to this.
50704 (grub_vbe_set_mode): Renamed from this...
50705 (grub_vbe_bios_set_mode): ... to this.
50706 (grub_vbe_get_mode): Renamed from this...
50707 (grub_vbe_bios_get_mode): ... to this.
50708 (grub_vbe_set_memory_window): Renamed from this...
50709 (grub_vbe_bios_set_memory_window): ... to this.
50710 (grub_vbe_get_memory_window): Renamed from this...
50711 (grub_vbe_bios_get_memory_window): ... to this.
50712 (grub_vbe_set_scanline_length): Renamed from this...
50713 (grub_vbe_set_scanline_length): ... to this.
50714 (grub_vbe_get_scanline_length): Renamed from this...
50715 (grub_vbe_bios_get_scanline_length): ... to this.
50716 (grub_vbe_set_display_start): Renamed from this...
50717 (grub_vbe_bios_set_display_start): ... to this.
50718 (grub_vbe_get_display_start): Renamed from this...
50719 (grub_vbe_bios_get_display_start): ... to this.
50720 (grub_vbe_set_palette_data): Renamed from this...
50721 (grub_vbe_bios_set_palette_data): ... to this.
50722 (grub_vbe_set_pixel_rgb): Removed.
50723 (grub_vbe_set_pixel_index): Likewise.
50724
50725 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
50726 from this...
50727 (grub_vbe_bios_get_controller_info): ... to this.
50728 (grub_vbe_get_mode_info): Renamed from this...
50729 (grub_vbe_bios_get_mode_info): ... to this.
50730 (grub_vbe_set_mode): Renamed from this...
50731 (grub_vbe_bios_set_mode): ... to this.
50732 (grub_vbe_get_mode): Renamed from this...
50733 (grub_vbe_bios_get_mode): ... to this.
50734 (grub_vbe_set_memory_window): Renamed from this...
50735 (grub_vbe_bios_set_memory_window): ... to this.
50736 (grub_vbe_get_memory_window): Renamed from this...
50737 (grub_vbe_bios_get_memory_window): ... to this.
50738 (grub_vbe_set_scanline_length): Renamed from this...
50739 (grub_vbe_set_scanline_length): ... to this.
50740 (grub_vbe_get_scanline_length): Renamed from this...
50741 (grub_vbe_bios_get_scanline_length): ... to this.
50742 (grub_vbe_set_display_start): Renamed from this...
50743 (grub_vbe_bios_set_display_start): ... to this.
50744 (grub_vbe_get_display_start): Renamed from this...
50745 (grub_vbe_bios_get_display_start): ... to this.
50746 (grub_vbe_set_palette_data): Renamed from this...
50747 (grub_vbe_bios_set_palette_data): ... to this.
50748 (grub_vbe_bios_get_controller_info): Fixed problem with registers
50749 getting corrupted after calling it. Added more pushes and pops.
50750 (grub_vbe_bios_set_mode): Likewise.
50751 (grub_vbe_bios_get_mode): Likewise.
50752 (grub_vbe_bios_get_memory_window): Likewise.
50753 (grub_vbe_bios_set_scanline_length): Likewise.
50754 (grub_vbe_bios_get_scanline_length): Likewise.
50755 (grub_vbe_bios_get_display_start): Likewise.
50756 (grub_vbe_bios_set_palette_data): Likewise.
50757
50758 * normal/cmdline.c (cl_set_pos): Refresh the screen.
50759 (cl_insert): Likewise.
50760 (cl_delete): Likewise.
50761
50762 * term/gfxterm.c: New file.
50763
50764 * term/i386/pc/vesafb.c: Removed file.
50765
50766 * video/video.c: New file.
50767
50768 * video/i386/pc/vbe.c (real2pm): Added new function.
50769 (grub_video_vbe_draw_pixel): Likewise.
50770 (grub_video_vbe_get_video_ptr): Likewise.
50771 (grub_video_vbe_get_pixel): Likewise
50772 (grub_video_vbe_init): Likewise.
50773 (grub_video_vbe_fini): Likewise.
50774 (grub_video_vbe_setup): Likewise.
50775 (grub_video_vbe_get_info): Likewise.
50776 (grub_video_vbe_set_palette): Likewise.
50777 (grub_video_vbe_get_palette): Likewise.
50778 (grub_video_vbe_set_viewport): Likewise.
50779 (grub_video_vbe_get_viewport): Likewise.
50780 (grub_video_vbe_map_color): Likewise.
50781 (grub_video_vbe_map_rgb): Likewise.
50782 (grub_video_vbe_map_rgba): Likewise.
50783 (grub_video_vbe_unmap_color): Likewise.
50784 (grub_video_vbe_fill_rect): Likewise.
50785 (grub_video_vbe_blit_glyph): Likewise.
50786 (grub_video_vbe_blit_bitmap): Likewise.
50787 (grub_video_vbe_blit_render_target): Likewise.
50788 (grub_video_vbe_scroll): Likewise.
50789 (grub_video_vbe_swap_buffers): Likewise.
50790 (grub_video_vbe_create_render_target): Likewise.
50791 (grub_video_vbe_delete_render_target): Likewise.
50792 (grub_video_vbe_set_active_render_target): Likewise.
50793 (grub_vbe_set_pixel_rgb): Remove function.
50794 (grub_vbe_set_pixel_index): Likewise.
50795 (index_color_mode): Remove static variable.
50796 (active_mode): Likewise.
50797 (framebuffer): Likewise.
50798 (bytes_per_scan_line): Likewise.
50799 (grub_video_vbe_adapter): Added new static variable.
50800 (framebuffer): Likewise.
50801 (render_target): Likewise.
50802 (initial_mode): Likewise.
50803 (mode_in_use): Likewise.
50804 (mode_list): Likewise.
50805
50806 2006-03-10 Marco Gerards <marco@gnu.org>
50807
50808 * configure.ac (AC_INIT): Bumped to 1.93.
50809
50810 * DISTLIST: Added `include/grub/hfs.h'.
50811
50812 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
50813
50814 * boot/i386/pc/boot.S (general_error): Before looping, try INT
50815 18H, which might help the BIOS falling back to next boot media.
50816
50817 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
50818
50819 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
50820 Poe Chen <poe.poechen@gmail.com>.
50821
50822 2006-01-17 Marco Gerards <marco@gnu.org>
50823
50824 * include/grub/normal.h: Include <grub/script.h>.
50825 (grub_command_list): Removed struct.
50826 (grub_command_list_t): Removed type.
50827 (grub_menu_entry): Remove members `num' and `command_list'. Add
50828 members `commands' and `sourcecode'.
50829 * include/grub/script.h: Add inclusion guards.
50830 (grub_script_cmd_menuentry): New struct.
50831 (grub_script_execute_menuentry): New prototype.
50832 (grub_script_lexer_record_start): Likewise.
50833 (grub_script_lexer_record_stop): Likewise.
50834 * normal/execute.c (grub_script_execute_menuentry): New function.
50835 * normal/lexer.c (record, recording, recordpos, recordlen): New
50836 variables.
50837 (grub_script_lexer_record_start): New function.
50838 (grub_script_lexer_record_stop): Likewise.
50839 (recordchar): Likewise.
50840 (nextchar): Likewise.
50841 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
50842 2048 as the buffer size. Add the tokens `menuentry' and `@'.
50843 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
50844 (current_menu): New variable.
50845 (free_menu): Mainly rewritten.
50846 (grub_normal_menu_addentry): New function.
50847 (read_config_file): Rewritten.
50848 * normal/menu.c (run_menu_entry): Mainly rewritten.
50849 * normal/menu_entry.c (make_screen): Rewritten the code to insert
50850 the menu entry.
50851 (run): Mainly rewritten.
50852 * normal/parser.y (menu_entry): New variable.
50853 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
50854 (menuentry): New rule.
50855 (command): Add `menuentry'.
50856 (if_statement): Allow additional returns before `fi'.
50857 * normal/script.c (grub_script_create_cmdmenu): New function.
50858
50859 2006-01-03 Marco Gerards <marco@gnu.org>
50860
50861 * INSTALL: GNU Bison is required.
50862 * configure.ac: Rewritten the test to detect Bison.
50863 * Makefile.in (YACC): New variable. Reported by Xun Sun
50864 <xun.sun.cn@gmail.com>.
50865
50866 2006-01-03 Marco Gerards <marco@gnu.org>
50867
50868 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
50869 the HFS+ filesystem to filesystem blocks.
50870 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
50871 GCC warning is silenced.
50872
50873 2006-01-03 Marco Gerards <marco@gnu.org>
50874
50875 * partmap/apple.c (apple_partition_map_iterate): Convert the data
50876 read from disk from big endian to host byte order.
50877
50878 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
50879
50880 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
50881 documentation.
50882 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
50883 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
50884 embedded HFS+ filesystem.
50885 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
50886 (grub_hfs_sblock): Move from here...
50887 * include/grub/hfs.h: To here... New file.
50888 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
50889 documentation.
50890 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
50891 New macros.
50892 (grub_hfsplus_volheader): Change type of member `magic' to
50893 `grub_uint16_t'.
50894 (grub_hfsplus_data): Add new member `embedded_offset'.
50895 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
50896 returned block.
50897 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
50898 Calculate the offset.
50899
50900 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50901
50902 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
50903 Removed.
50904 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
50905
50906 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50907
50908 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
50909 ENV->NAME is NULL after allocating ENV->VALUE.
50910
50911 2005-12-25 Marco Gerards <marco@gnu.org>
50912
50913 * kern/env.c (grub_env_set): Rewritten the error handling code.
50914
50915 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50916
50917 * geninit.sh: Made more robust, and more portable.
50918
50919 2005-12-25 Marco Gerards <marco@gnu.org>
50920
50921 Add support for Apple HFS+ filesystems.
50922
50923 * fs/hfsplus.c: New file.
50924
50925 * DISTLIST: Added `fs/hfsplus.c'.
50926
50927 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
50928 (hfsplus_mod_SOURCES): New variable.
50929 (hfsplus_mod_CFLAGS): Likewise.
50930 (hfsplus_mod_LDFLAGS): Likewise.
50931 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
50932 (grub_setup_SOURCES): Likewise.
50933 (grub_mkdevicemap_SOURCES): Likewise.
50934 (grub_emu_SOURCES): Likewise.
50935 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
50936
50937 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
50938
50939 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
50940
50941 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50942
50943 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
50944 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
50945 include/grub/parser.h, include/grub/script.h, kern/parser.c,
50946 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
50947 normal/lexer.c, normal/parser.y, normal/script.c, and
50948 partmap/gpt.c.
50949 Removed kern/sparc64/cache.c.
50950
50951 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
50952 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
50953 grub_emu_init.c.
50954
50955 * configure.ac (AC_INIT): Bumped to 1.92.
50956
50957 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
50958
50959 * kern/err.c (grub_error_push): Added new function to support error
50960 stacks.
50961 (grub_error_pop): Likewise.
50962 (grub_error_stack_items): New local variable to support error stacks.
50963 (grub_error_stack_pos): Likewise.
50964 (grub_error_stack_assert): Likewise.
50965 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
50966 stack depth.
50967 (grub_print_error): Added support to print errors from error stack.
50968
50969 * include/grub/err.h (grub_error_push): Added function prototype.
50970 (grub_error_pop): Likewise.
50971
50972 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
50973
50974 * configure.ac: Accept `powerpc64' as host_cpu.
50975 (amd64): Rename to `biarch32'.
50976
50977 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
50978 non-cacheline-aligned addresses.
50979
50980 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
50981 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
50982 if `size' is non-zero.
50983
50984 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
50985
50986 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
50987 and `cd' to make sure the filename is not prefixed with a
50988 directory name.
50989 (pkgdata_MODULES): Add `gpt.mod'.
50990 (gpt_mod_SOURCES): New variable.
50991 (gpt_mod_CFLAGS): Likewise.
50992 (gpt_mod_LDFLAGS): Likewise.
50993
50994 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
50995
50996 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
50997 New macro.
50998
50999 * partmap/gpt.c: New file.
51000
51001 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
51002 GPT partition map is detected.
51003
51004 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
51005
51006 * commands/i386/pc/play.c: New file.
51007 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
51008 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
51009 macros.
51010
51011 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
51012
51013 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
51014 ((unused))' to silence gcc warning.
51015
51016 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
51017
51018 * configure.ac: Correct `AC_PROG_YACC' test.
51019
51020 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51021
51022 * util/powerpc/ieee1275/grub-install.in: Run the mount point
51023 check before installing files.
51024
51025 2005-11-22 Mike Small <smallm@panix.com>
51026
51027 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
51028 number regex so multidigit numbers are recognized correctly.
51029
51030 2005-11-22 Mike Small <smallm@panix.com>
51031
51032 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
51033 debugging message before attempting to claim memory.
51034 (grub_rescue_cmd_initrd): Add a claim debugging message and try
51035 multiple addresses in case of failure.
51036
51037 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51038
51039 * term/tparm.c (get_space): Remove empty `if' statement.
51040
51041 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
51042
51043 * kern/parser.c (check_varstate): Rename `state' to 's'.
51044
51045 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51046
51047 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
51048 variable definitions to the beginning of each function. Sort stack
51049 variables by size.
51050 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
51051 `buf' argument to `char *'.
51052
51053 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51054
51055 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
51056 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51057 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51058 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51059 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51060 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51061 configfile.mod, search.mod, gzio.mod and test.mod.
51062 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51063 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51064 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51065 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51066 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51067 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51068 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51069 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51070 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51071 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51072 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51073 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51074 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51075 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51076 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51077 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51078 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51079 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51080 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51081 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51082 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51083 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51084 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
51085
51086 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
51087 `grep --include'.
51088 (pkgdata_MODULES): Add test.mod.
51089
51090 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51091
51092 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
51093 appending to variables with "+=".
51094 (PModule): Use full pathname to generate *.lst filenames.
51095
51096 * Makefile.in: Fixed list rules moved from genmk.rb.
51097 (.DELETE_ON_ERROR): New special target.
51098 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
51099
51100 * conf/i386-pc.rmk: Include conf/common.mk.
51101 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51102 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51103 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51104 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51105 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51106 configfile.mod, search.mod, gzio.mod and test.mod.
51107 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51108 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51109 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51110 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51111 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51112 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51113 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51114 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51115 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51116 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51117 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51118 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51119 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51120 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51121 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51122 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51123 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51124 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51125 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51126 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51127 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51128 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51129 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
51130 here...
51131 * conf/common.rmk: ... to here. New file.
51132
51133 * conf/common.mk: New file.
51134
51135 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
51136
51137 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
51138 (grub_script.tab.c): ... here.
51139
51140 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
51141 (grub_script.tab.c): ... here.
51142
51143 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
51144 (grub_script.tab.c): ... here.
51145
51146 * normal/command.c (grub_command_find): Fixed a memory leak of
51147 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
51148
51149 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51150
51151 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
51152 "@" which marks the start of a comment on ARM.
51153 (VARIABLE): Likewise.
51154
51155 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51156
51157 Add support for Linux/ADFS partition tables.
51158
51159 * partmap/acorn.c: New file.
51160
51161 * include/grub/acorn_filecore.h: Likewise.
51162
51163 * DISTLIST: Added `partmap/acorn.c' and
51164 `include/grub/acorn_filecore.h'.
51165
51166 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51167 `partmap/acorn.c'.
51168 (pkgdata_MODULES): Add `acorn.mod'.
51169 (acorn_mod_SOURCES): New variable.
51170 (acorn_mod_CFLAGS): Likewise.
51171
51172 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51173 `partmap/acorn.c'.
51174 (pkgdata_MODULES): Add `acorn.mod'.
51175 (acorn_mod_SOURCES): New variable.
51176 (acorn_mod_CFLAGS): Likewise.
51177
51178 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
51179 (pkgdata_MODULES): Add `acorn.mod'.
51180 (acorn_mod_SOURCES): New variable.
51181 (acorn_mod_CFLAGS): Likewise.
51182 (acorn_mod_LDFLAGS): Likewise.
51183
51184 * include/types.h (grub_disk_addr_t): New typedef.
51185
51186 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
51187
51188 * geninit.sh: New file.
51189
51190 * geninitheader.sh: Likewise.
51191
51192 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
51193 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
51194 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
51195 * commands/configfile.c (grub_configfile_init)
51196 (grub_configfile_fini): Likewise.
51197 * commands/default.c (grub_default_init, grub_default_fini):
51198 Likewise.
51199 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
51200 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
51201 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
51202 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
51203 Likewise.
51204 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
51205 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
51206 Likewise.
51207 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
51208 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
51209 Likewise.
51210 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
51211 Likewise.
51212 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
51213 Likewise.
51214 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
51215 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
51216 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
51217 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
51218 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
51219 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
51220 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
51221 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
51222 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
51223 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
51224 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
51225 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
51226 * partmap/amiga.c (grub_amiga_partition_map_init)
51227 (grub_amiga_partition_map_fini): Likewise.
51228 * partmap/apple.c (grub_apple_partition_map_init)
51229 (grub_apple_partition_map_fini): Likewise.
51230 * partmap/pc.c (grub_pc_partition_map_init)
51231 (grub_pc_partition_map_fini): Likewise.
51232 * partmap/sun.c (grub_sun_partition_map_init,
51233 grub_sun_partition_map_fini): Likewise.
51234 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
51235 Likewise.
51236
51237 * util/grub-emu.c: Include <grub_modules_init.h>.
51238 (main): Don't initialize and de-initialize any modules directly,
51239 use `grub_init_all' and `grub_fini_all' instead.
51240
51241 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
51242 `grub_vesafb_mod_init'.
51243 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
51244 all users.
51245 * term/i386/pc/vga.c (grub_vga_init): Renamed to
51246 `grub_vga_mod_init'. Updated all users.
51247 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
51248
51249 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
51250 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
51251 rules.
51252
51253 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
51254 Generate a function to initialize the module in utilities.
51255 Updated all callers.
51256 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
51257 initialize the module in utilities. Updated all callers.
51258
51259 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51260
51261 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
51262 escape sequence and a literal ^L to clear the screen.
51263
51264 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
51265 when returning from Open Firmware.
51266
51267 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51268
51269 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
51270 (grub_ofconsole_height): Likewise.
51271 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
51272 manually insert a '\n'.
51273 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
51274 `grub_ofconsole_height'. Return early if these are already set.
51275
51276 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
51277
51278 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51279 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
51280 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
51281 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
51282 and `normal/script.c'.
51283 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51284 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51285 (test_mod_SOURCES): New variable.
51286 (test_mod_CFLAGS): Likewise.
51287 (test_mod_LDFLAGS): Likewise.
51288 (pkgdata_MODULES): Add `test.mod'.
51289 (grub_script.tab.c): New rule.
51290 (grub_script.tab.h): Likewise.
51291
51292 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
51293
51294 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51295 `commands/test.c', `normal/execute.c', `normal/lexer.c',
51296 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51297 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51298 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51299 (test_mod_SOURCES): New variable.
51300 (test_mod_CFLAGS): Likewise.
51301 (pkgdata_MODULES): Add `test.mod'.
51302 (grub_script.tab.c): New rule.
51303 (grub_script.tab.h): Likewise.
51304
51305 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
51306
51307 Add initial scripting support.
51308
51309 * commands/test.c: New file.
51310 * include/grub/script.h: Likewise.
51311 * normal/execute.c: Likewise.
51312 * normal/function.c: Likewise.
51313 * normal/lexer.c: Likewise.
51314 * normal/parser.y: Likewise.
51315 * normal/script.c: Likewise.
51316
51317 * configure.ac: Add `AC_PROG_YACC' test.
51318
51319 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
51320 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
51321 `normal/function.c' and `normal/script.c'.
51322 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51323 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51324 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
51325 variables.
51326 (pkgdata_MODULES): Add `test.mod'.
51327 (grub_script.tab.c): New rule.
51328 (grub_script.tab.h): Likewise.
51329
51330 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
51331
51332 * include/grub/normal.h (grub_test_init): New prototype.
51333 (grub_test_fini): Likewise.
51334
51335 * normal/command.c: Include <grub/script.h>.
51336 (grub_command_execute): Rewritten.
51337
51338 * util/grub-emu.c (main): Call `grub_test_init' and
51339 `grub_test_fini'.
51340
51341 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51342
51343 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
51344 to 0.
51345 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
51346 there are no pending characters.
51347
51348 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51349
51350 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
51351 `grub_strndup' to drop device arguments. Replace unnecessary
51352 `grub_strndup' with `grub_strdup'.
51353
51354 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51355
51356 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
51357 `debug' environment variable has been set.
51358
51359 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
51360
51361 * Makefile.in (install-local): Use $(DATA).
51362 (uninstall): Likewise.
51363 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
51364 (sbin_UTILITIES): ... to here.
51365 (sbin_SCRIPTS): New variable.
51366 (grub_install_SOURCES): New variable.
51367 * util/powerpc/ieee1275/grub-install.in: New file.
51368 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
51369 variable.
51370 (add_segments): Call `grub_util_get_path'.
51371
51372 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
51373
51374 From Timothy Baldwin:
51375 * commands/ls.c (grub_ls_list_files): Close FILE with
51376 grub_file_close.
51377 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
51378
51379 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
51380
51381 * include/grub/parser.h: New file.
51382
51383 * kern/parser.c: Likewise.
51384
51385 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
51386 (grub_setup_SOURCES): Likewise.
51387 (grub_probefs_SOURCES): Likewise.
51388 (grub_emu_SOURCES): Likewise.
51389 (kernel_img_HEADERS): Add `parser.h'.
51390
51391 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51392 (grub_emu_SOURCES): Add `kern/parser.c'.
51393 (grubof_SOURCES): Likewise.
51394
51395 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51396 (grubof_SOURCES): Add `kern/parser.c'.
51397
51398 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
51399
51400 * kern/misc.c (grub_split_cmdline): Removed function.
51401
51402 * kern/rescue.c: Include <grub/parser.h>.
51403 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
51404 of `grub_split_cmdline'.
51405
51406 * normal/command.c: Include <grub/parser.h>.
51407 (grub_command_execute): Use `grub_parser_split_cmdline' instead
51408 of `grub_split_cmdline'.
51409
51410 * normal/completion.c: Include <grub/parser.h>.
51411 (cmdline_state): New variable.
51412 (iterate_dir): End the filename with a quote depending on the
51413 command line state.
51414 (get_state): new function.
51415 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
51416 split the arguments and determine the current argument. When the
51417 argument string is not quoted, escape all spaces.
51418
51419 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51420
51421 * normal/sparc64/setjmp.S: New file.
51422
51423 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51424
51425 * include/grub/sparc64/libgcc.h: New file.
51426 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
51427 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
51428 normal/sparc64/setjmp.c.
51429
51430 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51431
51432 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
51433 * kern/sparc64/cache.S: New file.
51434 * kern/sparc64/cache.c: Removed.
51435 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
51436 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
51437 -mtune=ultrasparc.
51438 (COMMON_LDFLAGS): Add -melf64_sparc.
51439 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
51440 (grubof_SOURCES): Use cache.S instead of cache.c.
51441 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
51442 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
51443 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
51444 commented though.
51445 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
51446 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
51447 (linux_mod_CFLAGS): Commented out.
51448 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
51449 out because module isn't built.
51450 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
51451 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
51452 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
51453 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
51454 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
51455 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51456 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51457 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
51458 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
51459 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
51460 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51461 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51462 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
51463 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
51464
51465 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
51466
51467 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
51468 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
51469 longer, because HFS should not be used on PC.
51470
51471 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51472
51473 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
51474 consistently within the loop.
51475
51476 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
51477
51478 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
51479 directory can not be read.
51480
51481 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51482
51483 * configure.ac (AC_INIT): Increase the version number to 1.91.
51484
51485 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
51486 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
51487 term/i386/pc/serial.c.
51488
51489 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51490
51491 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
51492 file size must be permitted.
51493
51494 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
51495 between %ah and %al.
51496
51497 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51498
51499 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
51500 grub_uint64_t.
51501 Call the hook with a NUL-terminated filename.
51502 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
51503 grub_cpu_to_be32.
51504
51505 * kern/term.c (cursor_state): New variable.
51506 (grub_term_set_current): Reset the cursor state on a new
51507 terminal.
51508 (grub_setcursor): Rewritten to use CURSOR_STATE.
51509 (grub_getcursor): New function.
51510
51511 * include/grub/term.h (grub_getcursor): New prototype.
51512
51513 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
51514 integers on ARM. Reported by Timothy Baldwin
51515 <T.E.Baldwin99@members.leeds.ac.uk>.
51516
51517 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
51518
51519 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
51520 allocated.
51521 (grub_sfs_dir): Likewise.
51522
51523 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
51524
51525 Add support for the SFS filesystem.
51526
51527 * fs/sfs.c: New file.
51528
51529 * DISTLIST: Added `fs/sfs.c'.
51530
51531 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
51532 (grub_probefs_SOURCES): Likewise.
51533 (grub_emu_SOURCES): Likewise.
51534 (pkgdata_MODULES): Add `sfs.mod'.
51535 (sfs_mod_SOURCES): New variable.
51536 (sfs_mod_CFLAGS): Likewise.
51537 (sfs_mod_LDFLAGS): Likewise.
51538
51539 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
51540 (pkgdata_MODULES): Add `sfs.mod'.
51541 (sfs_mod_SOURCES): New variable.
51542 (sfs_mod_CFLAGS): Likewise.
51543
51544 * util/grub-emu.c (main): Call `grub_sfs_init' and
51545 `grub_sfs_fini'.
51546
51547 * include/grub/fs.h (grub_sfs_init): New prototype.
51548 (grub_sfs_fini): Likewise.
51549
51550 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
51551
51552 Add support for the AFFS filesystem.
51553
51554 * fs/affs.c: New file.
51555
51556 * DISTLIST: Added `fs/affs.c'.
51557
51558 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
51559 (grub_probefs_SOURCES): Likewise.
51560 (grub_emu_SOURCES): Likewise.
51561 (pkgdata_MODULES): Add `affs.mod'.
51562 (affs_mod_SOURCES): New variable.
51563 (affs_mod_CFLAGS): Likewise.
51564 (affs_mod_LDFLAGS): Likewise.
51565
51566 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
51567 (pkgdata_MODULES): Add `affs.mod'.
51568 (affs_mod_SOURCES): New variable.
51569 (affs_mod_CFLAGS): Likewise.
51570
51571 * util/grub-emu.c (main): Call `grub_affs_init' and
51572 `grub_affs_fini'.
51573
51574 * include/grub/fs.h (grub_affs_init): New prototype.
51575 (grub_affs_fini): Likewise.
51576
51577 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51578
51579 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
51580
51581 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51582
51583 * configure.ac: Accept `x86_64' as host_cpu. In that case add
51584 `-m32' to CFLAGS.
51585
51586 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
51587 linking.
51588
51589 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
51590 (COMMON_LDFLAGS): New variable.
51591 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
51592 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
51593 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
51594 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
51595 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
51596 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
51597 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
51598 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
51599 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
51600 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
51601 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51602 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51603 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
51604 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
51605 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
51606 variables.
51607 (normal_mod_ASFLAGS): Add `-m32'.
51608
51609 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
51610 (grub_host_size_t, grub_host_ssize_t): New types.
51611 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
51612 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
51613 `GRUB_HOST_SIZEOF_VOID_P'.
51614
51615 * include/grub/kernel.h (struct grub_module_header): Type of
51616 member offset changed to `grub_host_off_t'. Type of member size
51617 changed to `grub_host_size_t'.
51618 (struct grub_module_info): Type of member offset changed to
51619 `grub_host_off_t'. Type of member size changed to
51620 `grub_host_size_t'.
51621
51622 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
51623
51624 Make GRUB's kernel compliant to Multiboot Specification.
51625
51626 * kern/i386/pc/startup.S (multiboot_header): New label.
51627 (multiboot_entry): Likewise.
51628 (multiboot_trampoline): Likewise.
51629
51630 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
51631 Increased to 0x4A0.
51632
51633 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
51634 put parentheses after a question mark.
51635 [!GRUB_UTIL] (my_mod): New variable.
51636
51637 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
51638
51639 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
51640
51641 Adds support for the XFS filesystem. Btrees are not supported
51642 yet.
51643
51644 * fs/xfs.c: New file.
51645
51646 * DISTLIST: Added `fs/xfs.c'.
51647
51648 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
51649 (grub_probefs_SOURCES): Likewise.
51650 (grub_emu_SOURCES): Likewise.
51651 (pkgdata_MODULES): Add `xfs.mod'.
51652 (xfs_mod_SOURCES): New variable.
51653 (xfs_mod_CFLAGS): Likewise.
51654
51655 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
51656 (pkgdata_MODULES): Add `xfs.mod'.
51657 (xfs_mod_SOURCES): New variable.
51658 (xfs_mod_CFLAGS): Likewise.
51659
51660 * util/grub-emu.c (main): Call `grub_xfs_init' and
51661 `grub_xfs_fini'.
51662
51663 * include/grub/fs.h (grub_xfs_init): New prototype.
51664 (grub_xfs_fini): Likewise.
51665
51666
51667 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
51668
51669 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
51670 color modes, allow greater than 16 colors to be configured as
51671 a default palette.
51672
51673 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
51674
51675 * normal/completion.c (complete_arguments): Add the qualifier
51676 const into OPTIONS.
51677
51678 From Omniflux <omniflux+lists@omniflux.com>:
51679 * include/grub/terminfo.h: New file.
51680 * include/grub/tparm.h: Likewise.
51681 * include/grub/i386/pc/serial.h: Likewise.
51682 * term/terminfo.c: Likewise.
51683 * term/tparm.c: Likewise.
51684 * term/i386/pc/serial.c: Likewise.
51685 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
51686 serial.mod.
51687 (terminfo_mod_SOURCES): New variable.
51688 (terminfo_mod_CFLAGS): Likewise.
51689 (serial_mod_SOURCES): Likewise.
51690 (serial_mod_CFLAGS): Likewise.
51691
51692 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
51693
51694 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
51695 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
51696 and kern/powerpc/ieee1275/cmain.c, respectively.
51697
51698 * boot/powerpc/ieee1275/crt0.S: Moved to ...
51699 * kern/powerpc/ieee1275/crt0.S: ... here.
51700
51701 * boot/powerpc/ieee1275/cmain.c: Moved to ...
51702 * kern/powerpc/ieee1275/cmain.c: ... here.
51703
51704 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
51705 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
51706 instead of boot/powerpc/ieee1275/crt0.S and
51707 boot/powerpc/ieee1275/cmain.c, respectively.
51708
51709 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
51710 sectors. It was not used anyway.
51711
51712 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51713
51714 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
51715 `unused parameter' warning.
51716
51717 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51718
51719 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
51720 function.
51721 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
51722 getcharwidth.
51723
51724 2005-08-28 Marco Gerards <metgerards@student.han.nl>
51725
51726 * include/grub/normal.h (enum grub_completion_type): Added
51727 `GRUB_COMPLETION_TYPE_ARGUMENT'.
51728
51729 * normal/cmdline.c (print_completion): Handle
51730 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
51731 * normal/menu_entry.c (store_completion): Likewise.
51732
51733 * normal/completion.c (complete_arguments): New function.
51734 (grub_normal_do_completion): Call `complete_arguments' when the
51735 current words start with a dash.
51736
51737 2005-08-27 Marco Gerards <metgerards@student.han.nl>
51738
51739 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
51740 `gzio.mod' instead of `io.mod').
51741
51742 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
51743
51744 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
51745 (DISTDIRS): Added io and video.
51746 Rewrite the search routine to make an output consistently.
51747
51748 * DISTLIST: Added conf/sparc64-ieee1275.mk,
51749 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
51750 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
51751 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
51752 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
51753 util/powerpc/ieee1275/misc.c.
51754
51755 * include/grub/gzio.h: New file.
51756 * io/gzio.c: Likewise.
51757
51758 * kern/file.c (grub_file_close): Call grub_device_close only if
51759 FILE->DEVICE is not NULL.
51760
51761 * include/grub/mm.h [!NULL] (NULL): New macro.
51762
51763 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
51764
51765 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
51766 (pkgdata_MODULES): Added gzio.mod.
51767 (gzio_mod_SOURCES): New variable.
51768 (gzio_mod_CFLAGS): Likewise.
51769
51770 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
51771 (pkgdata_MODULES): Added gzio.mod.
51772 (gzio_mod_SOURCES): New variable.
51773 (gzio_mod_CFLAGS): Likewise.
51774
51775 * commands/cat.c: Include grub/gzio.h.
51776 (grub_cmd_cat): Use grub_gzfile_open instead of
51777 grub_file_open.
51778
51779 * commands/cmp.c: Include grub/gzio.h.
51780 (grub_cmd_cmp): Use grub_gzfile_open instead of
51781 grub_file_open.
51782
51783 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
51784 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
51785 grub_file_open.
51786 (grub_rescue_cmd_module): Likewise.
51787
51788 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51789
51790 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
51791 kern/sparc64/ieee1275/init.c because it contains _start.
51792 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
51793
51794 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51795
51796 * configure.ac: Add support for sparc64 host with ieee1275
51797 firmware.
51798 * configure: Generated from configure.ac.
51799 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
51800 instead of int.
51801 (grub_ofdisk_read): Likewise.
51802 (grub_ofdisk_open): Use %p to print pointer values, and cast the
51803 pointers as (void *) to remove a warning.
51804 (grub_ofdisk_close): Likewise.
51805 (grub_ofdisk_read): Likewise.
51806 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
51807 returns, so make it return void to remove a warning.
51808 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
51809 Corresponding prototype change.
51810 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
51811 values, and cast the pointers as (void *) to remove a warning.
51812 (grub_mm_dump): Likewise.
51813 * conf/sparc64-ieee1275.mk: New file.
51814 * conf/sparc64-ieee1275.rmk: Likewise.
51815 * include/grub/sparc64/setjmp.h: Likewise.
51816 * include/grub/sparc64/types.h: Likewise.
51817 * include/grub/sparc64/ieee1275/console.h: Likewise.
51818 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
51819 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
51820 * include/grub/sparc64/ieee1275/time.h: Likewise.
51821 * kern/sparc64/cache.c: Likewise.
51822 * kern/sparc64/dl.c: Likewise.
51823 * kern/sparc64/ieee1275/init.c: Likewise.
51824 * kern/sparc64/ieee1275/openfw.c: Likewise.
51825
51826 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
51827
51828 * util/console.c (grub_ncurses_putchar): If C is greater than
51829 0x7f, set C to a question mark.
51830 (grub_ncurses_getcharwidth): New function.
51831 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
51832 getcharwidth.
51833
51834 * normal/menu.c (print_entry): Made aware of Unicode. First,
51835 convert TITLE to UCS-4, and predict the cursor position by
51836 grub_getcharwidth.
51837
51838 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
51839 const to SRC.
51840 * kern/misc.c (grub_utf16_to_utf8): Likewise.
51841
51842 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51843
51844 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
51845 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
51846 grub_strcat.
51847
51848 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
51849 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
51850 grub_strcpy and grub_strlen. Take it into account that a space
51851 character is inserted as a delimiter.
51852
51853 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51854
51855 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
51856 invalid magic in the error.
51857
51858 * commands/search.c: New file.
51859
51860 * util/grub-emu.c (main): Call grub_search_init and
51861 grub_search_fini.
51862
51863 * kern/rescue.c (grub_rescue_print_disks): Removed.
51864 (grub_rescue_print_devices): New function.
51865 (grub_rescue_cmd_ls): Use grub_device_iterate with
51866 grub_rescue_print_devices instead of grub_disk_dev_iterate with
51867 grub_rescue_print_disks.
51868
51869 * kern/partition.c (grub_partition_iterate): Return the result of
51870 PARTMAP->ITERATE instead of GRUB_ERRNO.
51871
51872 * kern/device.c: Include grub/partition.h.
51873 (grub_device_iterate): New function.
51874
51875 * include/grub/partition.h (grub_partition_iterate): Return int
51876 instead of grub_err_t.
51877
51878 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
51879 prototype.
51880 [GRUB_UTIL] (grub_search_fini): Likewise.
51881
51882 * include/grub/device.h (grub_device_iterate): New prototype.
51883
51884 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
51885 commands/search.c.
51886 (pkgdata_MODULES): Added search.mod.
51887 (search_mod_SOURCES): New variable.
51888 (search_mod_CFLAGS): Likewise.
51889
51890 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
51891 (pkgdata_MODULES): Added search.mod.
51892 (search_mod_SOURCES): New variable.
51893 (search_mod_CFLAGS): Likewise.
51894
51895 * commands/ls.c (grub_ls_list_disks): Renamed to ...
51896 (grub_ls_list_devices): ... this, and use grub_device_iterate.
51897 All callers changed.
51898
51899 * DISTLIST: Added commands/search.c.
51900
51901 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51902
51903 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
51904 conversion.
51905 (grub_getcharwidth): New function.
51906
51907 * kern/misc.c (grub_utf8_to_ucs4): New function.
51908
51909 * include/grub/term.h (struct grub_term): Added a new member
51910 "getcharwidth".
51911 (grub_getcharwidth): New prototype.
51912
51913 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
51914
51915 * term/i386/pc/console.c (map_char): New function. Segregated from
51916 grub_console_putchar.
51917 (grub_console_putchar): Use map_char.
51918 (grub_console_getcharwidth): New function.
51919 (grub_console_term): Specified grub_console_getcharwidth as
51920 getcharwidth.
51921
51922 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
51923 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
51924
51925 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
51926 GRUB_ERRNO.
51927 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
51928 on grub_strtoul completely.
51929 (write_char): Declare local variables in the beginning of the
51930 function.
51931 (grub_vesafb_getcharwidth): New function.
51932 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
51933 getcharwidth.
51934
51935 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
51936
51937 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
51938 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
51939 commands/i386/pc/vbetest.c.
51940
51941 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
51942 call grub_vbe_get_controller_info again, because the returned
51943 information is volatile.
51944 (grub_vbe_set_video_mode): Mostly rewritten.
51945 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
51946 grub_vbe_status_t correctly.
51947 (grub_vbe_get_video_mode_info): Likewise.
51948 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
51949 several if statements.
51950
51951 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
51952 * commands/i386/pc/vbeinfo.c: ... this.
51953
51954 * commands/i386/pc/vbe_test.c: Renamed to ...
51955 * commands/i386/pc/vbetest.c: ... this.
51956
51957 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
51958 ...
51959 (grub_cmd_vbeinfo): ... this. Save video modes before
51960 iterating. Skip a video mode, if it is not available, not enough
51961 information is given or it is monochrome. Show the memory
51962 model. Leave the interpretation of MODEVAR to grub_strtoul
51963 completely.
51964 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
51965 (GRUB_MOD_FINI): Likewise.
51966
51967 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
51968 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
51969 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
51970 duplicated grub_env_get. Leave the interpretation of MODEVAR to
51971 grub_strtoul completely.
51972 (real2pm): Removed.
51973 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
51974 (GRUB_MOD_FINI): Likewise.
51975
51976 * normal/misc.c: Include grub/mm.h.
51977
51978 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
51979 vbe_list_modes with vbetest.mod and vbeinfo.mod.
51980 (vbe_list_modes_mod_SOURCES): Removed.
51981 (vbe_list_modes_mod_CFLAGS): Likewise.
51982 (vbe_test_mod_SOURCES): Likewise.
51983 (vbe_test_mod_CFLAGS): Likewise.
51984 (vbeinfo_mod_SOURCES): New variable.
51985 (vbeinfo_mod_CFLAGS): Likewise.
51986 (vbetest_mod_SOURCES): Likewise.
51987 (vbetest_mod_CFLAGS): Likewise.
51988
51989 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
51990
51991 * normal/misc.c: New file.
51992
51993 * DISTLIST: Added normal/misc.c.
51994
51995 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
51996 DISK to HOOK. Call HOOK with DISK.
51997 * partmap/apple.c (apple_partition_map_iterate): Likewise.
51998 * partmap/pc.c (pc_partition_map_iterate): Likewise.
51999 * partmap/sun.c (sun_partition_map_iterate): Likewise.
52000
52001 * normal/menu_entry.c (struct screen): Added a new member
52002 "completion_shown".
52003 (completion_buffer): New global variable.
52004 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
52005 (store_completion): New function.
52006 (complete): Likewise.
52007 (clear_completions): Likewise.
52008 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
52009 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
52010 a tab, call complete.
52011
52012 * normal/completion.c (disk_dev): Removed.
52013 (print_simple_completion): Likewise.
52014 (print_partition_completion): Likewise.
52015 (print_func): New global variable.
52016 (add_completion): Do not take the arguments WHAT or PRINT any
52017 longer. Added a new argument TYPE. Instead of printing directly,
52018 call PRINT_FUNC if not NULL.
52019 All callers changed.
52020 (complete_device): Use a local variable DEV instead of
52021 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
52022 (grub_normal_do_completion): Take a new argument HOOK. Do not
52023 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
52024 empty string, return NULL instead.
52025 All callers changed.
52026
52027 * normal/cmdline.c (print_completion): New function.
52028
52029 * kern/partition.c (grub_partition_iterate): Add an argument DISK
52030 to HOOK.
52031 All callers changed.
52032
52033 * kern/disk.c (grub_print_partinfo): Removed.
52034
52035 * include/grub/partition.h (struct grub_partition_map): Add a new
52036 argument DISK into HOOK of ITERATE.
52037 (grub_partition_iterate): Add a new argument DISK to HOOK.
52038
52039 * include/grub/normal.h (enum grub_completion_type): New enum.
52040 (grub_completion_type_t): New type.
52041 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
52042 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
52043 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
52044 (GRUB_COMPLETION_TYPE_FILE): Likewise.
52045 (grub_normal_do_completion): Added a new argument HOOK.
52046 (grub_normal_print_device_info): New prototype.
52047
52048 * include/grub/disk.h (grub_print_partinfo): Removed.
52049
52050 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
52051 (normal_mod_SOURCES): Likewise.
52052 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
52053 (normal_mod_SOURCES): Likewise.
52054
52055 * commands/ls.c (grub_ls_list_disks): Use
52056 grub_normal_print_device_info instead of grub_print_partinfo. Free
52057 PNAME.
52058 (grub_ls_list_files): Use grub_normal_print_device_info instead of
52059 duplicating the code.
52060
52061 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52062
52063 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
52064 follow GCS more precisely.
52065 * commands/i386/pc/vbe_test.c: Likewise.
52066 * include/grub/i386/pc/vbe.h: Likewise.
52067 * term/i386/pc/vesafb.c: Likewise.
52068 * video/i386/pc/vbe.c: Likewise.
52069
52070 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52071
52072 * DISTLIST: Added term/i386/pc/vesafb.c
52073 DISTLIST: Added video/i386/pc/vbe.c
52074 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
52075 DISTLIST: Added commands/i386/pc/vbe_test.c.
52076 * commands/i386/pc/vbe_list_modes.c: New file.
52077 * commands/i386/pc/vbe_test.c: Likewise.
52078 * term/i386/pc/vesafb.c: Likewise.
52079 * video/i386/pc/vbe.c: Likewise.
52080 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
52081 (grub_vbe_probe) Added prototype.
52082 (grub_vbe_set_video_mode) Likewise.
52083 (grub_vbe_get_video_mode) Likewise.
52084 (grub_vbe_get_video_mode_info) Likewise.
52085 (grub_vbe_set_pixel_rgb) Likewise.
52086 (grub_vbe_set_pixel_index) Likewise.
52087 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
52088 (pkgdata_MODULES): Added vesafb.mod.
52089 (pkgdata_MODULES): Added vbe_list_modes.mod.
52090 (pkgdata_MODULES): Added vbe_test.mod.
52091 (vbe_mod_SOURCES): Added.
52092 (vbe_mod_CFLAGS): Likewise.
52093 (vesafb_mod_SOURCES): Likewise.
52094 (vesafb_mod_CFLAGS): Likewise.
52095 (vbe_list_modes_mod_SOURCES): Likewise.
52096 (vbe_list_modes_mod_CFLAGS): Likewise.
52097 (vbe_test_mod_SOURCES): Likewise.
52098 (vbe_test_mod_CFLAGS): Likewise.
52099
52100 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
52101
52102 * normal/command.c (grub_command_execute): If INTERACTIVE is
52103 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
52104 CMDLINE. Disable the pager if INTERACTIVE is true.
52105 All callers are changed.
52106
52107 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
52108 before reading a config file.
52109 * normal/main.c (read_config_file): Even if a command is not
52110 found, register it if it is within an entry.
52111
52112 * util/grub-emu.c: Include sys/types.h and unistd.h.
52113 (options): Added --hold.
52114 (struct arguments): Added a new member "hold".
52115 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
52116 missing.
52117 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
52118 cleared by a debugger, if it is not zero.
52119
52120 * include/grub/normal.h (grub_command_execute): Add an argument
52121 INTERACTIVE.
52122
52123 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
52124
52125 * DISTLIST: Added include/grub/i386/pc/vbe.h.
52126
52127 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
52128
52129 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
52130 program with another one, because the old one didn't detect a bug
52131 in gcc-3.4. Always use regparm 2, because the new test is still
52132 not enough for gcc-4.0. Someone must investigate a simple test
52133 case which detects a bug in gcc-4.0.
52134
52135 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
52136
52137 * DISTLIST: Added normal/completion.c.
52138
52139 * normal/completion.c: New file.
52140
52141 * term/i386/pc/console.c (grub_console_getwh): New function.
52142 (grub_console_term): Assign grub_console_getwh to getwh.
52143
52144 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
52145 function is defined in normal/completion.c as
52146 grub_normal_do_completion.
52147 (grub_cmdline_get): Use grub_normal_do_completion instead of
52148 grub_tab_complete.
52149
52150 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
52151 returns non-zero, otherwise return 0.
52152 (grub_partition_iterate): First, probe the partition map. Then,
52153 call ITERATE only for this partition map.
52154
52155 * kern/misc.c (grub_strncmp): Rewritten.
52156
52157 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
52158 returns non-zero. Otherwise return 0.
52159
52160 * include/grub/partition.h (grub_partition_map_iterate): Return
52161 int instead of void.
52162
52163 * include/grub/normal.h (grub_normal_do_completion): New prototype.
52164
52165 * include/grub/misc.h (grub_strncmp): Change the type of N to
52166 grub_size_t.
52167
52168 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
52169 of void.
52170
52171 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
52172 unsigned explicitly before comparing it with I.
52173
52174 * kern/main.c (grub_env_write_root): Add the attribute unused into
52175 VAR.
52176
52177 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52178 normal/completion.c.
52179 (normal_mod_SOURCES): Likewise.
52180 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
52181 (normal_mod_SOURCES): Likewise.
52182
52183 * normal/command.c (grub_iterate_commands): If ITERATE returns
52184 non-zero, return one immediately.
52185
52186 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
52187
52188 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
52189 * kern/i386/pc/startup.S: Updated Global Descriptor table's
52190 descriptions.
52191 (grub_vbe_get_controller_info): New function.
52192 (grub_vbe_get_mode_info): Likewise.
52193 (grub_vbe_set_mode): Likewise.
52194 (grub_vbe_get_mode): Likewise.
52195 (grub_vbe_set_memory_window): Likewise.
52196 (grub_vbe_get_memory_window): Likewise.
52197 (grub_vbe_set_scanline_length): Likewise.
52198 (grub_vbe_get_scanline_length): Likewise.
52199 (grub_vbe_set_display_start): Likewise.
52200 (grub_vbe_get_display_start): Likewise.
52201 (grub_vbe_set_palette_data): Likewise.
52202 * include/grub/i386/pc/vbe.h: New file.
52203
52204 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52205
52206 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52207 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
52208 * DISTLIST: Likewise.
52209 * kern/ieee1275/of.c: Moved to ...
52210 * kern/ieee1275/ieee1275.c: ... here.
52211
52212 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52213
52214 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
52215 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
52216 Pass 0 as `end' parameter to grub_strtoul().
52217
52218 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52219
52220 * include/grub/powerpc/ieee1275/console.h: Do not include
52221 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
52222 ifdef.
52223 (grub_console_cur_color): Remove i386-specific prototype.
52224 (grub_console_real_putchar): Likewise.
52225 (grub_console_checkkey): Likewise.
52226 (grub_console_getkey): Likewise.
52227 (grub_console_getxy): Likewise.
52228 (grub_console_gotoxy): Likewise.
52229 (grub_console_cls): Likewise.
52230 (grub_console_setcursor): Likewise.
52231 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
52232 Include <grub/machine/console.h>.
52233 * term/ieee1275/ofconsole.c: Likewise.
52234
52235 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
52236
52237 * Makefile.in (LIBLZO): New variable.
52238
52239 * configure.ac: Check for LZO version 2.
52240
52241 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
52242 lzo/lzo1x.h instead of lzo1x.h.
52243
52244 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
52245 of -llzo.
52246
52247 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
52248 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
52249
52250 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
52251 copying the data from PARTITION to P.
52252
52253 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52254
52255 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
52256 negative, unload the module.
52257
52258 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
52259 map is "pc_partition_map" but not "pc".
52260 (usage): Fix the description. The options are --boot-image and
52261 --core-image but not --boot-file or --core-file.
52262 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
52263 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
52264 DEFAULT_DIRECTORY.
52265
52266 * util/i386/pc/grub-install.in: Do not specify --boot-file or
52267 --core-file. Specify INSTALL_DEVICE as an argument.
52268
52269 * util/console.c: Include config.h.
52270 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
52271 [HAVE_NCURSES_H]: Include ncurses.h.
52272 [HAVE_CURSES_H]: Include curses.h.
52273 [!A_NORMAL] (A_NORMAL): Defined as zero.
52274 [!A_STANDOUT] (A_STANDOUT): Likewise.
52275
52276 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
52277 -lncurses.
52278 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
52279
52280 * configure.ac: Check for curses libraries and headers.
52281
52282 * Makefile.in (LIBCURSES): New variable.
52283
52284 * genmk.rb (Script::rule): Set the executable bits.
52285
52286 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
52287 name of the PC partition map is "pc_partition_map" but not "pc".
52288
52289 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52290
52291 * util/i386/pc/grub-install.in (grub_probefs): New variable.
52292 (modules): Likewise.
52293 (usage): Added descriptions for --modules and --grub-probefs.
52294 Handle --modules and --grub-probefs. Save the arguments in MODULES
52295 and GRUB_PROBEFS, respectively.
52296 Auto-detect a filesystem module against GRUBDIR. If the result is
52297 empty and modules are not specified explicitly, abort the
52298 installation. Add the result to MODULES.
52299
52300 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
52301 disk/powerpc/ieee1275/ofdisk.c,
52302 include/grub/powerpc/ieee1275/init.h and
52303 term/powerpc/ieee1275/ofconsole.c.
52304 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
52305 term/ieee1275/ofconsole.c.
52306
52307 * include/grub/powerpc/ieee1275/console.h: Resurrected.
52308
52309 * COPYING: Upgraded to the latest version. Only the address of the
52310 FSF office has changed.
52311
52312 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52313
52314 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52315 kern/ieee1275.c with kern/ieee1275/of.c.
52316
52317 * kern/ieee1275.c: Moved to ...
52318 * kern/ieee1275/of.c: ... here.
52319
52320 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
52321
52322 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
52323 readability.
52324
52325 * config.guess: Updated to the latest version from gnulib.
52326 * config.sub: Likewise.
52327 * install.sh: Likewise.
52328 * mkinstalldirs: Likewise.
52329
52330 * include/grub/console.h: Removed. This file is arch-specific. Do
52331 not put this in include/grub.
52332
52333 * include/grub/i386/pc/console.h: Resurrected.
52334
52335 * util/console.c: Include grub/machine/console.h instead of
52336 grub/console.h.
52337 * util/grub-emu.c: Likewise.
52338
52339 2005-08-04 Marco Gerards <metgerards@student.han.nl>
52340
52341 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
52342 hardcoded value.
52343
52344 From Vincent Pelletier <subdino2004@yahoo.fr>
52345 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
52346 Redefined to use grub_getwh.
52347 (grub_term): New member named getwh.
52348 (grub_getwh): New prototype.
52349 * kern/term.c (grub_getwh): New function.
52350 * term/i386/pc/console.c (grub_console_getwh): New function.
52351 (grub_console_term): New member `getwh'.
52352 * term/i386/pc/vga.c (grub_vga_getwh): New function.
52353 (grub_vga_term): New member `getwh'.
52354 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
52355 grub_ssize_t.
52356 (grub_ofconsole_getw): New function.
52357 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
52358 (grub_ofconsole_term): New field named getwh and new initial
52359 value.
52360
52361 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
52362
52363 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
52364 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
52365 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
52366 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
52367 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
52368 of <grub/machine/ieee1275.h>.
52369 * commands/ieee1275/reboot.c: Likewise.
52370 * boot/powerpc/ieee1275/ieee1275.c: Move ...
52371 * kern/ieee1275.c: ... to here. All users updated. Change all
52372 parameter structs to use new type `grub_ieee1275_cell_t'.
52373 * term/powerpc/ieee1275/ofconsole.c: Move ...
52374 * term/ieee1275/ofconsole.c: ... to here. All users updated.
52375 * disk/powerpc/ieee1275/ofdisk.c: Move ...
52376 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
52377 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
52378 to return int.
52379 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
52380 Remove unused prototypes. All users updated.
52381 * include/grub/powerpc/ieee1275/console.h: Removed.
52382 * include/grub/powerpc/ieee1275/ieee1275.h: Define
52383 `grub_ieee1275_cell_t'.
52384 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
52385 Cast comparisons with -1 to the correct type.
52386 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
52387 type to match `grub_ieee1275_entry_fn'.
52388
52389 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
52390
52391 * DISTLIST: Added util/i386/pc/grub-probefs.c.
52392
52393 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
52394 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
52395 partmap/sun.c.
52396 (grub_probefs_SOURCES): New variable.
52397
52398 * util/i386/pc/grub-probefs.c: New file.
52399
52400 * util/i386/pc/grub-setup.c (main): Call
52401 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
52402 grub_hfs_init and grub_jfs_init to initialize the system. Call
52403 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
52404 grub_pc_partition_map_fini to finish the system.
52405
52406 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
52407
52408 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
52409 function.
52410 (grub_multiboot_load_elf32): Likewise.
52411 (grub_multiboot_is_elf64): Likewise.
52412 (grub_multiboot_load_elf64): Likewise.
52413 (grub_multiboot_load_elf): Likewise.
52414 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
52415 an ELF32 or ELF64 file.
52416 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
52417
52418 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
52419 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
52420 NULL before calling FS->LABEL.
52421 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
52422 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
52423 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
52424 before calling FS->LABEL.
52425
52426 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
52427
52428 * util/i386/pc/grub-install.in (datadir): New variable.
52429 (libdir): Removed.
52430 (pkgdatadir): New variable.
52431 (pkglibdir): Removed.
52432
52433 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
52434
52435 * DISTLIST: Added util/i386/pc/grub-install.in.
52436
52437 * util/i386/pc/grub-install.in: New file.
52438
52439 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
52440 (grub_install_SOURCES): Likewise.
52441
52442 * genmk.rb: Added support for scripts.
52443 (Script): New class.
52444 (scripts): New variable.
52445
52446 * Makefile.in (install-local): Install sbin_SCRIPTS by
52447 INSTALL_SCRIPT.
52448 (uninstall): Remove sbin_SCRIPTS.
52449
52450 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
52451 device, try to get a GRUB device by
52452 grub_util_biosdisk_get_grub_dev.
52453 Free DEST_DEV.
52454
52455 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
52456 description for --device-map.
52457
52458 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52459
52460 Change the semantics of variable hooks. They now return strings
52461 instead of error values.
52462
52463 * util/i386/pc/grub-setup.c: Include grub/env.h.
52464 (setup): Use grub_device_set_root instead of grub_env_set.
52465
52466 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
52467 grub_env_get instead of grub_device_set_root and
52468 grub_device_get_root, respectively.
52469
52470 * kern/main.c (grub_env_write_root): New function.
52471 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
52472 grub_env_set instead of grub_device_set_root.
52473
52474 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
52475 many variables.
52476 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
52477 rather than calling ENV->WRITE_HOOK afterwards.
52478 (grub_env_get): Return the result of ENV->READ_HOOK rather than
52479 passing a pointer of a pointer.
52480 (grub_register_variable_hook): Change the types of "read_hook" and
52481 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
52482 respectively.
52483 Allocate the default empty string on the heap, because this string
52484 may be freed later.
52485
52486 * kern/device.c: Include grub/env.h.
52487 (grub_device_set_root): Removed.
52488 (grub_device_get_root): Likewise.
52489 (grub_device_open): Use grub_env_get instead of
52490 grub_device_get_root.
52491
52492 * include/grub/env.h (grub_env_read_hook_t): New type.
52493 (grub_env_write_hook_t): Likewise.
52494 (grub_env_var): Change the types of "read_hook" and "write_hook"
52495 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
52496 (grub_register_variable_hook): Likewise.
52497
52498 * include/grub/device.h (grub_device_set_root): Removed.
52499 (grub_device_set_root): Likewise.
52500
52501 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
52502 make sure that DIRNAME terminates with '/', so that
52503 grub_fat_find_dir will fail if PATH is not a directory.
52504
52505 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
52506 from DIRNAME.
52507 Use the qualifier auto for print_files and print_files_long.
52508 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
52509 as a regular file.
52510 Put a newline only if there is no error.
52511 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
52512 used.
52513
52514 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52515
52516 * kern/partition.c (grub_partition_probe): Initialize PART to
52517 NULL. Otherwise, when no partition map is registered, this returns
52518 a garbage.
52519
52520 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
52521
52522 * partmap/apple.c (apple_partition_map_iterate): Check if POS
52523 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
52524 valid.
52525
52526 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
52527
52528 * commands/ls.c (grub_ls_list_disks): Print the filesystem
52529 information on each device, if it does not have partitions. Print
52530 "Device" instead of "Disk", because this function is not specific
52531 to disk devices.
52532
52533 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
52534 static to ensure that it is put on the memory rather than a
52535 register.
52536
52537 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52538
52539 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
52540 (grub_cat_init): Likewise.
52541 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
52542 (options): Likewise.
52543 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
52544 (grub_configfile_init): Likewise.
52545 * font/manager.c (GRUB_MOD_INIT): Likewise.
52546 * commands/help.c (GRUB_MOD_INIT): Likewise.
52547 (grub_help_init): Likewise.
52548 * normal/command.c (grub_command_init): Likewise.
52549 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
52550 * disk/loopback.c (grub_loop_init): Likewise.
52551 (GRUB_MOD_INIT): Likewise.
52552 * commands/ls.c (grub_ls_init): Likewise.
52553 (GRUB_MOD_INIT): Likewise.
52554 (options): Likewise.
52555 * commands/boot.c (grub_boot_init): Likewise.
52556 (GRUB_MOD_INIT): Likewise.
52557 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
52558 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
52559 (GRUB_MOD_INIT): Likewise.
52560 * commands/cmp.c (grub_cmp_init): Likewise.
52561 (GRUB_MOD_INIT): Likewise.
52562
52563 * normal/arg.c: Use <> instead of "" to include header files.
52564 (SHORT_ARG_HELP): New macro.
52565 (SHORT_ARG_USAGE): Likewise.
52566 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
52567 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
52568 descriptions.
52569 (find_short): Check if C is 'h' or 'u' explicitly.
52570 (grub_arg_show_help): Use space characters instead of tabs. Treat
52571 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
52572 are shown with --help and --usage only if they are not used for
52573 the command itself.
52574 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
52575 'h' and 'u'.
52576
52577 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
52578 const into "longarg". Change the type of "shortarg" to int.
52579
52580 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52581
52582 * boot/i386/pc/boot.S (boot_drive_check): New label.
52583
52584 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
52585 macro.
52586
52587 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
52588 which do not pass a boot drive correctly. Copied from GRUB Legacy.
52589
52590 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52591
52592 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
52593 When turning off Gate A20, skip the check and return immediately,
52594 because this is not fatal usually.
52595
52596 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52597
52598 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
52599 be 0x7C00 instead of 0x8000.
52600
52601 * boot/i386/pc/pxeboot.S: Rewritten.
52602
52603 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
52604 EXT_C.
52605 (gate_a20_check_state): Read a byte from 0x108000. Invert the
52606 result.
52607
52608 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
52609
52610 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
52611 robustness. This routine now supports a BIOS call and System
52612 Control Port A to modify the gate A20.
52613
52614 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
52615 Increased to 0x440.
52616
52617 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
52618
52619 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
52620 device path and resulting ihandle.
52621 (grub_ofdisk_close): dprintf the ihandle being closed.
52622 (grub_ofdisk_read): dprintf function parameters.
52623 * kern/mm.c (grub_mm_init_region): Likewise.
52624 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
52625 (grub_linux_boot): dprintf the Linux entry point, initrd address and
52626 size, and boot arguments.
52627 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
52628 before loading into memory.
52629 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
52630 before loading into memory.
52631
52632 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
52633
52634 * kern/mm.c: Added much documentation.
52635 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
52636 8, set to 5 instead of 8.
52637
52638 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52639
52640 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
52641
52642 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
52643 (grub_mkdevicemap_SOURCES): New variable.
52644
52645 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
52646 lib/device.c of GRUB Legacy.
52647
52648 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52649
52650 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
52651 instead of PATH is NULL.
52652
52653 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
52654
52655 * commands/cmp.c (BUFFER_SIZE): New macro.
52656 (grub_cmd_cmp): Close the right file at the right time. Compare
52657 only data just read. Don't report files of different size as
52658 identical. Dynamically allocate buffers. Move variable
52659 declarations at the beginning of function.
52660
52661 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
52662
52663 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
52664 reverse.
52665
52666 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
52667
52668 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
52669 when backspace is pressed at beginning of line.
52670
52671 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
52672
52673 * DISTLIST: Added genfslist.sh.
52674
52675 * normal/main.c (fs_module_list): New variable.
52676 (autoload_fs_module): New function.
52677 (read_fs_list): Likewise.
52678 (grub_normal_execute): Call read_fs_list.
52679
52680 * kern/fs.c (grub_fs_autoload_hook): New variable.
52681 (grub_fs_probe): Added support for auto-loading.
52682
52683 * include/grub/normal.h (struct grub_fs_module_list): New struct.
52684 (grub_fs_module_list_t): New type.
52685
52686 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
52687 (grub_fs_autoload_hook): New prototype.
52688
52689 * genfslist.sh: New file.
52690
52691 * genmk.rb: Added a rule to generate a filesystem list.
52692
52693 2005-06-30 Marco Gerards <metgerards@student.han.nl>
52694
52695 * configure.ac: Fix the test for cross-compiling.
52696
52697 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
52698 define GRUB_UTIL anymore.
52699
52700 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
52701 so this function works on other systems than just big endian.
52702 (load_modules): Likewise.
52703 (add_segments): Likewise.
52704
52705 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
52706
52707 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
52708 contains `l' modifier, get a long from va_arg().
52709
52710 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
52711
52712 * kern/mm.c (grub_free): If the next free block which is being
52713 merged is the first free block, set the first block to the block
52714 being freed.
52715 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
52716
52717 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52718
52719 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
52720 `grub_ieee1275_chosen'.
52721
52722 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52723
52724 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
52725 (grub_ieee1275_chosen): New variable.
52726 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
52727 `chosen'.
52728 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
52729 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
52730 Rename first argument to `phandle' for consistency.
52731 (grub_ieee1275_get_property_length): Likewise.
52732 (grub_ieee1275_next_property): Likewise. Change type of first argument
52733 to grub_ieee1275_phandle_t.
52734 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
52735 Move export next to declaration.
52736 (grub_ieee1275_chosen): New variable.
52737 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
52738 Correct cosmetic typo.
52739 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
52740 `grub_ieee1275_chosen'.
52741 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
52742 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
52743 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
52744 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
52745 `grub_ieee1275_chosen'.
52746
52747 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
52748
52749 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
52750 /chosen/bootargs.
52751 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
52752 /chosen/bootargs as "variable=value" pairs.
52753
52754 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
52755
52756 * include/grub/misc.h (grub_dprintf): New macro.
52757 (grub_real_dprintf): New prototype.
52758 (grub_strword): Likewise.
52759 (grub_iswordseparator): Likewise.
52760 * kern/misc.c (grub_real_dprintf): New function.
52761 (grub_strword): Likewise.
52762 (grub_iswordseparator): Likewise.
52763
52764 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
52765
52766 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
52767 (roundup): Remove macro.
52768 (grub_ieee1275_flags): Make static.
52769 (grub_ieee1275_realmode): Remove.
52770 (grub_ieee1275_test_flag): New function.
52771 (grub_ieee1275_set_flag): Likewise.
52772 (find_options): Rename to `grub_ieee1275_find_options'; update
52773 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
52774 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
52775 (cmain): New prototype.
52776 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
52777 `grub_ieee1275_flags' directly.
52778 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
52779 machine/biosdisk.h.
52780 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
52781 Don't include grub/machine/init.h.
52782 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
52783 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
52784 Remove prototype.
52785 (grub_ieee1275_realmode): Likewise.
52786 (grub_ieee1275_flag): New enum.
52787 (grub_ieee1275_test_flag): New prototype.
52788 (grub_ieee1275_set_flag): New prototype.
52789 * include/grub/powerpc/ieee1275/init.h: Remove file.
52790 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
52791 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
52792 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
52793 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
52794 comment.
52795 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
52796 `grub_ieee1275_test_flag'.
52797 (grub_ieee1275_encode_devname): Likewise.
52798
52799 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
52800
52801 * include/grub/powerpc/ieee1275/ieee1275.h
52802 (grub_ieee1275_encode_devname): New prototype.
52803 (grub_ieee1275_get_filename): Likewise.
52804 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
52805 function.
52806 (grub_set_prefix): Likewise.
52807 (grub_machine_init): Call grub_set_prefix.
52808 * kern/powerpc/ieee1275/openfw.c: Fix typos.
52809 (grub_parse_type): New enum.
52810 (grub_ieee1275_get_devargs): New function.
52811 (grub_ieee1275_get_devname): Likewise.
52812 (grub_ieee1275_parse_args): Likewise.
52813 (grub_ieee1275_get_filename): Likewise.
52814 (grub_ieee1275_encode_devname): Likewise.
52815
52816 2005-03-30 Marco Gerards <metgerards@student.han.nl>
52817
52818 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
52819 `grub_loader_unset'.
52820
52821 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
52822
52823 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
52824 instead of grub_ieee1275_interpret.
52825 (grub_halt_init): New function.
52826 (grub_halt_fini): Likewise.
52827 (GRUB_MOD_INIT): Correct message grammar.
52828 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
52829 instead of grub_ieee1275_interpret.
52830 (grub_reboot_init): New function.
52831 (grub_reboot_fini): Likewise.
52832 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
52833 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
52834 util/i386/pc/misc.c with commands/ieee1275/halt.c,
52835 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
52836 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
52837 function.
52838 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
52839 Add prototype.
52840 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
52841 prototype.
52842 (grub_halt): Likewise.
52843 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
52844 (cmain): Remove __attribute__((unused)).
52845 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
52846 (grub_heap_len): Likewise.
52847 (grub_machine_fini): New function.
52848 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
52849 (grub_halt): Likewise.
52850 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
52851 function.
52852 * util/powerpc/ieee1275/misc.c: New file.
52853
52854 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
52855
52856 * DISTLIST: New file.
52857 * gendistlist.sh: Likewise.
52858
52859 * Makefile.in (COMMON_DISTFILES): Removed.
52860 (BOOT_DISTFILES): Likewise.
52861 (CONF_DISTFILES): Likewise.
52862 (DISK_DISTFILES): Likewise.
52863 (FS_DISTFILES): Likewise.
52864 (INCLUDE_DISTFILES): Likewise.
52865 (KERN_DISTFILES): Likewise.
52866 (LOADER_DISTFILES): Likewise.
52867 (TERM_DISTFILES): Likewise.
52868 (UTIL_DISTFILES): Likewise.
52869 (DISTFILES): Likewise.
52870 (uninstall): Uninstall files in $(pkgdata_DATA).
52871 (DISTLIST): New target.
52872 (distdir): Use the contents of the file DISTLIST to get a list of
52873 distributed files.
52874
52875 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
52876
52877 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
52878 descriptor. This is ported from GRUB Legacy.
52879
52880 * gencmdlist.sh: Added an extra semicolon to make it work with
52881 old sed versions. Reported by Robert Bihlmeyer
52882 <robbe@orcus.priv.at>.
52883
52884 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
52885
52886 Automatic loading of commands is supported.
52887
52888 * normal/main.c (read_command_list): New function.
52889 (grub_normal_execute): Call read_command_list.
52890
52891 * normal/command.c (grub_register_command): Return zero or CMD.
52892 Allocate CMD->NAME from the heap.
52893 Initialize CMD->MODULE_NAME to zero.
52894 Find the same name as well. If the same command is found and it is
52895 a dummy command, overwrite members. If it is not a dummy command,
52896 return zero.
52897 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
52898 (grub_command_find): If a dummy command is found, load a module
52899 and retry to find a command only once.
52900
52901 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
52902 make sure that each command is loaded.
52903
52904 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
52905 macro.
52906 (struct grub_command): Remove const from the member `name'.
52907 Add a new member `module_name'.
52908 (grub_register_command): Return grub_command_t.
52909
52910 * commands/help.c (grub_cmd_help): Call grub_command_find to make
52911 sure that each command is loaded.
52912
52913 * genmk.rb (PModule::rule): Specify a module name without the
52914 suffix ".mod" to gencmdlist.sh.
52915
52916 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
52917
52918 * gencmdlist.sh: New file.
52919
52920 * genmk.rb (PModule::rule): Generate a rule for a command list.
52921 Clean command.lst.
52922 Generate command.lst from $(COMMANDFILES).
52923
52924 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
52925 (DATA): Added $(pkgdata_DATA).
52926 (install-local): Install files in $(pkgdata_DATA).
52927
52928 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
52929
52930 * term/i386/pc/vga.c (debug_command): Removed.
52931 (GRUB_MOD_INIT): Do not register the command "debug".
52932
52933 From Hollis Blanchard:
52934 * commands/configfile.c: New file.
52935 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
52936 commands/configfile.c.
52937 (pkgdata_MODULES): Added configfile.mod.
52938 (configfile_mod_SOURCES): New variable.
52939 (configfile_mod_CFLAGS): Likewise.
52940 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52941 commands/configfile.c.
52942 (pkgdata_MODULES): Added configfile.mod.
52943 (configfile_mod_SOURCES): New variable.
52944 (configfile_mod_CFLAGS): Likewise.
52945 * util/grub-emu.c (main): Call grub_configfile_init and
52946 grub_configfile_fini.
52947 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
52948 prototype.
52949 [GRUB_UTIL] (grub_configfile_fini): Likewise.
52950
52951 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
52952
52953 * normal/arg.c (grub_arg_show_help): Do not show the bug report
52954 address.
52955
52956 * commands/help.c (grub_cmd_help): Do not print newlines after
52957 the last command in print_command_help.
52958
52959 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
52960
52961 * commands/default.h: New file.
52962 * commands/timeout.h: Likewise.
52963 * normal/context.c: Likewise.
52964
52965 * util/misc.c: Do not include sys/times.h.
52966 Include sys/time.h and grub/machine/time.h.
52967 (grub_get_rtc): Rewritten with gettimeofday.
52968
52969 * util/grub-emu.c (main): Call grub_default_init and
52970 grub_timeout_init before grub_normal_init, and call
52971 grub_timeout_fini and grub_default_fini after grub_main.
52972
52973 * util/console.c (grub_ncurses_checkkey): Return the read
52974 character or -1.
52975
52976 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
52977 timeouts.
52978
52979 * normal/main.c (read_config_file): Push MENU. If this fails,
52980 print an error and wait for a user input.
52981 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
52982 If a menu is empty or an error occurs, pop MENU.
52983 (grub_normal_execute): Pop and free MENU after grub_menu_run
52984 returns.
52985
52986 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
52987
52988 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
52989 include time.h.
52990 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
52991 without GRUB_UTIL.
52992 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
52993 time.h.
52994 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
52995 without GRUB_UTIL.
52996
52997 * include/grub/normal.h (struct grub_menu_list): New struct.
52998 (grub_menu_list_t): New type.
52999 (struct grub_context): New struct.
53000 (grub_context_t): New type.
53001 (grub_register_command): Got rid of EXPORT_FUNC.
53002 (grub_unregister_command): Likewise.
53003 (grub_context_get): New prototype.
53004 (grub_context_get_current_menu): Likewise.
53005 (grub_context_push_menu): Likewise.
53006 (grub_context_pop_menu): Likewise.
53007 [GRUB_UTIL] (grub_default_init): Likewise.
53008 [GRUB_UTIL] (grub_default_fini): Likewise.
53009 [GRUB_UTIL] (grub_timeout_init): Likewise.
53010 [GRUB_UTIL] (grub_timeout_fini): Likewise.
53011
53012 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
53013 commands/timeout.c and normal/context.c.
53014 (pkgdata_MODULES): Added default.mod and timeout.mod.
53015 (normal_mod_SOURCES): Added normal/context.c.
53016 (default_mod_SOURCES): New variable.
53017 (default_mod_CFLAGS): Likewise.
53018 (timeout_mod_SOURCES): Likewise.
53019 (timeout_mod_CFLAGS): Likewise.
53020 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
53021 conf/i386-pc.rmk.
53022 (pkgdata_MODULES): Added default.mod and timeout.mod.
53023 (normal_mod_SOURCES): Added normal/context.c.
53024 (default_mod_SOURCES): New variable.
53025 (default_mod_CFLAGS): Likewise.
53026 (timeout_mod_SOURCES): Likewise.
53027 (timeout_mod_CFLAGS): Likewise.
53028
53029 * Makefile.in (all-local): Added $(MKFILES).
53030
53031 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
53032
53033 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
53034 (grub_emu_SOURCES): Likewise.
53035 (pkgdata_MODULES): Add `sun.mod'.
53036 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53037 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53038 `partmap/sun.c'.
53039 (pkgdata_MODULES): Add `sun.mod'.
53040 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53041 * include/grub/partition.h (grub_sun_partition_map_init): New
53042 prototype.
53043 (grub_sun_partition_map_fini): Likewise.
53044 * partmap/sun.c: New file.
53045 * util/grub-emu.c (main): Initialize and de-initialize the sun
53046 partitionmap support.
53047
53048 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
53049
53050 This implements an Emacs-like menu entry editor.
53051
53052 * normal/menu_entry.c: New file.
53053
53054 * util/console.c (grub_ncurses_putchar): Translate some Unicode
53055 characters to ASCII.
53056 (saved_char): New variable.
53057 (grub_ncurses_checkkey): Rewritten completely.
53058 (grub_ncurses_getkey): Likewise.
53059 (grub_ncurses_init): Call raw instead of cbreak.
53060
53061 * normal/menu.c (print_entry): Do not put a space.
53062 (init_page): Renamed to ...
53063 (grub_menu_init_page): ... this. All callers changed.
53064 (edit_menu_entry): Removed.
53065 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
53066
53067 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
53068
53069 * kern/misc.c (grub_vprintf): Call grub_refresh.
53070
53071 * normal/menu.c (DISP_LEFT): Renamed to ...
53072 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
53073 * normal/menu.c (DISP_UP): Renamed to ...
53074 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
53075 * normal/menu.c (DISP_RIGHT): Renamed to ...
53076 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
53077 * normal/menu.c (DISP_DOWN): Renamed to ...
53078 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
53079 * normal/menu.c (DISP_HLINE): Renamed to ...
53080 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
53081 * normal/menu.c (DISP_VLINE): Renamed to ...
53082 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
53083 * normal/menu.c (DISP_UL): Renamed to ...
53084 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
53085 * normal/menu.c (DISP_UR): Renamed to ...
53086 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
53087 * normal/menu.c (DISP_LL): Renamed to ...
53088 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
53089 * normal/menu.c (DISP_LR): Renamed to ...
53090 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
53091 * normal/menu.c (TERM_WIDTH): Renamed to ...
53092 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
53093 * normal/menu.c (TERM_HEIGHT): Renamed to ...
53094 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
53095 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
53096 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
53097 * normal/menu.c (TERM_MARGIN): Renamed to ...
53098 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
53099 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
53100 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
53101 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
53102 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
53103 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
53104 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
53105 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
53106 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
53107 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
53108 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
53109 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
53110 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
53111 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
53112 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
53113 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
53114 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
53115 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
53116 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
53117 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
53118 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
53119 All callers changed.
53120
53121 * include/grub/normal.h: New prototype.
53122
53123 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53124 normal/menu_entry.c.
53125 (normal_mod_SOURCES): Likewise.
53126 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
53127 (normal_mod_SOURCES): Likewise.
53128
53129 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
53130
53131 * include/grub/normal.h (grub_halt_init): New prototype.
53132 (grub_halt_fini): Likewise.
53133 (grub_reboot_init): Likewise.
53134 (grub_reboot_fini): Likewise.
53135
53136 * util/grub-emu.c: Include signal.h.
53137 (main_env): New global variable.
53138 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
53139 catch C-c.
53140 (grub_machine_fini): New function.
53141 (main): Call grub_halt_init and grub_reboot_init before
53142 grub_main, and grub_reboot_fini and grub_halt_fini after it.
53143 Call setjmp with MAIN_ENV to go back afterwards.
53144 Call grub_machine_fini right before return.
53145
53146 * include/grub/util/misc.h: Include setjmp.h.
53147 (main_env): New prototype.
53148
53149 * include/grub/kernel.h (grub_machine_fini): New prototype.
53150 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
53151 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
53152
53153 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
53154 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
53155 * term/i386/pc/console.c (grub_console_fini): Likewise.
53156
53157 * util/i386/pc/misc.c: New file.
53158
53159 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53160 util/i386/pc/misc.c, commands/i386/pc/halt.c and
53161 commands/i386/pc/reboot.c.
53162
53163 2005-02-14 Guillem Jover <guillem@hadrons.org>
53164
53165 * include/grub/dl.h (grub_dl_check_header): New prototype.
53166 (grub_arch_dl_check_header): Change return type to grub_err_t,
53167 remove size parameter and export function. Update all callers.
53168 * kern/dl.c (grub_dl_check_header): New function.
53169 (grub_dl_load_core): Use `grub_dl_check_header' instead of
53170 `grub_arch_dl_check_header'. Check ELF type. Check if sections
53171 are inside the core.
53172 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
53173 independent ELF header checks.
53174 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53175 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
53176 `grub_dl_check_header' instead of explicit checks. Check for the
53177 ELF type.
53178 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
53179 `grub_dl_check_header' instead of explicit checks. Remove arch
53180 specific ELF header checks.
53181
53182 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
53183 argument SIZE.
53184
53185 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
53186
53187 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
53188 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
53189
53190 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
53191
53192 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
53193 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
53194 (part_map_iterate): Clear `grub_errno' and return 0 if
53195 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
53196 * partmap/amiga.c (amiga_partition_map_iterate): Return
53197 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
53198 * partmap/apple.c (apple_partition_map_iterate): Likewise.
53199
53200 2005-02-01 Guillem Jover <guillem@hadrons.org>
53201
53202 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
53203 help info.
53204
53205 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53206
53207 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
53208 Removed prototype.
53209 (grub_rescue_cmd_linux): New prototype.
53210 (grub_rescue_cmd_initrd): Likewise.
53211 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
53212 `bi_rec'.
53213 (grub_linux_release_mem): Release the memory for the initrd.
53214 (grub_load_linux): Renamed from this...
53215 (grub_rescue_cmd_linux): ...To this. Changed all callers.
53216 Changed `entry' not to be static. Loop over memory regions to
53217 find another one when the default fails.
53218 (grub_rescue_cmd_initrd): New function.
53219 (grub_linux_init): Remove function.
53220 (grub_linux_fini): Likewise.
53221 (GRUB_MOD_INIT): Register `initrd'.
53222 (GRUB_MOD_FINI): Unregister `initrd'.
53223 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
53224 Function removed.
53225 (grub_linux_normal_fini): Likewise.
53226 (GRUB_MOD_INIT): Register `initrd'.
53227 (GRUB_MOD_FINI): Unregister `initrd'.
53228
53229 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53230
53231 * commands/help.c: New file.
53232 * normal/arg.c (show_help): Renamed to...
53233 (grub_arg_show_help): ... this.
53234 * commands/i386/pc/halt.c: New file.
53235 * commands/i386/pc/reboot.c: Likewise.
53236 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
53237 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
53238 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
53239 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
53240 variables.
53241 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53242 `commands/help.c'.
53243 (pkgdata_MODULES): Add `help.mod'.
53244 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
53245 * grub/i386/pc/init.h (grub_reboot): New prototype.
53246 (grub_halt): Likewise.
53247 * include/grub/normal.h (grub_arg_show_help): New prototype.
53248 (grub_help_init): Likewise.
53249 (grub_help_fini): Likewise.
53250 * util/grub-emu.c (main): Initialize and deinitialize the help
53251 command.
53252
53253 * normal/cmdline.c (grub_cmdline_get): Doc fix.
53254
53255 * normal/command.c (grub_command_init): Fixed the description of
53256 the `set' and `unset' commands.
53257
53258 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53259
53260 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
53261 function.
53262 * commands/ieee1275/halt.c: New file.
53263 * commands/ieee1275/reboot.c: Likewise.
53264 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
53265 `__attribute__ ((unused))'. Some GCS related fixed.
53266 (grub_suspend_init) [GRUB_UTIL]: Function removed.
53267 (grub_suspend_fini): Likewise.
53268 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
53269 and `halt.mod'.
53270 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
53271 (halt_mod_CFLAGS): New variables.
53272 * include/grub/powerpc/ieee1275/ieee1275.h
53273 (grub_ieee1275_interpret): New prototype.
53274
53275 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
53276
53277 * include/grub/misc.h (memmove): New prototype.
53278 (memcpy): Likewise.
53279
53280 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
53281
53282 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
53283 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
53284
53285 2005-01-22 Marco Gerards <metgerards@student.han.nl>
53286
53287 * kern/misc.c (grub_strndup): Function rewritten.
53288
53289 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
53290
53291 * normal/menu.c (TERM_WIDTH): Macro redefined.
53292 (TERM_TOP_BORDER_Y): Likewise.
53293 (draw_border): Replaced while-loop by a for-loop. Make the number
53294 of lines consistent with the number of lines displayed in
53295 print_entries. Added a margin below the rectangle.
53296 (print_entry): Make the entry fit in the rectangle.
53297 (print_entries): Display the scroll arrows next to the right
53298 border.
53299
53300 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53301
53302 * fs/minix.c (grub_minix_find_file): Reserve more space for
53303 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
53304 `grub_strncpy' to copy `path' into it.
53305
53306 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53307
53308 Add the loopback device, a device via which files can be accessed
53309 as devices.
53310
53311 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
53312 (pkgdata_MODULES): Add loopback.mod.
53313 (loopback_mod_SOURCES): New variable.
53314 (loopback_mod_CFLAGS): Likewise.
53315 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53316 `disk/loopback.c'.
53317 (pkgdata_MODULES): Add loopback.mod.
53318 (loopback_mod_SOURCES): New variable.
53319 (loopback_mod_CFLAGS): Likewise.
53320 * disk/loopback.c: new file.
53321 * include/grub/normal.h (grub_loop_init): New prototype.
53322 (grub_loop_fini): New prototype.
53323 * util/grub-emu.c (main): Initialize and de-initialize loopback
53324 support.
53325 * include/grub/disk.h (grub_disk_dev_id): Add
53326 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
53327
53328 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
53329
53330 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
53331 function.
53332 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
53333 (suspend_mod_SOURCES): New variable.
53334 (suspend_mod_CFLAGS): Likewise.
53335 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
53336 New prototype.
53337 * commands/ieee1275/suspend.c: New file.
53338
53339 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
53340
53341 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
53342 ((unused))' to `__attribute__ ((used))'.
53343 (GRUB_MOD_FINI): Likewise.
53344 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
53345 * genmk.rb (PModule): Assign space to common symbols when linking
53346 modules.
53347
53348 2005-01-20 Marco Gerards <metgerards@student.han.nl>
53349
53350 * include/grub/mm.h (grub_mm_init_region): Change the type of the
53351 `unsigned' arguments to `grub_size_t'.
53352 (grub_malloc): Likewise.
53353 (grub_realloc): Likewise.
53354 (grub_memalign): Likewise.
53355 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
53356 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53357 * util/misc.c (grub_malloc): Likewise.
53358 (grub_realloc): Likewise.
53359 * kern/mm.c (get_header_from_pointer): Change the casts to
53360 `unsigned' into a cast to `grub_size_t'.
53361
53362 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
53363 point to `currnode' when `currnode' is changed.
53364
53365 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
53366 Schottelius <nico-linux@schottelius.org>.
53367
53368 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
53369
53370 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
53371 (note_path): Remove variable.
53372 (GRUB_IEEE1275_NOTE_NAME): New macro.
53373 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
53374 (grub_ieee1275_note_hdr): New structure.
53375 (grub_ieee1275_note_desc): Likewise.
53376 (grub_ieee1275_note): Likewise.
53377 (load_note): Remove `dir' argument. All callers updated. Remove
53378 `note_img' and `path'. Do not load a file from `note_path'.
53379 Initialize a struct grub_ieee1275_note and write that to `out'.
53380 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
53381
53382 2005-01-05 Marco Gerards <metgerards@student.han.nl>
53383
53384 * util/misc.c (grub_util_read_image): Revert last change. It
53385 called `grub_util_read_at', which seeks from the beginning of the
53386 file.
53387
53388 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
53389
53390 * TODO: Add note about endianness in grub-mkimage.
53391 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
53392 section.
53393 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
53394 (grub_mkimage_SOURCES): New target.
53395 * include/grub/kernel.h (grub_start_addr): Remove variable.
53396 (grub_end_addr): Likewise.
53397 (grub_total_module_size): Likewise.
53398 (grub_kernel_image_size): Likewise.
53399 (GRUB_MODULE_MAGIC): New constant.
53400 (grub_module_info): New structure.
53401 (grub_arch_modules_addr): New prototype.
53402 (grub_get_end_addr): Remove prototype.
53403 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
53404 * include/grub/powerpc/ieee1275/kernel.h: New file.
53405 * include/grub/util/misc.h (grub_util_get_fp_size): New
53406 prototype.
53407 (grub_util_read_at): Likewise.
53408 (grub_util_write_image_at): Likewise.
53409 * kern/main.c (grub_get_end_addr): Remove function.
53410 (grub_load_modules): Call grub_arch_modules_addr instead of using
53411 grub_end_addr. Look for a grub_module_info struct in memory. Use
53412 the grub_module_info fields instead of calling grub_get_end_addr
53413 as loop conditions. Move grub_add_unused_region code here.
53414 (grub_add_unused_region): Remove function.
53415 * kern/i386/pc/init.c: Include grub/cache.h.
53416 (grub_machine_init): Remove call to grub_get_end_addr. Remove
53417 one call to add_mem_region.
53418 (grub_arch_modules_addr): New function.
53419 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
53420 (grub_total_module_size): Likewise.
53421 Include grub/machine/kernel.h.
53422 (grub_arch_modules_addr): New function.
53423 * util/grub-emu.c (grub_end_addr): Remove variable.
53424 (grub_total_module_size): Likewise.
53425 (grub_arch_modules_addr): New function.
53426 * util/misc.c: Include unistd.h.
53427 (grub_util_get_fp_size): New function.
53428 (grub_util_read_at): Likewise.
53429 (grub_util_write_image_at): Likewise.
53430 (grub_util_read_image): Call grub_util_read_at.
53431 (grub_util_write_image): Call grub_util_write_image_at.
53432 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
53433 additional memory in kernel_img for a struct grub_module_info.
53434 Fill in that grub_module_info.
53435 * util/powerpc/ieee1275/grub-mkimage.c: New file.
53436
53437 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53438
53439 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
53440 New function.
53441 * include/grub/powerpc/ieee1275/ieee1275.h
53442 (grub_ieee1275_milliseconds): New prototype.
53443 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
53444 Change to 1000.
53445 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
53446 grub_ieee1275_milliseconds.
53447
53448 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53449
53450 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
53451 variable.
53452 (find_options): New function.
53453 (cmain): Call find_options.
53454 * include/grub/powerpc/ieee1275/ieee1275.h
53455 (grub_ieee1275_realmode): New extern variable.
53456 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
53457 grub_map if grub_ieee1275_realmode is false.
53458
53459 2004-12-29 Marco Gerards <metgerards@student.han.nl>
53460
53461 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
53462 lines are inserted and make it work like readline. Reported by
53463 Vincent Pelletier <subdino2004@yahoo.fr>.
53464
53465 2004-12-28 Marco Gerards <metgerards@student.han.nl>
53466
53467 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
53468
53469 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
53470 `kern/powerpc/cache.S'.
53471
53472 2004-12-27 Marco Gerards <metgerards@student.han.nl>
53473
53474 * genmk.rb: Handle the `Program' class in the main loop. Written
53475 by Johan Rydberg <jrydberg@gnu.org>.
53476 (Program): New class.
53477 (programs): New variable.
53478 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
53479 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
53480 instead of "grub/kernel.h". Include <grub/machine/init.h>.
53481 (help_arch): Function removed.
53482 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
53483 `powerpc/libgcc.h' and `loader.h'.
53484 (pkgdata_PROGRAMS): New variable.
53485 (sbin_UTILITIES): Variable removed.
53486 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
53487 (grubof_SOURCES): Variable re-defined so it only includes the
53488 core functionality.
53489 (grubof_CFLAGS): Remove `-DGRUBOF'.
53490 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
53491 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
53492 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
53493 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
53494 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
53495 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
53496 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
53497 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
53498 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
53499 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
53500 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
53501 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
53502 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
53503 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
53504 (pc_mod_CFLAGS): New variables.
53505 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
53506 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
53507 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
53508 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
53509 Moved from here...
53510 * include/grub/i386/pc/init.h (grub_os_area_addr)
53511 (rub_os_area_size): ... to here.
53512 * include/grub/powerpc/ieee1275/ieee1275.h
53513 (grub_ieee1275_entry_fn): Export symbol.
53514 * include/grub/powerpc/ieee1275/init.h: New file.
53515 * include/grub/powerpc/libgcc.h: Likewise.
53516 * include/grub/cache.h: Likewise.
53517 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
53518 <hollis@penguinppc.org>.
53519 * kern/dl.c: Include <grub/cache.h>.
53520 (grub_dl_flush_cache): New function.
53521 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
53522 for this module.
53523 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
53524 (grub_console_init): Removed prototypes.
53525 (grub_machine_init): Don't initialize the modules anymore.
53526 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
53527 static.
53528 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
53529 Macro undef removed.
53530 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
53531 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
53532 relocation `R_PPC_REL32'. Return an error when the relocation is
53533 unknown.
53534 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
53535 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
53536 * util/misc.c (grub_arch_sync_caches): Likewise.
53537
53538 2004-12-19 Marco Gerards <metgerards@student.han.nl>
53539
53540 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
53541 `symlist.c', add `grubof_symlist.c'.
53542 (symlist.c): Variable removed.
53543 (grubof_HEADERS): Variable added.
53544 (grubof_symlist.c): New target.
53545 (kernel_syms.lst): Use `grubof_HEADERS' instead of
53546 `kernel_img_HEADERS'.
53547 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
53548 * kern/powerpc/dl.c: New file.
53549 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
53550 Function removed.
53551 (grub_arch_dl_relocate_symbols): Likewise.
53552 (grub_register_exported_symbols): Likewise.
53553
53554 2004-12-13 Marco Gerards <metgerards@student.han.nl>
53555
53556 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
53557 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
53558 to fail instead. Reported by Vincent Pelletier
53559 <subdino2004@yahoo.fr>.
53560
53561 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
53562 it is not allocated. Reported by Vincent Pelletier
53563 <subdino2004@yahoo.fr>.
53564
53565 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
53566 output so the output looks better.
53567
53568 2004-12-04 Marco Gerards <metgerards@student.han.nl>
53569
53570 Modulize the partition map support and add support for the amiga
53571 partition map.
53572
53573 * commands/ls.c: Include <grub/partition.h> instead of
53574 <grub/machine/partition.h>.
53575 * kern/disk.c: Likewise.
53576 * kern/rescue.c: Likewise.
53577 * loader/i386/pc/chainloader.c: Likewise.
53578 * normal/cmdline.c: Likewise.
53579 * kern/powerpc/ieee1275/init.c: Likewise.
53580 (grub_machine_init): Call `grub_pc_partition_map_init',
53581 `grub_amiga_partition_map_init' and
53582 `grub_apple_partition_map_init'.
53583 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
53584 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
53585 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
53586 `partition.h' and `pc_partition.h'.
53587 (grub_setup_SOURCES): Remove
53588 `disk/i386/pc/partition.c'. Add `kern/partition.c',
53589 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53590 (grub_emu_SOURCES): Likewise.
53591 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
53592 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
53593 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
53594 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53595 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
53596 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53597 (grubof_SOURCES): Likewise.
53598 * disk/i386/pc/partition.c: File removed.
53599 * disk/powerpc/ieee1275/partition.c: Likewise.
53600 * include/grub/powerpc/ieee1275/partition.h: Likewise.
53601 * include/grub/i386/pc/partition.h: Likewise.
53602 * kern/partition.c: New file.
53603 * partmap/amiga.c: Likewise.
53604 * partmap/apple.c: Likewise.
53605 * partmap/pc.c: Likewise.
53606 * include/grub/partition.h: Likewise..
53607 * include/grub/pc_partition.h: Likewise.
53608 * util/grub-emu.c: Include <grub/partition.h> instead of
53609 <grub/machine/partition.h>.
53610 (main): Call `grub_pc_partition_map_init',
53611 `grub_amiga_partition_map_init' and
53612 `grub_apple_partition_map_init' and deinitialize afterwards.
53613 * util/i386/pc/biosdisk.c: Include `#include
53614 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53615 `<grub/machine/partition.h>'.
53616 * util/i386/pc/grub-setup.c: Likewise.
53617 * util/i386/pc/biosdisk.c: Likewise.
53618 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
53619 partition information in case of a PC partition.
53620 * util/i386/pc/grub-setup.c: Include `#include
53621 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53622 `<grub/machine/partition.h>'.
53623 (setup): Only access the PC specific partition information in case
53624 of a PC partition.
53625
53626 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
53627
53628 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
53629 (grub_longjmp): Likewise.
53630 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
53631 20.
53632 * normal/powerpc/setjmp.S: New file.
53633 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
53634 `normal/powerpc/setjmp.S'.
53635 (grubof_CFLAGS): Add `-DGRUBOF'.
53636 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
53637 [GRUB_UTIL && !GRUBOF].
53638
53639 2004-11-16 Marco Gerards <metgerards@student.han.nl>
53640
53641 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
53642 property named `name'. Correctly handle the error returned by
53643 `grub_ieee1275_finddevice' if a device can not be opened.
53644
53645 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
53646
53647 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
53648 `actual' for negativity.
53649 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53650 kern/fshelp.c.
53651
53652 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53653
53654 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
53655 (PAGE_OFFSET): New macro.
53656 (CRTC_ADDR_PORT): Likewise.
53657 (CRTC_DATA_PORT): Likewise.
53658 (START_ADDR_HIGH_REGISTER): Likewise.
53659 (START_ADDR_LOW_REGISTER): Likewise.
53660 (GRAPHICS_ADDR_PORT): Likewise.
53661 (GRAPHICS_DATA_PORT): Likewise.
53662 (READ_MAP_REGISTER): Likewise.
53663 (INPUT_STATUS1_REGISTER): Likewise.
53664 (INPUT_STATUS1_VERTR_BIT): Likewise.
53665 (page): New variable.
53666 (wait_vretrace): New function.
53667 (set_read_map): Likewise.
53668 (set_start_address): Likewise.
53669 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
53670 the right page.
53671 (check_vga_mem): Take the page into account.
53672 (write_char): Likewise.
53673 (write_cursor): Likewise.
53674 (scroll_up): Likewise. Copy the page to the page that is not
53675 shown and switch between both pages.
53676 (grub_vga_putchar): Fix off by one error.
53677 (grub_vga_cls): Wait for the vertical retrace. Take the page into
53678 account.
53679
53680 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53681
53682 Add support for iso9660 (including rockridge).
53683
53684 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53685 (iso9660_mod_SOURCES): New variable.
53686 (iso9660_mod_CFLAGS): Likewise.
53687 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53688 * include/grub/fs.h (grub_iso9660_init): New prototype.
53689 * util/grub-emu.c (main): Call `grub_iso9660_init'.
53690 * fs/iso9660.c: New file.
53691
53692 * include/grub/misc.h (grub_strncat): New prototype.
53693 * kern/misc.c (grub_strncat): New function.
53694
53695 * fs/hfs.c (grub_hfs_mount): Translate the error
53696 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
53697 * fs/jfs.c (grub_jfs_mount): Likewise.
53698 * fs/ufs.c (grub_ufs_mount): Likewise.
53699
53700 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
53701
53702 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
53703 which initialized BAT registers.
53704 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
53705 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53706 Move from here...
53707 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
53708 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53709 ... to here.
53710 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
53711 (grub_mapclaim): Likewise.
53712 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
53713 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
53714 hand.
53715
53716 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
53717
53718 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
53719 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
53720 -ffreestanding and -msoft-float.
53721
53722 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
53723
53724 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
53725 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
53726 set in grub_ieee1275_flags.
53727
53728 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
53729
53730 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
53731 prototype.
53732 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
53733 grub_console_init first.
53734 Change the memory range used for grub_ieee1275_claim and
53735 grub_mm_init_region.
53736 Print an error message if the claim fails.
53737 Include <grub/misc.h>.
53738
53739 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
53740
53741 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
53742 Call grub_children_iterate for device nodes of type `scsi',
53743 `ide', or `ata'.
53744 (grub_ofdisk_open): Remove manual device alias resolution.
53745 Fix memory leak when device cannot be opened.
53746 * include/grub/powerpc/ieee1275/ieee1275.h
53747 (grub_children_iterate): New prototype.
53748 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
53749 New function.
53750 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53751 Return -1 if args.size was -1.
53752
53753 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53754
53755 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
53756 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
53757 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
53758 Open Firmware's memory for it; claim memory from _start to _end.
53759 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
53760 (_end): New extern.
53761 (_start): Zero BSS from __bss_start to _end.
53762 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
53763 New extern.
53764 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
53765
53766 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53767
53768 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
53769 -1 if args.base was -1.
53770
53771 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
53772
53773 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
53774 escape sequence instead of a literal ^L. Also call
53775 grub_ofconsole_gotoxy.
53776
53777 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
53778
53779 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
53780 void * arguments to grub_addr_t. All callers updated. Also make
53781 the `result' argument optional.
53782 (grub_ieee1275_release): change void * arguments to grub_addr_t.
53783 All callers updated.
53784
53785 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
53786
53787 * commands/ls.c (grub_ls_list_files): Use the string following the
53788 initial ')', if present, as the filesystem path.
53789 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
53790
53791 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
53792
53793 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
53794
53795 Make the source code of the menu interface more readable.
53796
53797 * normal/menu.c: Include grub/mm.h.
53798 (TERM_WIDTH): New macro.
53799 (TERM_HEIGHT): Likewise.
53800 (TERM_INFO_HEIGHT): Likewise.
53801 (TERM_MARGIN): Likewise.
53802 (TERM_SCROLL_WIDTH): Likewise.
53803 (TERM_TOP_BORDER_Y): Likewise.
53804 (TERM_LEFT_BORDER_X): Likewise.
53805 (TERM_BORDER_WIDTH): Likewise.
53806 (TERM_MESSAGE_HEIGHT): Likewise.
53807 (TERM_BORDER_HEIGHT): Likewise.
53808 (TERM_NUM_ENTRIES): Likewise.
53809 (TERM_FIRST_ENTRY_Y): Likewise.
53810 (TERM_ENTRY_WIDTH): Likewise.
53811 (TERM_CURSOR_X): Likewise.
53812 (draw_border): Use macros instead of magic numbers.
53813 (print_entry): Likewise.
53814 (print_entries): Likewise.
53815 (run_menu): Likewise. Also, handle the key 'e'.
53816 (run_menu_entry): Ignore empty command lines.
53817 (print_message): Added a new argument EDIT. If EDIT is true,
53818 print a different message.
53819 (init_page): Likewise.
53820 (edit_menu_entry): New function. Not implemented yet.
53821
53822 2004-09-17 Marco Gerards <metgerards@student.han.nl>
53823
53824 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
53825 can be loaded from normal mode.
53826
53827 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
53828 `multiboot.mod'.
53829 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
53830 (multiboot_mod_CFLAGS): New variables.
53831 * loader/i386/pc/linux_normal.c: New file.
53832 * loader/i386/pc/multiboot_normal.c: Likewise.
53833
53834 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
53835 attribute `unused'.
53836
53837 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
53838 `fdiro' to read the mode information from instead of `diro'.
53839
53840 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
53841 looking up a symlink.
53842
53843 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
53844 macro.
53845 * normal/command.c (grub_command_execute): Don't parse the
53846 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
53847 flags of the command.
53848
53849 * normal/menu.c (grub_menu_run): Fix typo.
53850
53851 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
53852
53853 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
53854
53855 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
53856 `y + 1' instead of `y - 1'.
53857
53858 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
53859
53860 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
53861
53862 From Hollis Blanchard <hollis@penguinppc.org>:
53863 * kern/misc.c (memmove): New alias for grub_memmove.
53864 (memcmp): New alias for grub_memcmp.
53865 (memset): New alias for grub_memset.
53866 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53867 Change "int handle" to "grub_ieee1275_phandle_t handle".
53868 * include/grub/powerpc/ieee1275/ieee1275.h
53869 (grub_ieee1275_get_property): Likewise.
53870
53871 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
53872
53873 Added normal mode command `chainloader' as module chain.mod, which
53874 depends on normal.mod and _chain.mod.
53875
53876 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
53877 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
53878 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
53879 Deleted prototype.
53880 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
53881 but arguments parsing moved to ...
53882 (grub_chainloader_cmd): ... here. New function.
53883 * include/grub/i386/pc/chainloader.h: New file.
53884 * loader/i386/pc/chainloader_normal.c: Likewise.
53885
53886 2004-09-11 Marco Gerards <metgerards@student.han.nl>
53887
53888 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
53889 (grub_mkimage_LDFLAGS): Likewise.
53890 (grub_emu_SOURCES): Likewise.
53891 (kernel_img_HEADERS): Added fshelp.h.
53892 * fs/ext2.c: Include <grub/fshelp.h>.
53893 (FILETYPE_REG): New macro.
53894 (FILETYPE_INO_REG): Likewise.
53895 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
53896 Changed all users.
53897 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
53898 all users.
53899 (grub_fshelp_node): New struct.
53900 (grub_ext2_data): Added member `diropen'. Changed member `inode'
53901 to a pointer.
53902 (grub_ext2_get_file_block): Removed function.
53903 (grub_ext2_read_block): New function.
53904 (grub_ext2_read_file): Replaced parameter `data' by `node'.
53905 This function was written.
53906 (grub_ext2_mount): Read the root inode. Create a diropen struct.
53907 (grub_ext2_find_file): Removed function.
53908 (grub_ext2_read_symlink): New function.
53909 (grub_ext2_iterate_dir): Likewise.
53910 (grub_ext2_open): Rewritten.
53911 (grub_ext2_dir): Rewritten.
53912 * include/grub/fshelp.h: New file.
53913 * fs/fshelp.c: Likewise.
53914
53915 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
53916
53917 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
53918 (print_message): Add a missing newline.
53919 (run_menu): Added timeout support.
53920 (run_menu_entry): New local function.
53921 (grub_menu_run): Added support for booting.
53922
53923 * kern/loader.c (grub_loader_is_loaded): New function.
53924
53925 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
53926 (grub_get_rtc): Exported.
53927
53928 * include/grub/i386/pc/time.h: Include grub/symbol.h.
53929 (grub_get_rtc): Exported.
53930
53931 * include/grub/normal.h (struct grub_command_list): Remove
53932 constant from the member `command'.
53933
53934 * include/grub/loader.h (grub_loader_is_loaded): Declared.
53935
53936 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
53937
53938 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
53939
53940 2004-08-28 Marco Gerards <metgerards@student.han.nl>
53941
53942 Add support for the JFS filesystem.
53943
53944 * fs/jfs.c: New file.
53945 * include/grub/fs.h (grub_jfs_init): New prototype.
53946 (grub_jfs_fini): New prototype.
53947 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
53948 (grub_emu_SOURCES): Likewise.
53949 (pkgdata_MODULES): Add jfs.mod.
53950 (jfs_mod_SOURCES): New variable.
53951 (jfs_mod_CFLAGS): Likewise.
53952 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
53953 (grubof_SOURCES): Likewise.
53954 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
53955
53956 * fs/fat.c (grub_fat_find_dir): Convert the filename little
53957 endian to the host endian.
53958 (grub_fat_utf16_to_utf8): Move function from there...
53959 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
53960 the endianness of the source string anymore.
53961 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
53962
53963 2004-08-24 Marco Gerards <metgerards@student.han.nl>
53964
53965 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
53966 (grub_boot_fini) [GRUB_UTIL]: Likewise.
53967 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
53968 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
53969
53970 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
53971 (grub_hfs_iterate_dir): Make the function static. Add prototypes
53972 for `node_found' and `it_dir'.
53973 (grub_hfs_dir): Add prototype for `dir_hook'.
53974
53975 * fs/minix.c (grub_minix_get_file_block): Add prototype for
53976 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
53977 and `indir32' to silence a gcc warning.
53978
53979 * include/grub/fs.h (grub_hfs_init): New prototype.
53980 (grub_hfs_fini): Likewise.
53981
53982
53983 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
53984
53985 Each disk device has its own id now. This is useful to make use
53986 of multiple disk devices.
53987
53988 * include/grub/disk.h (grub_disk_dev_id): New enum.
53989 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
53990 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
53991
53992 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
53993 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
53994
53995 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
53996 GRUB_DISK_DEVICE_OFDISK_ID as an id.
53997
53998 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
53999 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
54000
54001 * include/grub/disk.h (struct grub_disk_dev): Added a new member
54002 "id" which is used by the cache manager.
54003
54004 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
54005 of just "GRUB".
54006
54007 2004-08-18 Marco Gerards <metgerards@student.han.nl>
54008
54009 * fs/hfs.c: New file.
54010 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
54011 (grub_emu_SOURCES): Likewise.
54012 (pkgdata_MODULES): Add hfs.mod.
54013 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
54014 (grubof_SOURCES): Likewise.
54015 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
54016
54017 * include/grub/misc.h (grub_strncasecmp): Add prototype.
54018 * kern/misc.c (grub_strncasecmp): Add function.
54019
54020 2004-08-14 Marco Gerards <metgerards@student.han.nl>
54021
54022 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
54023 with parentheses.
54024
54025 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
54026 (grub_ext2_dir): In case the directory entry type is unknown, read
54027 it from the inode.
54028
54029 2004-08-02 Peter Bruin <pjbruin@dds.nl>
54030
54031 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
54032 grub_load_linux instead of grub_rescue_cmd_linux as second
54033 argument of grub_rescue_register_command.
54034
54035 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
54036
54037 2004-07-27 Marco Gerards <metgerards@student.han.nl>
54038
54039 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
54040 function.
54041 * commands/boot.c: Remove the check for `GRUB_UTIL'.
54042 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
54043 `loader/powerpc/ieee1275/linux.c',
54044 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
54045 * include/grub/powerpc/ieee1275/ieee1275.h
54046 (grub_ieee1275_release): New prototype.
54047 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
54048 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
54049 normal, boot, linux and linux_normal.
54050 * loader/powerpc/ieee1275/linux.c: New file.
54051 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
54052
54053 2004-07-12 Marco Gerards <metgerards@student.han.nl>
54054
54055 * normal/arg.c (grub_arg_parse): Correct error handling after
54056 reallocating the argumentlist (check if `argl' is not null instead
54057 of checking if `args' is not null).
54058 * kern/mm.c (grub_realloc): Return the same pointer when using the
54059 same region, instead of returning the header address.
54060
54061 2004-07-11 Marco Gerards <metgerards@student.han.nl>
54062
54063 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
54064 one block instead of two when looking for the initial partition.
54065 (grub_partition_probe): Initialize the local variable `p' with 0.
54066 Use base 10 for the grub_strtoul call.
54067 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
54068 need for one local variable.
54069 (grub_strtoul): Don't add the new value to `num', instead of that
54070 just assign it.
54071
54072 2004-07-11 Marco Gerards <metgerards@student.han.nl>
54073
54074 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
54075 (pxeboot_img_SOURCES): New variable.
54076 (pxeboot_img_ASFLAGS): Likewise.
54077 (pxeboot_img_LDFLAGS): Likewise.
54078 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
54079 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
54080 <lode_leroy@hotmail.com>.
54081
54082 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54083
54084 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
54085 there was no input.
54086
54087 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54088
54089 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
54090 the history buffer logic.
54091
54092 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54093
54094 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
54095 (FILETYPE_INO_SYMLINK): New macros.
54096 (grub_ext2_find_file): Check if the node is a directory using the
54097 inode stat information instead of using the filetype in the
54098 dirent. Exclude the first character of an absolute symlink.
54099 (grub_ext2_dir): Mask out the filetype part of the mode member of
54100 the inode.
54101
54102 2004-05-24 Marco Gerards <metgerards@student.han.nl>
54103
54104 Add support for UFS version 1 and 2. Add support for the minix
54105 filesystem version 1 and 2, both the variants with 14 and 30 long
54106 filenames.
54107
54108 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
54109 fs/minix.c.
54110 (grub_emu_SOURCES): Likewise.
54111 (pkgdata_MODULES): Add ufs.mod and minix.mod.
54112 (ufs_mod_SOURCES): New variable.
54113 (ufs_mod_CFLAGS): Likewise.
54114 (minix_mod_SOURCES): Likewise.
54115 (minix_mod_CFLAGS): Likewise.
54116 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
54117 fs/minix.c.
54118 (grubof_SOURCES): Likewise.
54119 * fs/ufs.c: New file.
54120 * fs/minix.c: New file.
54121 * include/grub/fs.h (grub_ufs_init): New prototype.
54122 (grub_ufs_fini): Likewise.
54123 (grub_minix_init): Likewise.
54124 (grub_minix_fini): Likewise.
54125 * util/grub-emu.c (main): Initialize and deinitialize UFS and
54126 minix fs.
54127
54128 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
54129
54130 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
54131 commands/ls.c, commands/terminal.c, commands/boot.c,
54132 commands/cmp.c and commands/cat.c.
54133 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
54134
54135 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
54136 "env.h"
54137
54138 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54139
54140 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
54141 and grub_, respectively. Because the conversion is trivial and
54142 mechanical, I omit the details here. Please refer to the CVS
54143 if you need more information.
54144
54145 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54146
54147 * include/pupa: Renamed to ...
54148 * include/grub: ... this.
54149 * util/i386/pc/pupa-mkimage.c: Renamed to ...
54150 * util/i386/pc/grub-mkimage.c: ... this.
54151 * util/i386/pc/pupa-setup.c: Renamed to ...
54152 * util/i386/pc/grub-setup.c: ... this.
54153 * util/pupa-emu.c: Renamed to ...
54154 * util/grub-emu.c: ... this.
54155
54156 2004-03-29 Marco Gerards <metgerards@student.han.nl>
54157
54158 Add support for the newworld apple macintosh (PPC). This has been
54159 tested on the powerbook 2000 only. It only adds support for
54160 generic ieee1275 functions, console and disk support. This should
54161 be easy to port to other architectures with support for Open
54162 Firmware.
54163
54164 * configure.ac: Accept the powerpc as host_cpu. In the case of
54165 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
54166 specific tests are only executed while building for the i386.
54167 Inverse test for crosscompile.
54168 * genmk.rb (Utility): Allow assembler files.
54169 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
54170 * conf/powerpc-ieee1275.rmk: New file.
54171 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
54172 * disk/powerpc/ieee1275/partition.c: Likewise.
54173 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
54174 * include/pupa/powerpc/ieee1275/console.h: Likewise.
54175 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
54176 * include/pupa/powerpc/ieee1275/time.h: Likewise.
54177 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
54178 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
54179 * include/pupa/powerpc/ieee1275/loader.h
54180 * include/pupa/powerpc/setjmp.h: Likewise.
54181 * include/pupa/powerpc/types.h: Likewise.
54182 * kern/powerpc/ieee1275/init.c: Likewise.
54183 * kern/powerpc/ieee1275/openfw.c: Likewise.
54184 * term/powerpc/ieee1275/ofconsole.c: Likewise.
54185
54186 These files were written by Johan Rydberg
54187 (jrydberg@night.trouble.net) and I only modified them slightly.
54188
54189 * boot/powerpc/ieee1275/cmain.c: New file.
54190 * boot/powerpc/ieee1275/crt0.S: Likewise.
54191 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
54192 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
54193
54194 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
54195
54196 * Makefile.in: Update copyright.
54197 * genmodsrc.sh: Likewise.
54198 * gensymlist.sh: Likewise.
54199 * term/i386/pc/vga.c: Indent correctly.
54200
54201 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
54202 bugreporting address.
54203 * util/i386/pc/pupa-setup.c (usage): Likewise,
54204 (main): Call pupa_ext2_init and pupa_ext2_fini.
54205
54206 * fs/fat.c (log2): Renamed to ...
54207 (fat_log2): ... this.
54208 All callers changed.
54209 * kern/misc.c (memcpy): Alias to pupa_memmove.
54210 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
54211 lvalue cast.
54212 * util/console.c (pupa_ncurses_fini): Return 0.
54213
54214 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
54215 Move fail label here.
54216 [__GNU__]: Don't warn when using stat.
54217 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
54218 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
54219 long int. Use strtol instead of strtoul.
54220
54221 2004-03-14 Marco Gerards <metgerards@student.han.nl>
54222
54223 * commands/boot.c: New file.
54224 * commands/cat.c: Likewise.
54225 * commands/cmp.c: Likewise.
54226 * commands/ls.c: Likewise.
54227 * commands/terminal.c: Likewise.
54228 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
54229 (pupa_register_command): Changed interface to match the new
54230 argument parser.
54231 (pupa_command_execute): Changed (almost rewritten) so it uses
54232 pupa_split_command. Added support for setting variables using the
54233 syntax `foo=bar'.
54234 (rescue_command): Changed to work with the new argument parser.
54235 (terminal_command): Moved from here to commands/terminal.c.
54236 (set_command): New function.
54237 (unset_command): New function.
54238 (insmod_command): New function.
54239 (rmmod_command): New function.
54240 (lsmod_command): New function.
54241 (pupa_command_init): Don't initialize the command terminal
54242 anymore. Initialize the commands set, unset, insmod, rmmod and
54243 lsmod.
54244 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
54245 (kernel_img_HEADERS): Add arg.h and env.h.
54246 (pupa_mkimage_LDFLAGS): Add kern/env.c.
54247 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
54248 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
54249 normal/arg.c.
54250 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
54251 terminal.mod.
54252 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
54253 (boot_mod_SOURCES): New variable.
54254 (terminal_mod_SOURCES): Likewise.
54255 (ls_mod_SOURCES): Likewise.
54256 (cmp_mod_SOURCES): Likewise.
54257 (cat_mod_SOURCES): Likewise.
54258
54259 * normal/arg.c: New file.
54260 * kern/env.c: Likewise.
54261 * include/pupa/arg.h: Likewise.
54262 * include/pupa/env.h: Likewise.
54263 * font/manager.c (font_command): Changed to match argument parsing
54264 interface changes.
54265 (PUPA_MOD_INIT): Likewise.
54266 * hello/hello.c (pupa_cmd_hello): Likewise.
54267 (PUPA_MOD_INIT): Likewise.
54268 * include/pupa/disk.h: Include <pupa/device.h>.
54269 (pupa_print_partinfo): New prototype.
54270 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
54271 (pupa_dl_get_prefix): Likewise.
54272 * include/pupa/misc.h: Include <pupa/err.h>.
54273 (pupa_isgraph): New prototype.
54274 (pupa_isdigit): Likewise.
54275 (pupa_split_cmdline): Likewise.
54276 * include/pupa/normal.h: Include <pupa/arg.h>.
54277 (pupa_command): Changed the prototype of the member `func' to
54278 match the argument parsing interface. Added member `options'.
54279 (pupa_register_command): Updated to match function.
54280 (pupa_arg_parse): New prototype.
54281 (pupa_hello_init) [PUPA_UTIL]: New prototype.
54282 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
54283 (pupa_ls_init) [PUPA_UTIL]: Likewise.
54284 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
54285 (pupa_cat_init) [PUPA_UTIL]: Likewise.
54286 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
54287 (pupa_boot_init) [PUPA_UTIL]: Likewise.
54288 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
54289 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
54290 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
54291 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
54292 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
54293 * kern/disk.c: Include <pupa/file.h>.
54294 (pupa_print_partinfo): New function.
54295 * kern/dl.c: Include <pupa/env.h>.
54296 (pupa_dl_dir): Variable removed.
54297 (pupa_dl_load): Use the environment variable `prefix' instead of
54298 the variable pupa_dl_dir.
54299 (pupa_dl_set_prefix): Function removed.
54300 (pupa_dl_get_prefix): Likewise.
54301 * kern/i386/pc/init.c: Include <pupa/env.h>.
54302 (pupa_machine_init): Use the environment variable `prefix' instead of
54303 using pupa_dl_set_prefix to set the prefix.
54304 * kern/main.c: Include <pupa/env.h>.
54305 (pupa_set_root_dev): Use the environment variable `prefix' instead of
54306 using pupa_dl_get_prefix to get the prefix.
54307 * kern/misc.c: Include <pupa/env.h>.
54308 (pupa_isdigit): New function.
54309 (pupa_isgraph): Likewise.
54310 (pupa_ftoa): Likewise.
54311 (pupa_vsprintf): Added support for printing values of the type
54312 `double'. Make it possible to format variable output when using
54313 formatting like `%1.2%f'.
54314 (pupa_split_cmdline): New function.
54315 * kern/rescue.c: Include <pupa/env.h>.
54316 (next_word): Removed function.
54317 (pupa_rescue_cmd_prefix): Likewise.
54318 (pupa_rescue_cmd_set): New function.
54319 (pupa_rescue_cmd_unset): New function.
54320 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
54321 split the command line instead of splitting it here. Added
54322 support for setting variables using the syntax `foo=bar'. Don't
54323 initialize the prefix command anymore. Initialized the set and
54324 unset commands.
54325 * normal/cmdline.c: Include <pupa/env.h>.
54326 (pupa_tab_complete): Added prototypes for print_simple_completion,
54327 print_partition_completion, add_completion, iterate_commands,
54328 iterate_dev, iterate_part and iterate_dir. Moved code to print
54329 partition information from here to kern/disk.c.
54330 (pupa_cmdline_run): Don't check if the function exists anymore.
54331 * normal/main.c: Include <pupa/env.h>.
54332 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
54333 instead of using pupa_dl_get_prefix to get the prefix.
54334 * term/i386/pc/vga.c: Include <pupa/arg.h>.
54335 (check_vga_mem): Cast pointers to `void *' to silence a gcc
54336 warning.
54337 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
54338 (pupa_vga_setcolor): Declare unused variables with `__attribute__
54339 ((unused))' to silence a gcc warning.
54340 (pupa_vga_setcolor): Likewise.
54341 (debug_command): Changed to match argument parsing
54342 interface changes.
54343 * util/pupa-emu.c: Include <pupa/env.h>.
54344 (options): Added 0's for unused fields to silence a gcc warning.
54345 (argp): Likewise.
54346 (main): Use the environment variable `prefix' instead of using
54347 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
54348 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
54349 and terminal.
54350
54351 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
54352 * util/misc.c: Include <malloc.h>.
54353 (pupa_malloc): Rewritten so errors are correctly reported.
54354 (pupa_realloc): Likewise.
54355 (pupa_memalign): Likewise.
54356 (pupa_mm_init_region): Declare unused variables with
54357 `__attribute__ ((unused))' to silence a gcc warning.
54358 * normal/i386/setjmp.S: Remove tab at the end of the file to
54359 silence a gcc warning.
54360 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
54361 variables with `__attribute__ ((unused))' to silence a gcc
54362 warning.
54363 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
54364 local variable i unsigned to silence a gcc warning.
54365
54366 * kern/term.c: Include <pupa/misc.h>.
54367 (pupa_more_lines): New variable.
54368 (pupa_more): Likewise.
54369 (pupa_putcode): When the pager is active pause at the end of every
54370 screen.
54371 (pupa_set_more): New function.
54372 * include/pupa/term.h (pupa_set_more): New prototype.
54373
54374
54375 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
54376
54377 Now this project is GRUB 2 rather than PUPA. The location of
54378 the CVS repository was moved to GRUB's.
54379
54380 * configure.ac: Use bug-grub as the reporting address.
54381 Use GRUB instead of PUPA.
54382 Change the version number to 1.90.
54383
54384 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
54385
54386 * genkernsyms.sh: Updated copyright information.
54387 * genmk.rb: Likewise.
54388 * genmodsrc.sh: Likewise.
54389 * gensymlist.sh: Likewise.
54390 * boot/i386/pc/boot.S: Likewise.
54391 * boot/i386/pc/diskboot.S: Likewise.
54392 * disk/i386/pc/biosdisk.c: Likewise.
54393 * disk/i386/pc/partition.c: Likewise.
54394 * font/manager.c: Likewise.
54395 * fs/ext2.c: Likewise.
54396 * fs/fat.c: Likewise.
54397 * include/pupa/boot.h: Likewise.
54398 * include/pupa/device.h: Likewise.
54399 * include/pupa/disk.h: Likewise.
54400 * include/pupa/dl.h: Likewise.
54401 * include/pupa/elf.h: Likewise.
54402 * include/pupa/err.h: Likewise.
54403 * include/pupa/file.h: Likewise.
54404 * include/pupa/font.h: Likewise.
54405 * include/pupa/fs.h: Likewise.
54406 * include/pupa/kernel.h: Likewise.
54407 * include/pupa/loader.h: Likewise.
54408 * include/pupa/misc.h: Likewise.
54409 * include/pupa/mm.h: Likewise.
54410 * include/pupa/net.h: Likewise.
54411 * include/pupa/normal.h: Likewise.
54412 * include/pupa/rescue.h: Likewise.
54413 * include/pupa/setjmp.h: Likewise.
54414 * include/pupa/symbol.h: Likewise.
54415 * include/pupa/term.h: Likewise.
54416 * include/pupa/types.h: Likewise.
54417 * include/pupa/i386/setjmp.h: Likewise.
54418 * include/pupa/i386/types.h: Likewise.
54419 * include/pupa/i386/pc/biosdisk.h: Likewise.
54420 * include/pupa/i386/pc/boot.h: Likewise.
54421 * include/pupa/i386/pc/console.h: Likewise.
54422 * include/pupa/i386/pc/init.h: Likewise.
54423 * include/pupa/i386/pc/kernel.h: Likewise.
54424 * include/pupa/i386/pc/linux.h: Likewise.
54425 * include/pupa/i386/pc/loader.h: Likewise.
54426 * include/pupa/i386/pc/memory.h: Likewise.
54427 * include/pupa/i386/pc/multiboot.h: Likewise.
54428 * include/pupa/i386/pc/partition.h: Likewise.
54429 * include/pupa/i386/pc/time.h: Likewise.
54430 * include/pupa/i386/pc/vga.h: Likewise.
54431 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
54432 * include/pupa/util/getroot.h: Likewise.
54433 * include/pupa/util/misc.h: Likewise.
54434 * include/pupa/util/resolve.h: Likewise.
54435 * kern/device.c: Likewise.
54436 * kern/disk.c: Likewise.
54437 * kern/dl.c: Likewise.
54438 * kern/err.c: Likewise.
54439 * kern/file.c: Likewise.
54440 * kern/fs.c: Likewise.
54441 * kern/loader.c: Likewise.
54442 * kern/main.c: Likewise.
54443 * kern/misc.c: Likewise.
54444 * kern/mm.c: Likewise.
54445 * kern/rescue.c: Likewise.
54446 * kern/term.c: Likewise.
54447 * kern/i386/dl.c: Likewise.
54448 * kern/i386/pc/init.c: Likewise.
54449 * kern/i386/pc/lzo1x.S: Likewise.
54450 * kern/i386/pc/startup.S: Likewise.
54451 * loader/i386/pc/chainloader.c: Likewise.
54452 * loader/i386/pc/linux.c: Likewise.
54453 * loader/i386/pc/multiboot.c: Likewise.
54454 * normal/cmdline.c: Likewise.
54455 * normal/command.c: Likewise.
54456 * normal/main.c: Likewise.
54457 * normal/menu.c: Likewise.
54458 * normal/i386/setjmp.S: Likewise.
54459 * term/i386/pc/console.c: Likewise.
54460 * term/i386/pc/vga.c: Likewise.
54461 * util/console.c: Likewise.
54462 * util/genmoddep.c: Likewise.
54463 * util/misc.c: Likewise.
54464 * util/pupa-emu.c: Likewise.
54465 * util/resolve.c: Likewise.
54466 * util/unifont2pff.rb: Likewise.
54467 * util/i386/pc/biosdisk.c: Likewise.
54468 * util/i386/pc/getroot.c: Likewise.
54469 * util/i386/pc/pupa-mkimage.c: Likewise.
54470 * util/i386/pc/pupa-setup.c: Likewise.
54471
54472 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
54473
54474 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
54475 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
54476 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
54477 reading and reset it after reading.
54478 (pupa_ext2_close): Return PUPA_ERR_NONE.
54479
54480 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
54481 Correct value.
54482 (struct linux_kernel_header): Add kernel_version and
54483 initrd_addr_max.
54484 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
54485 pupa_file_read succeeds.
54486 (pupa_rescue_cmd_initrd): Implement.
54487
54488 2003-12-03 Marco Gerards <metgerards@student.han.nl>
54489
54490 * fs/ext2.c (pupa_ext2_label): New function.
54491 (pupa_ext2_fs): Added label.
54492 * fs/fat.c (pupa_fat_label): New function.
54493 (pupa_fat_fs): Added label.
54494 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
54495
54496 * kern/misc.c (pupa_strndup): New function.
54497 * include/pupa/misc.h (pupa_strndup): New prototype.
54498
54499 * include/pupa/normal.h: Include <pupa/err.h>.
54500 (pupa_set_history): New prototype.
54501 (pupa_iterate_commands): New prototype.
54502 * normal/cmdline.c: Include <pupa/machine/partition.h>,
54503 <pupa/disk.h>, <pupa/file.h>.
54504 (hist_size): New variable.
54505 (hist_lines): Likewise.
54506 (hist_end): Likewise.
54507 (hist_used): Likewise.
54508 (pupa_set_history): New function.
54509 (pupa_history_get): Likewise.
54510 (pupa_history_add): Likewise.
54511 (pupa_history_replace): Likewise.
54512 (pupa_tab_complete): Likewise.
54513 (pupa_cmdline_run): Added tab completion and history buffer. Tab
54514 completion shows partitionnames while completing partitions, this
54515 feature was suggested by Jeff Bailey.
54516 * normal/command.c (pupa_iterate_commands): New function.
54517 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
54518 (pupa_normal_init): Initialize history buffer.
54519 (PUPA_MOD_INIT): Likewise.
54520 (pupa_normal_fini): Free the history buffer.
54521 (PUPA_MOD_FINI): Likewise.
54522
54523 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
54524 key.
54525
54526 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
54527 * configure.ac [i386]: Check for regparam bug.
54528 (NESTED_FUNC_ATTR) [! i386]: Defined.
54529
54530 2003-11-17 Marco Gerards <metgerards@student.han.nl>
54531
54532 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
54533 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
54534 (pupa_emu_SOURCES): New variable.
54535 (pupa_emu_LDFLAGS): Likewise.
54536 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
54537 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
54538 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
54539 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54540 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
54541 (pupa_jmp_buf): New typedef.
54542 (pupa_setjmp) [PUPA_UTIL]: New macro.
54543 (pupa_longjmp) [PUPA_UTIL]: Likewise.
54544 * include/pupa/term.h (struct pupa_term): New member `refresh'.
54545 (pupa_refresh): New prototype.
54546 * include/pupa/util/getroot.h: New file.
54547 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
54548 it.
54549 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
54550 (pupa_rescue_cmd_cat): Likewise.
54551 (pupa_rescue_cmd_ls): Likewise.
54552 (pupa_rescue_cmd_testload): Likewise.
54553 (pupa_rescue_cmd_lsmod): Likewise.
54554 * normal/cmdline.c (pupa_cmdline_get): Likewise.
54555 * normal/menu.c (run_menu): Likewise.
54556 * kern/term.c (pupa_cls): Likewise.
54557 (pupa_refresh): New function.
54558 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
54559 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54560 * util/console.c: New file.
54561
54562 * util/i386/pc/getroot.c: New file.
54563 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
54564 (pupa_putchar): New function.
54565 (pupa_refresh): Likewise.
54566 (xgetcwd): Function moved to ...
54567 (strip_extra_slashes): Likewise.
54568 (get_prefix): Likewise.
54569 * util/i386/pc/getroot.c: ... here.
54570 (find_root_device): Function moved and renamed to...
54571 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
54572 Changed all callers.
54573 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
54574 and renamed to...
54575 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
54576 Changed all callers.
54577 * util/misc.c (pupa_memalign): New function.
54578 (pupa_mm_init_region): Likewise.
54579 (pupa_register_exported_symbols): Likewise.
54580 (pupa_putchar): Function removed.
54581 * util/pupa-emu.c: New file.
54582
54583 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
54584
54585 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
54586 (_multiboot_mod_SOURCES): New variable.
54587 (_multiboot_mod_CFLAGS): Likewise.
54588 * loader/i386/pc/multiboot.c: New file.
54589 * include/pupa/i386/pc/multiboot.h: Likewise.
54590 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
54591 (pupa_multiboot_real_boot): New function.
54592 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
54593 (pupa_multiboot_real_boot): New prototype.
54594 (pupa_rescue_cmd_multiboot): Likewise
54595 (pupa_rescue_cmd_module): Likewise.
54596
54597 * kern/loader.c (pupa_loader_set): Continue when
54598 pupa_loader_unload_func() fails.
54599 (pupa_loader_unset): New function.
54600 * include/pupa/loader.h (pupa_loader_unset): New prototype.
54601
54602 * kern/misc.c (pupa_stpcpy): New function.
54603 * include/pupa/misc.h (pupa_stpcpy): New prototype.
54604
54605 2003-11-12 Marco Gerards <metgerards@student.han.nl>
54606
54607 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
54608 for available extensions.
54609
54610 * include/pupa/i386/pc/time.h: New file.
54611 * kern/disk.c: Include <pupa/machine/time.h>.
54612 (PUPA_CACHE_TIMEOUT): New macro.
54613 (pupa_last_time): New variable.
54614 (pupa_disk_open): Flush the cache when there was a timeout.
54615 (pupa_disk_close): Reset the timer.
54616 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
54617 pupa_currticks.
54618 * util/misc.c: Include <sys/times.h>
54619 (pupa_get_rtc): New function.
54620
54621 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
54622
54623 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
54624 as blocks.
54625 (pupa_ext2_get_file_block): Use blocks member.
54626
54627 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
54628 first block. Return -1 instead of pupa_errno on error.
54629
54630 2003-10-27 Marco Gerards <metgerards@student.han.nl>
54631
54632 * README: In the pupa-mkimage example use _chain instead of chain
54633 and ext2 instead of fat.
54634 * TODO: Replace ext2fs with jfs as an example. Add an item for
54635 adding journal playback for ext2fs.
54636 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
54637 (pkgdata_MODULES): Added ext2.mod.
54638 (ext2_mod_SOURCES): New variable.
54639 (ext2_mod_CFLAGS): Likewise.
54640 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
54641 * include/pupa/misc.h (pupa_strncpy): New prototype.
54642 (pupa_strcat): Likewise.
54643 (pupa_strncmp): Likewise.
54644 * kern/misc.c (pupa_strcat): Enable function.
54645 (pupa_strncpy): New function.
54646 (pupa_strncmp): Likewise.
54647 * fs/ext2.c: New file.
54648
54649 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
54650 when the read failed before retrying.
54651 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
54652 (_FILE_OFFSET_BITS): Likewise.
54653 * configure.ac: Added AC_SYS_LARGEFILE.
54654
54655 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54656
54657 * genmk.rb (PModule#rule): Make sure to get only symbol names
54658 from the output of nm.
54659 Reported by Robert Millan <rmh.grub@aybabtu.com>.
54660
54661 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54662
54663 I forgot to check in these changes for a long time. This adds
54664 incomplete support for VGA console, and this is still very
54665 buggy. Also, a lot of consideration is required for I18N,
54666 UNICODE, and VGA font issues. Therefore, assume that this is
54667 such that "better than nothing".
54668
54669 * font/manager.c: New file.
54670 * include/pupa/font.h: Likewise.
54671 * include/pupa/i386/pc/vga.h: Likewise.
54672 * term/i386/pc/vga.c: Likewise.
54673 * util/unifont2pff.rb: Likewise.
54674
54675 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
54676 (pkgdata_MODULES): Added vga.mod and font.mod.
54677 (vga_mod_SOURCES): New variables.
54678 (vga_mod_CFLAGS): Likewise.
54679 (font_mod_SOURCES): Likewise.
54680 (font_mod_CFLAGS): Likewise.
54681
54682 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
54683
54684 * include/pupa/term.h: Include pupa/err.h.
54685 (struct pupa_term): Added init and fini.
54686 Changed the argument of putchar to pupa_uint32_t.
54687
54688 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
54689 (pupa_console_real_putchar): New prototype.
54690 (pupa_console_putchar): Removed.
54691 (pupa_console_checkkey): Exported.
54692 (pupa_console_getkey): Likewise.
54693
54694 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
54695 characters.
54696
54697 * kern/term.c (pupa_term_set_current): Rewritten.
54698 (pupa_putchar): Likewise.
54699 (pupa_putcode): New function.
54700
54701 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
54702 (pupa_console_real_putchar): ... this.
54703 (pupa_vga_set_mode): New function.
54704 (pupa_vga_get_font): Likewise.
54705
54706 * normal/command.c: Include pupa/term.h.
54707 (terminal_command): New function.
54708 (pupa_command_init): Register the command "terminal".
54709
54710 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
54711 (DISP_UP): Likewise.
54712 (DISP_RIGHT): Likewise.
54713 (DISP_DOWN): Likewise.
54714 (DISP_HLINE): Likewise.
54715 (DISP_VLINE): Likewise.
54716 (DISP_UL): Likewise.
54717 (DISP_UR): Likewise.
54718 (DISP_LL): Likewise.
54719 (DISP_LR): Likewise.
54720
54721 * term/i386/pc/console.c (pupa_console_putchar): New function.
54722
54723 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
54724
54725 * util/resolve.c (pupa_util_resolve_dependencies): BUG
54726 FIX. Reverse the path_list.
54727
54728 * include/pupa/normal.h: Export pupa_register_command and
54729 pupa_unregister_command.
54730
54731 * hello/hello.c (pupa_cmd_hello): New module.
54732 * conf/i386-pc.rmk: Added hello.mod.
54733
54734 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
54735
54736 * kern/i386/pc/lzo1x.S: New file.
54737
54738 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
54739 (compress_kernel): New variable.
54740 (generate_image): Heavily modified to support compressing a
54741 large part of the core image.
54742
54743 * util/misc.c (pupa_util_read_image): Fix a file descriptor
54744 leak.
54745 (pupa_util_load_image): New function.
54746
54747 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
54748 (pupa_compressed_size): New variable.
54749 (codestart): Enable Gate A20 here.
54750 Decompress the compressed part of the core image.
54751 Rearrange the code to put functions and variables which are
54752 required for initialization in the non-compressed part.
54753 Include lzo1x.S.
54754
54755 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
54756 here.
54757
54758 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
54759
54760 * include/pupa/i386/pc/kernel.h
54761 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
54762 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
54763 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
54764 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
54765 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
54766
54767 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
54768
54769 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
54770 (Utility#rule): Likewise.
54771
54772 * configure.ac: Check if LZO is available.
54773
54774 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
54775
54776 * include/pupa/normal.h: New file.
54777 * include/pupa/setjmp.h: Likewise.
54778 * include/pupa/i386/setjmp.h: Likewise.
54779 * normal/cmdline.c: Likewise.
54780 * normal/command.c: Likewise.
54781 * normal/main.c: Likewise.
54782 * normal/menu.c: Likewise.
54783 * normal/i386/setjmp.S: Likewise.
54784
54785 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
54786 (pupa_rescue_cmd_initrd): Likewise.
54787
54788 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
54789 Likewise.
54790
54791 * kern/i386/pc/startup.S (translation_table): New variable.
54792 (translate_keycode): New function.
54793 (pupa_console_getkey): Call translate_keycode.
54794
54795 * kern/rescue.c (attempt_normal_mode): New function.
54796 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
54797 it failed, print a message.
54798
54799 * kern/mm.c (pupa_real_malloc): Print more information when a
54800 free magic is broken.
54801 (pupa_free): If the first free header is not free actually, set
54802 it to P.
54803
54804 * kern/main.c (pupa_load_normal_mode): Just load the module
54805 "normal".
54806 (pupa_main): Don't print the message
54807 "Entering into rescue mode..." here.
54808
54809 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
54810 Declared.
54811 (pupa_rescue_cmd_initrd): Likewise.
54812 (pupa_rescue_cmd_initrd): Likewise.
54813
54814 * include/pupa/symbol.h (FUNCTION): Specify the type.
54815 (VARIABLE): Likewise.
54816
54817 * include/pupa/err.h (pupa_err_t): Added
54818 PUPA_ERR_UNKNOWN_COMMAND.
54819
54820 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
54821 (pupa_dl_get_prefix): Likewise.
54822
54823 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
54824 Added _chain.mod and _linux.mod instead of chain.mod and
54825 linux.mod.
54826 (chain_mod_SOURCES): Renamed to ...
54827 (_chain_mod_SOURCES): ... this.
54828 (chain_mod_CFLAGS): Renamed to ...
54829 (_chain_mod_CFLAGS): ... this.
54830 (linux_mod_SOURCES): Renamed to ...
54831 (_linux_mod_SOURCES): ... this.
54832 (linux_mod_CFLAGS): Renamed to ...
54833 (_linux_mod_CFLAGS): ... this.
54834 (normal_mod_SOURCES): New variable.
54835 (normal_mod_CFLAGS): Likewise.
54836 (normal_mod_ASFLAGS): Likewise.
54837
54838 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
54839
54840 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
54841 possible.
54842
54843 * kern/dl.c (pupa_dl_ref): Refer depending modules
54844 recursively.
54845 (pupa_dl_unref): Unrefer depending modules recursively.
54846 Don't call pupa_dl_unload implicitly, because PUPA can crash if
54847 a module is unloaded before one depending on that module is
54848 unloaded.
54849 (pupa_dl_unload): Unload depending modules explicitly,
54850 if possible.
54851
54852 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
54853
54854 * include/pupa/i386/pc/linux.h: New file.
54855 * loader/i386/pc/linux.c: Likewise.
54856
54857 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
54858 Removed.
54859 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
54860 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
54861 of PUPA_CHAINLOADER_BOOT_SECTOR.
54862
54863 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
54864 (pupa_linux_prot_size): New variable.
54865 (pupa_linux_tmp_addr): Likewise.
54866 (pupa_linux_real_addr): Likewise.
54867 (pupa_linux_boot_zimage): New function.
54868 (pupa_linux_boot_bzimage): Likewise.
54869
54870 * kern/i386/pc/init.c (struct mem_region): New structure.
54871 (MAX_REGIONS): New macro.
54872 (mem_regions): New variable.
54873 (num_regions): Likewise.
54874 (pupa_os_area_addr): Likewise.
54875 (pupa_os_area_size): Likewise.
54876 (pupa_lower_mem): Likewise.
54877 (pupa_upper_mem): Likewise.
54878 (add_mem_region): New function.
54879 (compact_mem_regions): Likewise.
54880 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
54881 the size of the conventional memory and that of so-called upper
54882 memory (before the first memory hole).
54883 Instead of adding each found region to free memory, use
54884 add_mem_region and add them after removing overlaps.
54885 Also, add only 1/4 of the upper memory to free memory. The rest
54886 is used for loading OS images. Maybe this is ad hoc, but this
54887 makes it much easier to relocate OS images when booting.
54888
54889 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
54890 (pupa_enter_rescue_mode): Don't register initrd and module.
54891
54892 * kern/mm.c: Include pupa/dl.h.
54893
54894 * kern/main.c: Include pupa/file.h and pupa/device.h.
54895
54896 * kern/loader.c (pupa_loader_load_module_func): Removed.
54897 (pupa_loader_load_module): Likewise.
54898
54899 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
54900 ``.o''.
54901
54902 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
54903 (pupa_linux_tmp_addr): Likewise.
54904 (pupa_linux_real_addr): Likewise.
54905 (pupa_linux_boot_zimage): Likewise.
54906 (pupa_linux_boot_bzimage): Likewise.
54907
54908 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
54909 (pupa_upper_mem): Likewise.
54910 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
54911 module is too dangerous.
54912
54913 * include/pupa/loader.h (pupa_os_area_addr): Declared.
54914 (pupa_os_area_size): Likewise.
54915 (pupa_loader_set): Remove the first argument. Loader doesn't
54916 manage modules or initrd any longer.
54917 (pupa_loader_load_module): Removed.
54918
54919 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
54920 (linux_mod_SOURCES): New variable.
54921 (linux_mod_CFLAGS): Likewise.
54922
54923 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
54924
54925 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
54926 the length of a blocklist correctly.
54927
54928 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
54929 Use ioctl only if the OS file is a block device.
54930 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
54931 not very useful for normal files.
54932
54933 * kern/main.c (pupa_set_root_dev): New function.
54934 (pupa_load_normal_mode): Likewise.
54935 (pupa_main): Call those above.
54936
54937 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
54938 pupa_uint16_t.
54939
54940 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
54941
54942 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
54943
54944 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
54945 (setup): Configure the installed partition information and the
54946 dl prefix.
54947
54948 * loader/i386/pc/chainloader.c (my_mod): New variable.
54949 (pupa_chainloader_unload): New function.
54950 (pupa_rescue_cmd_chainloader): Refer itself.
54951 (PUPA_MOD_INIT): Save its own module in MY_MOD.
54952
54953 * kern/i386/pc/startup.S (install_partition): Removed.
54954 (version_string): Likewise.
54955 (config_file): Likewise.
54956 (pupa_install_dos_part): New variable.
54957 (pupa_install_bsd_part): Likewise.
54958 (pupa_prefix): Likewise.
54959 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
54960
54961 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
54962 and pupa/misc.h.
54963 (make_install_device): New function.
54964 (pupa_machine_init): Set the dl prefix.
54965
54966 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
54967 (buf): Renamed to ...
54968 (linebuf): ... this.
54969 (pupa_rescue_cmd_prefix): New function.
54970 (pupa_rescue_cmd_insmod): Likewise.
54971 (pupa_rescue_cmd_rmmod): Likewise.
54972 (pupa_rescue_cmd_lsmod): Likewise.
54973 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
54974 rmmod and lsmod.
54975
54976 * kern/mm.c (pupa_memalign): If failed even after invalidating
54977 disk caches, unload unneeded modules and retry.
54978
54979 * kern/misc.c (pupa_memmove): New function.
54980 (pupa_memcpy): Removed.
54981 (pupa_strcpy): New function.
54982 (pupa_itoa): Made static.
54983
54984 * kern/dl.c (pupa_dl_iterate): New function.
54985 (pupa_dl_ref): Likewise.
54986 (pupa_dl_unref): Likewise.
54987 (pupa_dl_unload): Return if succeeded or not.
54988 (pupa_dl_unload_unneeded): New function.
54989 (pupa_dl_unload_all): Likewise.
54990 (pupa_dl_init): Renamed to ...
54991 (pupa_dl_set_prefix): ... this.
54992 (pupa_dl_get_prefix): New function.
54993
54994 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
54995 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
54996 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
54997 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
54998 (pupa_install_dos_part): Declared.
54999 (pupa_install_bsd_part): Likewise.
55000 (pupa_prefix): Likewise.
55001 (pupa_boot_drive): Likewise.
55002
55003 * include/pupa/types.h: Fix a typo.
55004
55005 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
55006 pupa_memmove.
55007 (pupa_memmove): Declared.
55008 (pupa_strcpy): Likewise.
55009
55010 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
55011 pupa_mod_init takes one argument, its own module.
55012 (pupa_dl_unload_unneeded): Declared.
55013 (pupa_dl_unload_all): Likewise.
55014 (pupa_dl_ref): Likewise.
55015 (pupa_dl_unref): Likewise.
55016 (pupa_dl_iterate): Likewise.
55017 (pupa_dl_init): Renamed to ...
55018 (pupa_dl_set_prefix): ... this.
55019 (pupa_dl_get_prefix): Declared.
55020
55021 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
55022 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
55023 unloaded.
55024 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
55025 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
55026
55027 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
55028 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
55029
55030 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55031
55032 * util/i386/pc/pupa-setup.c (setup): Define the internal
55033 function find_first_partition_start at the top level, because GCC
55034 3.0.x cannot compile internal functions in deeper scopes
55035 correctly.
55036 (find_root_device): Use lstat instead of stat.
55037 Don't follow symbolic links.
55038 Fix the path-constructing code.
55039
55040 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
55041 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
55042 by a BLKGETSIZE ioctl first, because block devices don't fill
55043 the member st_mode of the structure stat on Linux.
55044 [__linux__] (linux_find_partition): Use a temporary buffer
55045 REAL_DEV for the working space. Copy it to DEV before returning.
55046 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
55047 buffer cache consistent.
55048 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
55049 strncmp. The previous value was merely wrong.
55050 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
55051
55052 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
55053 FAT size is 12. The previous value was merely wrong.
55054
55055 * kern/main.c (pupa_main): Don't split the starting message from
55056 newlines.
55057
55058 * kern/term.c (pupa_putchar): Put CR after LF instead of before
55059 LF, because BIOS goes crazy about character attributes in this
55060 case.
55061
55062 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55063
55064 * include/i386/pc/util/biosdisk.h: New file.
55065 * util/i386/pc/biosdisk.c: Likewise.
55066 * util/i386/pc/pupa-setup.c: Likewise.
55067
55068 * Makefile.in (INCLUDE_DISTFILES): Added
55069 include/pupa/i386/pc/util/biosdisk.h.
55070 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
55071 directory util/i386/pc.
55072 (install-local): Added a rule for sbin_UTILITIES.
55073 (uninstall): Likewise.
55074
55075 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
55076
55077 * util/misc.c (xrealloc): New function.
55078 (pupa_malloc): Likewise.
55079 (pupa_free): Likewise.
55080 (pupa_realloc): Likewise.
55081 (pupa_stop): Likewise.
55082 (pupa_putchar): Likewise.
55083
55084 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
55085
55086 * include/pupa/util/misc.h (xrealloc): Declared.
55087
55088 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
55089 macro.
55090 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
55091 (PUPA_BOOT_MACHINE_BPB_END): ... this.
55092
55093 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
55094 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55095
55096 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
55097 way should be implemented.
55098 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55099
55100 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
55101 the size of NAME for safety.
55102 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
55103 0x88.
55104
55105 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
55106 (pupa_setup_SOURCES): Likewise.
55107
55108 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
55109
55110 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55111
55112 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
55113 bunch of pushl's from pusha, because this destroys the return
55114 value.
55115
55116 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55117
55118 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
55119 This means that any missing prototypes could be fatal. Also, you
55120 must take care when writing assembly code. See the comments at
55121 the beginning of startup.S, for more details.
55122
55123 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
55124 compilation mechanism.
55125 (pupa_chainloader_real_boot): Likewise.
55126 (pupa_biosdisk_rw_int13_extensions): Likewise.
55127 (pupa_biosdisk_rw_standard): Likewise.
55128 (pupa_biosdisk_check_int13_extensions): Likewise.
55129 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
55130 (pupa_biosdisk_get_diskinfo_standard): Likewise.
55131 (pupa_get_memsize): Likewise.
55132 (pupa_get_mmap_entry): Likewise.
55133 (pupa_console_putchar): Likewise.
55134 (pupa_console_setcursor): Likewise.
55135 (pupa_getrtsecs): Use pushl instead of push.
55136
55137 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
55138 memory instead of the stack for a mmap entry, because some
55139 BIOSes may ignore the maximum size and overflow.
55140
55141 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
55142
55143 * genmk.rb (PModule#rule): Compile automatically generated
55144 sources with module-specific CFLAGS as well as other sources.
55145
55146 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55147
55148 * configure.ac: Check ld.
55149 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
55150 respectively, before checking endianness and sizes.
55151
55152 * Makefile.in (LD): New variable.
55153
55154 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55155
55156 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
55157
55158 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55159
55160 * Changelog: New file.
55161