]> git.proxmox.com Git - grub2.git/blob - ChangeLog
Support grub-emu on x32 (ILP32 but with x86-64 instruction set)
[grub2.git] / ChangeLog
1 2014-09-07 Colin Watson <cjwatson@ubuntu.com>
2
3 Support grub-emu on x32 (ILP32 but with x86-64 instruction set)
4
5 * configure.ac: Remove -m64 from checks for -mcmodel=large and
6 -mno-red-zone. These are always either unnecessary (x86_64-emu) or
7 already in TARGET_CFLAGS at this point, and they produce incorrect
8 results when building for x32.
9 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Cast
10 pointers to Elf64_Xword via grub_addr_t, in order to work on x32.
11 * include/grub/x86_64/types.h (GRUB_TARGET_SIZEOF_VOID_P,
12 GRUB_TARGET_SIZEOF_LONG): Define to 4 on x32.
13
14 2014-09-07 Colin Watson <cjwatson@ubuntu.com>
15
16 * configure.ac: Remove several unnecessary semicolons.
17
18 2014-08-25 Colin Watson <cjwatson@ubuntu.com>
19
20 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
21 Initialise pend to pacify GCC.
22
23 2014-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
24
25 * util/grub-mkconfig.in: Fix typo (gettext_print instead of
26 gettext_printf).
27
28 2014-08-13 Vladimir Serbinenko <phcoder@gmail.com>
29
30 * grub-core/term/at_keyboard.c: Retry probing keyboard if
31 scancode setup failed.
32
33 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
34
35 * grub-core/kern/disk_common.c: Clump disk size to 1EiB.
36
37 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
38
39 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Add
40 safety to avoid triggerring VirtualBox bug.
41
42 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
43
44 * grub-core/fs/cbfs.c: Don't probe disks of unknow size.
45
46 Fixes hang on virtualbox.
47
48 2014-07-08 Colin Watson <cjwatson@ubuntu.com>
49
50 * util/grub.d/10_hurd.in: Make kernel list progression not fail on
51 kernels whose paths contain regex metacharacters.
52 * util/grub.d/10_kfreebsd.in: Likewise.
53 * util/grub.d/10_linux.in: Likewise.
54 * util/grub.d/20_linux_xen.in: Likewise.
55
56 Reported by: Heimo Stranner.
57
58 2014-06-26 Colin Watson <cjwatson@ubuntu.com>
59
60 * docs/grub-dev.texi (Finding your way around): The build system no
61 longer uses AutoGen directly.
62
63 2014-06-21 Роман Пехов <roman_pekhov>
64
65 * grub-core/commands/loadenv.c (check_blocklists): Fix overlap check.
66
67 2014-06-21 Glenn Washburn <development@efficientek.com>
68
69 * util/grub-install.c: Fix handling of --disk-module.
70
71 2014-06-21 Stephane Rochoy <sheda>
72
73 * grub-core/loader/i386/bsd.c (grub_netbsd_boot): Pass pointer to
74 EFI system table.
75
76 2014-06-21 Stephane Rochoy <sheda>
77
78 * grub-core/commands/efi/lsefisystab.c (grub_cmd_lsefisystab): Show
79 EFI system table physical address.
80
81 2014-06-21 Trevor Woerner <trevor.woerner@linaro.org>
82
83 * util/grub-gen-asciih.c (add_glyph): Fix uninitialised variable.
84
85 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
86
87 * grub-core/commands/verify.c (grub_pubkey_open): Trust procfs.
88
89 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
90
91 * grub-core/commands/verify.c (grub_pubkey_open): Fix memdisk
92 check.
93
94 2014-04-20 Vladimir Serbinenko <phcoder@gmail.com>
95
96 * grub-core/kern/misc.c (__bzero): Don't compile in GRUB_UTIL.
97
98 Reported by: Yves Blusseau <blusseau@zetam.org>.
99
100 2014-04-20 Piotr Krysiuk <piotras@gmail.com>
101
102 * grub-core/lib/i386/relocator.c: Allow loading old kernels by placing
103 GDT in conventional memory.
104
105 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
106
107 * util/grub.d/30_os-prober.in: Tolerate devices with no filesystem
108 UUID. Other parts of grub-mkconfig tolerate these, they were
109 previously allowed here up to commit
110 55e706c918922def17f5012c23cfe88c4c645208, and they can arise in
111 practice when the system has active LVM snapshots.
112 Fixes Ubuntu bug #1287436.
113
114 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
115
116 * grub-core/disk/lvm.c (grub_lvm_detect): Search for
117 "logical_volumes" block a little more accurately.
118
119 2014-04-06 Vladimir Serbinenko <phcoder@gmail.com>
120
121 * grub-core/lib/syslinux_parse.c: Fix timeout quoting.
122
123 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
124
125 * include/grub/libgcc.h: Remove ctzsi2 and ctzdi2. They're no longer
126 pulled from libgcc.
127
128 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
129
130 Replace few instances of memcmp/memcpy in the code that should be
131 grub_memcmp/grub_memcpy.
132
133 2014-04-03 Vladimir Serbinenko <phcoder@gmail.com>
134
135 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Support NVMe
136 device names.
137
138 2014-03-31 Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
139
140 btrfs: fix get_root key comparison failures due to endianness
141
142 * grub-core/fs/btrfs.c (get_root): Convert
143 GRUB_BTRFS_ROOT_VOL_OBJECTID to little-endian.
144
145 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
146
147 Fix partmap, cryptodisk, and abstraction handling in grub-mkconfig.
148
149 Commit 588744d0dc655177d5883bdcb8f72ff5160109ed caused grub-mkconfig
150 no longer to be forgiving of trailing spaces on grub-probe output
151 lines, which among other things means that util/grub.d/10_linux.in
152 no longer detects LVM. To fix this, make grub-probe's output
153 delimiting more consistent. As a bonus, this improves the coverage
154 of the -0 option.
155
156 Fixes Debian bug #735935.
157
158 * grub-core/disk/cryptodisk.c
159 (grub_util_cryptodisk_get_abstraction): Add a user-data argument.
160 * grub-core/disk/diskfilter.c (grub_diskfilter_get_partmap):
161 Likewise.
162 * include/grub/cryptodisk.h (grub_util_cryptodisk_get_abstraction):
163 Update prototype.
164 * include/grub/diskfilter.h (grub_diskfilter_get_partmap): Likewise.
165 * util/grub-install.c (push_partmap_module, push_cryptodisk_module,
166 probe_mods): Adjust for extra user-data arguments.
167 * util/grub-probe.c (do_print, probe_partmap, probe_cryptodisk_uuid,
168 probe_abstraction): Use configured delimiter. Update callers.
169
170 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
171
172 * util/grub-probe,c (options): Make -0 work again (broken by
173 conversion to argp).
174 (main): Simplify logic.
175
176 2014-03-26 Vladimir Serbinenko <phcoder@gmail.com>
177
178 * grub-core/lib/relocator.c: Fix the case when end of leftover is used.
179
180 2014-03-26 Fu Wei <fu.wei@linaro.org>
181
182 * grub-core/loader/arm64/linux.c: Remove redundant "0x".
183
184 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
185
186 * include/grub/i386/openbsd_bootarg.h: Add addr and frequency fields.
187 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Fill addr field.
188
189 Suggested by: Markus Müller.
190
191 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
192
193 * grub-core/kern/i386/pc/mmap.c: Fallback to EISA memory map
194 if E820 failed to return any regions.
195
196 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
197
198 * grub-core/mmap/i386/uppermem.c (lower_hook) [COREBOOT]: Ignore low
199 tables for low memory calculations.
200
201 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
202
203 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi): Limit
204 location to 640K.
205
206 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
207
208 * grub-core/kern/i386/coreboot/mmap.c: Filter out 0xa0000-0x100000
209 region.
210
211 2014-02-20 Vladimir Serbinenko <phcoder@gmail.com>
212
213 * grub-core/disk/ahci.c: Ignore NPORTS field and rely on PI
214 exclusively.
215
216 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
217
218 Add bootpath parser for open firmware.
219
220 It enables net boot even when there is no bootp/dhcp server.
221
222 * grub-core/net/drivers/ieee1275/ofnet.c: Add grub_ieee1275_parse_bootpath
223 and call it at grub_ieee1275_net_config_real.
224 * grub-core/kern/ieee1275/init.c: Add bootpath to
225 grub_ieee1275_net_config.
226 * include/grub/ieee1275/ieee1275.h: Likewise.
227
228
229 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
230
231 Add grub_env_set_net_property function.
232
233 * grub-core/net/bootp.c: Remove set_env_limn_ro.
234 * grub-core/net/net.c: Add grub_env_set_net_property.
235 * include/grub/net.h: Likewise.
236
237 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
238
239 * util/grub-mkrescue.c: Build fix for argp.h with older gcc.
240
241 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
242
243 * util/grub-mkfont.c: Build fix for argp.h with older gcc.
244
245 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
246
247 * grub-core/disk/ahci.c: Increase timeout. Some SSDs take up to
248 7 seconds to recover if last poweroff was bad.
249
250 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
251
252 * grub-core/disk/ahci.c: Properly handle transactions with no
253 transferred data.
254
255 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
256
257 * grub-core/disk/ahci.c: Add safety cleanups.
258
259 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
260
261 * grub-core/disk/ahci.c: Allocate and clean space for all possible 32
262 slots to avoid pointing to uninited area.
263
264 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
265
266 * grub-core/disk/ahci.c: Do not enable I/O decoding and keep
267 enabling busmaster for the end.
268
269 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
270
271 * util/grub-mkfont.c: Downgrade warnings about unhandled features
272 to debug.
273
274 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
275
276 * grub-core/term/at_keyboard.c: Tolerate missing keyboard.
277
278 2014-01-29 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
279
280 * .gitignore: add missing files and .exe variants.
281
282 2014-01-26 Mike Gilbert <floppym@gentoo.org>
283
284 grub-install: support for partitioned partx loop devices.
285
286 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Detect
287 /dev/loopX as being the parent of /dev/loopXpY.
288
289 2014-01-26 Vladimir Serbinenko <phcoder@gmail.com>
290
291 * grub-core/term/serial.c (grub_serial_register): Fix invalid free.
292 Ensure that pointers are inited to NULL and that pointers are not
293 accessed after free.
294
295 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
296
297 * include/grub/crypto.h: Replace __attribute__ ((format (printf)) with
298 __attribute__ ((format (__printf__)) to fix compilation under MinGW-w64.
299 * include/grub/emu/misc.h: ... and here.
300 * include/grub/err.h: ... and here.
301 * util/import_gcry.py: ... and here (in files g10lib.h).
302
303 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
304
305 * util/grub-mkimage.c: Make prefix argument mandatory.
306
307 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
308
309 Fix several translatable strings.
310
311 Suggested by: D. Prévot.
312
313 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
314
315 * util/grub-install.c: List available targets.
316
317 2014-01-23 Colin Watson <cjwatson@ubuntu.com>
318
319 * util/grub-install.c (write_to_disk): Add an info message.
320
321 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
322
323 * Makefile.am: Allow adding extra files to generated Windows ZIP
324 archive by setting GRUB_WINDOWS_EXTRA_DIST.
325
326 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
327
328 * configure.ac: Look for DejaVuSans also in /usr/share/fonts/truetype.
329 Show detected font path in summary.
330
331 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
332
333 * grub-core/net/arp.c (grub_net_arp_send_request): Increase network try
334 interval gradually.
335 * grub-core/net/icmp6.c (grub_net_icmp6_send_request): Likewise.
336 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
337 * grub-core/net/tftp.c (tftp_open): Likewise.
338 * include/grub/net.h (GRUB_NET_INTERVAL_ADDITION): New define.
339
340 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
341
342 * grub-core/net/net.c (receive_packets): Change stop condition to avoid
343 infinite loops.
344
345 In net/net.c there is a while (1) that only exits if there is a stop
346 condition and more then 10 packages or if there is no package received.
347
348 If GRUB is idle and enter in this loop, the only condition to leave is
349 if it doesn't have incoming packages. In a network with heavy traffic
350 this never happens.
351
352 2014-01-19 Colin Watson <cjwatson@ubuntu.com>
353
354 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Ignore
355 EPERM when modifying kern.geom.debugflags. It is only a problem for
356 such things as installing GRUB to the MBR, in which case there'll be
357 an error later anyway, not for opening files during tests.
358
359 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
360
361 * grub-core/Makefile.am: Build grub_emu_init.[ch] from MODULE_FILES
362 instead of MOD_FILES.
363 * grub-core/genemuinit.sh: Simplify stripping of suffix so it works
364 both with and without .exe.
365 * grub-core/genemuinitheader.sh: Same.
366
367 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
368
369 * util/grub-install.c: Fix a typo.
370
371 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
372
373 * grub-core/normal/main.c (read_config_file): Buffer config file.
374 Reduces boot time.
375
376 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
377
378 * acinclude.m4 (grub_CHECK_LINK_DIR): Check that we can also remove
379 symbolic link to directory. It fails in Msys shell on Windows 2003.
380
381 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
382
383 * Makefile.am (default_payload.elf): Add modules
384 multiboot cbmemc linux16 gzio echo help.
385
386 2014-01-18 Mike Gilbert <floppym@gentoo.org>
387
388 * Makefile.util.def: Link grub-ofpathname with zfs libs.
389
390 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
391
392 * grub-core/commands/macbless.c: Rename FILE and DIR to avoid
393 conflicts.
394
395 Reported by: Andrey Borzenkov.
396
397 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
398
399 * include/grub/misc.h: Move macros for compiler features to ...
400 * include/grub/compiler.h: ... new file.
401 * include/grub/list.h: Include <grub/compiler.h> instead of <grub/misc.h>.
402 * grub-core/commands/fileXX.c: Include <grub/misc.h>.
403 * grub-core/efiemu/prepare.c: Include <grub/misc.h>.
404 * grub-core/loader/i386/xen_file.c: Include <grub/misc.h>.
405 * grub-core/loader/i386/xen_fileXX.c: Include <grub/misc.h>.
406 * grub-core/video/capture.c: Include <grub/misc.h>.
407 * include/grub/command.h: Include <grub/misc.h>.
408 * include/grub/dl.h: Include <grub/misc.h>.
409 * include/grub/procfs.h: Include <grub/misc.h>.
410
411 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
412
413 * configure.ac: Add support for BUILD_EXEEXT and use it ...
414 * Makefile.am: ... here.
415 * Makefile.util.def: ... and here.
416 * grub-core/Makefile.am: ... and here.
417
418 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
419
420 * include/grub/osdep/hostfile_windows.h: Use _W64 instead of
421 FILE_OFFSET_BITS to differentiate between native MinGW and Mingw W64.
422
423 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
424
425 * grub-core/term/terminfo.c: Recognize keys F1-F12.
426
427 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
428
429 * configure.ac: Add support for BUILD_LDFLAGS.
430 * Makefile.am: Use BUILD_LDFLAGS for build time programs here ...
431 * grub-core/Makefile.am: ... and here.
432 * INSTALL: Mention BUILD_LDFLAGS.
433
434 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
435
436 * util/grub-mount.c: Extend GCC warning workaround to grub-mount.
437
438 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
439
440 * grub-core/kern/efi/efi.c: Ensure that the result starts with /
441 and has no //.
442
443 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
444
445 * NEWS: Add few missing entries.
446
447 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
448
449 * util/grub.d/00_header.in (make_timeout): Use && rather than test
450 -a.
451 * util/grub.d/10_windows.in: Likewise.
452 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): Use || rather
453 than test -o.
454 * util/grub.d/30_os-prober.in: Use && rather than test -a, and ||
455 rather than test -o.
456
457 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
458
459 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Remove
460 redundant preprocessor conditional.
461
462 2014-01-08 Colin Watson <cjwatson@ubuntu.com>
463
464 * Makefile.util.def (grub-macbless): Change mansection to 8.
465
466 2014-01-07 Leif Lindholm <leif.lindholm@linaro.org>
467
468 * grub-core/loader/arm64/linux.c: correctly set device path end length.
469
470 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
471
472 * util/grub-install.c: Use bootaa64.efi instead of bootaarch64.efi on
473 arm64 to comply with EFI specification. Also use grubaa64.efi for
474 consistency.
475 * util/grub-mkrescue.c: Change to use bootaa64.efi too.
476
477 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
478
479 * include/grub/osdep/hostfile_windows.h: Do not redefine fseeko/ftello
480 on MinGW-64 when compiling for 32 bits.
481
482 2013-12-30 Andrey Borzenkov <arvidjaar@gmail.com>
483
484 * grub-core/Makefile.core.def: strip .eh_frame section for arm64-efi.
485
486 2013-12-30 Vladimir Serbinenko <phcoder@gmail.com>
487
488 * NEWS: Add few missing entries. Correct existing ones.
489
490 2013-12-28 Vladimir Serbinenko <phcoder@gmail.com>
491
492 Don't abort() on unavailable coreboot tables if not running on coreboot.
493
494 2013-12-28 Andrey Borzenkov <arvidjaar@gmail.com>
495
496 * grub-core/kern/emu/misc.c: Remove unused error.h; fixes compilation
497 on mingw.
498
499 2013-12-28 Colin Watson <cjwatson@ubuntu.com>
500
501 * NEWS: The cmosclean command in fact dates back to 1.99. Remove
502 mention of it from 2.02.
503
504 2013-12-27 Vladimir Serbinenko <phcoder@gmail.com>
505
506 * grub-core/kern/arm/cache_armv6.S: Remove .arch directive.
507
508 As these functions are used on pre-ARMv6 CPUs as well we don't want
509 to make assembler assume that architecture is higher than default one.
510
511 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
512
513 * NEWS: First draft of 2.02 entry.
514
515 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
516
517 * INSTALL (Cross-compiling the GRUB): Fix some spelling mistakes.
518 * docs/grub.texi (Getting the source code): Likewise.
519
520 2013-12-25 Andrey Borzenkov <arvidjaar@gmail.com>
521
522 * grub-core/osdep/windows/platform.c (get_platform): Fix EFI
523 detection.
524
525 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
526
527 * configure.ac: Set version to 2.02~beta2.
528
529 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
530
531 * grub-core/disk/efi/efidisk.c (name_devices): Skip Apple ghosts.
532
533 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
534
535 * util/grub-probe.c: Improve help message and simplify list handling.
536
537 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
538
539 Fix buffer overflow in grub_efi_print_device_path.
540
541 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
542
543 Show SATA device path.
544
545 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
546
547 Revert grub-file usage in grub-mkconfig.
548
549 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
550
551 Make newly-created files other than grub.cfg world-readable.
552
553 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
554
555 * util/grub.d/00_header.in: Improve compatibility with old config.
556
557 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
558
559 Make rijndael.c respect aliasing rules.
560
561 Trivial backport of dfb4673da8ee52d95e0a62c9f49ca8599943f22e.
562
563 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
564
565 Make grub_util_device_is_mapped_stat available in grub-emu core.
566
567 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
568
569 Add -Qn to TARGET_CFLAGS if it's supported.
570 Fixes compilation on cygwin.
571
572 Reported by: Andrey Borzenkov.
573 Suggested by: Andrey Borzenkov.
574
575 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
576
577 Save TARGET_CC version in modinfo.sh.
578
579 Suggested by: Andrey Borzenkov.
580
581 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
582
583 Make grub_util_devmapper_part_to_disk and grub_util_find_partition_start
584 follow the same algorithm to avoid method mismatch. Don't assume
585 DMRAID- UUID to mean full disk but instead check that mapping is linear.
586
587 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
588
589 Declare GRUB_EFI_VENDOR_APPLE_GUID.
590
591 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
592
593 Dump type and vendor specific data when printing device path.
594
595 2013-12-23 Colin Watson <cjwatson@debian.org>
596
597 Update some documentation to refer to Git rather than Bazaar.
598
599 * docs/grub.texi (Obtaining and Building GRUB): Refer to Git rather
600 than Bazaar.
601 * po/README: Likewise. Fix spelling mistake.
602
603 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
604
605 Don't distribute config.h.
606
607 * Makefile.am (platform_HEADERS): Move to ...
608 (nodist_platform_HEADERS): ... here. Fixes gettext_strings_test
609 failure when building from a distributed tarball.
610
611 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
612
613 * configure.ac: Fix spelling.
614 * grub-core/commands/parttool.c: Fix grammar.
615 * grub-core/disk/ldm.c: Use consistent capitalisation for "LDM
616 Embedding Partition".
617
618 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
619
620 ARM64 support for grub-mkrescue.
621
622 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
623
624 Install modinfo.sh to keep build information around.
625
626 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
627
628 * grub-core/modinfo.sh.in: Add build config information.
629
630 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
631
632 ARM64 grub-file and grub-mkconfig support.
633
634 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
635
636 Remove leftover options defines.
637
638 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
639
640 * include/grub/arm64/linux.h: Remove leftovers. Add missing prefixes.
641
642 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
643
644 * grub-core/loader/arm64/linux.c: Add missing bracket.
645
646 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
647
648 Add arm64-efi recognition to grub-file.
649
650 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
651
652 Fix ia64-efi recognition in grub-file.
653
654 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
655
656 Recognize raspberry pi kernel in grub-file.
657
658 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
659
660 Enable cache on ARM U-Boot port.
661
662 Without it the port is reidiculously slow.
663
664 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
665
666 Fix ARM cache maintainance.
667
668 More code was converted from ASM to C for easier handling.
669
670 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
671
672 * grub-core/kern/arm/cache.c (grub_arm_disable_caches_mmu): Use v6
673 algorithm on v5.
674
675 Suggested by: Leif Lindholm.
676
677 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
678
679 * util/grub-mkconfig.in: Fix Xen platform conditions.
680
681 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
682
683 * util/grub-mkrescue.c: Split single help message string in several
684 strings used in previous shell version.
685
686 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
687
688 Add arm64 Linux loader.
689
690 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
691
692 Add grub_fdt_create_empty_tree() and grub_fdt_set_prop64().
693
694 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
695
696 Add module loading and parsing boot time checkpoints.
697
698 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
699
700 * grub-core/loader/arm/linux.c: Pass arguments through on ATAG
701 platforms.
702
703 2013-12-22 Lars Wendler <polynomial-c@gentoo.org>
704
705 * util/grub-mkconfig.in: Skip non-executable files.
706
707 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
708
709 Workaround buggy timer in raspberry pie by using our own timer
710 implementation.
711
712 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
713
714 * include/grub/arm/uboot/kernel.h (GRUB_KERNEL_MACHINE_HEAP_SIZE):
715 Increase to 16 MiB to allow loading the whole memdisk.
716
717 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
718
719 Fix ARM Linux Loader on non-FDT platforms.
720
721 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
722
723 * configure.ac: Choose link format based on host_os on emu.
724
725 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
726
727 * grub-core/osdep/unix/getroot.c: Non-unix build fix.
728
729 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
730
731 * grub-core/kern/emu/main.c: Build fix for emu.
732
733 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
734
735 Build fixes for argp.h with older gcc.
736
737 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
738
739 * util/grub-glue-efi.c: Use "universal binary" rather "fat binary"
740 in strings.
741
742 Suggested by: David Prévot.
743
744 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
745
746 * include/grub/crypto.h (grub_crypto_xor): Fix cast-align warning.
747
748 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
749
750 Enable -Wformat=2 if it's supported.
751
752 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
753
754 * configure.ac: Add -Wmissing-include-dirs -Wmissing-prototypes
755 -Wmissing-declarations if supported.
756
757 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
758
759 * grub-core/commands/macbless.c (grub_mac_bless_inode): Pass inode as
760 u32 as both HFS and HFS+ have 32-bit inodes.
761
762 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
763
764 * include/grub/misc.h (grub_strtol): Fix overflow.
765
766 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
767
768 * include/grub/term.h (grub_unicode_estimate_width): Use grub_size_t
769 as return type in both conditionals.
770
771 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
772
773 * include/grub/video.h (grub_video_rgba_color_rgb): Fix prototype
774 to use uint8_t for color.
775
776 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
777
778 * util/misc.c (grub_util_get_image_size): Check for overflow.
779
780 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
781
782 * grub-core/disk/raid6_recover.c (grub_raid_block_mulx): Use grub_size_t
783 for size.
784
785 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
786
787 * grub-core/disk/lvm.c: Use grub_size_t for sizes and grub_ssize_t
788 for pointer difference.
789
790 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
791
792 * util/import_gcry.py: Skip sample keys.
793
794 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
795
796 * util/misc.c (grub_qsort_strcmp): Don't discard const attribute.
797
798 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
799
800 * configure.ac: Remove duplicate warning arguments.
801
802 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
803
804 Add missing static qualifiers.
805
806 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
807
808 Add missing includes.
809
810 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
811
812 Inline printf templates when possible to enable format checking.
813
814 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
815
816 * include/grub/crypto.h: Don't discard const attribute.
817
818 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
819
820 * grub-core/net/bootp.c (grub_cmd_dhcpopt): Use snprintf where it
821 was intended.
822
823 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
824
825 * grub-core/lib/crypto.c: Don't discard const attribute.
826
827 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
828
829 * grub-core/lib/disk.c: Fix potential overflow.
830
831 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
832
833 * grub-core/lib/arg.c: Don't discard const attribute.
834
835 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
836
837 * grub-core/kern/dl.c: Don't discard const attribute.
838
839 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
840
841 * grub-core/kern/disk.c: Fix potential overflow.
842
843 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
844
845 * conf/Makefile.common: Don't include non-existing directory
846 grub-core/lib/libgcrypt-grub/include.
847
848 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
849
850 Clarify several translatable messages.
851
852 2013-12-21 David Prévot <david@tilapin.org>
853
854 Correct some translatable strings.
855
856 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
857
858 * util/grub-mkrescue.c: Rephrase mkrescue description.
859
860 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
861 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
862
863 Clarify several translatable messages.
864
865 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
866
867 Be more verbose about some configure failures.
868
869 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
870
871 Fix various build problems on GNU/Hurd.
872
873 * grub-core/osdep/unix/getroot.c (strip_extra_slashes): Move inside
874 !defined (__GNU__).
875 (xgetcwd): Likewise.
876 * include/grub/emu/hostdisk.h (grub_util_hurd_get_disk_info)
877 [__GNU__]: Add prototype.
878 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Format
879 long int using %ld rather than %d.
880
881 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
882
883 * util/grub-install.c: Inform user about install platform.
884
885 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
886
887 * configure.ac: Set version to 2.02~beta1.
888
889 2013-12-18 Allen Pais <allen.pais@oracle.com>
890 2013-12-18 Bob Picco <bob.picco@oracle.com>
891
892 * grub-core/boot/sparc64/ieee1275/boot.S: Fix order of fields.
893
894 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
895
896 Make grub_zlib_decompress handle incomplete chunks.
897
898 Fixes squash4.
899
900 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
901
902 * grub-core/Makefile.am: Don't attempt to export grub_bios_interrupt
903 on i386-multiboot.
904
905 2013-12-18 Aleš Nesrsta <starous@volny.cz>
906
907 * grub-core/disk/usbms.c: Retry on unknown errors.
908 Reuse the same tag on retries.
909
910 2013-12-18 Aleš Nesrsta <starous@volny.cz>
911
912 * grub-core/bus/usb/ehci.c: Fix handling of newborn transfers.
913
914 Avoid confusing them with already completed transfers.
915
916 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
917
918 Remove xen VFB.
919
920 Due to XEN bug it prevents Linux boot. Remove it at least, until
921 workaround is found.
922
923 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
924
925 * po/exclude.pot: Add 2 missing excludes.
926
927 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
928
929 Add missing license section in macbless.mod and macho.mod.
930
931 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
932
933 Allow compilation without thumb-interwork as long as no thumb is
934 involved or only thumb2 is used.
935
936 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
937
938 Use -Wl,--no-relax rather than -mno-relax for uniformity.
939
940 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
941
942 * INSTALL: Update comment as to why sparc64 clang isn't usable.
943
944 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
945
946 Add __attribute__ ((sysv_abi)) only if it's really needed.
947
948 Some compilers don't support it.
949
950 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
951
952 * grub-core/lib/syslinux_parse.c: Declare timeout unsigned.
953
954 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
955
956 Remove -Wold-style-definition.
957
958 Not very useful and interaction of it with regexp depends on GCC
959 version.
960
961 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
962
963 Make grub_util_get_windows_path_real static.
964
965 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
966
967 * grub-core/commands/fileXX.c: Silence cast-align.
968 * grub-core/loader/i386/xen_fileXX.c: Likewise.
969
970 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
971
972 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Use explicit cast
973 rather than LL suffix.
974
975 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
976
977 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): Remove leftover.
978
979 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
980
981 * grub-core/loader/arm/linux.c: Use common initrd functions.
982
983 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
984
985 Decrease number of strings to translate.
986
987 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
988
989 * grub-core/kern/arm/dl.c: Remove unnecessarry execution mode check.
990
991 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
992
993 Mark strings for translation and add remaining ones to exclude list.
994
995 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
996
997 * util/grub-file.c (main): Fix sizeof usage.
998
999 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1000
1001 Silence spurious warning.
1002
1003 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1004
1005 Remove check_nt_hiberfil as it's been superseeded by file command.
1006
1007 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1008
1009 * docs/osdetect.cfg: Add isolinux config to detected OSes.
1010
1011 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1012
1013 Implement syslinux parser.
1014
1015 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1016
1017 * grub-core/commands/legacycfg.c: Use 32-bit Linux protocol on non-BIOS.
1018
1019 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1020
1021 Support cpuid --pae.
1022
1023 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1024
1025 Use AT keyboard on Yeeloong 3A.
1026
1027 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1028
1029 Add Yeeloong 3A reboot and halt.
1030
1031 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1032
1033 Add Radeon Yeeloong 3A support.
1034
1035 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1036
1037 Add bonito 3A support.
1038
1039 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1040
1041 * grub-core/loader/machoXX.c: Fix compilation on non-i386.
1042
1043 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1044
1045 * grub-core/loader/i386/xen_fileXX.c: Silence cast-align.
1046
1047 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1048
1049 * grub-core/loader/macho.c: Fix compilation on non-i386.
1050
1051 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1052
1053 Add missing format_arg attribute to check that printf with translated
1054 messages has proper arguments.
1055
1056 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1057
1058 Use grub_xasprintf to format translated error messages containing
1059 64-bit quantity.
1060
1061 2013-12-17 Jon McCune <jonmccune@google.com>
1062
1063 Fix double-free introduced by commit 33d02a42d64cf06cada1c389
1064
1065 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1066
1067 Unify message for unsupported relocation.
1068
1069 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1070
1071 Mark miscompile error for translation.
1072
1073 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1074
1075 Use %I64 and not %ll when using OS printf if compiling for windows.
1076
1077 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1078
1079 Update Mac code to match new register_efi prototype.
1080
1081 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1082
1083 Implement better integration with Mac firmware.
1084
1085 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1086
1087 * grub-core/loader/multiboot_mbi2.c: Implement special value for
1088 load_addr.
1089
1090 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1091
1092 Include serial module in default_payload.elf.
1093
1094 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1095
1096 Add explicit thumb interwork bx in asm files.
1097
1098 Shouldn't matter for armv >= 5 but let's be safe.
1099
1100 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1101
1102 Implement Truecrypt ISO loader.
1103
1104 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1105
1106 * grub-core/lib/arg.c: Ensure at least a single space between commands.
1107
1108 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1109
1110 Implement grub_file tool and use it to implement generating of config
1111 in separate root.
1112
1113 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1114
1115 Change to v1 xen grants.
1116
1117 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1118
1119 * grub-core/lib/i386/xen/relocator.S: Fix hypercall ABI violation.
1120
1121 GRUB relied on %ebx being preserved across hypercall which isn't true.
1122
1123 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1124
1125 * grub-core/lib/x86_64/xen/relocator.S: Fix hypercall ABI violation.
1126
1127 GRUB relied on %rdi being preserved across hypercall which isn't true.
1128
1129 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1130
1131 Implement XEN VFB support.
1132
1133 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1134
1135 Remove grub_bios_interrupt on coreboot.
1136
1137 It's not used currently and cannot be used safely currently.
1138
1139 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1140
1141 Update exclude.pot and mark few strings for translation.
1142
1143 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1144
1145 * util/grub-mkrescue.c: Fix incorrect file usage in fallback code.
1146
1147 Reported by: Jon McCune
1148
1149 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1150
1151 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1152 Add verbose information which firmware directories were tried.
1153
1154 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1155
1156 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect_all): New
1157 function to optionally redirect all three standard descriptors.
1158 Redefine grub_util_exec, grub_util_exec_redirect and
1159 grub_util_exec_redirect_null to use it.
1160 * include/grub/emu/exec.h: Define it.
1161 * include/grub/osdep/exec_unix.h: Delete, it is unused.
1162 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1163 Use grub_util_exec_redirect_all to redirect error to NULL.
1164
1165 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1166
1167 * grub-core/tests/sleep_test.c: Silence spurious warning.
1168
1169 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1170
1171 Make grub_xen_hypercall on i386 cdecl rather than stdcall to avoid
1172 linker trying to "fixup" the code.
1173
1174 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1175
1176 * grub-core/kern/x86_64/xen/startup.S: Align stack.
1177
1178 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1179
1180 Add support for converting PE+ to Elf64.
1181
1182 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1183
1184 * grub-core/commands/minicmd.c (grub_mini_cmd_dump): Handle LLP case.
1185
1186 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1187
1188 Remove practice of assigning random const pointers to device id.
1189
1190 This is not required as cache code already checks driver id as well.
1191
1192 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1193
1194 * include/grub/x86_64/types.h: Define sizeof (long) as 4 when compiling
1195 with mingw.
1196
1197 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1198
1199 * include/grub/efi/api.h: Don't use call wrappers when compiled with
1200 mingw or cygwin as API already matches.
1201
1202 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1203
1204 * grub-core/lib/posix_wrap/errno.h: Undefine errno before redefining.
1205
1206 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1207
1208 * include/grub/efi/api.h: Define (u)intn_t based on pointer size and
1209 not on long.
1210
1211 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1212
1213 Handle X86_64_PC64 relocation.
1214
1215 Those are generated by some cygwin compilers.
1216
1217 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1218
1219 Determine the need for mingw-related stubs at compile time rather than
1220 using not very significant $target_os.
1221
1222 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1223
1224 * grub-core/genmod.sh.in: Strip before converting to ELF as strip
1225 may not work with ELF.
1226
1227 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1228
1229 Use unix functions for temporary files and special files on cygwin.
1230
1231 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1232
1233 Define functions explicitly rather than using --defsym in tests
1234 whenever possible. Respect locality in remaining cases.
1235
1236 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1237
1238 * grub-core/genmoddep.awk: Remove explicit getline < /dev/stdin.
1239
1240 2013-12-15 Andrey Borzenkov <arvidjaar@gmail.com>
1241
1242 * grub-core/osdep/windows/platform.c (grub_install_register_efi): Handle
1243 unlikely errors when getting EFI variables and make exhaustive search
1244 for all BootNNNN variables to find matching one.
1245
1246 2013-12-15 Ian Campbell <ijc@hellion.org.uk>
1247
1248 * grub-core/kern/uboot/init.c: Fix units of uboot timer.
1249
1250 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1251
1252 New functional test for sleep function.
1253
1254 This test allows to check sleep without qemu. Keep qemu version as
1255 well as functional test won't notice if all clocks are going too fast
1256 or too slow.
1257
1258 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1259
1260 Add explicit sysv_abi on amd64 asm routines.
1261
1262 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1263
1264 * grub-core/commands/efi/lsefisystab.c: Use %lld to show
1265 num_table_entries.
1266
1267 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1268
1269 * include/grub/test.h: Use gnu_printf rather than printf on GRUB
1270 functions.
1271
1272 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1273
1274 * grub-core/loader/i386/linux.c: Use grub_addr_t rather than long when
1275 appropriate.
1276
1277 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1278
1279 * grub-core/loader/i386/linux.c: Use %p rather than %lx for pointers.
1280
1281 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1282
1283 * grub-core/kern/elfXX.c: Use grub_addr_t rather than long when
1284 appropriate.
1285
1286 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1287
1288 * grub-core/disk/loopback.c: Use sequential IDs rather than pointer.
1289
1290 In case of quick removal of loopback and adding another one it may
1291 get same ID, confusing the cache system.
1292
1293 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1294
1295 * grub-core/commands/acpi.c: Use grub_addr_t rather than long when
1296 appropriate.
1297
1298 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1299
1300 * grub-core/kern/i386/coreboot/cbtable.c: Use char * arithmetic rather
1301 than converting to long.
1302
1303 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1304
1305 * grub-core/disk/cryptodisk.c: Rename "n" to "last_cryptodisk_id".
1306
1307 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1308
1309 * util/grub-mkimagexx.c (relocate_addresses): Display offset rather
1310 than almost useless pointer.
1311
1312 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1313
1314 Add gcc_struct to all packed structures when compiling with mingw.
1315
1316 Just "packed" doesn't always pack the way we expect.
1317
1318 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1319
1320 * include/grub/i386/coreboot/lbio.h: Add missing attribute (packed).
1321
1322 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1323
1324 * util/grub-pe2elf.c: Fix handling of .bss.
1325
1326 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1327
1328 Implement windows flavour of EFI install routines.
1329
1330 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1331
1332 * conf/Makefile.extra-dist: Adjust path to conf/i386-cygwin-img-ld.sc.
1333
1334 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1335
1336 Change grub_install_register_efi interface to pass GRUB device.
1337
1338 This allows grub_install_register_efi to request partition info
1339 directly.
1340
1341 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1342
1343 Workaround cygwin bug when using \\?\Volume{GUID} syntax.
1344
1345 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1346
1347 Do not use TCHAR string functions as they are not available on cygwin.
1348
1349 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1350
1351 Workaround windows bug when querying EFI system partition parameters.
1352
1353 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1354
1355 * grub-core/kern/i386/qemu/init.c (resource): Decrease struct size
1356 by using bitfields.
1357
1358 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1359
1360 * grub-core/boot/i386/qemu/boot.S: Add missing EXT_C.
1361
1362 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1363
1364 Make i386-* other than i386-pc compileable under cygwin.
1365
1366 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1367
1368 Fix definition of grub_efi_hard_drive_device_path. Take care that
1369 existing code would work even if by some reason bogus definition is
1370 used by EFI implementations.
1371
1372 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1373
1374 * grub-core/osdep/windows/hostdisk.c: Fix cygwin compilation.
1375
1376 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1377
1378 * grub-core/osdep/windows/blocklist.c: Add missing cast in printf
1379 invocation.
1380
1381 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1382
1383 * util/config.c: Remove trailing newline from distributor in simple
1384 parsing.
1385
1386 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1387
1388 * include/grub/efi/api.h: Rename protocol and interface to avoid
1389 conflict.
1390
1391 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1392
1393 * .gitignore: add .exe variants. add missing files. remove few outdated
1394 entries.
1395
1396 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1397
1398 * grub-core/osdep/exec.c: Use unix version on cygwin.
1399
1400 2013-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1401
1402 Implement multiboot2 EFI BS specification.
1403
1404 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1405
1406 * grub-core/normal/charset.c: Fix premature line wrap and crash.
1407 Crash happened only in some cases like a string starting at the
1408 half of the screen of same length.
1409
1410 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1411
1412 * include/grub/efiemu/efiemu.h: Sync configuration table declaration
1413 with EFI counterpart.
1414
1415 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1416
1417 Propagate the EFI commits to x86-efi specific parts.
1418
1419 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1420
1421 * grub-core/commands/efi/lssal.c: Fix terminating condition.
1422
1423 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1424
1425 Introduce grub_efi_packed_guid and use it where alignment is not
1426 guaranteed.
1427
1428 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1429
1430 * include/grub/efi/api.h (grub_efi_device_path): Define length as
1431 unaligned u16 rather than u8[2].
1432
1433 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1434
1435 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Add checks
1436 for relocation range.
1437
1438 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1439
1440 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Handle
1441 non-function pcrel21b relocation. It happens with .text.unlikely
1442 section.
1443
1444 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1445
1446 * make MAX_USABLE_ADDRESS platform-specific
1447 * grub-core/kern/efi/mm.c: add Vladimir's new BYTES_TO_PAGES_DOWN macro.
1448
1449 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1450
1451 * grub-core/lib/fdt.c: change memcpy => grub_memcpy
1452
1453 2013-12-09 Jon McCune <jonmccune@google.com>
1454
1455 * Add --no-rs-codes flag to optionally disable reed-solomon codes
1456 in grub-install and grub-bios-setup for x86 BIOS targets.
1457
1458 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1459
1460 Add missing compile and link options for sparc64-emu.
1461
1462 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1463
1464 Implement sparc64 trampolines (needed for sparc64-emu).
1465
1466 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1467
1468 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Check
1469 range of R_SPARC_HI22.
1470 Implement R_SPARC_LM22.
1471
1472 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1473
1474 * grub-core/kern/powerpc/dl_helper.c (grub_arch_dl_get_tramp_got_size):
1475 Do not explicitly check for symbol table as it's already checked in
1476 platform-independent layer.
1477
1478 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1479
1480 * grub-core/kern/emu/cache.c [__ia64__]: Use our cache cleaning routine
1481 on ia64 as __clear_cache is a dummy on ia64.
1482
1483 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1484
1485 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
1486 Do not explicitly check for symbol table as it's already checked in
1487 platform-independent layer.
1488
1489 2013-12-09 Colin Watson <cjwatson@ubuntu.com>
1490
1491 * util/grub-mkconfig.in: Add missing newline to output.
1492
1493 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1494
1495 * grub-core/kern/ia64/efi/init.c (grub_arch_sync_caches): Move to ...
1496 * grub-core/kern/ia64/cache.c (grub_arch_sync_caches): ... here.
1497
1498 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1499
1500 * grub-core/kern/emu/main.c: Silence missing prototypes to allow emu
1501 compilation with GCC <= 4.2.
1502 * grub-core/kern/emu/argp_common.c: Likewise.
1503
1504 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1505
1506 * include/grub/kernel.h [__sparc__]: Restrict sparc64-ieee1275 to
1507 right platform rather than leaking to sparc64-emu.
1508
1509 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1510
1511 * grub-core/osdep/windows/emuconsole.c: Remove unsigned comparison >= 0.
1512 But ensure that the variables in question are indeed unsigned.
1513
1514 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1515
1516 * grub-core/kern/emu/lite.c: Add missing include of ../ia64/dl_helper.c.
1517
1518 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1519
1520 Remove grub_memalign on emu.
1521
1522 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1523
1524 * grub-core/kern/ia64/efi/init.c: Fix alignment code so it doesn't
1525 truncate incomplete lines but instead flushes them.
1526
1527 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1528
1529 Move OS-dependent mprotect for module loading to grub-core/osdep/*/dl.c
1530 and implement windows variant.
1531
1532 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1533
1534 Fix mips-emu compilation.
1535
1536 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1537
1538 * configure.ac: Check for freetype library usability.
1539
1540 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1541
1542 Make arm-emu work.
1543
1544 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1545
1546 * util/grub-mkfont.c: Replace stpcpy with grub_stpcpy.
1547
1548 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1549
1550 * docs/grub.texi (Environment): Update color_normal and color_highlight
1551 defaults (light-gray instead of white).
1552
1553 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1554
1555 * grub-core/normal/main.c (INIT): Set default color to light-gray
1556 to match GRUB_TERM_DEFAULT_NORMAL_COLOR (i.e. rescue mode), Linux
1557 and apparently BIOS defaults.
1558
1559 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1560
1561 Transform -C option to grub-mkstandalone to --core-compress available
1562 in all grub-install flavours.
1563
1564 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1565
1566 Merge GRUBFS and GRUB_FS variables.
1567
1568 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1569
1570 Revert commit 69ca97c820, it caused failures when using OS device name
1571 in grub-install. Instead just strip off parenthesis in grub-install
1572 if (hdX) was passed.
1573
1574 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1575
1576 * util/grub-install.c (push_partmap_module): Add helper to convert
1577 partmap names to module names and use it in probe_mods(). Fixes
1578 failure to find partmap modules in diskfilter case.
1579
1580 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1581
1582 * configure.ac: Make unifont mandatory on coreboot.
1583
1584 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1585
1586 * configure.ac: Skip unifont 6.3 pcf and bdf.
1587
1588 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1589
1590 * Makefile.am: Remove partial font files if generation failed.
1591
1592 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1593
1594 * util/misc.c (grub_qsort_strcmp): Add qsort helper function to sort
1595 strings.
1596 * include/grub/util/misc.h: Define it ...
1597 * util/grub-install.c (device_map_check_duplicates): ... and use it.
1598
1599 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1600
1601 * util/grub.d/30_os-prober.in: Fix use of grub-probe instead of
1602 ${grub_probe}.
1603
1604 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1605
1606 Don't add -mlong-calls when compiling with clang.
1607
1608 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1609
1610 * configure.ac: Fix a typo.
1611
1612 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1613
1614 Revamp relocation handling.
1615
1616 Move more code to common dl.c. Add missing veneers for arm and arm64.
1617 Decreases kernel size by 70 bytes on i386-pc (40-50 compressed)
1618
1619 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1620
1621 * util/grub-mkimagexx.c: Fix reloc section generation for ia64.
1622
1623 2013-12-05 Mike Gilbert <floppym@gentoo.org>
1624
1625 * INSTALL: Raise minimum python version to 2.6.
1626 * gentpl.py: Use python3-style print function.
1627
1628 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1629
1630 * util/grub-install.c: Mention Boot* variable.
1631
1632 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1633
1634 * grub-core/osdep/linux/hostdisk.c
1635 (grub_util_find_partition_start_os): Initialise start to avoid
1636 spurious compiler warning.
1637
1638 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1639
1640 On Linux, read partition start offsets from sysfs if possible, to
1641 cope with block device drivers that don't implement HDIO_GETGEO.
1642 Fixes Ubuntu bug #1237519.
1643
1644 * grub-core/osdep/linux/hostdisk.c (sysfs_partition_path): New
1645 function.
1646 (sysfs_partition_start): Likewise.
1647 (grub_util_find_partition_start_os): Try sysfs_partition_start
1648 before HDIO_GETGEO.
1649
1650 2013-12-05 Leif Lindholm <leif.lindholm@linaro.org>
1651
1652 * grub-core/kern/fdt.c: Update struct size when adding node.
1653
1654 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1655
1656 Handle unaligned .bss on sparc64.
1657
1658 Current code improperly assumes that both __bss_start and _end are
1659 aligned to 8-bytes. Eliminating this assumption and explicitly align
1660 modules.
1661
1662 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1663
1664 * grub-core/boot/sparc64/ieee1275/boot.S [CDBOOT]: Move scratchpad
1665 so it doesn't land in the middle of loaded image.
1666
1667 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1668
1669 * configure.ac: Move all warning options that may be absent in
1670 gcc >= 3.1 to optional.
1671
1672 Note: while this allows to compile with older GCC, official requirements
1673 remain the same and no support for older GCC.
1674
1675 2013-12-04 Colin Watson <cjwatson@ubuntu.com>
1676
1677 Copying the themes directory in grub-shell isn't
1678 parallel-test-friendly and breaks on the second test when the source
1679 directory is read-only (as in "make distcheck"). Instead, add a
1680 hidden --themes-directory option to grub-mkrescue et al, and use it
1681 in grub-shell.
1682
1683 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1684
1685 * conf/Makefile.common (CFLAGS_GNULIB): Remove -Wno-old-style-definition
1686 as it's no longer necessarry.
1687
1688 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1689
1690 * configure.ac: Allow compilation with older GCC for ARM.
1691
1692 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1693
1694 * configure.ac: Add -no-integrated-as if {addme|ame} isn't supported.
1695 * INSTALL: Note that GRUBwas successfully compiled with clang 3.2 for
1696 ppc.
1697
1698 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1699
1700 * grub-core/kern/emu/main.c: Ignore missing prototype for main.
1701
1702 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1703
1704 Pass font config to config.h and not by TARGET_CFLAGS as adding
1705 arguments doesn't work if TARGET_CFLAGS is specified on command
1706 line.
1707
1708 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1709
1710 * configure.ac: Add -Wvla if compiler supports it.
1711
1712 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1713
1714 * grub-core/osdep/windows/emuconsole.c (grub_console_putchar):
1715 Remove variable length arrays.
1716 * grub-core/term/efi/console.c (grub_console_putchar): Likewise.
1717
1718 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1719
1720 * grub-core/kern/i386/qemu/init.c: Remove variable length arrays.
1721
1722 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1723
1724 * include/grub/types.h: Declare all byteswaps as inline functions
1725 except compile-time ones.
1726
1727 Solves variable shadowing in constructions like
1728 cpu_to_le (le_to_cpu(x) + 1).
1729
1730 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1731
1732 * grub-core/kern/efi/efi.c: Remove variable length arrays.
1733
1734 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1735
1736 * grub-core/kern/uboot/init.c (uboot_timer_ms): Fix overflow after 71
1737 minutes.
1738
1739 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1740
1741 * grub-core/disk/ieee1275/ofdisk.c: Remove variable length arrays.
1742 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
1743
1744 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
1745
1746 * grub-core/Makefile.core.def (setjmp): Distribute
1747 lib/arm64/setjmp.S.
1748
1749 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
1750
1751 Add a new timeout_style environment variable and a corresponding
1752 GRUB_TIMEOUT_STYLE configuration key for grub-mkconfig. This
1753 controls hidden-timeout handling more simply than the previous
1754 arrangements, and pressing any hotkeys associated with menu entries
1755 during the hidden timeout will now boot the corresponding menu entry
1756 immediately.
1757
1758 GRUB_HIDDEN_TIMEOUT=<non-empty> + GRUB_TIMEOUT=<non-zero> now
1759 generates a warning, and if it shows the menu it will do so as if
1760 the second timeout were not present. Other combinations are
1761 translated into reasonable equivalents.
1762
1763 Based loosely on work by Franz Hsieh. Fixes Ubuntu bug #1178618.
1764
1765 2013-12-02 Vladimir Serbinenko <phcoder@gmail.com>
1766
1767 * util/config.c: Add missing pointer adjustment.
1768 Reported by: qwertial
1769
1770 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1771
1772 * grub-core/kern/arm64/dl_helper.c: Include grub/arm64/reloc.h
1773 directly, not via `cpu' link, to fix libgrub.pp generation.
1774
1775 2013-11-30 Leif Lindholm <leif.lindholm@linaro.org>
1776
1777 New port arm64-efi.
1778
1779 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1780
1781 * docs/grub.texi (sleep): Document exit codes.
1782
1783 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1784
1785 Ensure that -mno-unaligned-access or some equivalent option is used.
1786
1787 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1788
1789 * grub-core/lib/libgcrypt/mpi/longlong.h: Fix compilation error with
1790 -march=armv3.
1791
1792 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1793
1794 Remove leftover GRUB_IA64_DL_TRAMP_SIZE.
1795
1796 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
1797
1798 * docs/grub-dev.texi (Font Metrics): Exclude @image command from DVI
1799 builds, since we don't have an EPS version of font_char_metrics.png.
1800 Add leading dot to image extension per the Texinfo documentation.
1801
1802 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
1803
1804 * util/grub-gen-asciih.c: Include FT_SYNTHESIS_H rather than
1805 <freetype/ftsynth.h>, fixing build with FreeType 2.5.1.
1806 * util/grub-gen-widthspec.c: Likewise.
1807 * util/grub-mkfont.c: Likewise.
1808
1809 2013-11-29 Andrey Borzenkov <arvidjaar@gmail.com>
1810
1811 * util/grub-setup.c (main): Move parsing of (hdX) syntax to ...
1812 * util/setup.c (SETUP): ... here. Fixes regression: grub-install
1813 failed to install on (hdX).
1814 * util/grub-setup.c (get_device_name): Remove, not needed after
1815 above change.
1816
1817 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1818
1819 * grub-core/kern/emu/hostfs.c (is_dir): Remove variable length arrays.
1820
1821 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1822
1823 * util/grub-fstest.c: Remove variable length arrays.
1824
1825 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1826
1827 * grub-core/osdep/linux/ofpath.c: Check return value of read.
1828
1829 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1830
1831 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
1832 computing crc32 rather than handling with md fundtions directly.
1833
1834 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1835
1836 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
1837 checking fwstart.img rather than md fundtions directly.
1838
1839 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1840
1841 * util/grub-mkrescue.c (main): Check that fread succeeded.
1842
1843 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1844
1845 * conf/Makefile.common: Remove -mexplicit-relocs and
1846 -DUSE_ASCII_FALLBACK on yeeloong.
1847
1848 -DUSE_ASCII_FALLBACK is already added by font snippets.
1849 -mexplicit-relocs isn't needed is compiler/assemblera are
1850 configured properly.
1851 If they're not we shouldn't attempt to fix it by ourselves.
1852 Binary compare between before and after shows no difference.
1853
1854 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1855
1856 * grub-core/Makefile.core.def: Remove libgnulib.a and use its
1857 sources in dependencies directly.
1858
1859 This was the only instance of "library" in core config. A bug was
1860 reported that -fno-stack-protector wasn't passed to it. Instead of
1861 figuring out why it failed just remove this construction used
1862 needlessly.
1863
1864 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1865
1866 * grub-core/osdep/unix/password.c (grub_password_get): Check that
1867 fgets succeeded.
1868
1869 2013-11-27 Francesco Lavra <francescolavra.fl@gmail.com>
1870
1871 * docs/grub.texi (ls): Fix command description in case of a device name
1872 passed as argument.
1873
1874 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1875
1876 Eliminate variable length arrays in grub_vsnprintf_real.
1877
1878 A bit tricky because this function has to continue to work without
1879 heap for short strings. Fixing prealloc to 32 arguments is reasonable
1880 but make all stack references use 32-bit offset rather than 8-bit one.
1881 So split va_args preparsing to separate function and put the prealloc
1882 into the caller.
1883
1884 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1885
1886 Introduce grub_util_file_sync and use it instead of fsync(fileno(f)).
1887 Fixes build for windows.
1888
1889 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1890
1891 * gentpl.py: Don't generate platform-dependent conditionals for
1892 platform-independent targets.
1893
1894 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
1895
1896 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect): Remove
1897 references to mdadm from otherwise generic code.
1898 (grub_util_exec_pipe): Likewise.
1899 (grub_util_exec_pipe_stderr): Likewise.
1900 * grub-core/osdep/unix/getroot.c (grub_util_pull_lvm_by_command):
1901 This function calls vgs, not mdadm; adjust variable names
1902 accordingly.
1903
1904 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
1905
1906 Generate Makefile.*.am directly from gentpl.py, eliminating the use
1907 of Autogen. The Autogen definitions files remain intact as they
1908 offer a useful abstraction.
1909
1910 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
1911
1912 Add grub_util_disable_fd_syncs call to turn grub_util_fd_sync calls
1913 into no-ops, and use it in programs that copy files but do not need
1914 to take special care to sync writes (grub-mknetdir, grub-rescue,
1915 grub-mkstandalone).
1916
1917 2013-11-26 Colin Watson <cjwatson@ubuntu.com>
1918
1919 * tests/util/grub-fs-tester.in: Execute xorriso from $PATH rather
1920 than hardcoding /usr/local/bin/xorriso.
1921
1922 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
1923
1924 Add PCI command activation to all PCI drivers as required for coreboot
1925 and maybe some other firmwares.
1926
1927 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
1928
1929 * grub-core/Makefile.am: Reduce gratuituous differences between Apple
1930 and non-Apple variants of efiemu compile.
1931
1932 2013-11-25 Andrey Borzenkov <arvidjaar@gmail.com>
1933
1934 * configure.ac: Add explicit check for linking format of
1935 efiemu64; save it as EFIEMU64_LINK_FORMAT.
1936 * grub-core/Makefile.am: Use EFIEMU64_LINK_FORMAT instead of
1937 hardcoding linking format.
1938
1939 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1940
1941 * util/grub-mknetdir.c: Look for platform directories under pkglibdir
1942 and not pkgdatadir.
1943
1944 2013-11-25 Colin Watson <cjwatson@ubuntu.com>
1945 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1946
1947 Add a --locale-directory option to grub-install and related tools.
1948
1949 * include/grub/util/install.h (GRUB_INSTALL_OPTIONS): Add
1950 --locale-directory option.
1951 (enum grub_install_options): Add
1952 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
1953 * util/grub-install-common.c (grub_install_help_filter): Handle
1954 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
1955 (grub_install_parse): Likewise.
1956 (get_localedir): New function to check for a user-provided option
1957 before trying grub_util_get_localedir.
1958 (copy_locales): Use get_localedir rather than
1959 grub_util_get_localedir. Handle differing locale directory layouts.
1960 (grub_install_copy_files): Likewise.
1961
1962 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1963
1964 * grub-core/osdep/unix/platform.c (get_ofpathname): Trim ending newline.
1965 Don't rely on PATH_MAX.
1966
1967 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1968
1969 * grub-core/genmoddep.awk: Use more portable && rather than and.
1970
1971 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1972
1973 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Create _edata by placing
1974 an object after data. While it doesn't seem right solution, it
1975 works well enough and OSX isn't main compilation platform.
1976
1977 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1978
1979 * gentpl.py: Add -ed2016 in order to make objconv accept our binary.
1980 While it doesn't seem right solution, it works well enough and
1981 OSX isn't main compilation platform.
1982
1983 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1984
1985 * configure.ac: Add -static to LDFLAGS when using apple linker to
1986 prevent it from pulling in dynamic linker.
1987
1988 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1989
1990 Apple assembly doesn't handle symbol arithmetic well. So define an
1991 offset symbol in boot.S and use it.
1992
1993 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1994
1995 Apple assembly doesn't handle symbol arithmetic well. So instead
1996 of getting addres of kernel_sector + 4 define kernel_sector_high.
1997 It also makes code more readable.
1998
1999 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2000
2001 With Apple assembly in .macro environvemnt you have to use $$ instead
2002 of $. So introduce new preprocessor macro MACRO_DOLLAR(x) which expands
2003 to $$x on Apple and to $x on everything else.
2004
2005 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2006
2007 * grub-core/Makefile.am: Use correct TARGET_OBJCONV rather than
2008 OBJCONV.
2009
2010 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2011
2012 * grub-core/gdb/i386/machdep.S: Use xorl %eax, %eax on both Apple
2013 and non-Apple. This instruction is shorter and faster,
2014 so no reason not to use it on both.
2015
2016 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2017
2018 * grub-core/lib/reed_solomon.c: Use section _text, _text rather than
2019 .text when compiling for Apple.
2020
2021 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2022
2023 * grub-core/term/arc/console.c: Add missing cast to silence warning.
2024
2025 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2026
2027 * grub-core/boot/i386/pc/boot.S: Fix floppy probe. Due to missing
2028 %dx restore the probe worked on non-existant drive. Reorganize the
2029 code a little bit to free 2 bytes necessary for push/pop.
2030
2031 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2032
2033 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2034 Add missing cast to silence warning.
2035
2036 2013-11-23 Keshav Padram Amburay <the.ridikulus.rat@gmail.com>
2037
2038 * util/grub-install.c (update_nvram): Support --no-nvram flag
2039 for EFI targets.
2040
2041 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2042
2043 * INSTALL: Add note about sparc64/ia64 with clang (unsupported).
2044
2045 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2046
2047 * util/garbage-gen.c: Add missing include of sys/time.h.
2048
2049 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2050
2051 Don't add -mflush-func if it's not supported by compiler.
2052
2053 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2054
2055 Move common BIOS/coreboot memory map declarations to
2056 include/grub/i386/memory_raw.h and eliminate duplicate declarations.
2057
2058 2013-11-22 Andrey Borzenkov <arvidjaar@gmail.com>
2059
2060 * Makefile.am: Add util/garbage-gen.c to EXTRA_DIST.
2061
2062 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2063
2064 * INSTALL: Document why older clang versions aren't appropriate.
2065
2066 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2067
2068 * INSTALL: Document about clang for mips.
2069
2070 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2071
2072 * grub-core/lib/libgcrypt/mpi/longlong.h: Use C version with mips
2073 clang.
2074
2075 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2076
2077 Add *-xen to the list of grub-install-common platforms.
2078
2079 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2080
2081 * configure.ac: Do not enforce -mcmodel=large. It's not necessarry with
2082 3 last commits.
2083
2084 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2085
2086 * grub-core/kern/xen/init.c: Do not map more pages than we can address.
2087
2088 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2089
2090 * grub-core/kern/efi/mm.c: Limit allocations to 2GiB when not compiling
2091 with -mcmodel=large.
2092
2093 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2094
2095 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Add
2096 range-checking for 32-bit quantities.
2097
2098 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2099
2100 * configure.ac: Compile with -fPIC when compiling with clang on
2101 mips.
2102
2103 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2104
2105 * configure.ac: Add -no-integrated-as on mips(el) to TARGET_CCASFLAGS
2106 when compiling with clang.
2107
2108 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2109
2110 clang emits calls to abort () under some unknown conditions.
2111 Export abort () when compiling with clang.
2112
2113 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2114
2115 * docs/grub-dev.texi: Document stack and heap sizes.
2116
2117 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2118
2119 * include/grub/i386/pc/memory.h: Decrease
2120 GRUB_MEMORY_MACHINE_SCRATCH_SIZE and increase
2121 GRUB_MEMORY_MACHINE_PROT_STACK_SIZE.
2122 The binary doesn't change (checked). It's more to better reflect actual
2123 usage.
2124
2125 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2126
2127 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Ensure
2128 at compile time that enough of scratch size is available.
2129
2130 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2131
2132 * grub-core/kern/x86_64/efi/callwrap.S: Fix stack alignment.
2133 Previously we misaligned stack by 8 in startup.S and compensated
2134 for it in callwrap.S. According to ABI docs (EFI and sysv amd64)
2135 right behaviour is to align stack in startup.S and keep it aligned
2136 in callwrap.S. startup.S part was committed few commits before. This
2137 takes care of callwrap.S.
2138 Reported by: Gary Lin.
2139
2140 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2141
2142 * grub-core/boot/mips/startup_raw.S: Handle the case of gap between
2143 .data and .bss. May happen if compiler and assembly use different
2144 alignment.
2145
2146 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2147
2148 On MIPS handle got16 relocations to local symbols in an ABI-compliant
2149 way.
2150
2151 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2152
2153 Add support for a new magic symbol _gp_disp on mips to handle PIC
2154 binaries.
2155
2156 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2157
2158 Use $t9 for indirect calls from asm to C as PIC ABI requires.
2159
2160 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2161
2162 Remove -march=mips3 from TARGET_CCASFLAGS as it creates linking problem
2163 when rest of GRUB is compiled for hisher stepping. Instead use
2164 .set mips3/.set mips1 around cache and sync opcodes.
2165
2166 2013-11-21 Vladimir Serbinenko <phcoder@gmail.com>
2167
2168 Unify GOT/trampoline handling between PPC, MIPS and IA64 as they
2169 do essentially the same thing, do it in similar way.
2170
2171 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2172
2173 * util/grub-mkrescue.c (main): If a source directory is not
2174 specified, read platform-specific files from subdirectories of
2175 pkglibdir, not pkgdatadir.
2176
2177 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2178
2179 * grub-core/normal/progress.c: Remove unused file.
2180
2181 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2182
2183 * grub-core/lib/crypto.c (grub_crypto_hash): Remove variable length
2184 array.
2185
2186 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2187
2188 * util/grub-mkconfig.in: Say explicit "grub configuration" rather
2189 than grub.cfg.
2190
2191 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2192
2193 * coreboot.cfg: Add missing file.
2194
2195 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2196
2197 * Makefile.am: Allow STRIP to be empty when creating windowszip.
2198
2199 2013-11-19 Axel Kellermann <axel.kellermann@gmx.de>
2200
2201 * util/grub.d/30_os-prober.in: Add GRUB_OS_PROBER_SKIP_LIST to
2202 selectively skipping systems.
2203
2204 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2205
2206 * Makefile.util.def (grub-mkimage): Add
2207 grub-core/osdep/aros/config.c to extra_dist.
2208 * conf/Makefile.extra-dist (EXTRA_DIST): Add docs/autoiso.cfg,
2209 docs/osdetect.cfg, grub-core/gnulib-fix-null-deref.diff,
2210 grub-core/gnulib-fix-width.diff, grub-core/gnulib-no-abort.diff, and
2211 grub-core/gnulib-no-gets.diff.
2212
2213 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2214
2215 Add automated filesystem checking based on scripts I've used now for
2216 quite some time locally. Most of the test require root so they are
2217 skipped when run without necessarry privelegies.
2218
2219 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2220
2221 * util/grub-install.c (main): Adjust info messages to match
2222 installed paths of grub-bios-setup and grub-sparc64-setup.
2223
2224 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2225
2226 * util/grub-install-common.c (copy_locales): Consistently use
2227 grub_util_get_localedir () rather than LOCALEDIR.
2228 (grub_install_copy_files): Likewise.
2229
2230 2013-11-19 Josh Triplett <josh@joshtriplett.org>
2231
2232 * grub-core/kern/x86_64/efi/startup.S (_start): Align the stack to a
2233 16-byte boundary, as required by the x86-64 ABI, before calling
2234 grub_main. In some cases, GCC emits code that assumes this
2235 alignment, which crashes if not aligned. The EFI firmware is also
2236 entitled to assume that stack alignment without checking.
2237
2238 2013-11-18 Josh Triplett <josh@joshtriplett.org>
2239
2240 * grub-core/mmap/efi/mmap.c (grub_mmap_register): Round up/down to
2241 4k page boundaries as expected by firmware rather than 1k
2242 boundaries.
2243 (grub_mmap_malign_and_register): Likewise.
2244
2245 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2246
2247 * tests/grub_func_test.in: Decrease RAM size to 512M. With less
2248 fragmentation 512M is enough.
2249
2250 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2251
2252 * grub-core/kern/mm.c (grub_real_malloc): Decrease cut-off of moving the
2253 pointer to 32K. This is the size of cache element which is the most
2254 common allocation >1K. This way the pointer is always around blocks
2255 of 32K and so we keep performance while decreasing fragmentation.
2256
2257 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2258
2259 * grub-core/kern/mm.c (grub_real_malloc): Don't update the pointer to
2260 current memory when allocating large chunks. This significantly
2261 decreases memory fragmentation.
2262
2263 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2264
2265 * tests/gzcompress_test.in: Skip if gzip is not installed (unlikely,
2266 but for symmetry).
2267 * tests/lzocompress_test.in: Skip if lzop is not installed.
2268 * tests/xzcompress_test.in: Skip if xz is not installed.
2269
2270 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2271
2272 * util/grub-mkrescue.c (main): Fix typo.
2273
2274 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2275
2276 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Update
2277 clock frequency to 200 MHz,
2278
2279 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2280
2281 * tests/util/grub-shell.in: Increase console size to 1024x1024.
2282
2283 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2284
2285 * Makefile.am (default_payload.elf): Add pata to loaded modules.
2286 Load config file from (cbfsdisk)/etc/grub.cfg.
2287
2288 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2289
2290 * util/grub-install-common.c (grub_install_copy_files): Fix module
2291 destination directory.
2292
2293 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2294
2295 * tests/util/grub-shell.in: Don't fail on emu platform if po/*.gmo
2296 files have not been built.
2297
2298 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2299
2300 * grub-core/osdep/unix/hostdisk.c (grub_util_make_temporary_file):
2301 Handle errors from mkstemp.
2302 (grub_util_make_temporary_dir): Handle errors from mkdtemp.
2303
2304 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2305
2306 * tests/util/grub-shell.in: Use -cdrom and don't force cdrom
2307 on primary master on pseries.
2308
2309 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2310
2311 * grub-core/tests/videotest_checksum.c: Don't reload unifont if it's
2312 already loaded. This saves memory needed for tests,
2313
2314 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2315
2316 * util/grub-mkrescue.c (main): Fix a typo to make yeeloong part
2317 work again.
2318
2319 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2320
2321 * grub-core/term/terminfo.c (grub_cmd_terminfo): Fix a typo to make -g
2322 work again.
2323
2324 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2325
2326 * tests/util/grub-shell.in: For powerpc tests put the CD-ROM as primary
2327 master since with some combinations of qemu and firmware only primary
2328 IDE channel is available.
2329
2330 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2331
2332 * grub-core/tests/gfxterm_menu.c: Skip high-resolution tests on
2333 low-memory platforms where we don't have enough memory for them.
2334 * grub-core/tests/videotest_checksum.c: Likewise.
2335
2336 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2337
2338 * grub-core/tests/cmdline_cat_test.c: Don't reload unifont if it's
2339 already loaded. This saves memory needed for tests,
2340
2341 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2342
2343 Fix handling of install lists.
2344
2345 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2346
2347 * grub-core/lib/sparc64/setjmp.S: Force spilling of current window.
2348
2349 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2350
2351 On i386-ieee1275 we run in paged mode. So we need to explicitly map
2352 the devices before accessing them.
2353
2354 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2355
2356 * grub-core/lib/relocator.c (grub_mm_check_real): Accept const char *
2357 as file argument.
2358
2359 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2360
2361 * grub-core/normal/cmdline.c (grub_cmdline_get): Plug memory leak.
2362
2363 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2364
2365 * grub-core/kern/file.c (grub_file_open): Free file->name on failure.
2366 (grub_file_close): Free file->name.
2367
2368 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2369
2370 * grub-core/commands/verify.c (free_pk): Plug memory leak.
2371 (grub_load_public_key): Likewise.
2372 (grub_verify_signature_real): Likewise.
2373 (grub_cmd_verify_signature): Likewise.
2374
2375 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2376
2377 * grub-core/commands/legacycfg.c (grub_legacy_check_md5_password): Plug
2378 memory leak.
2379
2380 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2381
2382 * grub-core/lib/powerpc/setjmp.S (grub_setjmp): Save r31.
2383 (grub_longjmp): Restore r31.
2384 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Reserve space for r31.
2385
2386 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2387
2388 * util/grub-mkrescue.c (make_image_fwdisk_abs): Insert all partmap
2389 modules to be in line with make_image_abs.
2390
2391 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2392
2393 * include/grub/mips/setjmp.h (grub_jmp_buf): Fix buffer size.
2394
2395 setjmp.S uses 12 entries but buffer is declared with only 11 entries.
2396
2397 2013-11-17 Ian Campbell <ijc@hellion.org.uk>
2398
2399 * grub-core/disk/uboot/ubootdisk.c: Include SCSI disks.
2400
2401 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2402
2403 * tests/grub_func_test.in: Increase memory reservation as on EFI we need
2404 to leave some memory to firmware.
2405
2406 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2407
2408 * grub-core/tests/cmdline_cat_test.c (cmdline_cat_test): Ignore errors
2409 of loading gfxterm as gfxterm is embed in kernel on some platforms.
2410 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Likewise.
2411 Load gfxmenu.
2412
2413 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2414
2415 * tests/core_compress_test.in: Use full arguments as grub-mkimage-extra
2416 now needs full arguments.
2417
2418 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2419
2420 * util/grub-mkrescue.c (main): Add trailing \n in
2421 .disk_label.contentDetails to be in line with previous shell script.
2422
2423 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2424
2425 * util/grub-mkrescue.c (main): Use right source file for bootinfo.txt.
2426
2427 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2428
2429 * util/grub-install-common.c (grub_install_parse): Recognize
2430 --compress=none like shell script did.
2431
2432 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2433
2434 * include/grub/misc.h: Replace check for __sparc64__ with one for
2435 __sparc__ as __sparc64__ isn't actually defined.
2436
2437 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2438
2439 * tests/util/grub-shell.in: Use escc-ch-b on powerpc. This is missing
2440 counterpart of fixing the naming of escc ports.
2441
2442 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2443
2444 * util/grub-install-common.c (platforms): Fix the order of entries and
2445 remove useless field val.
2446
2447 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2448
2449 * util/grub-install.c: Add new option --no-bootsector to skip
2450 installing of bootsector. Accept --grub-setup=/bin/true as
2451 backwards-compatible synonym.
2452
2453 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2454
2455 * util/grub-install.c (device_map_check_duplicates): Fix incorrect
2456 order of qsort arguments (number of elements vs. element size).
2457
2458 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2459
2460 Rewrite grub-install, grub-mkrescue, grub-mkstandalone and grub-mknetdir
2461 the function of these files exceeds what can be sanely handled in shell
2462 in posix-comaptible way. Also writing it in C extends the functionality
2463 to non-UNIX-like OS and minimal environments.
2464
2465 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2466
2467 * grub-core/kern/arm/cache.S: Don't switch back to ARM mode when
2468 compiling to thumb2.
2469 * grub-core/kern/arm/cache_armv7.S: Likewise.
2470 * grub-core/lib/arm/setjmp.S: Likewise.
2471
2472 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2473
2474 * grub-core/kern/arm/uboot/startup.S: delete superflouous save of r8
2475 in grub_uboot_syscall
2476
2477 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2478
2479 Decrease stack usage in lexer.
2480
2481 We have only 92K of stack and using over 4K per frame is wasteful
2482
2483 * grub-core/script/yylex.l (yyalloc), (yyfree), (yyrealloc): Declare
2484 as macros so that compiler would remove useless structure on stack.
2485 Better solution would be to fix flex not to put this structure on
2486 the stack but flex is external program.
2487
2488 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2489
2490 Decrease stack usage in signature verification.
2491
2492 We have only 92K of stack and using over 4K per frame is wasteful
2493
2494 * grub-core/commands/verify.c (grub_load_public_key): Allocate on heap
2495 rather than stack.
2496 (grub_verify_signature_real): Likewise.
2497
2498 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2499
2500 Decrease stack usage in mdraid 0.9x.
2501
2502 We have only 92K of stack and using over 4K per frame is wasteful
2503
2504 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Allocate on heap
2505 rather than stack.
2506
2507 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2508
2509 Decrease stack usage in BtrFS.
2510
2511 We have only 92K of stack and using over 4K per frame is wasteful
2512
2513 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Allocate on heap
2514 rather than stack.
2515
2516 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2517
2518 Decrease stack usage in JFS.
2519
2520 We have only 92K of stack and using over 4K per frame is wasteful
2521
2522 * grub-core/fs/jfs.c (getblk): Allocate on heap rather than on
2523 stack. Note: this function is recursive.
2524 (grub_jfs_read_inode): Read only part we care about.
2525
2526 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2527
2528 * grub-core/kern/arm/uboot/startup.S: fix grub_uboot_syscall va_arg
2529 handling
2530
2531 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2532
2533 * configure.ac: Restore -nostdlib for libgcc symbols tests.
2534
2535 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2536
2537 * docs/grub.texi (Environment): Document cmdpath.
2538
2539 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2540
2541 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2542 Remove "unused" attribute from arguments, they are used.
2543
2544 2013-11-15 Colin Watson <cjwatson@debian.org>
2545
2546 * .gitignore: Only ignore grub-mk* at the top level.
2547
2548 2013-11-15 Colin Watson <cjwatson@ubuntu.com>
2549
2550 * util/grub-reboot.in (usage): Fix a typo.
2551
2552 2013-11-15 Vladimir Serbinenko <phcoder@gmail.com>
2553
2554 Replace libgcc version of ctz with our own.
2555
2556 On upcoming arm64 port libgcc ctz* are not usable in standalone
2557 environment. Since we need ctz* for this case and implementation is
2558 in C we may as well use it on all concerned platforms.
2559
2560 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2561
2562 * configure.ac: Probe for linking format rather than guessing it based
2563 on target_os.
2564
2565 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2566
2567 * grub-core/disk/xen/xendisk.c (grub_xendisk_fini): Set state to
2568 "1" prior to handoff.
2569
2570 Reported by: M A Young.
2571
2572 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2573
2574 * grub-core/kern/xen/init.c (grub_xenstore_write_file): Don't add
2575 \0 to all files.
2576
2577 Reported by: M A Young.
2578
2579 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2580
2581 * grub-core/osdep/bsd/hostdisk.c (grub_util_get_fd_size_os): Fix
2582 compilation on NetBSD.
2583
2584 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2585
2586 * acinclude.m4: Don't add -P on initial nm test.
2587
2588 Note: even though this patch postdates Andrey's it bears 14 Nov as
2589 date due to timezone difference.
2590
2591 2013-11-15 Andrey Borzenkov <arvidjaar@gmail.com>
2592
2593 * grub-core/Makefile.core.def (signature_test): Add missing
2594 tests/signatures.h.
2595
2596 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2597
2598 * util/grub-install_header: Set localedir here, since this file is
2599 where it's used.
2600 * util/grub-install.in: Remove setting of localedir.
2601 * util/grub-mkrescue.in: Likewise.
2602
2603 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2604
2605 * Makefile.am (default_payload.elf): Add uhci, ohci and usb_keyboard.
2606
2607 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2608
2609 * configure.ac: Move nm checks to the end.
2610 Call grub_PROG_NM_WORKS.
2611 * acinclude.m4: New check grub_PROG_NM_WORKS.
2612 Use $TARGET_CFLAGS -c when compiling test binary.
2613
2614 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2615
2616 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Remove
2617 unused variables.
2618
2619 2013-11-14 Matthew Garrett <mjg@redhat.com>
2620
2621 * grub-core/kern/main.c (grub_set_prefix_and_root): Set variable
2622 cmdpath to firmware directory.
2623
2624 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2625
2626 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Reset the pointer
2627 at the start of second iteration.
2628
2629 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2630
2631 * grub-core/Makefile.am (efiemu64.o): Explicitly set link format.
2632
2633 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2634
2635 * Makefile.am (default_payload.elf): New target for easier coreboot
2636 build.
2637
2638 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2639
2640 * grub-core/kern/arm/cache_armv6.S: Remove special handling for
2641 clang (not necessarry with -no-integrated-as).
2642 * include/grub/symbol.h [__arm__]: Likewise.
2643
2644 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2645
2646 * configure.ac: Use -no-integrated-as on arm with clang.
2647 * INSTALL: Mention ARM compilation with clang.
2648
2649 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2650
2651 * conf/Makefile.common (CCASFLAGS_PLATFORM) [COND_arm]: Add
2652 -mthumb-interwork.
2653
2654 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2655
2656 * grub-core/fs/ext2.c (grub_ext2_read_block): Factor out common
2657 code for indirect block handling.
2658
2659 Saves 185 bytes on compressed image.
2660
2661 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2662
2663 Fix make clean.
2664
2665 * Makefile.am: Remove build-grub-* in make clean.
2666
2667 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2668
2669 New files to gitignore.
2670
2671 * .gitignore: Add build-grub-gen-asciih, build-grub-gen-widthspec,
2672 build-grub-mkfont, and grub-emu-lite. Remove .bzrignore.
2673
2674 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2675
2676 * grub-core/kern/arm/misc.S: Make thumb2-compatible.
2677
2678 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2679
2680 * .gitignore: fix rules for .dep* and add *.a post git migration
2681
2682 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2683
2684 * configure.ac (AM_INIT_AUTOMAKE): Require at least version 1.10.1,
2685 to match INSTALL.
2686
2687 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2688
2689 * grub-core/kern/misc.c: Don't redirect divisions in the
2690 GRUB_UTIL case.
2691 * include/grub/misc.h: Likewise.
2692
2693 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2694
2695 * grub-core/osdep/unix/emuconsole.c (put): Pacify the compiler on
2696 systems that require checking the return value of write.
2697
2698 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2699
2700 * util/grub-install.in (efi_quiet): Fix inverted logic: make
2701 efibootmgr quiet when --debug is not used, rather than when it is.
2702
2703 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2704
2705 * gentpl.py (define_macro_for_platform_dependencies): Remove
2706 first (and thus unused) of two definitions for this function.
2707 (platform_dependencies): Likewise.
2708
2709 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2710
2711 * acinclude.m4 (grub_apple_cc): Remove; since the removal of nested
2712 functions, we only need to check this for the target, not the host.
2713 * configure.ac (grub_apple_cc): Likewise.
2714
2715 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2716
2717 * grub-core/kern/arm/cache.c (probe_caches): Move asm part to ...
2718 * grub-core/kern/arm/cache_armv6.S: ... here. This allows this
2719 asm to stay in arm even if surrounding is thumb.
2720
2721 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2722
2723 * grub-core/kern/arm/misc.S: Add __muldi3 and __aeabi_lmul. Those
2724 helper functions are needed for thumb.
2725
2726 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2727
2728 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Make
2729 level / 3 division explicitly unsigned. Saves few bytes.
2730
2731 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2732
2733 * grub-core/fs/zfs/zfs.c (ZAP_LEAF_NUMCHUNKS): Use unsigned arithmetics.
2734
2735 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2736
2737 * grub-core/normal/datetime.c (grub_get_weekday): Use if rather than
2738 division.
2739
2740 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2741
2742 * grub-core/kern/uboot/init.c: Move grub_uboot_machine_type and
2743 grub_uboot_boot_data to asm part.
2744
2745 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2746
2747 * grub-core/kern/arm/uboot/startup.S: Remove = by replacing with
2748 literal load.
2749 (grub_uboot_syscall): Save/restore r9 and align stack.
2750
2751 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2752
2753 * grub-core/kern/arm/cache.S: Replace = with explicit litteral load.
2754
2755 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2756
2757 * include/grub/symbol.h (END) [__arm__]: New macros. Replace all .end
2758 occurencies with END.
2759
2760 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2761
2762 * util/grub-editenv.c (help_filter, argp): Document how to delete
2763 the whole environment block.
2764 Reported by Dan Jacobson. Fixes Debian bug #726265.
2765
2766 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2767
2768 * docs/grub.texi (Internationalisation, Supported kernels): Fix
2769 sectioning.
2770
2771 2013-11-13 Josh Triplett <josh@joshtriplett.org>
2772
2773 * grub-core/normal/term.c (grub_set_more): Use bool logic rather than
2774 increment/decrement.
2775
2776 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2777
2778 * grub-core/kern/arm/cache_armv6.S [__clang__]: Don't add .armv6 when
2779 compiling with clang.
2780
2781 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2782
2783 * grub-core/kern/arm/uboot/startup.S: Use .org rather than assigning
2784 ".".
2785
2786 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2787
2788 Redirect all divisions to grub_divmod64.
2789
2790 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2791
2792 * grub-core/term/tparm.c (tparam_internal): Use unsigned divisions.
2793
2794 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2795
2796 Add missing includes of loader.h.
2797
2798 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2799
2800 * configure.ac: Allow disabling themes.
2801
2802 2013-11-12 Lukas Schwaighofer <lukas@schwaighofer.name>
2803
2804 * util/grub.d/20_linux_xen.in: Don't decompress initrd.
2805
2806 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2807
2808 * grub-core/term/at_keyboard.c: Don't poll non-functional AT controller
2809 until it becomes operational.
2810
2811 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2812
2813 * grub-core/Makefile.core.def (legacy_password_test): Disable
2814 on platforms where no legacycfg is compiled.
2815 * grub-core/tests/lib/functional_test.c: Tolerate failure to
2816 load legacy_password_test.
2817
2818 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2819
2820 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
2821
2822 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2823
2824 * grub-core/efiemu/prepare.c: Remove variable length arrays.
2825
2826 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2827
2828 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror): Silence
2829 strict-aliasing warning.
2830 (fsync): Silence cast warning.
2831
2832 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2833
2834 * grub-core/commands/verify.c: Remove variable length arrays.
2835 Load gcry_dsa/gcry_rsa automatically.
2836
2837 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2838
2839 * grub-core/tests/signature_test.c: New test.
2840
2841 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2842
2843 * grub-core/disk/cryptodisk.c (luks_script_get): Adapt to new procfs
2844 API.
2845
2846 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2847
2848 * grub-core/tests/legacy_password_test.c (vectors): Make static.
2849 * grub-core/tests/pbkdf2_test.c (vectors): Likewise.
2850
2851 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2852
2853 * grub-core/tests/setjmp_test.c: Reset counter to 0 before starting.
2854
2855 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2856
2857 * grub-core/fs/proc.c: Allow \0 in proc files.
2858
2859 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2860
2861 * grub-core/tests/xnu_uuid_test.c: Fix assert message.
2862
2863 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2864
2865 * grub-core/tests/xnu_uuid_test.c: Fix copyright year.
2866
2867 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2868
2869 * grub-core/fs/ext2.c: Remove variable length arrays.
2870
2871 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2872
2873 * grub-core/lib/crypto.c (grub_crypto_cbc_decrypt): Remove variable
2874 length arrays.
2875
2876 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2877
2878 * grub-core/disk/AFSplitter.c: Remove variable length arrays.
2879 * grub-core/disk/cryptodisk.c: Likewise.
2880 * grub-core/disk/geli.c: Likewise.
2881 * grub-core/disk/luks.c: Likewise.
2882
2883 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2884
2885 * grub-core/tests/legacy_password_test.c: New test.
2886 * grub-core/commands/legacycfg.c: Remove variable length arrays.
2887
2888 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2889
2890 * grub-core/lib/pbkdf2.c: Remove variable length arrays.
2891
2892 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2893
2894 * grub-core/tests/pbkdf2_test.c: New test.
2895
2896 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2897
2898 * grub-core/lib/xzembed/xz_dec_stream.c: Remove variable length arrays.
2899
2900 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2901
2902 * grub-core/io/lzopio.c: Remove variable length arrays.
2903
2904 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2905
2906 * include/grub/crypto.h: Add maximums on hash size and cipher block
2907 size.
2908
2909 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2910
2911 * grub-core/commands/xnu_uuid.c: Remove variable length arrays.
2912
2913 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2914
2915 * grub-core/tests/xnu_uuid_test.c: New test.
2916
2917 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2918
2919 * grub-core/commands/hashsum.c: Remove unneeded memset (zalloc already
2920 covers it).
2921
2922 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2923
2924 * grub-core/commands/hashsum.c: Remove variable length arrays.
2925
2926 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2927
2928 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Handle out-of-memory
2929 condition.
2930 * tests/grub_func_test.in: Increase memory allocation.
2931
2932 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2933
2934 * grub-core/osdep/unix/getroot.c [HAVE_STRUCT_STATFS_F_FSTYPENAME
2935 && HAVE_STRUCT_STATFS_F_MNTFROMNAME]: Include sys/param.h and
2936 sys/mount.h.
2937
2938 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2939
2940 * grub-core/osdep/apple/hostdisk.c (grub_util_get_fd_size): Rename to ..
2941 (grub_util_get_fd_size_os): ...this.
2942 (grub_hostdisk_flush_initial_buffer): New empty function.
2943
2944 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2945
2946 * grub-core/gensyminfo.sh.in: Handle the case of portable output
2947 without --defined-only.
2948
2949 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2950
2951 * grub-core/lib/i386/relocator_common.S [__APPLE__ && __x86_64__]: Use
2952 rip-relative addressing in prologue.
2953
2954 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2955
2956 * include/grub/misc.h [__APPLE__]: Do not add regparm(0) on x86_64.
2957 * grub-core/kern/misc.c (__bzero) [__APPLE__]: New function.
2958
2959 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2960
2961 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
2962 Add missing semicolon.
2963
2964 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2965
2966 * util/grub-macho2img.c: Use plain fopen rather than grub_util_fopen.
2967
2968 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2969
2970 * configure.ac: Check for lzma.h for enabling liblzma and allow
2971 manual disabling.
2972
2973 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2974
2975 Add missing includes of loader.h.
2976
2977 2013-11-11 Fam Zheng <famcool@gmail.com>
2978
2979 * util/grub.d/30_os-prober.in: Add minix entry.
2980
2981 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2982
2983 * grub-core/loader/i386/coreboot/chainloader.c (load_segment): Use
2984 right buffer for temporary load.
2985
2986 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2987
2988 * grub-core/loader/i386/coreboot/chainloader.c: Support tianocore.
2989
2990 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2991
2992 * grub-core/loader/i386/coreboot/chainloader.c: Support lzma-compressed
2993 payload.
2994
2995 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2996
2997 * include/grub/lib/LzmaDec.h: Fix to include LzmaTypes.h and
2998 not Types.h.
2999 * grub-core/lib/LzmaDec.c: Fix prologue to make it compileable in GRUB
3000 environment.
3001 (LzmaDec_InitDicAndState): Make static.
3002
3003 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3004
3005 * util/grub-mkimagexx.c (generate_elf): Fix module address on coreboot.
3006
3007 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3008
3009 * grub-core/term/ieee1275/escc.c (GRUB_MOD_INIT): Fix order of channels.
3010
3011 Reported by: Aaro Koskinen <aaro.koskinen@iki.fi>
3012
3013 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3014
3015 * docs/grub-dev.texi: Replace bzr references with git ones.
3016
3017 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3018
3019 * docs/grub.texi (Simple configuration): Remove reference to
3020 grub-reboot from saved default entry description - grub-default
3021 does not use it anymore.
3022
3023 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3024
3025 * configure.ac: Make efiemu test cflags match the cflags efiemu is
3026 compiled with.
3027
3028 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3029
3030 * docs/grub.texi (Simple configuration): Document GRUB_DISABLE_SUBMENU.
3031
3032 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3033
3034 Fix grub_machine_fini bitrot.
3035
3036 Reported by: Glenn Washburn.
3037
3038 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3039
3040 * configure.ac: Remove leftover -fnested-funcions -Wl,-allow_execute.
3041
3042 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3043
3044 * grub-core/Makefile.am (efiemu): Remove leftover -DAPPLE_CC and
3045 -DELF.
3046 * grub-core/efiemu/runtime/config.h: Use __i386__ and __x86_64__
3047 instead of ELF*.
3048
3049 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3050
3051 * configure.ac: Restore CFLAGS to TARGET_CFLAGS before external tests.
3052 Add -march=core2 when testing compile of efiemu64.
3053
3054 Thanks Andrey Borzenkov for spotting this.
3055
3056 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3057
3058 Add new ports: i386-xen and x86_64-xen. This allows running GRUB in
3059 XEN PV environment and load kernels.
3060
3061 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3062
3063 * grub-core/loader/i386/multiboot_mbi.c: Handle space in command line.
3064 * grub-core/loader/multiboot_mbi2.c: Likewise.
3065
3066 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3067
3068 * grub-core/lib/cmdline.c (grub_loader_cmdline_size): Fix empty cmdline
3069 handling.
3070
3071 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3072
3073 * grub-core/commands/i386/cmostest.c: Add new command "cmosset".
3074
3075 Tested by: Denis 'GNUtoo' Carikli.
3076
3077 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3078
3079 * grub-core/normal/datetime.c (grub_get_weekday): Use unsigned types.
3080
3081 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3082
3083 * grub-core/gfxmenu/gui_circular_progress.c (parse_angle):
3084 Use to get rounded angle rather than truncated.
3085
3086 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3087
3088 * grub-core/term/serial.c: Add option for enabling/disabling
3089 RTS/CTS flow control.
3090
3091 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3092
3093 * grub-core/lib/libgcrypt/cipher/idea.c (mul_inv): Remove signed
3094 divisions.
3095
3096 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3097
3098 * grub-core/lib/libgcrypt/mpi/mpih-div.c (_gcry_mpih_divrem):
3099 Use grub_fatal rather than divide by zero.
3100 * grub-core/lib/libgcrypt/mpi/mpi-pow.c (gcry_mpi_powm): Likewise.
3101
3102 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3103
3104 * include/grub/gui.h (grub_fixed_sfs_divide): Round rather than
3105 truncate.
3106 (grub_fixed_fsf_divide): Likewise.
3107
3108 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3109
3110 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Avoid
3111 division by-zero and senseless negative divisions.
3112
3113 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3114
3115 * grub-core/gfxmenu/gui_circular_progress.c (circprog_paint): Avoid
3116 division by-zero and senseless negative divisions.
3117 (circprog_set_property): Don't accept negative num_ticks.
3118
3119 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3120
3121 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Avoid
3122 division by-zero and senseless negative divisions.
3123
3124 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3125
3126 * configure.ac: Use elf_*_fbsd on kfreebsd.
3127
3128 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3129
3130 * grub-core/tests/div_test.c: New test.
3131
3132 2013-11-08 Vladimir Testov <vladimir.testov@rosalab.ru>
3133
3134 * grub-core/gfxmenu/gui_box.c: Updated to work with area status.
3135 * grub-core/gfxmenu/gui_canvas.c: Likewise.
3136 * grub-core/gfxmenu/view.c: Likewise.
3137 * grub-core/video/fb/video_fb.c: Introduce new functions:
3138 grub_video_set_area_status, grub_video_get_area_status,
3139 grub_video_set_region, grub_video_get_region.
3140 * grub-core/video/bochs.c: Likewise.
3141 * grub-core/video/capture.c: Likewise.
3142 * grub-core/video/video.c: Likewise.
3143 * grub-core/video/cirrus.c: Likewise.
3144 * grub-core/video/efi_gop.c: Likewise.
3145 * grub-core/video/efi_uga.c: Likewise.
3146 * grub-core/video/emu/sdl.c: Likewise.
3147 * grub-core/video/radeon_fuloong2e.c: Likewise.
3148 * grub-core/video/sis315pro.c: Likewise.
3149 * grub-core/video/sm712.c: Likewise.
3150 * grub-core/video/i386/pc/vbe.c: Likewise.
3151 * grub-core/video/i386/pc/vga.c: Likewise.
3152 * grub-core/video/ieee1275.c: Likewise.
3153 * grub-core/video/i386/coreboot/cbfb.c: Likewise.
3154 * include/grub/video.h: Likewise.
3155 * include/grub/video_fb.h: Likewise.
3156 * include/grub/fbfill.h: Updated render_target structure.
3157 grub_video_rect_t viewport, region, area
3158 int area_offset_x, area_offset_y, area_enabled
3159 * include/grub/gui.h: New helper function
3160 grub_video_bounds_inside_region.
3161 * docs/grub-dev.texi: Added information about new functions.
3162
3163 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3164
3165 * grub-core/kern/mm.c (grub_real_malloc): Use AND rather than MOD
3166 for alignment.
3167
3168 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3169
3170 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Add
3171 missing attribute.
3172 * grub-core/gdb/cstub.c (grub_gdb_trap): Likewise.
3173
3174 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3175
3176 * grub-core/kern/misc.c (grub_divmod64): Don't fallback to
3177 simple division on arm and ia64.
3178
3179 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3180
3181 * grub-core/kern/arm/misc.S (__aeabi_unwind_cpp_pr0): Add dummy to
3182 link with libgcc.
3183
3184 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3185
3186 * include/grub/symbol.h (FUNCTION), (VARIABLE): Fix precedence logic.
3187
3188 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3189
3190 * include/grub/symbol.h (FUNCTION), (VARIABLE) [__arm__]: Use % as
3191 prefix symbol, not @.
3192
3193 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3194
3195 * INSTALL: Add note about older gcc and clang.
3196
3197 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3198
3199 * tests/util/grub-shell.in: Boot as hdd on ppc by default.
3200
3201 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3202
3203 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_module): Fix
3204 NULL pointer dereference.
3205
3206 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3207
3208 * grub-core/Makefile.am: Do not include libgcc.h when compiling with
3209 clang.
3210
3211 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3212
3213 * grub-core/kern/powerpc/dl.c: Add missing pragma to silence cast-align
3214 warnings.
3215
3216 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3217
3218 * grub-core/net/net.c (grub_net_route_unregister): Remove unused
3219 function.
3220 * grub-core/loader/i386/xnu.c (hextoval): Likewise.
3221 * grub-core/disk/geli.c (ascii2hex): Likewise.
3222
3223 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3224
3225 * configure.ac: Run linker tests without -Werror.
3226 Define TARGET_LDFLAGS_STATIC_LIBGCC and TARGET_LIBGCC.
3227 Change all occurences of -static-libgcc resp -lgcc to
3228 TARGET_LDFLAGS_STATIC_LIBGCC resp TARGET_LIBGCC.
3229
3230 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3231
3232 * configure.ac: Don't add -no-itegrated-as on clang on non-x86.
3233
3234 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3235
3236 Allow compiling with clang (not really supported though).
3237
3238 * conf/Makefile.common (CFLAGS_PLATFORM): Don't add -mrtd -mregparm=3
3239 unconditionally.
3240 * configure.ac: Add -no-integrated-as when using clangfor asm files.
3241 Add -mrtd -mregparm=3 on i386 when not using clang.
3242 * grub-core/kern/misc.c (grub_memset): Add volatile when on clang.
3243
3244 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3245
3246 * grub-core/kern/ieee1275/cmain.c: Add explicit attribute on asm
3247 bindings.
3248 * grub-core/lib/reed_solomon.c: Likewise.
3249 * include/grub/i386/gdb.h: Likewise.
3250 * include/grub/i386/pc/int.h: Likewise.
3251 * include/grub/i386/pc/pxe.h: Likewise.
3252 * include/grub/ieee1275/ieee1275.h: Likewise.
3253
3254 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3255
3256 Import libgcrypt 1.5.3.
3257
3258 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3259
3260 * configure.ac: Don't add -Wcast-align on x86.
3261
3262 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3263
3264 * configure.ac: Add -freg-struct-return on all platforms that
3265 support it.
3266
3267 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3268
3269 * acinclude.m4: Use -Werror on parameter tests.
3270 * configure.ac: Likewise.
3271
3272 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3273
3274 * acinclude.m4: Add missing TARGET_CCASFLAGS on asm tests.
3275
3276 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3277
3278 * configure.ac: Check that -malign-loops works rather than assuming that
3279 either -falign-loops or -malign-loops work.
3280
3281 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3282
3283 * configure.ac: Remove -fnested-functions. We don't need it anymore.
3284
3285 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3286
3287 * configure.ac: Prevent cflags leaking to subsequent tests by always
3288 resetting cflags to target_cflags in target tests.
3289
3290 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3291
3292 * grub-core/kern/parser.c (grub_parser_split_cmdline): Remove nested
3293 function.
3294
3295 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3296
3297 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove nested functions.
3298
3299 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3300
3301 * grub-core/lib/arg.c (grub_arg_parse): Remove nested function.
3302
3303 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3304
3305 * grub-core/normal/cmdline.c (grub_cmdline_get):
3306 Remove nested functions.
3307
3308 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3309
3310 * tests/test_sha512sum.in: Make it work on emu.
3311
3312 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3313
3314 * grub-core/normal/charset.c (bidi_line_wrap): Eliminate nested
3315 functions.
3316 (grub_bidi_line_logical_to_visual): Likewise.
3317
3318 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3319
3320 Remove vestiges of -Wunsafe-loop-optimisations.
3321
3322 * conf/Makefile.common (CFLAGS_GNULIB): Remove
3323 -Wno-unsafe-loop-optimisations.
3324 * grub-core/commands/legacycfg.c: Remove -Wunsafe-loop-optimisations
3325 pragma.
3326 * grub-core/io/gzio.c: Likewise.
3327 * grub-core/script/parser.y: Likewise.
3328 * grub-core/script/yylex.l: Likewise.
3329 * util/grub-mkfont.c: Likewise.
3330
3331 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3332
3333 * util/grub-mkfont.c (process_cursive): Remove nested function.
3334
3335 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3336
3337 * include/grub/misc.h (grub_dprintf): Use unnamed vararg.
3338 (grub_boot_time): Likewise.
3339
3340 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3341
3342 * include/grub/symbol.h (FUNCTION): Use @function rather than
3343 "function".
3344 (VARIABLE): Likewise.
3345
3346 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3347
3348 * grub-core/net/bootp.c (OFFSET_OF): Explicitly cast to grub_size_t.
3349
3350 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3351
3352 * grub-core/net/bootp.c (set_env_limn_ro): Make pointer const.
3353 (parse_dhcp_vendor): Likewise.
3354
3355 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3356
3357 * util/grub-mkimagexx.c (relocate_symbols): Remove unneeded brackets.
3358
3359 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3360
3361 * grub-core/gettext/gettext.c (main_context), (secondary_context):
3362 Define after defining type and not before.
3363
3364 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3365
3366 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Return right error
3367 type.
3368 (grub_gcm_decrypt): Likewise.
3369 (algo_decrypt): Likewise.
3370 (grub_zfs_decrypt_real): Transform error type.
3371
3372 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3373
3374 * grub-core/disk/geli.c (geli_rekey): Fix error return type.
3375
3376 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3377
3378 * grub-core/disk/usbms.c (grub_usbms_cbi_cmd): Fix error type.
3379 (grub_usbms_cbi_reset): Likewise.
3380 (grub_usbms_bo_reset): Likewise.
3381 (grub_usbms_reset): Likewise.
3382 (grub_usbms_attach): Likewise.
3383 (grub_usbms_transfer_cbi): Likewise.
3384
3385 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3386
3387 * grub-core/io/lzopio.c (test_header): Simplify code and remove useless
3388 "checksum = checksum;".
3389
3390 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3391
3392 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix type of
3393 entry_type.
3394
3395 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3396
3397 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): Fix
3398 BIOS disk check.
3399
3400 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3401
3402 * grub-core/bus/usb/ehci.c (grub_ehci_restore_hw): Return right enum
3403 type.
3404 (grub_ehci_fini_hw): Likewise.
3405 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
3406
3407 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3408
3409 * include/grub/usb.h (grub_usb_controller_dev): Make portstatus
3410 return grub_usb_err_t for cosistency. All users updated.
3411
3412 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3413
3414 * util/mkimage.c (SzAlloc): Use attribute unused rather than dubious
3415 assigning to itself.
3416
3417 2013-11-05 Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
3418 2013-11-05 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3419
3420 Issue separate DNS queries for ipv4 and ipv6
3421
3422 Adding multiple questions on a single DNS query is not supportted by
3423 most DNS servers. This patch issues two separate DNS queries
3424 sequentially for ipv4 and then for ipv6.
3425
3426 Fixes: https://savannah.gnu.org/bugs/?39710
3427
3428 * grub-core/net/bootp.c (parse_dhcp_vendor): Add DNS option.
3429 * grub-core/net/dns.c (grub_dns_qtype_id): New enum.
3430 * (grub_net_dns_lookup): Now using separated dns packages.
3431 * (grub_cmd_nslookup): Add error condition.
3432 * (grub_cmd_list_dns): Print DNS option.
3433 * (grub_cmd_add_dns): Add four parameters: --only-ipv4, --only-ipv6,
3434 --prefer-ipv4, and --prefer-ipv6.
3435 * include/grub/net.h (grub_dns_option_t): New enum.
3436 * (grub_net_network_level_address): option added.
3437
3438 2013-11-05 Vladimir Testov <vladimir.testov@rosalab.ru>
3439
3440 * grub-core/video/fb/video_fb.c: Merge two blit functions
3441 into one.
3442
3443 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3444
3445 * grub-core/term/terminfo.c: Add sequences for home and end.
3446
3447 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3448
3449 * grub-core/lib/legacy_parse.c: Fix handling of hercules and add
3450 graphics console.
3451
3452 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3453
3454 * grub-core/video/i386/pc/vga.c: Fix double bufferring and
3455 add mode 0x12.
3456
3457 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3458
3459 * docs/grub.texi (Vendor power-on keys): Add XPS M1330M based on old
3460 e-mail by Per Öberg.
3461
3462 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3463
3464 * grub-core/commands/i386/nthibr.c (GRUB_MOD_INIT): Fix typo in command
3465 name.
3466
3467 2013-11-04 Andrey Borzenkov <arvidjaar@gmail.com>
3468
3469 * configure.ac: Explicitly disable emusdl, emuusb and emupci on non-
3470 emu platforms.
3471 * grub-core/Makefile.core.def: Enable emupci and emuucb only for emu.
3472
3473 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3474
3475 * docs/grub.texi: Document usage of menuentry id.
3476
3477 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3478
3479 * docs/grub.texi: Add few mentions about EFI, debug and videoinfo.
3480
3481 2013-11-04 Peter Lustig <peter.lustig.7db@gmail.com>
3482
3483 * grub-core/commands/i386/nthibr.c: New command.
3484
3485 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3486
3487 * grub-core/tests/video_checksum.c: Add 2560x1440 mode to testing.
3488
3489 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3490
3491 * include/grub/term.h (grub_term_coordinate): Extend to 16-bit per
3492 coordinate.
3493
3494 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3495
3496 Support GRUB_DISABLE_SUBMENU config.
3497
3498 Inspired by patch from Prarit Bhargava.
3499
3500 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3501
3502 * docs/grub.texi: Mention RSA support.
3503
3504 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3505
3506 * grub-core/commands/verify.c: Add RSA support.
3507
3508 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3509
3510 * grub-core/disk/ahci.c (grub_ahci_pciinit): Detect ATAPI devices.
3511 * grub-core/disk/ata.c (grub_ata_identify): Use atapi_identify if
3512 device is known to be ATAPI.
3513
3514 2013-11-03 Mike Frysinger <vapier>
3515
3516 * configure.ac: Don't add target-prefix.
3517
3518 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3519
3520 * grub-core/commands/loadenv.c (grub_cmd_save_env): Remove unset
3521 variables.
3522
3523 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3524
3525 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Ignore errors
3526 if language is English.
3527
3528 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3529
3530 * grub-core/osdep/linux/getroot.c: Fix cast-align problems.
3531
3532 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3533
3534 * configure.ac: Don't add -m32/-m64 on emu.
3535
3536 2013-11-02 neil
3537
3538 * grub-core/osdep/linux/blocklist.c: Include linux/types.h for some
3539 broken linux headers.
3540
3541 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3542
3543 * util/grub.d/30_os-prober.in: Add unhiding of partition if on msdos.
3544
3545 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3546
3547 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Don't do
3548 Reed-Solomon recovery if more than half of redundancy info is 0.
3549
3550 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3551
3552 * util/grub-mount.c: Handle symlinks to directories.
3553
3554 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3555
3556 * grub-core/fs/fshelp.c (find_file): Save ctx->next when calling
3557 find_file recursively for symlink.
3558
3559 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3560
3561 * tests/util/grub-shell.in: Copy themes.
3562
3563 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3564
3565 * util/grub-mkimagexx.c (locate_sections): Reject mislinked images.
3566
3567 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3568
3569 * configure.ac: Use 0x8000 for address instead of 8000.
3570
3571 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3572
3573 * grub-core/loader/sparc64/ieee1275/linux.c (get_physbase): Fix
3574 signature.
3575
3576 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3577
3578 * grub-core/disk/efi/efidisk.c (grub_efidisk_readwrite): Remove unused
3579 variable.
3580
3581 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3582
3583 * configure.ac (TARGET_CFLAGS): Add -march=i386 on i386.
3584
3585 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3586
3587 * grub-core/fs/hfspluscomp.c (hfsplus_read_compressed_real): Call
3588 file_progress_read_hook.
3589 * grub-core/fs/ntfscomp.c (hfsplus_read_compressed_real): Likewise.
3590
3591 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3592
3593 * conf/Makefile.common (CFLAGS_PLATFORM): Remove poisoning of float
3594 and double.
3595
3596 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3597
3598 * grub-core/fs/tar.c (grub_cpio_read): Add read_hook.
3599
3600 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3601
3602 Rewrite blocklist functions in order to get progress when
3603 reading large extents and decrease amount of blocklist hook calls.
3604
3605 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3606
3607 * grub-core/term/serial.c (options), (grub_cmd_serial): Fix handling
3608 of SI suffixes.
3609
3610 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3611
3612 Support --base-clock for serial command to handle weird cards with
3613 non-standard base clock.
3614
3615 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3616
3617 * grub-core/fs/ext2.c (grub_ext2_read_symlink): Use memcpy rather
3618 strncpy.
3619 * grub-core/fs/jfs.c (grub_jfs_lookup_symlink): Likewise.
3620 * grub-core/kern/misc.c (grub_strncpy): Move from here ...
3621 * include/grub/misc.h (grub_strncpy): ... to here. Make inline.
3622 * grub-core/net/net.c (grub_net_addr_to_str): Use COMPILE_TIME_ASSERT
3623 + strcpy rather than strncpy.
3624
3625 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3626
3627 * grub-core/fs/zfs/zfs.c (nvpair_name): Use correct type for size.
3628 (check_pool_label): Likewise. Fixes overflow.
3629 (nvlist_find_value): Fix comparison.
3630
3631 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3632
3633 * include/grub/misc.h (grub_strcat): Removed. All users changed to
3634 more appropriate functions.
3635
3636 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3637
3638 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Avoid inefficient
3639 realloc.
3640
3641 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3642
3643 * util/grub-mkrescue.in: Do not use UUID search on EFI.
3644
3645 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3646
3647 * grub-core/kern/dl.c: Unify section-finding algorithm. Saves 30 bytes
3648 on core size.
3649
3650 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3651
3652 * grub-core/kern/mm.c (grub_realloc): Don't copy more data than we have.
3653
3654 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3655
3656 * grub-core/io/gzio.c (huft_build): Use zalloc for safety.
3657 (initialize_tables): reset tl and td to NULL after freeing.
3658
3659 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3660
3661 * grub-core/loader/multiboot_mbi2.c: Implement network tag.
3662
3663 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3664
3665 * grub-core/loader/multiboot_mbi2.c: Add EFI memory map to the list
3666 of supported tags.
3667
3668 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3669
3670 * grub-core/loader/multiboot_mbi2.c: Implement EFI memory map.
3671
3672 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3673
3674 * grub-core/loader/multiboot.c: Add support for multiboot kernels
3675 quirks.
3676
3677 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3678
3679 * grub-core/loader/i386/linux.c (allocate_pages): Allocate at least
3680 a page in protected space.
3681
3682 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3683
3684 * grub-core/loader/multiboot.c (grub_cmd_module): Don't attempt to
3685 allocate space for zero-sized modules.
3686
3687 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3688
3689 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Reject empty images.
3690
3691 2013-10-28 Francesco Lavra <francescolavra.fl@gmail.com>
3692
3693 * grub-core/lib/fdt.c: Fix miscellaneous bugs.
3694
3695 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3696
3697 * grub-core/lib/progress.c (grub_file_progress_hook_real): Add missing
3698 safeguards. Fixes a crash with i386/pc/console.c.
3699
3700 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3701
3702 * include/grub/emu/hostdisk.h: Add proper declaration for grub_host_init
3703 and grub_hostfs_init.
3704
3705 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3706
3707 * grub-core/kern/emu/hostdisk.c (grub_util_check_file_presence): Use
3708 windows method on other platforms without good stat as well.
3709
3710 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3711
3712 * grub-core/osdep/linux/getroot.c: Add new btrfs defines.
3713
3714 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3715
3716 Make / in btrfs refer to real root, not the default volume.
3717 Modify mkrelpath to work even if device is mounted with subvolid option.
3718
3719 2013-10-28 Andrey Borzenkov <arvidjaar@gmail.com>
3720
3721 * Makefile.util.def: Add grub-core/kern/disk_common.c to library
3722 extra_dist.
3723 * grub-core/Makefile.core.def: Add kern/disk_common.c to disk module
3724 extra_dist.
3725
3726 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3727
3728 * util/grub-mkfont.c (main): Show error message when FT_Set_Pixel_Sizes
3729 fails.
3730
3731 2013-10-27 BVK Chaitanya <bvk.groups@gmail.com>
3732
3733 * docs/autoiso.cfg: New file.
3734
3735 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3736
3737 * configure.ac: Remove leftover COND_BUILD_GRUB_MKFONT and
3738 COND_GRUB_PE2ELF conditions.
3739
3740 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3741
3742 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Accept "sd", "cd",
3743 "vnd", "rd" and "fd" disks.
3744
3745 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3746
3747 Move grub_disk_write out of kernel into disk.mod.
3748
3749 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3750
3751 * grub-core/kern/misc.c (grub_vsnprintf_real): Unify int and wchar
3752 handling.
3753
3754 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3755
3756 * grub-core/kern/misc.c (grub_abort): Make static
3757
3758 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3759
3760 * grub-core/kern/misc.c (grub_vsnprintf_real): Don't attempt to
3761 transform invalid unicode codepoints.
3762
3763 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3764
3765 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
3766 \0 checking.
3767
3768 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3769
3770 * grub-core/lib/legacy_parse.c: Add support for "nd" disk.
3771
3772 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3773
3774 Consolidate cpuid code.
3775
3776 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3777
3778 Move cpuid code to cpuid.h and TSC code to tsc.c.
3779
3780 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3781
3782 * util/grub.d/00_header.in: Don't use LANG if it's not set.
3783
3784 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3785
3786 * util/grub-mkconfig.in: Replace $0 with $self.
3787 * util/grub-reboot.in: Likewise.
3788 * util/grub-set-default.in: Likewise.
3789
3790 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3791
3792 * docs/osdetect.cfg: New file.
3793
3794 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3795
3796 * tests/util/grub-shell.in: Add new --debug option.
3797
3798 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3799
3800 * tests/test_unset.in: New test.
3801
3802 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3803
3804 * tests/test_sha512sum.in: New test.
3805
3806 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3807
3808 * grub-core/fs/iso9660.c: Replace strncat with memcpy.
3809 * include/grub/misc.h: Remove strncat.
3810 * grub-core/lib/posix_wrap/string.h: Likewise.
3811
3812 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3813
3814 * grub-core/net/tftp.c: Retransmit ack when rereceiving old packet.
3815 Try to handle more than 0xFFFF packets.
3816 Reported by: Bernhard Übelacker <bernhardu>.
3817 He also spotted few overflows in first version of this patch.
3818
3819 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3820
3821 * tests/date_unit_test.c: New test.
3822
3823 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3824
3825 * grub-core/normal/datetime.c (grub_unixtime2datetime): Fix mishandling
3826 of first three years after start of validity of unixtime.
3827
3828 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3829
3830 * grub-core/normal/menu_entry.c (get_logical_num_lines): Use unsigned
3831 division as the one making more sense.
3832 (update_screen): Likewise.
3833 (complete): Likewise.
3834
3835 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3836
3837 * grub-core/normal/menu_entry.c (complete): Make sure that width is >0.
3838
3839 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3840
3841 Make char and string width grub_size_t rather than grub_ssize_t.
3842
3843 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3844
3845 * grub-core/normal/cmdline.c (grub_history_get): Make argument into
3846 unsigned.
3847 (grub_history_replace): Likewise.
3848
3849 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3850
3851 * grub-core/disk/raid6_recover.c: Use unsigned arithmetics when
3852 appropriate.
3853
3854 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3855
3856 * grub-core/video/bitmap_scale.c: Use unsigned arithmetics when
3857 appropriate.
3858
3859 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3860
3861 * grub-core/video/fb/fbblit.c: Use (255 ^ x) rather than (255 - x).
3862 Use unsigned divisions rather than signed variants.
3863
3864 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3865
3866 * grub-core/video/readers/png.c (grub_png_convert_image): Use
3867 unsigned arithmetics.
3868 Add missing break.
3869
3870 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3871
3872 * grub-core/video/readers/jpeg.c: Use unsigned where appropriate.
3873
3874 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3875
3876 * grub-core/fs/zfs/zfs.c (xor_out): Use unsigned modular arithmetics
3877 rather than signed one.
3878 (recovery): Likewise.
3879
3880 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3881
3882 * grub-core/net/dns.c (hash): Use unsigned arithmetic.
3883
3884 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3885
3886 * grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
3887 than signed.
3888
3889 2013-10-25 Jon McCune <jonmccune@google.com>
3890
3891 * docs/grub.texi: Cleanup security documentation around signatures.
3892
3893 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3894
3895 * grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.
3896
3897 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3898
3899 * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
3900 than int.
3901
3902 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3903
3904 * conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.
3905 * include/grub/dl.h (GRUB_MOD_INIT), (GRUB_MOD_FINI): Define
3906 functions when compiling for kernel.
3907
3908 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3909
3910 * grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
3911 unsigned long long when using %llu.
3912
3913 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3914
3915 * grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh
3916 terminal after updating progress.
3917
3918 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3919
3920 * grub-core/boot/i386/pc/startup_raw.S (grub_gate_a20): Remove
3921 argument. We don't disable Gate A20 in this code.
3922
3923 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3924
3925 * grub-core/boot/i386/qemu/boot.S: Ensure that A20 is enabled.
3926 Conceptually based on change in branch "vbe-on-coreboot".
3927
3928 2013-10-24 Robert Millan <rmh@gnu.org>
3929
3930 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
3931 numeric constants with their symbolic equivalent.
3932 Taken from branch "vbe-on-coreboot".
3933
3934 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
3935
3936 * docs/grub.texi: Fix ordering and use pxref rather than xref.
3937
3938 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
3939
3940 * grub-core/lib/progress.c (grub_file_progress_hook_real): Use
3941 divmod64 for offset division.
3942
3943 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3944
3945 Rename .bzrignore to .gitignore. Add "*.o" rule.
3946
3947 * .bzrignore: Renamed to...
3948 * .gitignore: ...this.
3949
3950 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3951
3952 Add new progress module that displays the load progress of files.
3953
3954 * grub-core/lib/progress.c: New file.
3955 * grub-core/Makefile.core.def (progress): New module.
3956 * grub-core/kern/file.c (grub_file_open): File name added.
3957 * (grub_file_read): Progress hook added.
3958 * grub-core/fs/cbfs.c (grub_cbfs_read): Likewise.
3959 * grub-core/fs/cpio_common.c (grub_cpio_read): Likewise.
3960 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
3961 * include/grub/file.h (struct grub_file): Add progress module members.
3962 * include/grub/term.h (struct grub_term_output): Likewise.
3963 * grub-core/osdep/unix/emuconsole.c (grub_console_term_output):
3964 Terminal velocity added.
3965 * grub-core/osdep/windows/emuconsole.c (grub_console_term_output): Likewise.
3966 * grub-core/term/arc/console.c (grub_console_term_output): Likewise.
3967 * grub-core/term/efi/console.c (grub_console_term_output): Likewise.
3968 * grub-core/term/gfxterm.c (grub_video_term): Likewise.
3969 * grub-core/term/i386/coreboot/cbmemc.c (grub_cbmemc_term_output): Likewise.
3970 * grub-core/term/i386/pc/console.c (grub_console_term_output): Likewise.
3971 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_term): Likewise.
3972 * grub-core/term/ieee1275/console.c (grub_console_term_output): Likewise.
3973 * grub-core/term/morse.c (grub_audio_term_output): Likewise.
3974 * grub-core/term/serial.c (grub_serial_term_output): Likewise.
3975 * grub-core/term/spkmodem.c (grub_spkmodem_term_output): Likewise.
3976 * grub-core/term/uboot/console.c (uboot_console_term_output): Likewise.
3977
3978 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
3979
3980 Verify signatures of signatures unless --skip-sig is specified.
3981
3982 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3983
3984 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
3985 \0 checking.
3986
3987 Saves 70 bytes on compressed image.
3988
3989 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3990
3991 * grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
3992 check.
3993
3994 Saves 10 bytes on compressed image.
3995
3996 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3997
3998 * grub-core/kern/misc.c (grub_isprint): Move to ...
3999 * include/grub/misc.h (grub_isprint): ... here. Make inline.
4000
4001 Saves 20 bytes on compressed image due to remving exporting.
4002
4003 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4004
4005 * grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
4006
4007 Saves 5 bytes on compressed image.
4008
4009 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4010
4011 * grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
4012 function get_utf8.
4013
4014 Saves 379 bytes on compressed image.
4015
4016 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4017
4018 * grub-core/fs/ntfs.c: Handle 48-bit MFT no.
4019
4020 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4021
4022 * grub-core/fs/ntfs.c (read_run_data): Rewrite using bitfields.
4023
4024 Saves 40 bytes on compressed image.
4025
4026 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4027
4028 * grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for
4029 mask rather than 64-bit type.
4030
4031 Saves 20 bytes on compressed image.
4032
4033 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4034
4035 * grub-core/fs/ntfs.c (read_data): Move code for compressed data to ...
4036 * grub-core/fs/ntfscomp.c (ntfscomp): ... here.
4037
4038 Saves 273 bytes on compressed image.
4039
4040 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4041
4042 * grub-core/kern/disk.c (grub_disk_write): Use malloc/free instead of
4043 variable length arrays.
4044
4045 Saves 50 bytes on compressed image.
4046
4047 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4048
4049 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
4050
4051 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4052
4053 * grub-core/fs/ufs.c: Remove variable length arrays.
4054
4055 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4056
4057 * grub-core/fs/ntfs.c: Add comment about fixed allocation size.
4058
4059 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4060
4061 * grub-core/fs/zfs.c: Remove variable length arrays.
4062 Reduces zfs.mod by 160 bytes (208 compressed).
4063
4064 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4065
4066 * grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.
4067
4068 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4069
4070 * grub-core/net/arp.c: Remove variable length arrays.
4071 * grub-core/net/bootp.c: Likewise.
4072 * grub-core/net/dns.c: Likewise.
4073 * grub-core/net/icmp6.c: Likewise.
4074 * grub-core/net/net.c: Likewise.
4075
4076 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4077
4078 * grub-core/fs/ntfs.c: Remove variable length arrays.
4079 Increases ntfs.mod by 64 bytes (but decreases by 3 when
4080 compressed).
4081
4082 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4083
4084 * grub-core/fs/hfs.c: Remove variable length arrays.
4085 Reduces hfs.mod by 8 bytes (52 compressed).
4086
4087 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4088
4089 * grub-core/fs/udf.c: Remove variable length arrays.
4090 Increases udf.mod by 128 bytes (but decreases by 13 when
4091 compressed).
4092
4093 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4094
4095 * grub-core/fs/iso9660.c: Remove variable length arrays.
4096 Increases iso9660.mod by 200 bytes (but decreases by 79 when
4097 compressed).
4098
4099 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4100
4101 * grub-core/fs/nilfs2.c: Remove variable length arrays.
4102 Increases nilfs2.mod by 24 bytes (but decreases by 115 when
4103 compressed).
4104
4105 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4106
4107 * grub-core/fs/xfs.c: Remove variable length arrays.
4108 Reduces xfs.mod by 40 bytes (43 compressed).
4109
4110 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4111
4112 * grub-core/fs/fshelp.c: Remove variable length arrays.
4113 Reduces fshelp.mod by 116 bytes (23 compressed).
4114
4115 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4116
4117 * grub-core/normal/completion.c: Remove variable length arrays.
4118 * grub-core/normal/menu_entry.c: Likewise.
4119
4120 Reduces normal.mod by 496 bytes.
4121
4122 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4123
4124 * grub-core/fs/minix.c: Remove variable length arrays. Reduces jfs.mod
4125 by 356 bytes (158 compressed).
4126
4127 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4128
4129 * grub-core/fs/jfs.c: Remove variable length arrays. Reduces jfs.mod
4130 by 364 bytes (169 compressed).
4131
4132 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4133
4134 * grub-core/fs/bfs.c: Remove variable length arrays. Reduces afs.mod and
4135 bfs.mod size by 556 resp 740 bytes (288 resp 334 compressed).
4136 * include/grub/types.h (grub_unaligned_uint64_t): New type.
4137
4138 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4139
4140 Lift 255x255 erminal sie restriction to 65535x65535. Also change from
4141 bitmasks to small structures of size chosen to fit in registers.
4142
4143 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4144
4145 * conf/Makefile.common: Use -freg-struct-return on i386. This
4146 decreases code size and improves performance.
4147
4148 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4149
4150 * grub-core/osdep/unix/exec.c: Fix compilation error on emu.
4151
4152 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4153
4154 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
4155 "(null)" string.
4156 Simplify expressions to save around 256 bytes in kernel.img.
4157 * tests/printf_unit_test.c (printf_test): Add "(null)" tests.
4158
4159 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4160
4161 * grub-core/tests/video_checksum.c (grub_video_capture_write_bmp):
4162 Use GRUB_UTIL_FD_O_* rather than O_*.
4163
4164 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4165
4166 Add haiku-specific functions.
4167
4168 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4169
4170 * grub-core/kern/emu/hostdisk.c: Remove few leftover includes.
4171
4172 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4173
4174 Move stat () and device mode checking into OS-dependent files as
4175 long as performance doesn't suffer.
4176
4177 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4178
4179 Split make_system_path_relative_to_its_root into separate file
4180 relpath.c from getroot.c as it's common between unix and haiku
4181 but otherwise haiku doesn't use any functions from unix getroot.c.
4182
4183 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4184
4185 * grub-core/osdep/aros/hostdisk.c (grub_util_is_directory):
4186 New function.
4187 (grub_util_is_special_file): Likewise.
4188
4189 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4190
4191 * grub-core/osdep/unix/getroot.c: Move exec functions to ...
4192 * osdep/unix/exec.c: ... here. Add few additional exec_* variants.
4193
4194 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4195
4196 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Define size_t to
4197 grub_size_t. This fixes the case when size_t mismatches grub_size_t.
4198
4199 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4200
4201 * util/grub-mkimagexx.c (make_reloc_section): Fix memory leak.
4202 (load_image): Likewise.
4203
4204 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4205
4206 * util/grub-render-label.c: Move backend part to ...
4207 * util/render-label.c: ... here.
4208
4209 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4210
4211 * grub-core/osdep/random.c: Use unix/random.c on haiku. Haiku uses
4212 yarrow (by B. Schneier et al) for its /dev/urandom (similar to FreeBSD).
4213
4214 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4215
4216 * grub-core/osdep/generic/blocklist.c: Add missing include to string.h.
4217
4218 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4219
4220 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Handle
4221 CD-ROM in case when it's declared as having subpartitions.
4222
4223 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4224
4225 Don't add -lm on haiku.
4226
4227 * configure.ac: Define BUILD_LIBM to -lm on most platforms
4228 and empty on haiku.
4229 * grub-core/Makefile.am (gentrigtables): Use $(BUILD_LIBM) rather than
4230 -lm.
4231
4232 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4233
4234 * configure.ac: Use -melf_*_haiku as target on haiku.
4235
4236 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4237
4238 * Makefile.util.def: Add util/setup.c to extra_dist.
4239
4240 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4241
4242 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass
4243 unknown types through.
4244
4245 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4246
4247 * grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove.
4248 (grub_util_check_char_device): Likewise.
4249 * include/grub/emu/getroot.h: Likewise.
4250
4251 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4252
4253 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Use define for defining
4254 memset rather than inline static function.
4255
4256 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4257
4258 * grub-core/lib/xzembed/xz_config.h: Enable all bcj filters when
4259 not doing embedded decompressor.
4260
4261 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4262
4263 * grub-core/disk/ldm.c: Rename variables and arguments to prevent
4264 shadowing.
4265 * grub-core/kern/disk.c: Likewise.
4266 * grub-core/kern/misc.c: Likewise.
4267 * include/grub/parser.h: Likewise.
4268 * include/grub/script_sh.h: Likewise.
4269 * include/grub/zfs/zfs.h: Likewise.
4270
4271 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4272
4273 * grub-core/disk/luks.c (configure_ciphers): Fix spurious warning.
4274
4275 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4276
4277 * grub-core/fs/zfs/zfs_lz4.c: Check that __INTEL_COMPILER is
4278 defined before trying to use it.
4279
4280 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4281
4282 * grub-core/fs/affs.c (grub_affs_create_node): Fix uninited value
4283 warning.
4284
4285 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4286
4287 * include/grub/dl.h: Remove double declaration of GRUB_MOD_DEP.
4288 Use __unused__ rather than __used__ on gcc < 3.2.
4289
4290 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4291
4292 * include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for
4293 gcc < 4.0.
4294 * include/grub/*/setjmp.h: USe RETURNS_TWICE.
4295
4296 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4297
4298 * grub-core/disk/dmraid_nvidia.c: Fix potentially uninited "layout".
4299
4300 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4301
4302 * include/grub/misc.h: Don't use warn_unused_result on gcc < 3.4.
4303 * include/grub/emu/misc.h: Likewise.
4304
4305 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4306
4307 * grub-core/term/i386/pc/vga_text.c: Remove extra declaration of
4308 cur_color.
4309
4310 2013-10-18 Vladimir Testov <vladimir.testov@rosalab.ru>
4311
4312 * grub-core/tests/checksums.h: Regenerated due to progress bar
4313 get_minimal_size changes.
4314
4315 2013-10-17 BVK Chaitanya <bvk.groups@gmail.com>
4316
4317 Added `tr' command support.
4318
4319 * grub-core/commands/tr.c: New file.
4320 * grub-core/Makefile.core.def: Build rules for new module.
4321
4322 * tests/grub_cmd_tr.in: New test.
4323 * Makefile.util.def: Build rules for new test.
4324
4325 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4326
4327 * grub-core/gfxmenu/gui_progress_bar.c: Sanity checks added.
4328
4329 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4330
4331 * grub-core/gfxmenu/gui_progress_bar.c: New option ``highlight_overlay``
4332 * docs/gurb.texi: Likewise.
4333
4334 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4335
4336 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Fixed bug.
4337 Pixmap highlighted section with east and west slices was displayed
4338 incorrectly due to negative width of the central slice.
4339
4340 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4341
4342 * docs/grub.texi: Graphical options information update.
4343 Removed outdated. Updated current. Inserted missed.
4344
4345 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4346
4347 * docs/grub.texi: Mention few new platform-specific commands.
4348
4349 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4350
4351 * grub-core/script/yylex.l: Fix LSQBR2 and RSQBR2. It's not
4352 currently used so this doesn't really have any effect.
4353 Reported by: Douglas Ray <dougray>
4354
4355 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4356
4357 * autogen.sh: Don't set LC_CTYPE as it doesn't create problem for
4358 compilation but prevents gcc from displaying messages in non-Latin
4359 alphabets.
4360 * conf/Makefile.common: Likewise.
4361
4362 2013-10-16 Hiroyuki YAMAMORI
4363
4364 Handle Japanese special keys.
4365 Reported by: Hiroyuki YAMAMORI.
4366 Codes supplied by: Hiroyuki YAMAMORI.
4367
4368 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4369
4370 * grub-core/gfxmenu/gui_list.c: Scrollbar sanity checks added.
4371
4372 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4373
4374 * grub-core/gfxmenu/gui_list.c: New option `item_pixmap_style`.
4375 * docs/grub.texi: Likewise.
4376
4377 2013-10-16 Vladimir Serbinenko <phcoder@gmail.com>
4378
4379 * grub-core/osdep/unix/hostdisk.c (grub_util_fd_read): Return correct
4380 value in case of incomplete read.
4381 (grub_util_fd_write): Likewise.
4382
4383 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4384
4385 * util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.
4386
4387 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4388
4389 * util/grub-editenv.c (create_envblk_file): More from here ...
4390 * util/editenv.c (grub_util_create_envblk_file): ... to here.
4391
4392 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4393
4394 * grub-core/osdep/unix/getroot.c (grub_guess_root_devices):
4395 canonicalize file name before doing the rest.
4396
4397 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4398
4399 * include/grub/osdep/hostfile_windows.h: Add missing ftello for
4400 mingw32.
4401
4402 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4403
4404 Define grub_util_is_directory/regular/special_file and
4405 use OS-dependent versions rather than to rely on stat().
4406
4407 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4408
4409 * util/grub-mkimage.c: Move backend part to ...
4410 * util/mkimage.c: ... here.
4411
4412 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4413
4414 Allow compilation with mingw64 albeit with warnings due to lack of
4415 %llx/%llu.
4416
4417 * grub-core/gnulib/msvc-inval.c: Use __cdecl rather than cdecl.
4418 * grub-core/lib/posix_wrap/wchar.h: Define wint_t.
4419 * grub-core/lib/posix_wrap/wctype.h: Define wctype_t.
4420 * include/grub/osdep/hostfile_windows.h: Don't define fseeko/ftello
4421 on mingw64.
4422 * include/grub/types.h: Allow sizeof (long) != sizeof (void *).
4423
4424 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4425
4426 Remove leftover references to some of the system headers.
4427
4428 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4429
4430 * grub-core/disk/geli.c (grub_util_get_geli_uuid): Close handle after
4431 read.
4432
4433 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4434
4435 * grub-core/disk/cryptodisk.c: Use grub_util_fd_strerror instead
4436 of strerror.
4437
4438 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4439
4440 Split out blocklist retrieving from setup.c to
4441 grub-core/osdep/blocklist.c and add windows implementation since
4442 generic version doesn't work on NTFS on Windows due to aggressive
4443 unflushable cache.
4444
4445 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4446
4447 Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c)
4448 files.
4449
4450 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4451
4452 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror):
4453 Cut tailing newline. Remove arbitrary limitation. Always use
4454 grub_util_tchar_to_utf8.
4455
4456 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4457
4458 * grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
4459 * tests/printf_unit_test.c (printf_test): Add %% tests.
4460 Reported by: Paulo Flabiano Smorigo.
4461
4462 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4463
4464 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
4465 implement fsync.
4466
4467 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4468
4469 * configure.ac: Check for nvlist_lookup_string in nvpair since we
4470 use nvlist_lookup_string and don't use nvlist_print.
4471
4472 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4473
4474 Add wrappers around rename, unlink, mkdir, opendir, readdir and
4475 closedir to handle filename charset translation.
4476
4477 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4478
4479 * include/grub/emu/hostdisk.h: Move file operations to
4480 * include/grub/emu/hostfile.h: ... here.
4481
4482 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4483
4484 * grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
4485 unicode path.
4486
4487 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4488
4489 * grub-core/tests/checksums.h: Regenerate due to swiss.sed change.
4490
4491 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4492
4493 Move cpu time retrieval to separate grub_util_get_cpu_time_ms
4494 and remove export.h.
4495
4496 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4497
4498 * grub-core/kern/emu/error.c: Removed.
4499 * grub-core/Makefile.core.def (kernel): Don't add error.c and progname.c
4500 explicitly as it's already in libgnu.a.
4501
4502 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4503
4504 * grub-core/osdep/windows/emuconsole.c: Add missing config.h and
4505 config-util.h include.
4506
4507 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4508
4509 Split emunet into platform-dependent and GRUB-binding parts. Keep
4510 platform-dependent part in kernel for easy access to OS functions.
4511
4512 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4513
4514 * grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
4515 open/read/write.
4516
4517 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4518
4519 * grub-core/osdep/windows/emuconsole.c: New file.
4520
4521 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4522
4523 * conf/Makefile.extra-dist: Add osdep/*/init.c
4524
4525 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4526
4527 * Makefile.am: Use TARGET_OBJCOPY when doing objcopy for target.
4528
4529 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4530
4531 * util/grub-probe.c (probe): Separate different drives in hint-str
4532 by spaces and not newlines.
4533 * util/grub-mkconfig_lib.in: Handle multidevice filesystem.
4534
4535 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4536
4537 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
4538 Handle CD-ROMs.
4539
4540 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4541
4542 Pass-through unknown E820 types. It required reorganisation of mmap
4543 module.
4544
4545 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4546
4547 * Makefile.util.def: Add osdep/init.c to grub-mount files.
4548
4549 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4550
4551 Make grub_util_fd_seek match behaviour of other grub_util_fd_* and
4552 fseeko.
4553
4554 2013-10-14 qwertial <qwertial>
4555
4556 * grub-core/gdb_grub.in: Fix overflow and wrong field.
4557
4558 2013-10-14 Jon McCune <jonmccune@google.com>
4559
4560 * docs/grub.texi: Document new signatures possibility.
4561
4562 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4563
4564 Define GRUB_UTIL_FD_O_* and always use them with grub_util_fd_open.
4565
4566 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4567
4568 * include/grub/osdep/hostfile_windows.h (grub_util_utf8_to_tchar): Add
4569 missing prototype.
4570 (grub_util_tchar_to_utf8): Likewise.
4571
4572 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4573
4574 * grub-core/Makefile.core.def: Add osdep/init.c on emu.
4575 * grub-core/kern/emu/main.c: Add missing include.
4576 * grub-core/osdep/basic/init.c (grub_util_host_init) [!GRUB_UTIL]:
4577 Don't call grub_util_init_nls.
4578 * grub-core/osdep/windows/init.c (grub_util_host_init) [!GRUB_UTIL]:
4579 Likewise.
4580
4581 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4582
4583 * util/misc.c (grub_util_get_image_size): Use FILE functions rather than
4584 stat.
4585
4586 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4587
4588 * util/grub-editenv.c: Remove leftover set_program_name and init_nls.
4589
4590 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4591
4592 * include/grub/misc.h: Use gnu_printf only on gcc 4.4 or later.
4593
4594 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4595
4596 Add a wrapper for fopen. On unix-like systems just pass-through. On
4597 windows use unicode version.
4598
4599 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4600
4601 Move set_program_name and init_nls to host_init. On windows
4602 fix in this fuction console and argument charset as well.
4603
4604 2013-10-12 Andrey Borzenkov <arvidjaar@gmail.com>
4605
4606 Fix inconsistent use of GRUB_CRYPTODISK_ENABLE and
4607 GRUB_ENABLE_CRYPTODISK.
4608
4609 * util/grub-install.in: Rename all GRUB_CRYPTODISK_ENABLE to
4610 GRUB_ENABLE_CRYPTODISK.
4611 * util/grub-mkconfig_lib.in: Likewise.
4612
4613 2013-10-12 Christian Cier-Zniewski <c.cier@gmx.de>
4614
4615 * docs/grub.texi (Vendor power-on keys): Add Dell Latitude E4300.
4616
4617 2013-10-12 Melki Christian <Christian.melki@saabgroup.com>
4618
4619 * grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
4620 error when enabling debug.
4621
4622 2013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
4623
4624 * configure.ac: Use -melf_*_obsd on openbsd.
4625
4626 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4627
4628 * grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer.
4629
4630 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4631
4632 * include/grub/misc.h: Use gnu_printf rather than printf as format
4633 template since our functions are independent of libc.
4634
4635 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4636
4637 * util/grub-setup.c (setup): Move copying of partition table as
4638 futher up as possible to avoid possible overwrite by floppy routines.
4639
4640 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4641
4642 * grub-core/fs/fat.c: Fix handling of exfat contiguous files.
4643
4644 2013-10-10 Vladimir Testov <vladimir.testov@rosalab.ru>
4645
4646 * grub-core/gfxmenu/gui_list.c: New option `scrollbar_thumb_overlay`.
4647 * docs/grub.texi: Likewise.
4648
4649 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4650
4651 * util/getroot.c (make_device_name): Remove dos_part and bsd_part as
4652 it's mostly unused. Move vestiges to the callers.
4653
4654 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4655
4656 * util/grub-mkpasswd-pbkdf2.c: Remove temporary buffers for hex
4657 version of salt and hash. Use grub_snprintf rather than snprintf.
4658
4659 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4660
4661 * docs/grub.texi: Fix problem with braces.
4662
4663 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4664
4665 * conf/Makefile.extra-dist: Fix extra-dist list.
4666 * grub-core/Makefile.core.def: Likewise.
4667
4668 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4669
4670 * docs/grub.texi: Document disk names used on Windows and AROS.
4671
4672 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4673
4674 * grub-core/osdep/aros/getroot.c: Change to //: prefix as discussed
4675 with AROS devs.
4676 * grub-core/osdep/aros/hostdisk.c: Likewise.
4677
4678 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4679
4680 Avoid including hostfile.h when not necessarry as it pulls
4681 in OS-specific headers which may redefine generic names
4682 like "far".
4683
4684 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4685
4686 * grub-core/gfxmenu/gui_list.c: New options for scrollbar padding:
4687 scrollbar_left_pad, scrollbar_right_pad, scrollbar_top_pad,
4688 scrollbar_bottom_pad
4689 * docs/grub.texi: Likewise.
4690
4691 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4692
4693 * grub-core/gfxmenu/gui_list.c (list_destroy): Fixed memory leak.
4694
4695 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4696
4697 Move OS-dependent file definitions to include/grub/osdep/hostfile*.h.
4698
4699 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4700
4701 * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition):
4702 Removed.
4703 * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition):
4704 Made static.
4705
4706 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4707
4708 * include/grub/emu/getroot.h (grub_util_find_hurd_root_device): Remove
4709 leftover.
4710
4711 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4712
4713 Move OS-specific driver configuration to grub_util_fd_open. This
4714 moves OS-dependent parts from kern/emu/hostdisk.c to
4715 grub-core/osdep/*/hostdisk.c.
4716
4717 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4718
4719 * util/grub-mkimage.c (generate_image): Use size_t instead of
4720 grub_size_t.
4721 * util/grub-mkimagexx.c (locate_sections): Likewise.
4722 (load_image): Likewise.
4723
4724 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4725
4726 * util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for
4727 size_t.
4728 (grub_util_write_image): Likewise.
4729
4730 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4731
4732 * grub-core/osdep/basic/random.c: New file. Abort on an attempt to
4733 get random when no RNG is available.
4734 * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
4735
4736 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4737
4738 * include/grub/util/lvm.h: Removed.
4739
4740 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4741
4742 * grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
4743 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
4744
4745 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4746
4747 * grub-core/osdep/windows/sleep.c: Add missing config.h.
4748
4749 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4750
4751 * grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
4752
4753 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4754
4755 * grub-core/net/drivers/emu/emunet.c: Move to ..
4756 * grub-core/osdep/linux/emunet.c: ..here.
4757
4758 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4759
4760 * util/ieee1275/ofpath.c: Move to ...
4761 * grub-core/osdep/linux/ofpath.c: ..here, split stub into ...
4762 * grub-core/osdep/basic/ofpath.c: ..here.
4763
4764 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4765
4766 Move password-querying (util-version) routines to grub-core/osdep.
4767
4768 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4769
4770 Move sleep routines to grub-core/osdep.
4771
4772 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4773
4774 Move OS-dependent files to grub-core/osdep and document it.
4775
4776 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4777
4778 * grub-core/kern/emu/misc.c (canonicalize_file_name): Move to ...
4779 * grub-core/kern/emu/hostdisk_*.c (canonicalize_file_name): ... here.
4780
4781 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4782
4783 * grub-core/kern/arm/misc.S: Remove leftover ARM and THUMB.
4784
4785 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4786
4787 * util/misc.c: Remove leftover inclusion of malloc.h.
4788
4789 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4790
4791 * include/grub/setjmp.h: Remove leftover GRUBOF.
4792
4793 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4794
4795 * util/raid.c: Fold into ...
4796 * util/getroot_linux.c: ... here. Make all functions static.
4797
4798 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4799
4800 * grub-core/fs/zfs/zfs_lz4.c: Switch from ad-hoc endiannes and width
4801 macros to GRUB ones.
4802
4803 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4804
4805 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Fixed rare
4806 occasional bug. If there are too many boot entries or too low
4807 scrollbar height then we need to use another formula to calculate
4808 the position and size of the scrollbar thumb.
4809
4810 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4811
4812 * util/random_unix.c: Add NetBSD, Solaris and Mac OS X to verified list.
4813
4814 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4815
4816 * grub-core/gfxmenu/gui_list.c: New option `scrollbar-slice`.
4817 * docs/grub.texi: Likewise.
4818
4819 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4820
4821 * grub-core/gfxmenu/gui_list.c: Draw the scrollbar in a separate
4822 viewport.
4823
4824 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4825
4826 * grub-core/gfxmenu/gui_list.c (list_get_minimal_size): Corrected
4827 minimal width calculations.
4828
4829 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4830
4831 * docs/grub.texi: Update note on colors on emu console.
4832
4833 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4834
4835 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Give GRUB_ERR_BAD_FS
4836 for quadruple indirect rather than GRUB_ERR_NOT_IMPLEMENTED_YET as
4837 it's FS and not GRUB limitation.
4838
4839 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4840
4841 * grub-core/kern/arm/efi/startup.S: Remove thumb leftover.
4842
4843 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4844
4845 * grub-core/kern/arm/efi/init.c: Rewrite timer fucntion.
4846
4847 2013-10-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
4848
4849 * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach
4850 kernels by version order.
4851
4852 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4853
4854 * util/random_unix.c: Add kFreeBSD to the list of secure RNG.
4855
4856 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4857
4858 Add AROS hostdisk and getroot routines.
4859
4860 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4861
4862 Make cryptodisk and diskfilter probe data retrievable programmatically
4863 and not just printable.
4864
4865 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4866
4867 Split random retrieving code into separate files.
4868
4869 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4870
4871 * grub-core/kern/arm/dl.c (do_relocations): Accept and ignore
4872 R_ARM_V4BX.
4873
4874 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4875
4876 * grub-core/tests/video_checksum.c: Increase robustness to out of memory
4877 condition.
4878 * grub-core/tests/fake_input.c: Likewise.
4879 * grub-core/tests/cmdline_cat_test.c: Likewise.
4880
4881 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4882
4883 * grub-core/video/capture.c: Do not do finalization when .fini
4884 is called as there is explicit capture_end.
4885
4886 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4887
4888 * grub-core/term/gfxterm.c: Add flag "functional" to skip input when
4889 changing windows to avoid crash.
4890
4891 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4892
4893 * grub-core/kern/arm/cache.c: Add v5 write-through cache support.
4894
4895 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4896
4897 * po/exclude.pot: Add several strings to exclude.
4898
4899 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4900
4901 * tests/gettext_strings_test.in: Add getroot_*.c to exclude list.
4902
4903 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4904
4905 * autogen.sh: Add ./util/grub-gen-widthspec.c and
4906 ./util/grub-gen-asciih.c to exclude list.
4907
4908 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4909
4910 * grub-core/gfxmenu/theme_loader.c (theme_set_string): Fix memory leak
4911 and don't mark error strings for translation.
4912
4913 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4914
4915 * grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
4916 properly in case of missing block size.
4917
4918 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4919
4920 * grub-core/lib/arm/setjmp.S: Add missing license section.
4921
4922 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4923
4924 * po/swiss.sed: Add replacement for key names and for term computer.
4925
4926 2013-10-02 Vladimir Testov <vladimir.testov@rosalab.ru>
4927
4928 * grub-core/gfxmenu/theme_loader.c: New global options for the
4929 theme background image handling. desktop-image-scale-method,
4930 desktop-image-h-align, desktop-image-v-align.
4931 * grub-core/gfxmenu/view.c: Likewise.
4932 * include/gfxmenu_view.h: Likewise.
4933 * include/bitmap_scale.h: Proportional scale functions introduced.
4934 * grub-core/video/bitmap_scale.c: Likewise. Verification checks are
4935 put in a separate functions. GRUB_ERR_BUG is set for grub_error in
4936 cases of unexpected input variables for scale functions.
4937 * docs/grub.texi: Updated documentation for new options.
4938
4939 2013-10-02 Vladimir Serbinenko <phcoder@gmail.com>
4940
4941 * grub-core/video/readers/png.c: Support narrow (4-/2-/1-bpp) PNG.
4942
4943 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
4944
4945 * grub-core/tests/checksums.h: Corrected due to changes in
4946 bilinear interpolation function.
4947
4948 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
4949
4950 * grub-core/video/bitmap_scale.c (scale_bilinear): Increased precision
4951 to eliminate artefacts in bilinear interpolation.
4952
4953 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4954
4955 * grub-core/video/readers/tga.c: Support paletted tga.
4956
4957 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4958
4959 * grub-core/video/readers/jpeg.c (grub_jpeg_decode_data): Remove
4960 incorrect cbcr setting when in color mode.
4961
4962 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4963
4964 * grub-core/video/readers/png.c: Support paletted images and clean up
4965 greyscale support.
4966
4967 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4968
4969 * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix
4970 usage of wrong table which resulted in mishandling of 4-byte
4971 sequences.
4972
4973 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4974
4975 * grub-core/term/terminfo.c: Add Home and End key sequences.
4976
4977 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
4978
4979 * grub-core/video/readers/png.c (grub_png_decode_image_header):
4980 Fix formula for computing total number of bytes.
4981
4982 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
4983
4984 * grub-core/video/readers/tga.c: Reorganize to separate RLE and
4985 image processing, fix big-endian and support grayscale.
4986
4987 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
4988
4989 * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target):
4990 Correctly will with maximum transparency when using index color.
4991
4992 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
4993
4994 * grub-core/video/readers/png.c: Support grayscale
4995
4996 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
4997
4998 * grub-core/video/readers/jpeg.c: Support grayscale.
4999
5000 2013-09-26 Jon McCune <jonmccune@google.com>
5001
5002 * grub-core/commands/loadenv.c: Support skipping signature check
5003 and variable names filtering.
5004
5005 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5006
5007 * grub-core/kern/emu/hostdisk_unix.c: Declare AROS as non-unix.
5008 * grub-core/kern/emu/hostfs.c: Likewise.
5009 * util/getroot_unix.c: Likewise.
5010
5011 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5012
5013 * include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.
5014 Migrate all explicit defines to this new one.
5015
5016 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5017
5018 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Use
5019 grub_util_fd_strerror when using grub_util_fd_*.
5020 (grub_util_fd_open_device): Likewise.
5021 (grub_util_biosdisk_read): Likewise.
5022 (grub_util_biosdisk_write): Likewise.
5023 * grub-core/kern/emu/hostdisk_unix.c (grub_util_fd_open): New function.
5024 (grub_util_fd_strerror): Likewise.
5025 (grub_util_fd_sync): Likewise.
5026 (grub_util_fd_close): Likewise.
5027 * grub-core/kern/emu/hostdisk_windows.c (grub_util_fd_sync): Likewise.
5028 (grub_util_fd_close): Likewise.
5029 (grub_util_fd_strerror): Likewise.
5030 * include/grub/emu/hostdisk.h (grub_util_fd_close): Make into real
5031 function proto rather than macro.
5032 (grub_util_fd_sync): Likewise.
5033 (grub_util_fd_open): Likewise.
5034 (grub_util_fd_strerror): New proto.
5035
5036 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5037
5038 * util/getroot.c (grub_util_biosdisk_is_present): Don't do stat on
5039 platforms on which it doesn't work.
5040
5041 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5042
5043 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Move struct
5044 stat immediately to where it's used.
5045
5046 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5047
5048 * util/getroot.c (grub_util_check_block_device): Move to ...
5049 * util/getroot_unix.c (grub_util_check_block_device): ... here.
5050 * util/getroot.c (grub_util_check_char_device): Move to ...
5051 * util/getroot_unix.c (grub_util_check_char_device): ... here.
5052
5053 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5054
5055 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
5056 disk closing logic.
5057
5058 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5059
5060 * docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
5061
5062 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5063
5064 * docs/grub.texi (File name syntax): Document ZFS filenames
5065 (/volume@snapshot/...).
5066
5067 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5068
5069 * grub-core/kern/emu/hostdisk_windows.c (grub_util_get_windows_path):
5070 Always return full path. Fixes a problem with mkrelpath.
5071
5072 2013-09-23 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5073
5074 * util/grub-install.in: Add GPT PReP support.
5075 * util/grub-probe.c (probe): Support GPT partition type.
5076 (main): Support -t gpt_parttype.
5077
5078 2013-09-23 Aleš Nesrsta <starous@volny.cz>
5079
5080 * grub-core/bus/usb/ehci.c: SMI disabled in all cases
5081
5082 2013-09-23 Massimo Maggi <me@massimo-maggi.eu>
5083
5084 * grub-core/fs/zfs/zfs.c (check_pool_label): Check nvlist.
5085
5086 2013-09-23 Tim Hardeck <thardeck>
5087
5088 * util/grub.d/10_hurd.in: Filter out character for the class.
5089 * util/grub.d/10_kfreebsd.in: Likewise.
5090 * util/grub.d/10_linux.in: Likewise.
5091 * util/grub.d/20_linux_xen.in: Likewise.
5092
5093 2013-09-23 Melki Christian <Christian.melki@saabgroup.com>
5094
5095 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Fix the type of
5096 "changed".
5097
5098 2013-09-23 Josh Triplett <josh@joshtriplett.org>
5099
5100 * grub-core/boot/i386/pc/lnxboot.S: Re-add support for recording the
5101 boot partition.
5102
5103 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5104
5105 * Makefile.util.def (libgrubmods.a): Remove CFLAGS_POSIX as this lib
5106 doesn't use posix_wrap. Keep literal -fno-builtin however.
5107
5108 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5109
5110 * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
5111
5112 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5113 2013-09-23 neil
5114
5115 * configure.ac: Do not enable -Wmissing-noreturn as its
5116 usefulness is limited and creates problems on some OS notably with
5117 code generated by bison.
5118
5119 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5120 2013-09-23 neil
5121
5122 * configure.ac: Do not explicitly enable -Waddress as it's not
5123 supported by all gcc and when it is, it's already enabled by -Wall.
5124
5125 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5126
5127 * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
5128 desactivated use of EDID at all.
5129
5130 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5131 2013-09-23 neil
5132
5133 * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
5134 video if no text is available.
5135
5136 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5137 2013-09-23 neil
5138
5139 * configure.ac: Substitute TARGET_RANLIB.
5140
5141 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5142 2013-09-23 neil
5143
5144 * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
5145
5146 Based on patches from AROS.
5147
5148 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5149 2013-09-23 neil
5150
5151 * grub-core/Makefile.am: Override STRIP and RANLIB.
5152 * configure.ac: compute TARGET_RANLIB.
5153 * INSTALL: Document TARGET_RANLIB
5154
5155 Based on patches from AROS.
5156
5157 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5158
5159 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
5160 that floppies are unpartitioned.
5161
5162 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5163
5164 * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
5165 Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
5166
5167 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5168
5169 * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
5170 less nice but more portable.
5171 * grub-core/lib/posix_wrap/wchar.h: Likewise.
5172
5173 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5174
5175 * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
5176 for cheat_fd.
5177 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
5178 functions.
5179 (grub_cryptodisk_cheat_insert): Likewise.
5180 (grub_cryptodisk_close): Likewise.
5181
5182 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5183
5184 * include/grub/emu/misc.h: Remove leftover cygwin definitions.
5185 Use windows path for DEFAULT_DIRECTORY.
5186
5187 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5188
5189 * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
5190 difference was likely just gcc version, not anything mingw-related.
5191
5192 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5193
5194 Use Winapi on both cygwin and mingw32 to share more code between both.
5195
5196 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5197
5198 * util/grub-install.in: Add --grub-editenv option.
5199 * util/grub-install_header (grub_compress_file): Explicitly check for
5200 plain file to avoid cp error.
5201
5202 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5203
5204 * docs/grub.texi (Device syntax): Document new LVM UUID based device
5205 names; fix LVM driver name (lvm, not lv).
5206 * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
5207 names.
5208
5209 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5210
5211 * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
5212 files rather than one file with loads of #if's.
5213 * util/getroot.c: Likewise.
5214
5215 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5216
5217 * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
5218
5219 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5220
5221 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
5222 GNU/Hurd to the list of checked PRNG.
5223
5224 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5225
5226 * configure.ac: On FreeBSD use -melf_*_fbsd format.
5227
5228 2013-09-21 Ales Nesrsta <starous@volny.cz>
5229
5230 * grub-core/bus/usb/ehci.c: Corrected EHCI QH handling (async./sync.)
5231
5232 2013-09-20 Vladimir Serbinenko <phcoder@gmail.com>
5233
5234 * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
5235 * grub-core/disk/lvm.c: Add LVM UUIDs.
5236 * util/getroot.c: Use LVM UUIDs whenever possible.
5237
5238 2013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
5239
5240 * docs/grub.texi (Networking commands): Add documentation for
5241 network related commands.
5242
5243 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5244
5245 * util/getroot.c (grub_util_open_dm): Check major rather than the name
5246 to determine if device is handled by devmapper.
5247 (convert_system_partition_to_system_disk): Likewise.
5248 (get_dm_uuid): Don't check explicitly if device is mapped, it's
5249 already done in grub_util_open_dm.
5250
5251 2013-09-19 Leif Lindholm <leif.lindholm@linaro.org>
5252
5253 * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
5254 Clean up stack manipulation (sync_caches_armv*)
5255
5256 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5257
5258 * util/lvm.c: Remove since unused. Remove remaining references.
5259
5260 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5261
5262 Handle the case of partitioned LVM properly.
5263
5264 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
5265 Stop on meeting LVM, mpath or DMRAID.
5266 (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
5267 (read_device_map): Likewise.
5268 * util/getroot.c (convert_system_partition_to_system_disk): Assume that
5269 device is full disk rather than erroring out on LVM and similar cases.
5270
5271 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5272
5273 * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
5274
5275 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5276
5277 * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
5278 4K before the end.
5279 Reported by: Leif Lindholm
5280
5281 2013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
5282 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5283
5284 * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
5285 codes.
5286
5287 2013-09-18 Colin Watson <cjwatson@ubuntu.com>
5288
5289 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
5290 Remove no-longer-true __attribute__ ((unused)) on disk parameter.
5291
5292 2013-09-18 Douglas Ray <dougray@cpan.org>
5293
5294 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
5295 as secure.
5296
5297 2013-09-18 Aleš Nesrsta <starous@volny.cz>
5298
5299 * docs/grub.texi: Fix broken link.
5300
5301 2013-09-18 Melki Christian <Christian.melki@saabgroup.com>
5302
5303 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
5304 to break endless loop.
5305
5306 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5307
5308 * util/grub-fstest.c: Fix several printf formats.
5309 * util/grub-mkimage.c: Likewise.
5310 * util/grub-mkimagexx.c: Likewise.
5311 * util/grub-script-check.c: Likewise.
5312
5313 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5314
5315 * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
5316 error.
5317
5318 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5319
5320 * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
5321
5322 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5323
5324 * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
5325 removed in current versions cygwin_conv_*.
5326
5327 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5328
5329 * configure.ac: Disable efiemu runtime on cygwin.
5330
5331 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5332
5333 * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
5334 util/grub-gen-widthspec.c and util/grub-pe2elf.c.
5335
5336 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5337
5338 * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
5339 error message.
5340
5341 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5342
5343 * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
5344 windows variant.
5345 * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
5346 data.
5347
5348 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5349
5350 * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
5351 when on x86 and not cygwin.
5352 * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
5353 -Wl,-melf_x86_64.
5354
5355 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5356
5357 * configure.ac: Set CPP to build one when checkoing for freetype for
5358 build.
5359
5360 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5361
5362 * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
5363 [!GRUB_BUILD]: Remove has_argument.
5364
5365 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5366
5367 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
5368 Replace with a dummy.
5369
5370 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5371
5372 * configure.ac: Don't change host_os from mingw to cygwin.
5373
5374 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5375
5376 * configure.ac: Change target_os from windows to cygwin.
5377
5378 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5379
5380 Handle grub-pe2elf and grub-mkfont for cases when build != host.
5381
5382 * Makefile.am (build-grub-mkfont): Don't include gnulib.
5383 (build-grub-gen-asciih): Likewise.
5384 (build-grub-gen-widthspec): Likewise.
5385 * Makefile.util.def (grub-pe2elf): Remove.
5386 * config.h.in [GRUB_BUILD]: Use build rather than host constants.
5387 * configure.ac: Separate tests for build.
5388 Move ./build-grub-pe2elf to grub-core.
5389 Fix typo.
5390 * grub-core/Makefile.am (build-grub-pe2elf): New target.
5391 * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
5392 defined.
5393 * include/grub/types.h [GRUB_BUILD]: Use build rather than host
5394 constants.
5395 * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
5396 * util/grub-pe2elf.c: Simplify not to rely on getopt.
5397 * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
5398
5399 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5400
5401 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
5402 mingw32 as well based on grub_util_get_disk_size.
5403 * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
5404 grub_util_get_fd_size.
5405 (sync): Removed.
5406 (fsync): Moved to ...
5407 * grub-core/kern/emu/misc.c (fsync): ... here.
5408
5409 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5410
5411 * include/grub/mm.h (grub_extend_alloc): Remove.
5412 * grub-core/loader/i386/pc/plan9.c: Use own version of
5413 grub_extend_alloc with appropriate types.
5414
5415 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5416
5417 * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
5418
5419 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5420
5421 * util/getroot.c: Include sys/wait.h only when we need waitpid.
5422
5423 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5424
5425 Fix dependencies on cygwin.
5426
5427 * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
5428 dependencies when used and defined.
5429 * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
5430
5431 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5432
5433 * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
5434 * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
5435
5436 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5437
5438 * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
5439 implementation available to cause compile-time rather than runtime
5440 error.
5441
5442 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5443
5444 * util/grub-fstest.c: Don't check for symlinks on windows.
5445
5446 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5447
5448 * INSTALL: Mention unavailability of man pages when cross-compiling.
5449
5450 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5451
5452 * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
5453 and gcry_log_bug.
5454 * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
5455
5456 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5457
5458 * INSTALL: Document cross-compilation.
5459 * acinclude.m4: Determine whether nm support -P and --defined-only.
5460 * configure.ac: Add TARGET_ to all variables pertaining to target
5461 that don't have it yet.
5462 * gentpl.py: Likewise.
5463 * grub-core/Makefile.am: Likewise.
5464 * grub-core/genmod.sh.in: Likewise.
5465 * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
5466 as well.
5467
5468 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5469
5470 * configure.ac: Remove -Wempty-body. It's not essential and needs
5471 recent gcc.
5472
5473 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5474
5475 * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
5476 * util/getroot.c: Likewise.
5477
5478 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5479
5480 * grub-core/disk/ahci.c: Add needed explicit cast.
5481 * grub-core/lib/backtrace.c: Likewise.
5482 * grub-core/net/ip.c: Likewise.
5483 * grub-core/net/tcp.c: Likewise.
5484 * grub-core/net/udp.c: Likewise.
5485
5486 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5487
5488 * grub-core/lib/posix_wrap/wchar.h: Fix typo.
5489
5490 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5491
5492 * util/import_gcry.py: Add final newline in visibility.h.
5493
5494 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5495
5496 * conf/Makefile.common: Fix typo.
5497
5498 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5499
5500 * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
5501
5502 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5503
5504 * Makefile.am (widthspec.h): Fix typo.
5505 * util/grub-gen-widthspec.c: Likewise.
5506
5507 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5508
5509 Move ascii.h and widthspec.h generation to a separate build-time-only
5510 tool.
5511
5512 2013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
5513
5514 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
5515 Always fill bootdisk info and improve check for NetBSD disklabel.
5516
5517 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5518
5519 * conf/Makefile.extra-dist: Add util/bin2h.c.
5520 Reported by: floppym.
5521
5522 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5523
5524 * configure.ac: Make unifont mandatory for powerpc-ieee1275.
5525
5526 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5527
5528 * configure.ac: Disable unifont and starfield if no freetype was found.
5529
5530 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5531
5532 * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
5533 on NetBSD and OpenBSD.
5534
5535 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5536
5537 * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
5538
5539 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5540
5541 * grub-core/gfxmenu/gui_list.c: The number of color mappings is
5542 reduced. Inheritant options are processed during the theme loading.
5543
5544 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5545
5546 * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
5547
5548 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5549
5550 * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
5551
5552 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5553
5554 * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
5555 using qemu.
5556
5557 2013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5558
5559 * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
5560 remove-potcdate.sed.
5561
5562 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5563
5564 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
5565 unused attribute from pull argument.
5566
5567 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5568
5569 * util/getroot.c (grub_util_is_imsm): Fix descriptor and
5570 memory leak.
5571
5572 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5573
5574 * util/getroot.c (pull_lvm_by_command): add --separator option
5575 to vgs call to disable padding of output to 10 characters.
5576
5577 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5578
5579 * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
5580 here ...
5581 * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
5582 here.
5583
5584 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5585
5586 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
5587 length.
5588
5589 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5590
5591 Fix handling of build-time grub-bin2h and grub-mkfont when doing
5592 full Canadian cross. Tested with build=x86_64, host=arm,
5593 target=ppc-ieee1275.
5594
5595 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5596
5597 * configure.ac: Error if no $BUILD_CC could be found.
5598 Reported by: DevHC.
5599
5600 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5601
5602 * grub-core/kern/i386/coreboot/init.c: Fix compilation on
5603 i386-multiboot.
5604
5605 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5606
5607 * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
5608 * grub-core/kern/mips/qemu_mips/init.c: Likewise.
5609
5610 2013-08-13 Colin Watson <cjwatson@ubuntu.com>
5611
5612 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
5613 grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
5614 falling back to the partition device, otherwise a later call to this
5615 function may fail spuriously.
5616 Reported by Axel Beckert. Fixes Debian bug #708614.
5617
5618 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5619
5620 * autogen.sh: Replace find -not by the POSIX-compliant find !.
5621
5622 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5623
5624 Prevent shadowing of stdlib's devname(3) on BSD.
5625
5626 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
5627 and devlast to diskname and disklast, respectively.
5628
5629 2013-08-11 Colin Watson <cjwatson@ubuntu.com>
5630
5631 * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
5632
5633 2013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5634
5635 * docs/grub.texi: Introduce terminal window position options:
5636 terminal-left: terminal window's left position
5637 terminal-top: terminal window's top position
5638 terminal-width: terminal window's width
5639 terminal-height: terminal window's height
5640 terminal-border: terminal window's border width
5641 * grub-core/gfxmenu/theme-loader.c: Likewise.
5642 * include/grub/gfxmenu_view.h: Likewise.
5643 * po/exlude.pot: Likewise.
5644 * grub-core/gfxmenu/view.c: Likewise.
5645 Also updated minimal window size.
5646 Also terminal_sanity_check function has been introduced.
5647 * grub-core/tests/checksums.h: Update (terminal window height
5648 is adjusted now for low resolution screen)
5649
5650 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5651
5652 * grub-core/tests/checksums.h: Update (1-pixel difference in marker
5653 position).
5654
5655 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5656
5657 * po/exclude.pot: Add few recent exceptions.
5658
5659 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5660
5661 * tests/grub_func_test.in: Add unicode.pf2.
5662
5663 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5664
5665 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
5666 standard rather than noral color, in line with other terminals.
5667
5668 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5669
5670 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
5671 analysis.
5672
5673 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5674
5675 * grub-core/loader/arm/linux.c: Change printf to dprintf.
5676
5677 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5678
5679 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
5680 inappropriate printf.
5681
5682 2013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
5683
5684 * .bzrignore: Remove grub-core/lib/dtc-grub,
5685 grub-core/Makefile.libfdt.def
5686 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
5687
5688 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5689
5690 * include/grub/video.h (grub_video_register): Keep double-linked as
5691 well as single-linked invariants.
5692 Reported by: qwertial.
5693
5694 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5695
5696 * grub-core/commands/nativedisk.c (get_uuid): Handle
5697 GRUB_DISK_DEVICE_UBOOTDISK_ID.
5698
5699 2013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
5700
5701 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
5702 maximum of NW, N, NE heights instead of N's height and maximum of
5703 NW, W, SW widths instead of W's width. (So the box will be always
5704 correctly drawn)
5705
5706 2013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
5707
5708 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
5709 Fix misuse of variable count.
5710
5711 2013-07-18 Leif Lindholm <leif.lindholm@arm.com>
5712 2013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
5713 2013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
5714
5715 New ports to arm-uboot and arm-efi.
5716 Mostly by Leif Lindholm with some additions from
5717 Francesco Lavra and cleanup by Vladimir Serbinenko.
5718
5719 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5720
5721 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
5722 and not before.
5723 Reported by: Leon Drugi.
5724
5725 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5726
5727 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
5728 Reported by: Paulo Flabiano Smorigo.
5729
5730 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5731
5732 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
5733
5734 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5735
5736 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
5737
5738 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5739
5740 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
5741
5742 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5743
5744 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
5745
5746 2013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
5747
5748 * grub-core/net/bootp.c: Export net_* variables.
5749 * grub-core/net/net.c: Likewise.
5750
5751 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5752
5753 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
5754
5755 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5756
5757 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
5758
5759 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5760
5761 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
5762
5763 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5764
5765 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
5766
5767 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5768
5769 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
5770 <= 0.
5771
5772 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5773
5774 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
5775 functions.
5776
5777 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5778
5779 * grub-core/fs/zfs/zfs_lz4.c: New file.
5780 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
5781
5782 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5783
5784 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
5785
5786 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5787
5788 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
5789 (check_pool_label): Likewise.
5790 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
5791
5792 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5793
5794 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
5795
5796 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
5797
5798 * docs/grub.texi (Commands): Document postition parameters
5799 for menuentry command.
5800
5801 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
5802
5803 * util/grub-mknetdir.in: Remove stray line from help output.
5804
5805 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5806
5807 Remove early sm712 init as there is no reason for it (the "watchdog"
5808 effect was due to wrong GPIO map).
5809
5810 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5811
5812 * grub-core/commands/pcidump.c: Remove static variables.
5813
5814 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5815
5816 * grub-core/commands/sleep.c: Refresh screen before sleeping.
5817
5818 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5819
5820 * configure.ac: Move delimiter after the infos.
5821
5822 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5823
5824 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
5825
5826 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5827
5828 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
5829 not filling whole 8x16 space.
5830
5831 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5832
5833 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
5834
5835 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5836
5837 * configure.ac: Indicate which liblzma is used if any.
5838
5839 2013-06-21 Paul Wise <pabs3@bonedaddy.net>
5840 2013-06-21 Craig Sanders <savannah@taz.net.au>
5841
5842 * util/grub-reboot.in: Document submenu usage.
5843
5844 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
5845
5846 * .bzrignore: Update with a number of new test-related files.
5847
5848 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
5849
5850 * util/grub-script-check.c: Fail on scripts containing no
5851 commands, to guard against corrupted grub-mkconfig setups that
5852 produce no useful output.
5853 * tests/grub_script_no_commands.in: New test.
5854 * Makefile.util.def (grub_script_no_commands): Add.
5855 Reported by Hans Putter. Fixes Debian bug #713886.
5856
5857 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5858
5859 * grub-core/disk/diskfilter.c: Forgot to remove comment
5860 from previous commit.
5861
5862 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5863
5864 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
5865 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
5866
5867 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5868
5869 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
5870
5871 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5872
5873 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
5874 rescan diskfilter devices until nothing new is found.
5875
5876 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5877
5878 Fix casts when compiling coreboot-specific code for 64-bit EFI.
5879
5880 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5881
5882 Don't try to detect cbfs on *-emu.
5883
5884 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5885
5886 * grub-core/term/gfxterm.c: USe right background color when scrolling.
5887
5888 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5889
5890 Add support for processed coreboot payload chainloading.
5891
5892 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5893
5894 Enable coreboot information commands even when not loaded as
5895 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
5896
5897 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5898
5899 Support for cbfs. Also factor out the part which is common
5900 for all archives to a separate module. This splits tar from cpio
5901 as they are very different but keeps cpio, cpio_be, odc and newc
5902 together since they're very similar.
5903
5904 2013-06-15 David Michael <fedora.dm0@gmail.com>
5905
5906 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
5907 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
5908
5909 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5910
5911 * tests/grub_script_eval.in: Really add the eval test.
5912
5913 2013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
5914
5915 Move flavour-specific parts out of common cpio.c file and
5916 rename remaining to cpio_common.c
5917
5918 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
5919
5920 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
5921 off new function grub_script_execute_new_scope. Change callers to use
5922 either of them as appropriate.
5923 * grub-core/commands/eval.c: New command eval.
5924 * docs/grub.texi (Commands): Document it.
5925
5926 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
5927
5928 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
5929 to fetch values when listing.
5930
5931 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
5932
5933 Fix make dist on non-pc.
5934
5935 2013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
5936
5937 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
5938 without a device name.
5939
5940 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5941
5942 Remove enable_executable_check as it's not needed anymore.
5943 Reported by: dougray.
5944
5945 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5946
5947 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
5948 ambigouos RAID before discovering RAIDs on top of it.
5949 Reported by: bodom.
5950
5951 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5952
5953 Fix typo (failback vs fallback).
5954
5955 2013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
5956
5957 * util/grub.d/30_os-prober.in: Add support for probing EFI
5958 System Partition (as of os-prober 1.58).
5959
5960 2013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
5961
5962 * configure.ac: Add yet another path to unifont. For parabola.
5963
5964 2013-05-30 Josh Triplett <josh@joshtriplett.org>
5965
5966 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
5967 handling to copy the killed characters to the kill buffer as
5968 UCS4 stored as grub_uint32_t rather than as 8-bit characters
5969 stored as char. Eliminates UCS4 truncation and corruption
5970 observed when killing characters with Ctrl-u and yanking them
5971 back with Ctrl-y.
5972
5973 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5974
5975 Detach optional parts of gfxterm and integrate in with coreboot init.
5976
5977 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5978
5979 Move blit and fill dispatcher to appropriate files to decrease export
5980 and relocation overhead.
5981
5982 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5983
5984 * grub-core/font/font.c, include/grub/font.h: Inline simple font
5985 functions.
5986
5987 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5988
5989 * grub-core/Makefile.am: Fix compilation problem with some
5990 automake versions.
5991
5992 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5993
5994 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
5995
5996 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5997
5998 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
5999 automake versions.
6000
6001 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6002
6003 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
6004 SSDT.
6005
6006 2013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
6007
6008 * grub-core/partmap/dfly.c: New partition map.
6009
6010 2013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
6011
6012 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
6013 checking.
6014 Reported by: Francesco Lavra.
6015
6016 2013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
6017
6018 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
6019 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
6020 false conditions.
6021 * conf/Makefile.common: define dist_grubconf_DATA
6022
6023 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6024
6025 Progressively skip menu elements on small terminals rather
6026 than crashing.
6027
6028 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6029
6030 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
6031 to avoid losing last column.
6032
6033 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6034
6035 * po/exclude.pot: Add missing string "%C".
6036
6037 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6038
6039 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
6040 after the test.
6041
6042 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6043
6044 * util/grub-install.in: Gettextize "Not found" message.
6045
6046 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6047
6048 Fix distfiles list.
6049 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6050
6051 2013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6052
6053 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
6054 present.
6055 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
6056
6057 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6058
6059 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
6060
6061 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6062
6063 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
6064 attribute since structure is not necessarily aligned.
6065
6066 2013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
6067
6068 * docs/grub.texi (Device syntax): Clarify description of network
6069 drives.
6070
6071 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6072
6073 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
6074 for vasprintf presence.
6075
6076 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6077
6078 * util/grub-install.in: Handle efibootmgr presence check.
6079 Reported by: Leif Lindholm.
6080
6081 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6082
6083 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
6084 new strings to translate.
6085
6086 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6087
6088 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
6089 yet another string (pun intended) to translate.
6090
6091 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6092
6093 * po/POTFILES-shell.in: Autogenerate it.
6094
6095 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6096
6097 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
6098
6099 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6100
6101 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
6102 misnomer.
6103
6104 2013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
6105
6106 * docs/grub.texi (Network): Add description of net_default_interface,
6107 net_default_ip and net_default_mac. Rewrite variables description
6108 to emphasize that they are per-interface.
6109
6110 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6111
6112 New test: cmdline and cat.
6113
6114 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6115
6116 * grub-core/commands/cat.c: Show UTF-8 characters.
6117
6118 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6119
6120 * conf/Makefile.common: Poison float and double on non-emu.
6121
6122 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6123
6124 * configure.ac: Don't disable extended registers on emu.
6125
6126 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6127
6128 * configure.ac: Don't use extended registers on x86_64.
6129 Reported by: Peter Jones.
6130
6131 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6132
6133 * grub-core/term/efi/console.c: Fix compile error.
6134
6135 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6136
6137 Compressed HFS+ support.
6138
6139 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6140
6141 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
6142 pixel".
6143
6144 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6145
6146 Menu color test.
6147
6148 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6149
6150 * grub-core/tests/setjmp_test.c: New test.
6151
6152 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6153
6154 New variables 'net_default_*' to determine MAC/IP of default interface.
6155
6156 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6157
6158 * tests/gettext_strings_test.in: A test to check for strings not
6159 marked for translation.
6160
6161 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6162
6163 * autogen.sh: Exclude unused libgcrypt files from translation.
6164
6165 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6166
6167 Simplify few strings.
6168
6169 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6170
6171 Mark few forgotten strings for translation.
6172
6173 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6174
6175 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
6176 rather than printf.
6177
6178 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6179
6180 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
6181 rather than printf.
6182 * grub-core/video/readers/tga.c: Likewise.
6183
6184 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6185
6186 * tests/priority_queue_unit_test.cc: New test.
6187
6188 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6189
6190 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
6191 than printf.
6192
6193 2013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
6194
6195 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
6196 variable for one time boot menu entry.
6197
6198 2013-05-05 Bean <bean123ch@gmail.com>
6199
6200 * grub-core/commands/testspeed.c: New command testspeed.
6201
6202 2013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
6203
6204 Factor-out human-size printing.
6205
6206 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6207
6208 Agglomerate more mallocs to speed-up gfxterm.
6209
6210 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6211
6212 Speed-up gfxterm by slightly agglomerating mallocs.
6213
6214 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6215
6216 More video checks.
6217
6218 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6219
6220 Speed-up gfxterm by saving intermediate results in index+alpha
6221 format.
6222
6223 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6224
6225 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
6226 test.
6227
6228 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6229
6230 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
6231 line of timeout as it may contain the rest of long line.
6232
6233 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6234
6235 * grub-core/normal/main.c: Fix freed memory dereference.
6236
6237 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6238
6239 Fix several memory leaks.
6240
6241 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6242
6243 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
6244
6245 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6246
6247 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
6248
6249 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6250
6251 Fix test -a and -o precedence.
6252 Reported by: adrian15.
6253
6254 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6255
6256 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
6257
6258 2013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
6259
6260 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
6261 and add it as source to functional_test module.
6262
6263 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6264
6265 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
6266
6267 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6268
6269 New series of tests for gfxterm and gfxmenu.
6270
6271 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6272
6273 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
6274 the theme path relative to $prefix/themes.
6275
6276 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6277
6278 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
6279 Fix order bug.
6280 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
6281
6282 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6283
6284 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
6285 descriptor.
6286
6287 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6288
6289 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
6290 grub_gfxmenu_timeout_notifications.
6291 (grub_gfxmenu_view_destroy): Likewise.
6292
6293 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6294
6295 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
6296
6297 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6298
6299 Several fixes to ieee1275 and big-endian video.
6300
6301 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6302
6303 Add missing exports on mips.
6304
6305 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6306
6307 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
6308 if no unifont is found.
6309 Restore original keyboard.
6310
6311 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6312
6313 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
6314 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
6315
6316 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6317
6318 First automated video test (running videotest and comparing results)
6319
6320 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6321
6322 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
6323 instead of 2 to have full RGB/CMY test pattern.
6324
6325 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6326
6327 Add few more tests.
6328
6329 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6330
6331 * include/grub/arc/arc.h: Account for missing "other" peripheral on
6332 ARCS. All users updated.
6333
6334 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6335
6336 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
6337
6338 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6339
6340 * grub-core/partmap/amiga.c: Fix size of checksummed block.
6341
6342 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6343
6344 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
6345 Reported by: qwertial.
6346
6347 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6348
6349 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
6350 with syntax "XXX deg"/"XXX °".
6351
6352 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6353
6354 Make PCI init in i386-qemu port more robust.
6355
6356 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6357
6358 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
6359 cached view is reused.
6360 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
6361 open boot menus.
6362
6363 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6364
6365 Unify more code in grub-install_header.
6366
6367 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6368
6369 Add few new tests.
6370
6371 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6372
6373 Enforce disabling of firmware disk drivers when native drivers kick in.
6374
6375 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6376
6377 * grub-core/commands/nativedisk.c: Customize the list of modules on
6378 platform. Don't try to search for disks already using native drivers.
6379
6380 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6381
6382 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
6383 platforms.
6384
6385 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6386
6387 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
6388 handling of variables containing backslash.
6389
6390 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6391
6392 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
6393 dereference.
6394 Reported by: qwertial.
6395
6396 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6397
6398 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
6399
6400 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6401
6402 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
6403 dereference.
6404 Reported by: qwertial.
6405
6406 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6407
6408 * docs/grub.texi: Add a comment about usefullness of nativedisk.
6409
6410 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6411
6412 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
6413
6414 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6415
6416 New command `nativedisk'.
6417
6418 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6419
6420 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
6421 * grub-core/loader/i386/bsd.c: Likewise.
6422
6423 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6424
6425 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
6426
6427 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6428
6429 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
6430 grub_get_unaligned16 rather than shifts.
6431
6432 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6433
6434 * grub-core/kern/file.c: Use const char * rather than casting to
6435 non-const.
6436
6437 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6438
6439 * grub-core/commands/probe.c: Add missing grub_device_close.
6440
6441 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6442
6443 * INSTALL: Document linguas.sh.
6444
6445 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6446
6447 Remove POTFILES.in and regenerate it in autogen.sh.
6448
6449 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6450
6451 Move --directory/--override-directorry to grub-install_header and unify.
6452
6453 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6454
6455 * grub-core/term/morse.c: Macroify dih and dah.
6456
6457 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6458
6459 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
6460
6461 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6462
6463 * grub-core/term/ns8250.c: Systematically probe ports by writing
6464 to SR before using them.
6465
6466 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6467
6468 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
6469 disks.
6470 (check_sas): Get sas_adress info.
6471
6472 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6473
6474 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
6475 ports.
6476
6477 2013-04-27 Leon Drugi <eyak>
6478
6479 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
6480 BSS clearing.
6481
6482 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6483
6484 Core compression test.
6485
6486 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6487
6488 Implement grub_machine_get_bootlocation for ARC.
6489
6490 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6491
6492 Improve AHCI detection and command issuing.
6493
6494 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6495
6496 Fix pseries test.
6497
6498 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6499
6500 Make 'make check' work on emu.
6501
6502 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6503
6504 Replace libcurses with our own vt100 handling for the ease of testing
6505 and decreasing prerequisites.
6506
6507 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6508
6509 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
6510
6511 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6512
6513 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
6514 compile when not needed.
6515
6516 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6517
6518 * tests/pseries_test.in: New test.
6519
6520 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6521
6522 Add test to check that different boot mediums work.
6523
6524 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6525
6526 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
6527 ofw limited ISO support.
6528
6529 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6530
6531 * configure.ac: Fix loongson conditional.
6532
6533 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6534
6535 Enable mipsel-arc.
6536
6537 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6538
6539 Add serial on ARC platform.
6540
6541 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6542
6543 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
6544 commit.
6545
6546 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6547
6548 * tests/partmap_test.in: Add missing double semicolon.
6549
6550 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6551
6552 * util/grub-mkrescue.in: Fix loongson filename.
6553
6554 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6555
6556 * util/grub-mkrescue.in: Move all files that don't have a location
6557 set in stone under /boot/grub. Use ISO hard links rather than copies
6558 to save some space.
6559
6560 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6561
6562 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
6563 bogus SLOF values.
6564
6565 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6566
6567 Make check work on mips-arc.
6568
6569 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6570
6571 * util/grub-mkrescue.in: Alias sashARCS as sash.
6572
6573 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6574
6575 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
6576 it's serial.
6577
6578 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6579
6580 * util/grub-install.in: Fix target fo qemu_mips.
6581 Fix extension on EFI.
6582
6583 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6584
6585 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
6586 in front of chosen entry to mark it even if highlighting is lost.
6587
6588 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6589
6590 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
6591 gfxpayload=keep if cbfb is active.
6592
6593 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6594
6595 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
6596
6597 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6598
6599 Add missing video ids to coreboot and ieee1275 video.
6600
6601 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6602
6603 * util/grub-mkrescue.in: Add mips-arc support.
6604
6605 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6606
6607 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
6608
6609 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6610
6611 Move mips-arc link address. Previous link address was chosen
6612 in belief that RAM on SGI platforms grows down while in fact it
6613 grows up from an unusual base.
6614
6615 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6616
6617 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
6618 Fix a type which prevented CD-ROM and floppy boot.
6619
6620 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6621
6622 Support coreboot framebuffer.
6623
6624 * grub-core/video/i386/coreboot/cbfb.c: New file.
6625
6626 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6627
6628 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
6629 detecting too small regions.
6630
6631 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6632
6633 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
6634
6635 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6636
6637 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
6638 Remove dprintf.
6639 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
6640
6641 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6642
6643 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
6644 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6645 * grub-core/loader/powerpc/ieee1275/linux.c
6646 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6647
6648 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6649
6650 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6651 Look for /boot-rom as well as /rom/boot-rom.
6652
6653 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6654
6655 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
6656 handling when creating text_layer failed.
6657 * grub-core/video/video.c (grub_video_create_render_target):
6658 Set result to 0 on error.
6659 (grub_video_delete_render_target): Do not dereference NULL.
6660
6661 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6662
6663 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
6664 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
6665 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
6666 (grub_linux_load64): Mask out 2 high bits.
6667
6668 2013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
6669
6670 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
6671 more place.
6672
6673 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6674
6675 Add support for pseries and other bootinfo machines to grub-mkrescue.
6676
6677 Tested by: Paulo Flabiano Smorigo.
6678
6679 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6680
6681 * util/grub-mkrescue.in: Add GPT for EFI boot.
6682
6683 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6684
6685 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
6686 It improves performance in qemu.
6687
6688 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6689
6690 * build-aux/snippet: Add missing gnulib files.
6691
6692 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6693
6694 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
6695
6696 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6697
6698 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
6699
6700 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6701 2013-04-15 Peter Jones <pjones@redhat.com>
6702
6703 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
6704 sectors.
6705 Based on patch by Peter Jones.
6706
6707 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6708
6709 Fix DMRAID partition handling.
6710
6711 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6712
6713 * tests/grub_cmd_date.in: Skip on sparc64.
6714
6715 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6716
6717 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
6718 firmware error messages.
6719
6720 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6721
6722 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
6723 source and destination differ.
6724
6725 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6726
6727 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
6728 detection.
6729
6730 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6731
6732 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
6733 match config-util.h to avoid warnings and increase compatibility.
6734
6735 2013-04-14 Szymon Janc <szymon@janc.net.pl>
6736 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6737
6738 Add option to compress files on install/image creation.
6739
6740 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6741
6742 * docs/grub-dev.texi: Rearrange menu to match the section order.
6743 Reported by: Bryan Hundven.
6744
6745 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6746
6747 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
6748
6749 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6750
6751 Move GRUB out of system area when using xorriso 1.2.9 or later.
6752
6753 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6754
6755 * tests/grub_cmd_date.in: Add missing exit 1.
6756
6757 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6758
6759 * tests/partmap_test.in: Skip on sparc64.
6760
6761 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6762
6763 Support grub-shell on sparc64.
6764
6765 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6766
6767 Support mkrescue on sparc64.
6768
6769 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6770
6771 Allow IEEE1275 ports on path even if it wasn't detected automatically.
6772 Needed on OpenBIOS due to incomplete device tree.
6773
6774 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6775
6776 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
6777 would be otherwise excluded.
6778
6779 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6780
6781 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6782 Inline name defines used only once.
6783
6784 2013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
6785
6786 Fix memory leaks in ofnet.
6787 Reported by: Francesco Lavra.
6788
6789 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6790
6791 * docs/man/grub-glue-efi.h2m: Add missing file.
6792
6793 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6794
6795 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
6796
6797 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6798
6799 Better support Apple Intel Macs on CD.
6800
6801 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6802
6803 Replace stpcpy with grub_stpcpy in tools.
6804
6805 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6806
6807 Handle Japanese special keys.
6808 Reported by: Hiroyuki YAMAMORI.
6809 Codes supplied by: Hiroyuki YAMAMORI.
6810
6811 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6812
6813 * util/grub-mkimage.c: Document memdisk implying --prefix.
6814
6815 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6816
6817 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
6818 much we can do about it anyway.
6819
6820 2013-04-12 Aleš Nesrsta <starous@volny.cz>
6821
6822 Fix handling of split transfers.
6823
6824 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6825
6826 * grub-core/net/http.c: Fix bad free.
6827
6828 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6829
6830 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
6831 than buffer size.
6832
6833 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6834
6835 Disable partmap check on i386-ieee1275 due to openfirmware issues.
6836
6837 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6838
6839 * tests/util/grub-shell.in: Fix it on powerpc.
6840
6841 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6842
6843 Turn off QEMU ACPI-way since new releases don't have shutdown port
6844 anymore.
6845
6846 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6847
6848 * docs/grub.texi: Update coreboot status info.
6849
6850 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6851
6852 * tests/grub_cmd_date.in: New test for datetime.
6853
6854 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6855
6856 * tests/partmap_test.in: Fix missing qemudisk setting.
6857
6858 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6859
6860 Support i386-ieee1275 grub-mkrescue and make check on it.
6861
6862 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6863
6864 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
6865 feature for it.
6866
6867 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6868
6869 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
6870 GRUB_CMDLINE_XEN_DEFAULT.
6871 Reported by: Marc Warne (GigaTux) <gigatux>
6872
6873 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6874
6875 Import new gnulib.
6876
6877 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6878
6879 Use ACPI shutdown intests as traditional port was removed.
6880
6881 2013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
6882
6883 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
6884 distinction.
6885
6886 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6887
6888 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
6889 Fix few warining messages and leaks while on it.
6890
6891 2013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
6892
6893 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
6894 links under grub-core/lib/libgcrypt-grub/mpi.
6895
6896 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6897
6898 Fix ia64-efi image generation on big-endian machines. Deduplicate
6899 some code while on it.
6900 Reported by: Leif Lindholm.
6901
6902 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
6903
6904 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
6905 as extra_dist.
6906
6907 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
6908
6909 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
6910
6911 2013-04-08 Bryan Hundven <bryanhundven@gmail.com>
6912
6913 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
6914 texinfo-5.1.
6915
6916 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6917
6918 * grub-core/normal/term.c: Few more fixes for menu entry editor
6919 rendering.
6920 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6921
6922 2013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
6923
6924 * grub-core/normal/term.c: Few more fixes for menu entry editor
6925 rendering.
6926 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6927
6928 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
6929
6930 * conf/Makefile.extra-dist (EXTRA_DIST): Add
6931 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
6932
6933 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
6934
6935 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
6936 instead of hardcoding grub.mo.
6937
6938 2013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
6939
6940 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
6941
6942 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6943
6944 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
6945 grub-core/disk/geli.c.
6946
6947 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6948
6949 * util/grub-mkfont.c: Prefer enum to #define.
6950
6951 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6952
6953 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
6954
6955 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6956
6957 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
6958
6959 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6960
6961 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
6962
6963 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6964
6965 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
6966
6967 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6968
6969 * include/grub/bsdlabel.h: Use enums.
6970
6971 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6972
6973 Move GRUB_CHAR_BIT to types.h.
6974
6975 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
6976
6977 * docs/grub.texi: Document more user commands.
6978
6979 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
6980
6981 * docs/grub.texi: Document menuentry --id option.
6982
6983 2013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
6984
6985 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
6986
6987 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6988
6989 Unify file copying setup across different install scripts. Add
6990 options for performing partial install.
6991
6992 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6993 2013-04-04 Peter Jones <pjones@redhat.com>
6994
6995 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
6996
6997 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6998
6999 Use TSC as a possible time source on i386-ieee1275.
7000
7001 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7002
7003 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
7004 Init err.
7005
7006 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7007
7008 * util/grub-setup.c (setup): Handle some corner cases.
7009
7010 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7011
7012 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
7013
7014 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7015
7016 * grub-core/commands/verify.c: Save verified file to avoid it being
7017 tampered with after verification was done.
7018
7019 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7020
7021 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
7022 reported width by one to compensate for curesor algorithm problem.
7023
7024 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7025
7026 Fix screen corruption in menu entry editor and simplify the code
7027 flow while on it.
7028
7029 2013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
7030
7031 * util/grub-mount.c (fuse_init): Return error if fuse_main
7032 failed.
7033
7034 2013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
7035
7036 * include/grub/elf.h: Add missing ARM relocation codes and fix
7037 existing ones.
7038
7039 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7040
7041 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
7042
7043 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7044 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7045
7046 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
7047 into account when calculating radius.
7048
7049 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7050
7051 * grub-core/gfxmenu/view.c: Fix off-by-one error.
7052
7053 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7054
7055 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
7056
7057 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7058
7059 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
7060 missing closing bracket.
7061
7062 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7063
7064 * INSTALL: Mention xorriso requirement.
7065
7066 2013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
7067
7068 * grub-core/commands/verify.c: Fix hash algorithms values for
7069 the first three hashes - they start with 1, not with 0.
7070
7071 2013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
7072
7073 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
7074 Try terminating EFI services several times due to quirks in some
7075 implementations.
7076
7077 2013-03-26 Colin Watson <cjwatson@ubuntu.com>
7078
7079 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
7080 skipping Event, Device, Processor, PowerRes, ThermalZone, and
7081 BankField extended opcodes.
7082 (get_sleep_type): Add minimal scope handling (just enough to
7083 handle setting the scope to the root path).
7084 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
7085 * include/grub/acpi.h: Add enumeration values for Event, Device,
7086 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
7087
7088 2013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
7089
7090 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
7091 memory leak.
7092
7093 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7094
7095 * grub-core/disk/ahci.c: Give more time for AHCI request.
7096
7097 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7098
7099 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
7100 command.
7101
7102 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7103
7104 Replace the region at 0 from coreboot tables to available in BSD
7105 memory map.
7106
7107 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7108
7109 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
7110 non-BIOS platforms.
7111
7112 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7113
7114 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
7115 platforms.
7116
7117 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7118
7119 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
7120 handling of multi-device filesystems.
7121
7122 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7123
7124 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
7125 platforms.
7126
7127 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7128
7129 Add new 'proc' filesystem framework and put luks_script into it.
7130
7131 2013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
7132
7133 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
7134 and qemu.
7135
7136 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7137
7138 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
7139
7140 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7141
7142 Add ability to generate newc additions on runtime.
7143
7144 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7145
7146 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
7147 description.
7148
7149 2013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
7150
7151 * po/POTFILES.in: Regenerate.
7152
7153 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7154
7155 * grub-core/commands/verify.c (hashes): Add several hashes
7156 from the spec.
7157
7158 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7159
7160 Slight improve in USB-related boot-time checkpoints.
7161
7162 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7163
7164 * grub-core/commands/boottime.c: Fix copyright header.
7165
7166 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7167
7168 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
7169 coreboot tables content. Support for cbmemc.
7170
7171 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7172
7173 Fix a conflict between ports structures with 2 controllers of
7174 same kind.
7175
7176 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7177
7178 * include/grub/boottime.h: Add missing file.
7179
7180 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7181
7182 Initialize USB ports in parallel to speed-up boot.
7183
7184 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7185
7186 Fix USB devices not being detected when requested
7187 due to delayed attach.
7188
7189 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7190
7191 Implement boot time analysis framework.
7192
7193 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7194
7195 Remove get_endpoint_descriptor and change all functions needing
7196 descriptor to just receive it as argument rather than endpoint
7197 address.
7198
7199 2013-03-19 Aleš Nesrsta <starous@volny.cz>
7200
7201 Better estimate the maximum USB transfer size.
7202
7203 2013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
7204
7205 Resend a packet if we got the wrong buffer in status.
7206
7207 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7208
7209 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
7210 multiplication rather than division.
7211
7212 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7213
7214 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
7215 than divisions.
7216
7217 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7218
7219 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
7220 operations to have intended shifts and not divisions.
7221
7222 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7223
7224 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
7225 intended shifts rather than division.
7226
7227 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7228
7229 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
7230 computation for some years before epoch. Avode confusing division
7231 while on it.
7232
7233 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7234
7235 * grub-core/video/i386/pc/vbe.c
7236 (grub_video_vbe_print_adapter_specific_info): Replace division by
7237 shifts.
7238
7239 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7240
7241 Adjust types in gdb module to have intended unsigned shifts rather than
7242 signed divisions.
7243
7244 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7245
7246 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
7247 maximum size is 4G - 1 on hfs
7248
7249 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7250
7251 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
7252
7253 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7254
7255 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
7256 function.
7257
7258 2013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
7259
7260 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
7261 causing gcc error with gcc 4.7.1.
7262
7263 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7264
7265 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
7266 dereference null pointer. While the code is technically correct, gcc
7267 may eliminate a null check if pointer is already dereferenced.
7268
7269 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7270
7271 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
7272 OOM check.
7273 * grub-core/normal/term.c (read_terminal_list): Likewise.
7274
7275 2013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
7276
7277 Lift up core size limits on some platforms. Fix potential memory
7278 corruption with big core on small memory systems. Document remaining
7279 limits.
7280
7281 2013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
7282
7283 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
7284 gotoxy to 0,0.
7285
7286 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7287
7288 Remove all trampoline support. Add -Wtrampolines when
7289 present. Remove symbols used for trampolines to make
7290 link fail if trampolines are present.
7291
7292 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7293
7294 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
7295 append out of its parent.
7296
7297 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7298
7299 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
7300 parent.
7301
7302 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7303
7304 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
7305 all vars to a macro. All users updated.
7306
7307 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7308
7309 * grub-core/disk/ieee1275/nand.c: Fix compilation on
7310 i386-ieee1275.
7311
7312 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7313
7314 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
7315
7316 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7317
7318 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
7319
7320 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7321
7322 Move to more hookless approach in IEEE1275 devices handling.
7323
7324 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7325
7326 * grub-core/kern/term.c (grub_term_normal_color),
7327 (grub_term_highlight_color): Add back lost defaults.
7328
7329 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7330
7331 Make elfload not use hooks. Opt for flags and iterators instead.
7332
7333 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7334
7335 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
7336 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
7337
7338 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7339
7340 * grub-core/script/execute.c (gettext_append): Remove nested functions.
7341
7342 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7343
7344 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
7345 hook pass-through parameter. All users updated and unnested.
7346
7347 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7348
7349 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
7350 out of its parent.
7351
7352 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7353
7354 * grub-core/fs/hfs.c: Remove nested functions.
7355
7356 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7357
7358 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
7359 the context through.
7360 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
7361
7362 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7363
7364 * util/grub-editenv.c (list_variables): Move print_var out of its
7365 parent.
7366
7367 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7368
7369 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
7370 function.
7371
7372 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7373
7374 * grub-core/gentrigtables.c: Make tables const.
7375
7376 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7377
7378 Remove nested functions from videoinfo iterators.
7379
7380 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7381
7382 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
7383 for 64-bit platforms.
7384
7385 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7386
7387 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
7388 a FOR_CHILDREN macro.
7389
7390 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7391
7392 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
7393 platform from firmware path.
7394
7395 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7396
7397 Enable linux16 on non-BIOS systems for i.a. memtest.
7398
7399 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
7400 correctly.
7401 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
7402
7403 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7404
7405 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
7406 Fix end of table condition.
7407
7408 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7409
7410 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
7411 out of its parent.
7412
7413 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7414
7415 * grub-core/fs/jfs.c: Remove nested functions.
7416
7417 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7418
7419 * grub-core/fs/minix.c: Remove nested functions.
7420
7421 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7422
7423 * grub-core/fs/iso9660.c: Remove nested functions.
7424
7425 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7426
7427 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
7428 of parent function.
7429
7430 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7431
7432 * util/grub-fstest.c: Remove nested functions.
7433
7434 2013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7435
7436 * grub-core/loader/machoXX.c: Remove nested functions.
7437
7438 2013-02-27 Colin Watson <cjwatson@ubuntu.com>
7439
7440 Remove nested functions from disk and file read hooks.
7441
7442 * include/grub/disk.h (grub_disk_read_hook_t): New type.
7443 (struct grub_disk): Add read_hook_data member.
7444 * include/grub/file.h (struct grub_file): Likewise.
7445 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
7446 argument.
7447
7448 Update all callers.
7449
7450 2012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
7451
7452 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
7453 Fix off by one error in enumerating extended partitions.
7454
7455 2013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
7456
7457 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
7458 memory leak if device name is not found.
7459
7460 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7461
7462 * grub-core/normal/menu_entry.c (update_screen): remove
7463 unused variable `off' which caused scroll down arrow to be always shown.
7464
7465 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7466
7467 * grub-core/normal/menu_entry.c (insert_string): fix off by one
7468 access to unallocated memory.
7469
7470 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7471
7472 * Makefile.util.def: Add partmap/msdos.c to common library.
7473 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
7474 * grub-core/disk/ldm.c: Check for existence of
7475 GRUB_PC_PARTITION_TYPE_LDM.
7476
7477 2013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
7478
7479 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
7480 sizes and display sector size.
7481
7482 2013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7483
7484 Implement new command cmosdump.
7485
7486 2013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
7487
7488 Support Openfirmware disks with non-512B sectors.
7489
7490 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
7491 size of the disk.
7492 * (grub_ofdisk_get_block_size): New function.
7493 * (grub_ofdisk_prepare): Use the correct block size.
7494 * (grub_ofdisk_read): Likewise.
7495 * (grub_ofdisk_write): Likewise.
7496 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
7497 New proto.
7498
7499 2013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7500
7501 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
7502
7503 2013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7504
7505 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
7506 on first error.
7507
7508 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7509
7510 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
7511 freeing it.
7512
7513 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7514
7515 Implement USBDebug (full USB stack variant).
7516
7517 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7518
7519 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
7520 unless they have unexpected values.
7521
7522 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7523
7524 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
7525 grub_print_error.
7526
7527 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7528
7529 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
7530 zero-out of port structure.
7531
7532 2013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7533
7534 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
7535 of extended attributes.
7536
7537 2013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
7538
7539 * util/grub-install.in: change misleading comment about
7540 device.map creation
7541
7542 2013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7543
7544 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
7545 when menu highlight color isn't set.
7546
7547 2013-01-27 C. Masloch <pushbx@38.de>
7548
7549 Improve FreeDOS direct loading support compatibility.
7550
7551 * include/grub/i386/relocator.h (grub_relocator16_state):
7552 New member ebp.
7553 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
7554 variable.
7555 (grub_relocator16_boot): Handle %ebp.
7556 * grub-core/lib/i386/relocator16.S: Likewise.
7557 * grub-core/loader/i386/pc/freedos.c:
7558 Load BPB to pass kernel which partition to load from.
7559 Check that kernel file is not too large.
7560 Set register dl to BIOS unit number as well.
7561
7562 2013-01-22 Colin Watson <cjwatson@ubuntu.com>
7563
7564 * util/grub-reboot.in (usage): Document the need for
7565 GRUB_DEFAULT=saved.
7566 * util/grub-set-default.in (usage): Likewise.
7567 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
7568
7569 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7570
7571 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
7572 than defining WORDS_BIGENDIAN manually.
7573
7574 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7575
7576 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
7577 invariants.
7578
7579 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7580
7581 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
7582 nested.
7583 (blit_comb: add_device_width): Likewise.
7584
7585 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7586
7587 Remove nested functions from USB iterators.
7588
7589 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
7590 (grub_usb_controller_iterate_hook_t): Likewise.
7591 (grub_usb_iterate): Add hook_data argument.
7592 (grub_usb_controller_iterate): Likewise.
7593 (struct grub_usb_controller_dev.iterate): Likewise.
7594
7595 Update all implementations and callers.
7596
7597 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7598
7599 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
7600 margin when not needed.
7601
7602 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7603
7604 Make color variables global instead of it being per-terminal.
7605
7606 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7607
7608 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
7609 asterisk.
7610
7611 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7612
7613 Fix powerpc and sparc64 build failures caused by un-nesting memory
7614 map iterators.
7615
7616 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7617
7618 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
7619 parameter declarations.
7620
7621 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7622
7623 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
7624
7625 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7626
7627 Improve spkmomdem reliability by adding a separator between bytes.
7628
7629 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7630
7631 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
7632 an Acer registration utility with several sightings in the wild.
7633 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
7634
7635 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7636
7637 Remove nested functions from filesystem directory iterators.
7638
7639 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
7640 (struct grub_fs.dir): Add hook_data argument.
7641
7642 Update all implementations and callers.
7643
7644 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7645
7646 * docs/grub.texi (Multi-boot manual config): Fix typo for
7647 "recommended".
7648
7649 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7650
7651 * util/grub-mkimage.c (main): Postpone freeing arguments.output
7652 until after its use in generate_image.
7653
7654 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7655
7656 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
7657 initrd size to addr_min, since the initrd will be allocated after
7658 this address.
7659
7660 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7661
7662 * conf/Makefile.common: Fix autogen rules to pass definition
7663 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
7664
7665 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7666
7667 * include/grub/elf.h: Update ARM definitions based on binutils.
7668
7669 2013-01-20 Aleš Nesrsta <starous@volny.cz>
7670
7671 Split long USB transfers into short ones.
7672
7673 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7674
7675 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
7676 is interrupted by ESC.
7677
7678 2013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7679
7680 * util/grub-script-check.c (main): Uniform the error message.
7681
7682 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7683
7684 Remove nested functions from ELF iterators.
7685
7686 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7687
7688 Remove nested functions from device iterators.
7689
7690 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
7691 (grub_arc_iterate_devs): Add hook_data argument.
7692 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
7693 (struct grub_ata_dev.iterate): Add hook_data argument.
7694 * include/grub/device.h (grub_device_iterate_hook_t): New type.
7695 (grub_device_iterate): Add hook_data argument.
7696 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
7697 (struct grub_disk_dev.iterate): Add hook_data argument.
7698 (grub_disk_dev_iterate): Likewise.
7699 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
7700 Likewise.
7701 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
7702 Likewise.
7703 * include/grub/partition.h (grub_partition_iterate_hook_t): New
7704 type.
7705 (struct grub_partition_map.iterate): Add hook_data argument.
7706 (grub_partition_iterate): Likewise.
7707 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
7708 (struct grub_scsi_dev.iterate): Add hook_data argument.
7709
7710 Update all callers.
7711
7712 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7713
7714 Fix typos for "developer" and "development".
7715
7716 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7717
7718 Add license header to spkmodem-recv.c.
7719
7720 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
7721
7722 Rewrite spkmodem to use PIT for timing. Double the speed.
7723
7724 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7725
7726 Add new command pcidump.
7727
7728 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7729
7730 New terminal outputs using serial: morse and spkmodem.
7731
7732 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7733
7734 Improve bidi handling in entry editor.
7735
7736 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7737
7738 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
7739 argument to prevent name collision.
7740
7741 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
7742
7743 Remove nested functions from script reading and parsing.
7744
7745 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
7746 getline_data argument, passed to getline.
7747 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
7748 getline_data argument, passed to grub_parser_split_cmdline.
7749 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
7750 lexerstate->getline_data to lexerstate->getline.
7751 (grub_script_lexer_init): Add getline_data argument, saved in
7752 lexerstate->getline_data.
7753 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
7754 argument, passed to grub_script_parse.
7755 * grub-core/script/script.c (grub_script_parse): Add getline_data
7756 argument, passed to grub_script_lexer_init.
7757 * include/grub/parser.h (grub_parser_split_cmdline): Update
7758 prototype. Update all callers to pass appropriate getline data.
7759 (struct grub_parser.parse_line): Likewise.
7760 (grub_rescue_parse_line): Likewise.
7761 * include/grub/reader.h (grub_reader_getline_t): Add void *
7762 argument.
7763 * include/grub/script_sh.h (struct grub_lexer_param): Add
7764 getline_data member.
7765 (grub_script_parse): Update prototype. Update all callers to pass
7766 appropriate getline data.
7767 (grub_script_lexer_init): Likewise.
7768 (grub_normal_parse_line): Likewise.
7769
7770 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
7771 data argument.
7772 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
7773 static instead of nested. Rename to ...
7774 (grub_parser_execute_getline): ... this.
7775 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
7776 data argument.
7777 * grub-core/normal/main.c (read_config_file: getline): Make static
7778 instead of nested. Rename to ...
7779 (read_config_file_getline): ... this.
7780 (grub_normal_read_line): Add unused data argument.
7781 * grub-core/script/execute.c (grub_script_execute_sourcecode:
7782 getline): Make static instead of nested. Rename to ...
7783 (grub_script_execute_sourcecode_getline): ... this.
7784 * util/grub-script-check.c (main: get_config_line): Make static
7785 instead of nested.
7786
7787 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
7788
7789 Remove nested functions from memory map iterators.
7790
7791 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
7792 argument, passed to hook.
7793 * grub-core/kern/i386/coreboot/mmap.c
7794 (grub_linuxbios_table_iterate): Likewise.
7795 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
7796 instead of nested.
7797 (grub_machine_mmap_iterate): Add hook_data argument.
7798 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
7799 Add hook_data argument, passed to hook.
7800 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
7801 Likewise.
7802 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
7803 Likewise.
7804 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
7805 Likewise.
7806 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
7807 Likewise.
7808 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
7809 Likewise.
7810 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
7811 Likewise.
7812 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
7813 (grub_machine_mmap_iterate): Likewise.
7814 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
7815 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
7816 prototype.
7817 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
7818 Remove NESTED_FUNC_ATTR from here and from all users.
7819 (grub_mmap_iterate): Update prototype.
7820 (grub_efi_mmap_iterate): Update prototype. Update all callers to
7821 pass appropriate hook data.
7822 (grub_machine_mmap_iterate): Likewise.
7823
7824 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
7825 static instead of nested.
7826 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
7827 Rename to ...
7828 (lsmmap_hook): ... this.
7829 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
7830 Likewise.
7831 (grub_efiemu_mmap_fill: fill_hook): Likewise.
7832 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
7833 heap_init): Likewise.
7834 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
7835 Rename to ...
7836 (mmap_iterate_hook): ... this.
7837 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
7838 Likewise.
7839 * grub-core/lib/ieee1275/relocator.c
7840 (grub_relocator_firmware_get_max_events: count): Likewise.
7841 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
7842 to ...
7843 (grub_relocator_firmware_fill_events_iter): ... this.
7844 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
7845 hook): Likewise. Rename to ...
7846 (grub_relocator_alloc_chunk_align_iter): ... this.
7847 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
7848 Rename to ...
7849 (generate_e820_mmap_iter): ... this.
7850 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
7851 Rename to ...
7852 (count_hook): ... this.
7853 (grub_linux_boot: hook): Likewise. Rename to ...
7854 (grub_linux_boot_mmap_find): ... this.
7855 (grub_linux_boot: hook_fill): Likewise. Rename to ...
7856 (grub_linux_boot_mmap_fill): ... this.
7857 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
7858 hook): Likewise. Rename to ...
7859 (grub_fill_multiboot_mmap_iter): ... this.
7860 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
7861 hook): Likewise. Rename to ...
7862 (count_hook): ... this.
7863 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
7864 hook): Likewise. Rename to ...
7865 (grub_fill_multiboot_mmap_iter): ... this.
7866 * grub-core/loader/powerpc/ieee1275/linux.c
7867 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
7868 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
7869 Likewise. Rename to ...
7870 (alloc_phys_choose): ... this.
7871 (determine_phys_base: get_physbase): Likewise.
7872 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
7873 find_hook): Likewise.
7874 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
7875 (malloc_hook: count_hook): Likewise.
7876 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
7877 Likewise. Rename to ...
7878 (lower_hook): ... this.
7879 (grub_mmap_get_upper: hook): Likewise. Rename to ...
7880 (upper_hook): ... this.
7881 (grub_mmap_get_post64: hook): Likewise. Rename to ...
7882 (post64_hook): ... this.
7883 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
7884 Likewise. Rename to ...
7885 (lower_hook): ... this.
7886 (grub_mmap_get_upper: hook): Likewise. Rename to ...
7887 (upper_hook): ... this.
7888 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
7889 (grub_mmap_iterate: fill_hook): Likewise.
7890 (fill_mask): Pass addr and mask within a single struct.
7891 (grub_cmd_badram: hook): Make static instead of nested. Rename
7892 to ...
7893 (badram_iter): ... this.
7894 (grub_cmd_cutmem: hook): Likewise. Rename to ...
7895 (cutmem_iter): ... this.
7896
7897 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7898
7899 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
7900 delimit path in strings using quotes.
7901 * util/getroot.c (grub_guess_root_devices): Likewise.
7902 (grub_make_system_path_relative_to_its_root): Likewise.
7903 * util/grub-probe.c (probe): Likewise.
7904 * util/ieee1275/ofpath.c (find_obppath): Likewise.
7905 (xrealpath): Likewise.
7906
7907 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7908
7909 Fix compilation with older compilers.
7910
7911 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
7912 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
7913 declarations.
7914 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
7915 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
7916 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
7917 identifier with b.
7918 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
7919 * include/grub/crypto.h: Add type defines.
7920 * util/import_gcrypth.sed: Remove duplicate type defines.
7921
7922 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7923
7924 New command list_trusted.
7925
7926 * grub-core/commands/verify.c (grub_cmd_list): New function.
7927
7928 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
7929
7930 * util/grub-mkimage.c (generate_image): Fix "size of public key"
7931 info message.
7932
7933 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
7934
7935 Remove nested functions from PCI iterators.
7936
7937 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
7938 passed to hook. Update all callers to pass appropriate hook data.
7939 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
7940 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
7941 Remove NESTED_FUNC_ATTR from here and from all users.
7942 (grub_pci_iterate): Update prototype.
7943 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
7944 instead of nested. Rename to ...
7945 (grub_cs5536_find_iter): ... this.
7946 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
7947 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
7948 Likewise.
7949 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
7950 Likewise.
7951 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
7952 Likewise.
7953 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
7954 Likewise.
7955 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
7956 * grub-core/video/radeon_fuloong2e.c
7957 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
7958 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
7959 find_card): Likewise.
7960 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
7961 Likewise.
7962
7963 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7964
7965 * grub-core/commands/verify.c: Mark messages for translating.
7966
7967 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7968
7969 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
7970 fatal.
7971
7972 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7973
7974 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
7975 fatal.
7976
7977 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7978
7979 * autogen.sh: Do not try to delete nonexistant files.
7980 * util/import_gcrypth.sed: Add some missing header removals.
7981
7982 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
7983
7984 Clean up dangling references to grub-setup.
7985 Fixes Ubuntu bug #1082045.
7986
7987 * docs/grub.texi (Images): Refer generally to grub-install rather
7988 than directly to grub-setup.
7989 (Installing GRUB using grub-install): Remove direct reference to
7990 grub-setup.
7991 (Device map) Likewise.
7992 (Invoking grub-install): Likewise.
7993 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
7994 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
7995 * util/grub-install.in (usage): Likewise.
7996
7997 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
7998 Apply to grub-bios-setup and grub-sparc64-setup rather than to
7999 grub-setup.
8000 * configure.ac: Remove grub_setup output variable.
8001
8002 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
8003 to grub-bios-setup.
8004 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
8005 grub-setup to grub-sparc64-setup.
8006
8007 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8008
8009 Import gcrypt public-key cryptography and implement signature checking.
8010
8011 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8012
8013 * grub-core/fs/ntfs.c: Ue more appropriate types.
8014 * grub-core/fs/ntfscomp.c: Likewise.
8015 * include/grub/ntfs.h: Likewise.
8016
8017 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8018
8019 Support Apple FAT binaries on non-Apple platforms.
8020
8021 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
8022 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
8023 Likewise.
8024 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
8025 Apple FAT binaries.
8026
8027 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8028
8029 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
8030 sector devices.
8031
8032 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
8033
8034 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
8035 explicitly zeroing elements.
8036 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
8037 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
8038 of elements in a structure already allocated using grub_zalloc.
8039 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
8040
8041 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
8042
8043 * docs/grub.texi (grub_cpu): New subsection.
8044 (grub_platform): Likewise.
8045
8046 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
8047
8048 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
8049
8050 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8051
8052 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
8053 divisions.
8054
8055 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8056
8057 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
8058 * grub-core/fs/ntfscomp.c: Likewise.
8059 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
8060 (grub_ntfs_comp): Likewise.
8061
8062 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8063
8064 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
8065 Rename to ...
8066 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
8067 of groups_per_block. All users updated.
8068
8069 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8070
8071 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
8072 grub_error properly.
8073 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
8074 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
8075
8076 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8077
8078 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
8079 always in /boot/zfs.
8080 Reported by: Yuta Satoh.
8081
8082 2013-01-03 Yuta Satoh <nigoro>
8083
8084 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
8085 ${grub_probe}
8086
8087 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8088
8089 * configure.ac: Extend -Wno-trampolines to host.
8090
8091 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8092
8093 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
8094 entry->len = 0.
8095
8096 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8097
8098 * docs/grub.texi (Invoking grub-mkrelpath): New section.
8099 (Invoking grub-script-check): Likewise.
8100
8101 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8102
8103 * docs/grub.texi (Invoking grub-mount): New section.
8104 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
8105
8106 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8107
8108 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
8109 test failures, so that a failing unit test correctly causes 'make
8110 check' to fail.
8111
8112 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8113
8114 Fix failing printf test.
8115
8116 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
8117 '$' in the correct order when collecting type information.
8118
8119 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8120
8121 * docs/grub.texi (configfile): Explain environment variable
8122 handling.
8123 (source): New section.
8124 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
8125
8126 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
8127
8128 Remove several trivially-unnecessary uses of nested functions.
8129
8130 * grub-core/commands/i386/pc/sendkey.c
8131 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
8132 instead of nested.
8133 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
8134 Rename to ...
8135 (legacy_file_getline): ... this.
8136 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
8137 Likewise.
8138 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
8139 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
8140 to ...
8141 (probe_dummy_iter): ... this.
8142 * grub-core/kern/i386/coreboot/mmap.c
8143 (grub_linuxbios_table_iterate: check_signature): Likewise.
8144 * grub-core/kern/parser.c (grub_parser_split_cmdline:
8145 check_varstate): Likewise. Mark inline.
8146 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
8147 an additional parameter.
8148 (find_long: fnd_long): Likewise. Pass two additional parameters.
8149 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
8150 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
8151 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
8152 Likewise. Rename to ...
8153 (grub_cmos_find_port_iter): ... this.
8154 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
8155 Rename to ...
8156 (find_rtc_iter): ... this.
8157
8158 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
8159 function directly into the function body, since it is only called
8160 once.
8161
8162 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
8163
8164 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
8165 __attribute__ ((unused)).
8166 * grub-core/video/bochs.c (find_card): Likewise.
8167 * grub-core/video/cirrus.c (find_card): Likewise.
8168 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
8169 * grub-core/video/sis315pro.c (find_card): Likewise.
8170 * grub-core/video/sm712.c (find_card): Likewise.
8171
8172 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8173
8174 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
8175 Fixes Savannah bug #37821.
8176
8177 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8178
8179 Apply program name transformations at build-time rather than at
8180 run-time. Fixes Debian bug #696465.
8181
8182 * acinclude.m4 (grub_TRANSFORM): New macro.
8183 * configure.ac: Create output variables with transformed names for
8184 most programs.
8185 * util/bash-completion.d/grub-completion.bash.in: Use
8186 pre-transformed variables for program names.
8187 * util/grub-install.in: Likewise.
8188 * util/grub-kbdcomp.in: Likewise.
8189 * util/grub-mkconfig.in: Likewise.
8190 * util/grub-mkconfig_lib.in: Likewise.
8191 * util/grub-mknetdir.in: Likewise.
8192 * util/grub-mkrescue.in: Likewise.
8193 * util/grub-mkstandalone.in: Likewise.
8194 * util/grub-reboot.in: Likewise.
8195 * util/grub-set-default.in: Likewise.
8196 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8197 * tests/util/grub-shell-tester.in: Remove unused assignment.
8198 * tests/util/grub-shell.in: Likewise.
8199 * util/grub.d/00_header.in: Likewise.
8200
8201 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8202
8203 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
8204
8205 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
8206 HAVE_RAW_DECL_GETS.
8207 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
8208
8209 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
8210
8211 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
8212 Reported by: Eriks Latosheks <foresterlv>.
8213
8214 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8215
8216 * docs/grub.texi (Network): Update instructions on generating netboot
8217 image.
8218
8219 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8220
8221 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
8222 around device name if necessarry.
8223
8224 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8225
8226 * util/grub-install.in: Follow the symbolic link parameter added
8227 to the file command.
8228
8229 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
8230
8231 * util/grub-install.in: Remove stale TODO.
8232
8233 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8234
8235 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
8236 dynamic allocation for the bootpath buffer.
8237
8238 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
8239
8240 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
8241 window too small.
8242
8243 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8244
8245 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
8246 argument rather than font name. All users updated.
8247 (grub_gfxterm_set_window): Likewise.
8248
8249 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
8250
8251 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
8252 from working.
8253
8254 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8255
8256 * util/getroot.c (convert_system_partition_to_system_disk): Support
8257 nbd disks.
8258
8259 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8260
8261 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
8262 infinite loop on corrupted FS.
8263
8264 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8265
8266 Fix big-endian mtime.
8267
8268 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
8269 together sec and usec.
8270 (grub_ufs_dir): Use correct byteswapping for UFS time.
8271
8272 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8273
8274 Support big-endian UFS1.
8275
8276 * Makefile.util.def (libgrubmods): Add ufs_be.c
8277 * grub-core/Makefile.core.def (ufs1_be): New module.
8278 * grub-core/fs/ufs_be.c: New file.
8279 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
8280 the file.
8281
8282 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
8283
8284 * include/grub/types.h: Fix functionality unaffecting typo in
8285 GRUB_TARGET_WORDSIZE conditional macro.
8286
8287 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8288
8289 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
8290
8291 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
8292
8293 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
8294 that /netbsd appears first (when it exists).
8295
8296 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
8297
8298 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
8299 Fixes Savannah bug #37558.
8300
8301 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
8302
8303 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
8304 description of extract_entries_configfile.
8305
8306 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
8307
8308 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
8309 preferred_address.
8310 (grub_cmd_linux): Likewise.
8311 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
8312 preferred_lifetime. Update all users.
8313
8314 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8315
8316 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
8317 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
8318
8319 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8320
8321 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
8322 errors from grub-probe to /dev/null, not stdout.
8323
8324 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
8325
8326 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
8327 sector 1.
8328
8329 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
8330
8331 * util/grub-install.in: Make the error message if $source_dir
8332 doesn't exist more useful.
8333
8334 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
8335
8336 Fix grub-emu build on FreeBSD.
8337
8338 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
8339 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
8340 headers on Linux.
8341 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
8342 implementation is currently Linux-specific.
8343 * util/getroot.c (exec_pipe): Define only on Linux or when either
8344 libzfs or libnvpair is unavailable.
8345 (find_root_devices_from_poolname): Remove unused path variable.
8346
8347 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8348
8349 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
8350 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
8351 should fit before end == 63.
8352
8353 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8354
8355 * util/grub-setup.c (write_rootdev): Remove unused core_img
8356 parameter. Update all callers.
8357 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
8358 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
8359 GRUB_SETUP_BIOS.
8360
8361 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8362
8363 * util/grub-mkconfig_lib.in (grub_tab): New variable.
8364 (grub_add_tab): New function.
8365 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
8366 * util/grub.d/10_illumos.in: Likewise.
8367 * util/grub.d/10_kfreebsd.in: Likewise.
8368 * util/grub.d/10_linux.in: Likewise.
8369 * util/grub.d/10_netbsd.in: Likewise.
8370 * util/grub.d/10_windows.in: Likewise.
8371 * util/grub.d/10_xnu.in: Likewise.
8372 * util/grub.d/20_linux_xen.in: Likewise.
8373 * util/grub.d/30_os-prober.in: Likewise.
8374
8375 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8376
8377 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8378 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
8379 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
8380 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
8381 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
8382 ieee1275-nocursor.
8383 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
8384 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
8385
8386 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8387
8388 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
8389 le-conversion.
8390 Reported by: BURETTE, Bernard.
8391
8392 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
8393
8394 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
8395 from comment.
8396
8397 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
8398
8399 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
8400 IEEE1275 machines. Fixes powerpc-emu compilation.
8401 * include/grub/terminfo.h: Likewise.
8402
8403 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8404
8405 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
8406 a const pointer.
8407 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
8408 const pointer.
8409 (efiemu_set_variable): Make vendor_guid a const pointer.
8410
8411 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8412
8413 Don't require grub-mkconfig_lib to generate manpages for programs.
8414
8415 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
8416 dependencies, don't add grub-mkconfig_lib.
8417 (program): Pass empty adddeps.
8418 (script): Pass grub-mkconfig_lib as adddeps.
8419
8420 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
8421
8422 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
8423 * util/getroot.c (grub_find_device): Likewise.
8424 (get_mdadm_uuid): Likewise.
8425 (grub_util_is_imsm): Likewise.
8426 (grub_util_pull_device): Likewise.
8427 * util/grub-probe.c (probe): Likewise.
8428
8429 2012-09-10 Benoit Gschwind <gschwind>
8430
8431 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
8432 (devs): Add devpath_8.
8433
8434 2012-09-08 Peter Jones <pjones@redhat.com>
8435
8436 * grub-core/Makefile.core.def (efifwsetup): New module.
8437 * grub-core/commands/efi/efifwsetup.c: New file.
8438 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
8439 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
8440 New define.
8441 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
8442
8443 2012-09-05 Jiri Slaby <jslaby@suse.cz>
8444
8445 * configure.ac: Add SuSe path.
8446
8447 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8448
8449 * NEWS: Fix typo.
8450
8451 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8452
8453 * util/import_gcry.py: Sort cipher_files, to make build system
8454 generation more deterministic.
8455
8456 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8457
8458 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
8459 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
8460 (grub_set_datetime): Likewise.
8461
8462 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8463
8464 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
8465 warnings.
8466
8467 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8468
8469 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
8470
8471 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8472
8473 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
8474
8475 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8476
8477 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
8478 required for checkouts from bzr, but it may be useful for users or
8479 distributors wishing to update translations against a tarball
8480 distribution, and it can be helpful for the tarball to be a superset
8481 of what's in bzr.
8482
8483 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8484
8485 * Makefile.am (EXTRA_DIST): Add
8486 grub-core/tests/boot/linux.init-mips.S,
8487 grub-core/tests/boot/linux.init-ppc.S, and
8488 grub-core/tests/boot/linux-ppc.cfg.
8489
8490 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8491
8492 * grub-core/mmap/mips/loongson: Remove empty directory.
8493
8494 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8495
8496 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
8497 gone.
8498
8499 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8500
8501 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
8502 grub-sparc64-setup.
8503
8504 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
8505
8506 * configure.ac: Strengthen the test for working -nostdinc -isystem.
8507
8508 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8509
8510 * po/POTFILES.in: Regenerated.
8511
8512 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8513
8514 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
8515 (NetBSD): New subsection.
8516
8517 2012-07-22 Ales Nesrsta <starous@volny.cz>
8518
8519 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
8520 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
8521
8522 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8523
8524 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
8525 * util/grub.d/10_hurd.in: Add missing quoting.
8526 * util/grub.d/10_illumos.in: Likewise.
8527 * util/grub.d/10_kfreebsd.in: Likewise.
8528 * util/grub.d/10_linux.in: Likewise.
8529 * util/grub.d/20_linux_xen.in: Likewise.
8530
8531 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8532
8533 New command `lsefi'.
8534
8535 * grub-core/Makefile.core.def (lsefi): New module.
8536 * grub-core/commands/efi/lsefi.c: New file.
8537 * include/grub/efi/api.h: Add more GUIDs.
8538
8539 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8540
8541 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
8542 (grub_bsd_elf32_hook): Likewise.
8543 (grub_bsd_elf64_size_hook): Likewise.
8544 (grub_bsd_elf64_hook): Likewise.
8545 (grub_bsd_load_elf): Likewise.
8546
8547 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8548
8549 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
8550 if hash function is unavailable.
8551 (dec_stream_header): Likewise.
8552
8553 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8554
8555 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
8556 filter state.
8557
8558 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8559
8560 Fix coreboot compilation.
8561
8562 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
8563 (grub_vga_text_init_real): ... this.
8564 (grub_vga_text_fini): Rename to ...
8565 (grub_vga_text_fini_real): ... this.
8566
8567 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
8568
8569 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
8570
8571 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8572
8573 * grub-core/lib/legacy_parse.c: Support clear and testload.
8574
8575 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8576
8577 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
8578
8579 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8580
8581 * grub-core/fs/ext2.c: Experimental support for 64-bit.
8582
8583 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8584
8585 * grub-core/net/tftp.c (ack): Fix endianness problem.
8586 (tftp_receive): Likewise.
8587 Reported by: Michael Davidsaver.
8588
8589 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8590
8591 * gentpl.py: Make mans depend on grub-mkconfig_lib.
8592
8593 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8594
8595 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
8596 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
8597 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
8598
8599 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8600
8601 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
8602 efi_mmap_size.
8603 Reported by: Stuart Hayes.
8604
8605 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
8606
8607 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
8608
8609 * grub-core/Makefile.core.def (mda_text): New module.
8610 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
8611 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
8612 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
8613 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
8614 here.
8615 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
8616 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
8617 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
8618 here.
8619 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
8620 to ..
8621 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
8622 ... here
8623 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
8624 here.
8625 * grub-core/term/i386/vga_common.c: Removed.
8626 * include/grub/i386/vga_common.h: Likewise.
8627 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
8628 (grub_vga_cr_bw_read): Likewise.
8629 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
8630 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
8631 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
8632 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
8633 grub_vga_cr_read/grub_vga_cr_write.
8634 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
8635
8636 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8637
8638 * configure.ac: Bump version to 2.00.
8639 * grub-core/normal/main.c (features): Add feature_200_final.
8640
8641 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8642 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
8643
8644 * NEWS: Fix unclarity and language mistakes.
8645
8646 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8647
8648 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
8649 additional size to 3 pages.
8650 Reported by: Stuart Hayes.
8651
8652 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8653
8654 * NEWS: Add 2.00 entry.
8655
8656 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8657
8658 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
8659 put explicit "/" for empty path.
8660 (wildcard_expand): Improve dprintf.
8661
8662 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8663
8664 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
8665 it's equal to currnode. This can happen with "" symlink.
8666
8667 2012-06-27 Yves Blusseau <blusseau@zetam.org>
8668
8669 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
8670 echo shell command by printf command.
8671
8672 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8673
8674 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
8675 the value returned by firmware is the maximal position, not diumension.
8676 (grub_terminfo_output_state): Use a more sane fallback.
8677
8678 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8679
8680 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
8681
8682 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8683
8684 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
8685 frequency to 150 MHz.
8686
8687 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8688
8689 Apple fixes.
8690
8691 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
8692 __APPLE_
8693 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
8694 definition.
8695 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
8696
8697 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8698
8699 Handle slash in HFS label.
8700
8701 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
8702 (grub_hfs_dir): Tanslate slash.
8703 (grub_hfs_label): Don't translate slash.
8704
8705 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8706
8707 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
8708 network protocol listing since it introduces problematic dependency on
8709 net module.
8710
8711 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8712
8713 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
8714
8715 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8716
8717 Init video early on yeeloong to avoid being rebooted by watchdog.
8718
8719 * grub-core/Makefile.am (gensm712): New target.
8720 (sm712_start.S): Likewise.
8721 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
8722 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
8723 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
8724 description.
8725 * include/grub/vga.h: Move registry definitions to...
8726 * include/grub/vgaregs.h: ... here.
8727
8728 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8729
8730 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
8731 signedness.
8732
8733 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8734
8735 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
8736 platforms with firmware disk drivers in the core.
8737
8738 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8739
8740 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
8741 informative verbose message.
8742 (read_lv): Handle 64-bit segment size.
8743
8744 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8745
8746 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
8747
8748 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8749
8750 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
8751 character but still remove trainling spaces.
8752 (grub_fat_label): Ignore archive flag.
8753
8754 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8755
8756 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
8757 cast between linux_kernel_header and linux_kernel_params.
8758
8759 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8760
8761 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
8762 type for size.
8763 (grub_raid6_recover_func_t): Likewise.
8764 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
8765 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
8766
8767 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8768
8769 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
8770
8771 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
8772
8773 Fix overflow.
8774
8775 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
8776 [__NetBSD__]: Add explicit cast before bitshift.
8777
8778 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8779
8780 * configure.ac: Bump to 2.00~rc1.
8781
8782 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8783
8784 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
8785 half of $a0.
8786
8787 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8788 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
8789
8790 * docs/grub.texi: Fix search syntax.
8791 (Multi-boot manual config): Put msdos rather than GPT example.
8792 Grammar corrections.
8793
8794 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8795
8796 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
8797
8798 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8799
8800 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
8801
8802 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8803
8804 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
8805 message on double free. Put the value of magic in case of mismatch.
8806
8807 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8808
8809 Speed-up video on yeeloong.
8810
8811 * grub-core/video/sm712.c (framebuffer): Remove render_target and
8812 add cached_ptr.
8813 (grub_video_sm712_video_fini): Unmap cached_ptr.
8814 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
8815 (grub_video_sm712_set_active_render_target): Removed.
8816 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
8817 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
8818 sync caches.
8819
8820 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8821
8822 Avoid flushing the same line multiple times on loongson.
8823
8824 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
8825 Step in 32 bytes and not 1 byte.
8826 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
8827 Likewise.
8828
8829 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8830
8831 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
8832 subvolumes.
8833
8834 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8835
8836 Implement flow control for http.
8837
8838 * grub-core/net/http.c (parse_line): Handle response 206.
8839 (http_receive): Stall if too many packets are in the queue.
8840 (http_establish): Fix range header.
8841 (http_seek): Fix double free.
8842 (http_close): Likewise.
8843 (http_packets_pulled): New function.
8844 (grub_http_protocol): Set http_seek
8845 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
8846 (ack_real): Set window depending on i_stall.
8847 (grub_net_send_tcp_packet): Likewise.
8848 (grub_net_tcp_stall): New function.
8849 (grub_net_tcp_unstall): Likewise.
8850 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
8851 (grub_net_tcp_unstall): Likewise.
8852
8853 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8854
8855 * grub-core/net/tftp.c: Decrease stall to 50 packets.
8856
8857 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8858
8859 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
8860
8861 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8862
8863 * tests/util/grub-shell.in: Fix a typo.
8864
8865 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8866
8867 Implement flow control for tftp.
8868
8869 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
8870 packets but stop only if stop condition is satisfied.
8871 (grub_net_fs_read_real): Call packets_pulled after real read. Use
8872 `stall' instead of `eof' as stop condition.
8873 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
8874 (http_err): Likewise.
8875 * grub-core/net/tftp.c (ack): Replace the first argument with data
8876 instead of socket.
8877 (tftp_receive): Stall if too many packets are in wait queue.
8878 (tftp_packets_pulled): New function.
8879 (grub_tftp_protocol): Set packets_pulled.
8880 * include/grub/net.h (grub_net_packets): New field count.
8881 (grub_net_put_packet): Increment count.
8882 (grub_net_remove_packet): Likewise.
8883 (grub_net_app_protocol): New field `packets_pulled'.
8884 (grub_net): New field `stall'.
8885
8886 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8887
8888 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
8889 sync part to handle them.
8890
8891 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8892
8893 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
8894 * grub-core/net/drivers/ieee1275/ofnet.c
8895 (grub_ieee1275_net_config_real): Likewise.
8896
8897 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8898
8899 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
8900 the direct route for server/gateway.
8901
8902 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8903
8904 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
8905 IP address to server name since we may not hame the DNS.
8906
8907 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8908
8909 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
8910 freeing random buffer on failure.
8911 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
8912
8913 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8914
8915 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
8916
8917 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8918
8919 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
8920 reserved bytes.
8921 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
8922 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
8923 Handle malloc error correctly.
8924
8925 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8926
8927 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
8928 blocks.
8929
8930 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8931
8932 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
8933 increment.
8934
8935 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8936
8937 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
8938 none is explicitly specified.
8939
8940 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8941
8942 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
8943 while reallocating.
8944
8945 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8946
8947 Respect netmask from bootp/dhcp.
8948
8949 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
8950 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
8951 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
8952 into ...
8953 (grub_net_add_ipv4_local): ... this.
8954 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
8955 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
8956 (grub_net_add_ipv4_local): New proto.
8957
8958 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8959
8960 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
8961 determining EFI memory map size.
8962
8963 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8964
8965 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
8966
8967 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8968
8969 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
8970 when looking for partition separator.
8971
8972 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8973
8974 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
8975 Escape commas.
8976
8977 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8978
8979 Restructure FAT driver to avoid hook in label reading as it hits a
8980 GCC bug.
8981
8982 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
8983 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
8984 (grub_fat_iterate_dir): Split into ...
8985 (grub_fat_iterate_init): ... this, ...
8986 (grub_fat_iterate_fini): ... this, ...
8987 (grub_fat_iterate_dir_next): ... and this. All users updated.
8988
8989 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8990
8991 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
8992 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
8993 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8994 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
8995 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
8996 New fields last_key and last_key_time.
8997 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
8998 extended key-esc into extended key-extended key.
8999
9000 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9001
9002 Avoid unnecessary memcpy of whole video buffer.
9003
9004 * grub-core/video/fb/video_fb.c (dirty): New struct.
9005 (framebuffer): Add members current_dirty and previous_dirty.
9006 (dirty): New function.
9007 (grub_video_fb_fill_rect): Update dirty.
9008 (common_blitter): Likewise.
9009 (grub_video_fb_scroll): Likewise.
9010 (doublebuf_blit_update_screen): Copy only dirty part.
9011 (doublebuf_pageflipping_update_screen): Likewise.
9012 (grub_video_fb_doublebuf_blit_init): Init dirty.
9013 (doublebuf_pageflipping_init): Likewise.
9014 (grub_video_fb_setup): Likewise.
9015
9016 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9017
9018 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
9019 poll rate.
9020
9021 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9022
9023 Fix wildcard regexp dot and other special characters handling.
9024 Reported by: Robert Mabee.
9025
9026 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
9027 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
9028 (split_path): Trigger expansion on '?'.
9029 (unescape): New function.
9030 (wildcard_expand): Unescape parts copied without globbing.
9031 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
9032 (grub_script_arglist_to_argv): Don't unescape expansions.
9033
9034 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9035
9036 * include/grub/net.h (grub_net_card): New member txbufsize.
9037 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
9038 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9039 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
9040 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
9041 txbufsize.
9042 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
9043 compatible property to check for macs. Set
9044 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9045 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
9046 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
9047 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
9048 (send_card_buffer): Use txbuf.
9049 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
9050 nested function out of the parent while on it.
9051
9052 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9053
9054 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
9055 presence check.
9056 (grub_ieee1275_net_config_real): Fix config pointer.
9057
9058 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9059
9060 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
9061 filename parsing to non-block devices.
9062
9063 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9064
9065 * grub-core/kern/device.c (grub_device_open): Remove dead code.
9066
9067 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9068
9069 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
9070 All users updated.
9071
9072 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9073
9074 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
9075 UUID search command even if hints probing failed.
9076
9077 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9078
9079 * po/POTFILES.in: Regenerated.
9080
9081 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
9082
9083 Speed-up video on fuloong.
9084
9085 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
9086 New function.
9087 (grub_pci_device_unmap_range): Handle non-cached address.
9088 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
9089 add direct_ptr.
9090 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
9091 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
9092 (grub_video_sis315pro_set_active_render_target): Removed.
9093 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
9094 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
9095 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
9096 sync caches.
9097 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
9098 New proto.
9099
9100 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
9101
9102 * docs/grub.texi (Multi-boot manual config): New section.
9103
9104 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9105
9106 Avoid slow read-back from VRAM.
9107
9108 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
9109 Move from here ...
9110 * grub-core/video/fb/video_fb.c
9111 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
9112 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
9113 (front_target): Remove front_target. Add pages.
9114 (grub_video_fb_init): Skip setting front_pages.
9115 (grub_video_fb_fini): Likewise.
9116 (doublebuf_blit_update_screen): Use pages.
9117 (grub_video_fb_doublebuf_blit_init): Likewise.
9118 (doublebuf_pageflipping_init): Allocate offscreen buffer.
9119 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
9120 (grub_video_fb_setup): Prefer doublebuffing.
9121
9122 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9123
9124 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
9125 gzio.
9126
9127 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9128
9129 Add loongson tests.
9130
9131 * tests/util/grub-shell.in: Handle loongson.
9132 * tests/partmap_test.in: Add loongson to the list of platform using ATA
9133 drivers.
9134 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
9135 Reboot instead of shutdown if REBOOT is defined.
9136
9137 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9138
9139 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
9140 sized ports since unlike on real hardware qemu supports only 32-bit
9141 regs.
9142
9143 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9144
9145 * Makefile.util.def (grub-mkrescue): Enable on loongson.
9146 * util/grub-mkrescue.in: Handle loongson.
9147
9148 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
9149
9150 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
9151 Set is_part appropriately.
9152 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
9153 names. Canonicalize partition without full disk.
9154
9155 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9156
9157 Revert usb-quiesce since it's wrong.
9158
9159 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
9160 (grub_ofdisk_init): Don't do quiesce.
9161
9162 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9163
9164 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
9165 PowerMac workaround to Xserves as well.
9166 Information supplied by: Benjamin Herrenschmidt.
9167
9168 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9169
9170 Don't assume that beginning address is also the entry point on ppc.
9171
9172 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
9173 (grub_linux_boot): Use linux_entry.
9174 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
9175 (grub_linux_load64): Likewise.
9176
9177 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9178
9179 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
9180
9181 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9182
9183 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
9184 needlessly lose the console.
9185
9186 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9187
9188 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
9189 space.
9190
9191 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9192
9193 Remove non-functional EFI grub_get_rtc. Put a better fatal message
9194 than current grub_get_rtc() not implemented when booted with
9195 coreboot without TSC.
9196
9197 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
9198 Add machine/time.h to kernel headers on loongson.
9199 * grub-core/Makefile.core.def (kernel): Remove
9200 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
9201 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
9202 (grub_get_rtc): Likewise.
9203 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
9204 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
9205 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
9206 * grub-core/kern/i386/tsc.c (grub_tsc_init)
9207 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
9208 rather than installing known non-working time source.
9209 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
9210 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
9211 * include/grub/time.h: Don't include machine/time.h.
9212 * include/grub/efi/time.h: Removed.
9213 * include/grub/i386/efi/time.h: Likewise.
9214 * include/grub/i386/ieee1275/time.h: Likewise.
9215 * include/grub/powerpc/ieee1275/time.h: Likewise.
9216 * include/grub/sparc64/ieee1275/time.h: Likewise.
9217 * include/grub/x86_64/efi/time.h: Likewise.
9218
9219 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9220
9221 Remove dot on i and j when combining with above diacritics.
9222
9223 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
9224 value.
9225 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
9226 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
9227 with dotless variants when any combining above is present.
9228
9229 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9230
9231 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
9232 text and not binary.
9233
9234 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9235
9236 Stop polling as soon as we have the packet we were waiting for.
9237
9238 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
9239 All users updated.
9240 * grub-core/net/arp.c (have_pending): New var.
9241 (pending_req): Likewise.
9242 (grub_net_arp_send_request): Fill pending_req and use have_pending as
9243 stop indicator.
9244 (grub_net_arp_receive): Set have_pending.
9245 * grub-core/net/dns.c (recv_data): New field stop.
9246 (recv_hook): Set stop.
9247 (grub_net_dns_lookup): Init stop and use as stop condition.
9248 * grub-core/net/http.c (http_establish): Use headers_recv as stop
9249 condition.
9250 * grub-core/net/net.c (grub_net_poll_cards): New argument
9251 stop_condition. Stop when it goes true.
9252 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
9253 indicator.
9254 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
9255
9256 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9257
9258 Keep TX and RX buffers on EFI rather than always allocate new ones.
9259
9260 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
9261 card. All users updated.
9262 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
9263 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
9264 (get_card_packet): Likewise.
9265 (grub_efinet_findcards): Init new fields.
9266
9267 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9268
9269 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
9270 compilation error on sparc64.
9271
9272 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9273
9274 Use ITC on IA64 rather than broken routine based on daytime.
9275
9276 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
9277 ia64.
9278 (grub_get_rtc) [__ia64__]: Likewise.
9279 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
9280 (get_itc): New function.
9281 (grub_rtc_get_time_ms): Likewise.
9282 (grub_machine_init): Calibrate ITC.
9283 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
9284 Keep only on non-ia64. Don't export since it's broken and used only
9285 if TSC is unavailable.
9286
9287 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9288
9289 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
9290 even if it's used.
9291 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
9292 Skip if parent is unused.
9293
9294 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9295
9296 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
9297
9298 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9299
9300 Fix wildcard escaping.
9301
9302 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
9303 * grub-core/script/execute.c (wildcard_escape): .. to here.
9304 Don't escape dot.
9305 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
9306 * grub-core/script/execute.c (wildcard_unescape): .. to here.
9307 Don't escape dot.
9308 * grub-core/script/execute.c (gettext_append): Always escape.
9309 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
9310 * grub-core/script/yylex.l: Don't cut away the escaping.
9311 * tests/grub_script_echo1.in: Add tests with wildcard.
9312
9313 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9314
9315 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
9316 (ftdi_hw_configure): Likewise.
9317 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
9318 define.
9319 (real_config): Handle 1.5 stop bits.
9320 (pl2303_hw_configure): Likewise.
9321
9322 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9323
9324 * Makefile.am: Add ppc linux bootcheck.
9325 * grub-core/tests/boot/linux-ppc.cfg: New file.
9326 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
9327
9328 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9329
9330 * tests/grub_script_expansion.in: Skip network protocols.
9331
9332 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9333
9334 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
9335
9336 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9337
9338 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
9339 --rom-directory.
9340 Add -graft-points.
9341
9342 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9343
9344 ESCC serial driver for conducting sautomated tests in qemu.
9345 Not tested on real hardware.
9346
9347 * include/grub/serial.h (grub_serial_port): New field escc_desc.
9348 * grub-core/term/ieee1275/escc.c: New file.
9349 * grub-core/Makefile.core.def (escc): New module.
9350
9351 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9352
9353 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
9354 invalid on error.
9355 (serial_hw_fetch): Don't read invalid handle.
9356 (serial_hw_put): Don't write into invalid handle.
9357
9358 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9359
9360 Add a 1.5 stop bits value.
9361
9362 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
9363 * include/grub/serial.h (grub_serial_stop_bits_t): Add
9364 GRUB_SERIAL_STOP_BITS_1_5.
9365
9366 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9367
9368 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
9369 value rather than let it uninited.
9370
9371 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9372
9373 * grub-core/commands/wildcard.c (+check_file): New function.
9374 (wildcard_expand): Don't expand to non-existing files, expand with
9375 suffix and not attempt to expand if not needed.
9376
9377 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9378
9379 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
9380 out of partitions containing other partitions.
9381
9382 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9383
9384 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
9385 on some qemu versions with GRUB.
9386
9387 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
9388 define.
9389 (grub_openbsd_bootarg_pcibios): New struct.
9390 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
9391 Add PCIINFO.
9392
9393 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9394
9395 * tests/util/grub-shell.in: Trim firmware output on EFI.
9396
9397 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9398
9399 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
9400 and coreboot since it's already in kernel.
9401
9402 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9403
9404 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
9405 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
9406 to here. New return value start. All users updated.
9407 Recursively scan linear mappings.
9408 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
9409 proto.
9410 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
9411 Use grub_util_get_dm_node_linear_info.
9412 * util/getroot.c (convert_system_partition_to_system_disk): Use
9413 grub_util_info rather than grub_dprintf.
9414 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
9415
9416 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9417
9418 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
9419
9420 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
9421 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
9422
9423 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9424
9425 * include/grub/types.h (grub_set_unaligned64): New function.
9426 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
9427 (setup): Likewise.
9428
9429 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9430
9431 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
9432 (grub_ofdisk_fini): Quiesce USB devices.
9433
9434 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9435
9436 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
9437 caches.
9438
9439 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9440
9441 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
9442
9443 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9444
9445 * grub-core/disk/pata.c (grub_pata_pio_read)
9446 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
9447 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
9448
9449 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9450
9451 Extend automated tests to qemu-mips.
9452
9453 * Makefile.am: reorganise tests and enable qemu-mips.
9454 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
9455 * grub-core/tests/boot/linux.init-mips.S: New file.
9456 * tests/partmap_test.in: Handle ata0 disks.
9457 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
9458 non-pc i386.
9459
9460 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9461
9462 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
9463 ia64.
9464 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
9465 quotes while on it.
9466
9467 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9468
9469 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
9470 (grub_halt): Likewise.
9471 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
9472
9473 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9474
9475 * grub-core/term/serial.c (grub_serial_register)
9476 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
9477 the behaviour in line with x86 platforms.
9478
9479 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9480
9481 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
9482 (grub_ata_strncpy): Likewise.
9483 (grub_ata_identify): Add missing byteswaps.
9484
9485 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9486
9487 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
9488 byte-swap.
9489 (screen_read_char): Likewise.
9490 (grub_vga_text_cls): Likewise.
9491
9492 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9493
9494 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
9495 filenames.
9496 (make_file_path): Likewise.
9497
9498 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9499
9500 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
9501 machines.
9502 Tested by: Paulo Flabiano Smorigo.
9503 Crucial information about API supplied by: Coleen <Last name unknown>.
9504 Reviewed by: Coleen <Last name unknown>.
9505
9506 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9507
9508 * util/grub-mkimage.c: Disable -Wcast-align.
9509
9510 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9511
9512 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
9513 as they are fatal.
9514
9515 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9516
9517 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
9518
9519 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9520
9521 * util/grub-probe.c (escape_of_path): Fix double free.
9522
9523 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9524
9525 * grub-core/commands/videoinfo.c (hook): Show pitch.
9526
9527 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9528
9529 * util/grub.d/20_linux_xen.in: Skip xen-syms.
9530
9531 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9532
9533 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
9534 (probe): Add ieee1275 to OFW devices.
9535
9536 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9537
9538 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
9539
9540 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9541
9542 Handle IBM OFW path.
9543
9544 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
9545 available.
9546 (of_path_of_scsi): Handle vdevice.
9547
9548 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9549
9550 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
9551 Allocate in multiples of 16 to avoid adding a few bytes free region the
9552 windows bugs upon.
9553
9554 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9555
9556 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
9557 Allocate in multiples of 16 to avoid adding a few bytes free region the
9558 windows bugs upon.
9559 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
9560
9561 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9562
9563 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
9564 resolutions.
9565 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
9566 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
9567
9568 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
9569
9570 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
9571
9572 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9573
9574 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
9575 resulted in \\ at the end of the line.
9576
9577 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9578
9579 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
9580 (grub_parser_cmdline_state): Likewise.
9581 (grub_parser_split_cmdline): Likewise.
9582
9583 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9584
9585 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
9586 /dev/root and /dev/dm-*.
9587
9588 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9589
9590 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
9591 fix partially stale display.
9592
9593 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9594
9595 * grub-core/normal/menu_entry.c (backward_char): Use right line for
9596 substraction.
9597
9598 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9599
9600 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
9601 Fix MBR remapping workaround.
9602 (grub_util_biosdisk_read) [__linux__]: Likewise.
9603
9604 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
9605
9606 * util/grub-install.in: Check for ieee1275 and not ieee1276.
9607
9608 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9609
9610 * configure.ac: Bump to beta6.
9611
9612 2012-05-31 Christer Weinigel <christer@weinigel.se>
9613
9614 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
9615
9616 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9617
9618 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
9619 (grub_cmd_linux): Likewise.
9620
9621 2012-05-31 Christer Weinigel <christer@weinigel.se>
9622
9623 Fix EHCI low-speed.
9624
9625 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
9626 (GRUB_EHCI_MULT_TWO): Likewise.
9627 (GRUB_EHCI_MULT_THREE): Likewise.
9628 (GRUB_EHCI_CMASK_MASK): New enum value.
9629 (GRUB_EHCI_SMASK_MASK): Likewise.
9630 (GRUB_EHCI_CMASK_OFF): Likewise.
9631 (GRUB_EHCI_SMASK_OFF): Likewise.
9632 (grub_ehci_pci_iter): Enable periodic schedule.
9633 (grub_ehci_parse_notrun): Likewise.
9634 (grub_ehci_restore_hw): Likewise.
9635 (grub_ehci_setup_qh): Set flags for low speed transfers.
9636 (grub_ehci_find_qh): Use periodic list for low speed.
9637 (grub_ehci_setup_transfer): Check periodic queue as well.
9638 (grub_ehci_check_transfer): Likewise.
9639 (grub_ehci_cancel_transfer): Cancel periodic transfer.
9640
9641 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
9642
9643 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
9644 parameter is used.
9645
9646 2012-05-31 Peter Jones <pjones@redhat.com>
9647
9648 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
9649 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
9650 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
9651
9652 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9653
9654 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
9655 uninited variable. Allocate at least setup_sects.
9656
9657 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9658
9659 Fix handling of EFI with big memory maps.
9660
9661 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
9662 (real_mode_mem): Likewise.
9663 (real_mode_target): Likewise.
9664 (real_mode_pages): Likewise.
9665 (prot_mode_pages): Likewise.
9666 (linux_params): New var.
9667 (linux_cmdline): Likewise.
9668 (free_pages): Don't set real mode variables.
9669 (allocate_pages): Don't allocate real mode memory.
9670 (grub_e820_add_region): Remove the limit.
9671 (grub_linux_boot): Allocate and copy real mode memory.
9672 (grub_linux_unload): Free linux_cmdline.
9673 (grub_cmd_linux): Use temporary storage for parameters.
9674 (grub_cmd_initrd): Likewise.
9675 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
9676 (linux_kernel_params): Make it 1K big.
9677
9678 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9679
9680 * Makefile.util.def: Remove -Wno-format.
9681 * grub-core/Makefile.core.def: Likewise.
9682
9683 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9684
9685 * tests/cmp_unit_test.c: Add missing failure message.
9686 * tests/example_unit_test.c: Likewise.
9687 * tests/printf_unit_test.c: Likewise.
9688
9689 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9690
9691 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
9692 relaxation of protective MBR requirements.
9693
9694 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9695
9696 * configure.ac: Add condition for COND_HOST_XNU.
9697 * Makefile.util.def (10_xnu): New script.
9698 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
9699
9700 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9701
9702 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
9703 objconv bug.
9704
9705 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9706
9707 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
9708 Binary on other platforms stays identical.
9709
9710 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9711
9712 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
9713 Apple.
9714
9715 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9716
9717 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
9718
9719 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9720
9721 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
9722 rather than defining size_t ourselves to avoid conflict.
9723
9724 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9725
9726 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
9727 initialisation to avoid __bzero reference.
9728
9729 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9730
9731 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
9732 version.
9733 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
9734 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
9735 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
9736 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
9737 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
9738
9739 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9740
9741 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
9742 * grub-core/kern/misc.c: Likewise.
9743 * grub-core/loader/i386/xnu.c: Likewise.
9744 * include/grub/i386/tsc.h: Likewise.
9745 * include/grub/symbol.h: Likewise.
9746
9747 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9748
9749 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
9750 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
9751 on older compiler.
9752
9753 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9754
9755 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
9756 Implement Apple flavour.
9757 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
9758
9759 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9760
9761 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
9762 (memmove) [__APPLE__]: Likewise.
9763 (memcpy) [__APPLE__]: Likewise.
9764 (memset) [__APPLE__]: Likewise.
9765 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
9766 (memmove) [__APPLE__]: Likewise.
9767 (memcpy) [__APPLE__]: Likewise.
9768 (memset) [__APPLE__]: Likewise.
9769
9770 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9771
9772 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
9773 dependency discard.
9774
9775 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9776
9777 * grub-core/normal/main.c (read_config_file): Provide config_file and
9778 config_directory.
9779 * util/grub.d/41_custom.in: Use config_directoy when available.
9780
9781 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9782
9783 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
9784 (grub_bfs_dir): Likewise.
9785
9786 2012-05-27 Peter Jones <pjones@redhat.com>
9787
9788 The old code gives arguments to a printf function which can't work
9789 correctly, and the compiler complains.
9790
9791 * grub-core/tests/example_functional_test.c (example_test): Add
9792 missing text.
9793 * grub-core/tests/lib/test.c (add_failure): Rewrite.
9794 * include/grub/test.h (grub_test_assert_helper): New declaration.
9795 (grub_test_assert): Use grub_test_assert_helper.
9796
9797 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9798
9799 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
9800 (exfctest): ... this to avoid overlong filenames.
9801 All users updated.
9802
9803 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9804
9805 Handle "." and ".." on squashfs.
9806
9807 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
9808 Make inode numbers into stack.
9809 (grub_squash_read_symlink): Use stack.
9810 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
9811 (make_root_node): Fill stack.
9812 (grub_squash_open): Use stack.
9813
9814 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9815
9816 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
9817 freeing.
9818
9819 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9820
9821 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
9822 stderr on test calls.
9823
9824 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9825
9826 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
9827
9828 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9829
9830 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
9831
9832 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9833
9834 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
9835 "..".
9836
9837 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9838
9839 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
9840 (grub_hfsplus_iterate_dir): Add "." and "..".
9841
9842 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9843
9844 * grub-core/fs/cpio.c (canonicalize): Handle "..".
9845 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
9846
9847 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9848
9849 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
9850 (find_path): Handle "." and "..".
9851
9852 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9853
9854 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
9855 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
9856 (grub_affs_iterate_dir): Handle hardlinks.
9857
9858 2012-05-26 Matthew Garrett <mjg@redhat.com>
9859
9860 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
9861 (grub_efi_console_fini): Likewise.
9862 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
9863 (grub_video_gop_fill_mode_info): Rename to ...
9864 (grub_video_gop_fill_real_mode_info): ... this.
9865 (grub_video_gop_fill_mode_info): New function.
9866 (grub_video_gop_setup): Setup double framebuffer.
9867 (grub_video_gop_get_info_and_fini): Use original framebuffer.
9868 Free offscreen.
9869 (grub_video_gop_swap_buffers): Copy framebuffer.
9870 (grub_video_gop_fini): Free offscreen buffer.
9871 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
9872 New enum.
9873 (grub_efi_gop_blt_pixel): New struct.
9874
9875 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
9876
9877 * gentpl.py: Remove error disabling for objconv.
9878
9879 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
9880
9881 * configure.ac: Remove -Wunitialized as it's not available on older
9882 compilers.
9883
9884 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
9885
9886 Fix extent overflow comparator.
9887
9888 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
9889 (grub_hfsplus_read_block): Set type.
9890 (grub_hfsplus_cmp_extkey): Compare type.
9891
9892 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
9893
9894 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
9895
9896 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
9897
9898 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
9899 than 0.
9900
9901 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
9902
9903 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
9904 (dejavu_bold_14.pf2): New target.
9905
9906 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
9907
9908 * configure.ac: Fix djvu font detection.
9909
9910 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9911
9912 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
9913 ext* instead of ext2.
9914
9915 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9916
9917 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
9918 name with \0.
9919
9920 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
9921
9922 * docs/grub-dev.texi: Remove dot from .png.
9923
9924 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
9925
9926 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
9927 protective entry in any slot.
9928 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
9929 if protective entry is found in any slot.
9930
9931 Protective entry in non-first slot make no sense but is a widespread
9932 brain damage.
9933
9934 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
9935
9936 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
9937
9938 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
9939
9940 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
9941 with old reiserfs.
9942 (grub_reiserfs_open): Don't free root.
9943
9944 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
9945
9946 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
9947 after freeing for safety.
9948
9949 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9950
9951 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
9952 Reported by: Jordan Uggla.
9953
9954 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
9955
9956 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
9957 actual implementation. Specifically, clarify that the grub menu will
9958 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
9959 passed.
9960
9961 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
9962
9963 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
9964 of r0.
9965
9966 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9967
9968 Remove unjustified hard dependency of normal.mod on gfxterm.
9969
9970 * include/grub/term.h (grub_term_output): New member fullscreen.
9971 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
9972 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
9973 (grub_gfxterm): Set .fullscreen.
9974 * grub-core/normal/menu.c (menu_init): Use fullscreen.
9975 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
9976
9977 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9978
9979 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
9980 mentioning possible problems with non-ASCII (non-compliant) ISOs.
9981 Mention case-insensitive AFFS, SFS and JFS.
9982
9983 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9984
9985 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
9986
9987 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9988
9989 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
9990 a bad FS.
9991
9992 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
9993
9994 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
9995 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
9996
9997 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
9998
9999 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
10000 (grub_jfs_mount): Fill caseins.
10001 (grub_jfs_find_file): Respect caseins.
10002
10003 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10004
10005 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
10006 through UTF-16.
10007
10008 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10009
10010 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
10011 New argument origpath. All users updated.
10012
10013 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10014
10015 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
10016 (read_attr): Ensure that we read start of possibly compressed block.
10017
10018 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10019
10020 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
10021 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
10022 All users updated.
10023
10024 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10025
10026 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
10027 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
10028 (dejavu.pf2): Replace with ...
10029 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
10030 this.
10031
10032 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10033
10034 * util/grub.d/20_linux_xen.in: Add missing line.
10035
10036 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10037
10038 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
10039 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
10040 (grub_utf16_to_utf8): Likewise.
10041
10042 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10043
10044 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
10045 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
10046 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
10047 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
10048 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
10049 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
10050
10051 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10052
10053 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10054 a bad FS.
10055
10056 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10057
10058 * grub-core/fs/udf.c (read_string): Bail out on size=0.
10059 (grub_udf_read_symlink): Handle read_string failure.
10060
10061 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10062
10063 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
10064 comment.
10065
10066 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10067
10068 Fix handling of UDF symlinks.
10069
10070 * grub-core/fs/udf.c (read_string): New argument outbuf.
10071 All users updated.
10072 (grub_ufs_read_symlink): Rename to ...
10073 (grub_udf_read_symlink): ... this. All users updated.
10074 Handle symlinks with more than one component.
10075
10076 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10077
10078 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
10079 symlinks. Replace leading colon with a slash.
10080
10081 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10082
10083 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
10084 filename.
10085
10086 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10087
10088 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
10089 match in inner node.
10090
10091 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10092
10093 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
10094 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
10095 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
10096 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
10097 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
10098 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
10099 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
10100 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
10101 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
10102
10103 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10104
10105 Use grub-probe and not cmp to check that disk is empty.
10106
10107 * util/grub-install.in: Use grub-probe for zero-check.
10108 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
10109 (probe): Handle PRINT_ZERO_CHECK.
10110 (argp_parser): Handle -t zero_check.
10111
10112 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10113
10114 Flush block cache on adding disk to device map.
10115
10116 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
10117 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
10118 adding.
10119 (read_device_map): Likewise.
10120 (open_device): Flush on opening.
10121
10122 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10123
10124 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
10125 (handle_symlink): Fix off-by-one error.
10126 Canonicalize the target.
10127 (grub_cpio_dir): Canonicalize the name.
10128 Fix memory leak.
10129 Set directory.
10130 (grub_cpio_open): Canonicalize the name.
10131
10132 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10133
10134 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
10135 handling.
10136
10137 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10138
10139 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
10140 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
10141
10142 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10143
10144 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
10145 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
10146 All users updated.
10147
10148 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10149
10150 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
10151 counterpart.
10152
10153 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10154
10155 Fix UFS1 big file support.
10156
10157 * grub-core/fs/ufs.c (INODE): Removed.
10158 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
10159 64-bit.
10160 (INODE_MODE): Simplify.
10161 (grub_ufs_inode): Use uint64_t for size and not int64_t.
10162 (grub_ufs_lookup_symlink): Don't use INODE.
10163
10164 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10165
10166 Fix minixfs with non-power-of-two blocks since it's supported by minix.
10167
10168 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
10169 (grub_minix_data): Replace log_block_size with block_size.
10170 (grub_minix_read_file): Use block_size but avoid 64-bit division.
10171 (grub_minix_mount): Fill block_size.
10172
10173 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10174
10175 * configure.ac: Bump to beta5.
10176
10177 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10178
10179 Fix wrapped HFS+ handling.
10180
10181 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
10182 blocks_start. All users updated.
10183 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
10184 wrapping offset.
10185 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
10186
10187 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10188
10189 Fix long symlinks on reiserfs.
10190
10191 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
10192 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
10193 (grub_reiserfs_iterate_dir): Save size for non-directories.
10194 (grub_reiserfs_open): Don't reread stat block as we already know the
10195 size.
10196 (grub_reiserfs_read): Split into...
10197 (grub_reiserfs_read_real): ... and ...
10198 (grub_reiserfs_read): ...this.
10199
10200 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10201
10202 Fix non-indexed JFS.
10203
10204 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
10205 (grub_jfs_data): New field namecomponentlen.
10206 (grub_jfs_mount): Fill namecomponentlen.
10207 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
10208
10209 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10210
10211 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
10212 * tests/grub_script_echo1.in: Add tests.
10213
10214 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10215
10216 * util/grub-install.in: Ignore empty devicetree directory.
10217
10218 2012-05-08 Bean <bean123ch@gmail.com>
10219
10220 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
10221 All users updated.
10222 (free_rsm): Free header as well.
10223 (free_old_fragments): Fix memory leak.
10224 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
10225 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
10226 (destroy_pq): Likewise.
10227 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
10228
10229 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10230
10231 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
10232 resulting hash as a precaution.
10233
10234 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10235
10236 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
10237 '_' in variable names.
10238 * grub-core/net/net.c (grub_net_network_level_interface_register):
10239 Likewise.
10240
10241 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10242
10243 Fix AFFS with non-512B blocks.
10244
10245 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
10246 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
10247 (grub_affs_data): Replace blocksize with log_blocksize.
10248 (grub_affs_read_block): Fix non-512B blocks.
10249 (grub_affs_read_symlink): Likewise.
10250 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
10251 (grub_affs_read): Fix non-512B blocks.
10252 (grub_affs_label): Likewise.
10253 (grub_affs_mtime): Likewise.
10254 (grub_affs_mount): Fix block detection routine.
10255
10256 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10257
10258 Add filesystem mtime to AFFS.
10259
10260 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
10261 (aftime2ctime): New function.
10262 (grub_affs_dir): Use aftime2ctime.
10263 (grub_affs_label): Fix return value.
10264 (grub_affs_mtime): New function.
10265 (grub_affs_fs): Add mtime.
10266
10267 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10268
10269 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
10270 UTF-8.
10271
10272 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10273
10274 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
10275 UTF-8.
10276
10277 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10278
10279 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
10280
10281 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10282
10283 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
10284 flags.
10285 (FLAGS_CASE_SENSITIVE): New enum value.
10286 (cache_entry): New struct.
10287 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
10288 cache_size and cache.
10289 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
10290 Add log_blocksize and fshelp_flags.
10291 (grub_sfs_read_extent): Handle non-512 blocks.
10292 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
10293 (grub_sfs_read_file): Handle non-512 blocks.
10294 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
10295 fshelp_flags.
10296 (grub_sfs_read_symlink): Handle non-512 blocks.
10297 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
10298 (grub_sfs_dir): Free cache.
10299 (grub_sfs_close): Likewise.
10300
10301 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10302
10303 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
10304 filesystems.
10305
10306 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10307
10308 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
10309
10310 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10311
10312 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
10313
10314 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10315
10316 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
10317 (grub_sfs_read_extent): Likewise.
10318 (grub_sfs_read_block): Likewise.
10319 (grub_sfs_mount): Likewise.
10320 (grub_sfs_iterate_dir): Likewise.
10321 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
10322 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
10323
10324 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10325
10326 Fix errors on compressed NTFS with 512B clusters.
10327
10328 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
10329 types.
10330 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
10331 not 0.
10332 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
10333 Relax check for inline extents.
10334 (ntfscomp): Return correct -1 on error and not 0.
10335
10336 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10337
10338 * util/grub-install.in: Fix handling of prefix containing spaces.
10339
10340 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10341
10342 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
10343 (grub_squash_read_data): Fix offset byte-swapping.
10344
10345 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10346
10347 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
10348 per common usage and preffered in several parts of code.
10349 (grub_memcmp): Likewise.
10350 (grub_strncmp): Likewise.
10351 * include/grub/misc.h (grub_strcasecmp): Likewise.
10352 (grub_strncasecmp): Likewise.
10353 * Makefile.util.def (cmp_test): New test.
10354 (grub_script_strcmp): Likewise.
10355 * tests/cmp_unit_test.c: New file.
10356 * tests/grub_script_strcmp.in: Likewise.
10357 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
10358
10359 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10360
10361 * include/grub/pci.h: Move enums into no-asm part.
10362
10363 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10364
10365 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
10366
10367 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
10368
10369 * util/getroot.c (find_hurd_root_device): Try to make error message
10370 and comments to translators clearer.
10371
10372 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10373
10374 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
10375
10376 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10377
10378 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
10379 btrfs.
10380
10381 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10382
10383 * docs/grub.cfg: Update.
10384
10385 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10386
10387 * docs/grub.texi (PXE): Remove not present variables.
10388
10389 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10390
10391 * grub-core/net/net.c (defserver_set_env): New function.
10392 (defserver_get_env): Likewise.
10393 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
10394
10395 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10396
10397 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
10398 entries.
10399
10400 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10401
10402 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
10403 * grub-core/kern/emu/hostdisk.c: Likewise.
10404
10405 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
10406
10407 Handle hurd userspace partitions.
10408
10409 * util/getroot.c (find_hurd_root_device): New function.
10410 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
10411
10412 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10413
10414 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
10415 names.
10416 Reported by: Bastian Blank.
10417
10418 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10419
10420 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
10421 crossing page boundary.
10422
10423 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10424
10425 Fix B-tree search in BFS, especially in presence of non-ASCII
10426 characters.
10427
10428 * grub-core/fs/bfs.c (bfs_strcmp): New function.
10429 (find_in_b_tree): Use standard bsearch + btree algorithm.
10430
10431 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10432
10433 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
10434 and so on.
10435
10436 2012-05-03 Matthew Garrett <mjg@redhat.com>
10437 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10438
10439 Suspend broadcom cards in order to stop their DMA.
10440
10441 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
10442 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
10443 (pci): Don't build on x86 EFI.
10444 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
10445 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
10446 New function.
10447 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
10448 stop_broadcom if running on EFI.
10449 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
10450 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
10451 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
10452 (grub_pci_find_capability): New proto.
10453
10454 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10455
10456 * docs/grub.texi: Remove dot from the extension as it apparently
10457 doesn't work with some makeinfo versions.
10458
10459 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10460
10461 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
10462 with GRUB expectance.
10463
10464 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10465
10466 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
10467
10468 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10469
10470 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
10471 zero after directory block since last entry may be not 0-terminated if
10472 it ends on block boundary. Use continue instead of if spanning whole
10473 loop.
10474
10475 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10476
10477 Support 4K sectors UDF inline files.
10478
10479 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
10480 (grub_udf_extended_file_entry): Likewise.
10481 (grub_fshelp_node): Name the anonymous union. Put block at the end.
10482 All users updated.
10483 (get_fshelp_size): New function.
10484 (grub_udf_read_icb): Read whole block.
10485 (grub_udf_iterate_dir): Likewise.
10486 (grub_udf_dir): Likewise.
10487 (grub_udf_open): Likewise.
10488
10489 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10490
10491 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
10492
10493 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10494
10495 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
10496 inline symlinks in addition to workaround.
10497
10498 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10499
10500 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
10501
10502 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10503
10504 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
10505
10506 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10507
10508 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
10509
10510 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10511
10512 Fix reiserfs big seek times.
10513
10514 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
10515 exact. All users updated.
10516 (grub_reiserfs_read): Use nearest btree search for seeking.
10517 Fix return value on error.
10518
10519 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10520
10521 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
10522 entries.
10523 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
10524 * docs/grub.texi: Update menuentry description.
10525
10526 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10527
10528 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
10529 crash when embedding onto filesystem.
10530
10531 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10532
10533 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
10534 name.
10535
10536 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10537
10538 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
10539
10540 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10541
10542 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
10543 commit.
10544
10545 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10546 2012-05-01 Bean <bean123ch@gmail.com>
10547
10548 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
10549
10550 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10551
10552 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
10553 Special behaviour for len = 0 to read whole file isn't used anywhere and
10554 can cause buffer ovewrflows in several places.
10555
10556 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10557
10558 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
10559
10560 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10561
10562 Handle RAIDZ on non-512B sectors.
10563
10564 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
10565 max_children_ashift.
10566 (fill_vdev_info_real): Fill max_children_ashift.
10567 (read_device): Use max_children_ashift.
10568
10569 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10570
10571 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
10572
10573 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10574
10575 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
10576 disk names.
10577 * docs/grub.texi: Update device.map parts.
10578
10579 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10580
10581 Don't scan into non-diskfilter devices having diskfilter names.
10582
10583 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
10584 (scan_disk): New argument accept_diskfilter. Fix recursion depth
10585 handling.
10586 (scan_disk_hook): New function.
10587
10588 2012-04-29 Bean <bean123ch@gmail.com>
10589
10590 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
10591 allocation.
10592
10593 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
10594
10595 * configure.ac: Detect starfield theme font path
10596 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
10597
10598 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10599
10600 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
10601 geometry on serial consoles.
10602
10603 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10604
10605 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
10606 because of network consoles.
10607
10608 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10609
10610 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
10611 handling.
10612
10613 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10614
10615 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
10616 falls on Q syndrom.
10617
10618 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10619
10620 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
10621 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
10622
10623 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10624
10625 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
10626 Allocate at lest 8192 for temporary buffer as required for lzo.
10627
10628 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10629
10630 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
10631 to cluster_bits, since it's already added in.
10632 (grub_fat_read_data): Likewise.
10633
10634 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10635
10636 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
10637 as long as cluster size is multiple of 512 bytes.
10638
10639 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10640
10641 * util/grub-mkrescue.in: Fix locale directory.
10642
10643 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10644
10645 * grub-core/kern/emu/hostdisk.c (map): Make static.
10646
10647 2012-04-23 Bean <bean123ch@gmail.com>
10648
10649 * util/grub-fstest.c (fstest): Add missing break.
10650
10651 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
10652
10653 Fix hurd build.
10654
10655 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
10656 not define nr variable.
10657 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
10658 find_root_devices_from_poolname, find_root_devices_from_libzfs,
10659 grub_find_device): Do not define.
10660
10661 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10662
10663 Fix kfreebsd compile and behaviour.
10664
10665 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
10666 format-security.
10667 * util/getroot.c: Fix wait.h include.
10668 (grub_guess_root_devices): Error if grub_find_device fails.
10669 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
10670 (grub_util_get_dev_abstraction): Likewise.
10671 (grub_util_pull_device): Likewise.
10672 (grub_util_get_grub_dev): Likewise.
10673 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
10674
10675 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10676
10677 Fix and unify wholedisk detection.
10678
10679 * util/getroot.c (convert_system_partition_to_system_disk): New argument
10680 is_part. All users updated.
10681 (device_is_wholedisk): Removed.
10682 (grub_util_biosdisk_get_grub_dev): Use is_part.
10683
10684 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10685
10686 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
10687 mode.
10688
10689 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10690
10691 * configure.ac: Bump to beta4.
10692
10693 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10694
10695 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
10696 --fs-uuid --set UUID syntax.
10697
10698 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10699
10700 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
10701 disunification.
10702
10703 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10704
10705 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
10706
10707 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
10708
10709 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
10710
10711 2012-04-18 Mike Gilbert <floppym@gentoo.org>
10712
10713 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
10714
10715 2012-04-18 Bean <bean123ch@gmail.com>
10716
10717 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
10718 place.
10719
10720 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10721
10722 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
10723 users updated.
10724 (grub_util_biosdisk_read): Handle Linux partitions not exactly
10725 corresponding to GRUB partitions.
10726 (grub_util_biosdisk_write): Likewise.
10727
10728 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10729
10730 Scan mdraid before LVM.
10731
10732 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
10733 (grub_diskfilter_register_front): ... this.
10734 (grub_diskfilter_register_back): New function.
10735 All users of grub_diskfilter_register updated.
10736
10737 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10738
10739 * util/grub-install.in: Fix an automatic target detection bug.
10740
10741 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10742
10743 * util/grub-install.in: New option --efi-directory.
10744
10745 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
10746
10747 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
10748 boot services if we have no other choice.
10749
10750 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
10751
10752 * util/grub-mknetdir.in: Rename --override-directory to --directory and
10753 document it.
10754 * tests/util/grub-shell.in: Update to --directory.
10755
10756 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10757
10758 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
10759
10760 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10761
10762 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
10763 (grub_minix_read_file): Likewise.
10764 (grub_minix_read_inode): Likewise.
10765 (grub_minix_find_file): Likewise.
10766 (grub_minix_dir): Likewise.
10767
10768 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10769
10770 * util/grub-setup.c (setup): Fix partition handling and blocklist
10771 check.
10772
10773 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10774
10775 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
10776 redundant buggy overlap check.
10777
10778 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10779
10780 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
10781 and grub-mknetdir.
10782
10783 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10784
10785 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
10786 kh.loadflags on pre-2.00 kernels.
10787
10788 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10789
10790 Terminate UNDI and PXE before launching the payload to avoid problems
10791 with DMA.
10792
10793 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
10794 (grub_loader_flags): ... this. All users updated.
10795 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
10796 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
10797 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
10798 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
10799 function.
10800 (grub_pxe_restore): Likewise.
10801 (fini_hnd): New var.
10802 (GRUB_MOD_INIT): Register shutdown hook.
10803 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
10804 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
10805 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
10806 (grub_loader_set): Rename second argument to flags.
10807
10808 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10809
10810 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
10811 written bytes.
10812 (grub_get_num_of_utf8_bytes): New function.
10813 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
10814 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
10815 executing it.
10816 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
10817 (grub_ucs4_to_utf8): Change return type.
10818
10819 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10820
10821 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
10822 warning.
10823 * grub-core/fs/bfs.c (hop_level): Likewise.
10824 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
10825
10826 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10827
10828 * grub-core/lib/adler32.c: Recode due to license unclearness.
10829
10830 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10831
10832 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
10833 (test_header): Likewise.
10834
10835 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10836
10837 Fix --help formatting.
10838
10839 * util/grub-mkconfig_lib.in (print_option_help): New function.
10840 (grub_fmt): Likewise.
10841 * util/grub-install.in: Use print_option_help and grub_fmt.
10842 * util/grub-kbdcomp.in: Likewise.
10843 * util/grub-mkconfig.in: Likewise.
10844 * util/grub-mknetdir.in: Likewise.
10845 * util/grub-mkrescue.in: Likewise.
10846 * util/grub-mkstandalone.in: Likewise.
10847 * util/grub-reboot.in: Likewise.
10848 * util/grub-set-default.in: Likewise.
10849 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
10850
10851 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10852
10853 * linguas.sh: Remove autogenerated *.po.
10854
10855 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10856
10857 * po/README: Move language fetcing to ...
10858 * linguas.sh: ... here.
10859 * po/README: Point to linguas.sh.
10860
10861 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10862
10863 * po/README: Exclude ko.po due to disclaimer problems.
10864
10865 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10866
10867 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
10868 len = 0.
10869 (grub_gettext_translate_real): Handle 0th string.
10870 (grub_gettext_translate): Ensure that "" isn't translated.
10871
10872 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10873
10874 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
10875 TRANSLATORS comment.
10876 (grub_diskfilter_print_partmap): Propagate changing of error into
10877 warning.
10878
10879 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10880
10881 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
10882 to uint64_t to prevent overflow.
10883 (grub_diskfilter_lv): Increase start_extent and extent_count
10884 to uint64_t to prevent overflow.
10885
10886 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10887
10888 * configure.ac: Increase version.
10889
10890 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10891
10892 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
10893
10894 * po/Rules-translit: New file.
10895 * po/arabic.sed: Likewise.
10896 * po/cyrillic.sed: Likewise.
10897 * po/greek.sed: Likewise.
10898 * po/hebrew.sed: Likewise.
10899 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
10900 * po/Makefile.in.in: Add extra_dist4.
10901
10902 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10903
10904 Handle big-endian minixfs (fixes minixfs tests on bigendian).
10905
10906 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
10907 modify names. Introduce MODE_BIGENDIAN.
10908 * grub-core/fs/minix_be.c: New file.
10909 * grub-core/fs/minix2_be.c: Likewise
10910 * grub-core/fs/minix3_be.c: Likewise.
10911 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
10912 minix3_be.
10913 * grub-core/Makefile.core.def (minix_be): New module.
10914 (minix2_be): Likewise.
10915 (minix3_be): Likewise.
10916
10917 2012-04-01 Felix <email@hamburg.de>
10918
10919 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
10920 (devs): Add MBP 2011.
10921
10922 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10923
10924 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
10925
10926 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10927
10928 * grub-core/normal/cmdline.c (print_completion): New field
10929 prompt_len.
10930 (grub_cmdline_get): Handle width properly.
10931
10932 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10933
10934 * grub-core/commands/lsacpi.c (options): Add missing terminator.
10935
10936 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10937
10938 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
10939 after 29th of February.
10940
10941 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10942
10943 Fix exfat endianness handling.
10944
10945 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
10946 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
10947 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
10948 Byte-swap utf16 when necessary.
10949 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
10950
10951 2012-03-31 Anton Blanchard <anton@samba.org>
10952 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10953
10954 Fix btrfs endianness handling.
10955
10956 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
10957 (lower_bound): Make root uint64_t. Use root in le.
10958 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
10959 (find_path): Fix template key init.
10960 (grub_btrfs_dir): Fix mtime byteswap.
10961 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
10962
10963 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10964
10965 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
10966 recursion_depth. Break infinite resursions. All users updated.
10967
10968 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10969
10970 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
10971 after free.
10972 Reported by: Peter Jones.
10973
10974 2012-03-31 Anton Blanchard <anton@samba.org>
10975
10976 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
10977 8 bit values.
10978
10979 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
10980
10981 * util/grub-install.in: Fix nvram call for PreP.
10982
10983 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
10984
10985 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
10986 the error when some elements are missing into a warning.
10987
10988 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
10989
10990 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
10991
10992 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
10993
10994 * docs/grub.texi (Invoking grub-probe): New section.
10995 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
10996
10997 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
10998
10999 Fix tab and wide character handling in editor and menu.
11000
11001 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
11002 agglomerate control characters with combining marks.
11003 (bidi_line_wrap): Allow break on tab.
11004 (grub_unicode_get_comb_start): New function.
11005 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
11006 and tab correctly.
11007 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
11008 with a space.
11009 * grub-core/normal/term.c (print_ucs4_terminal): New argument
11010 fixed_tab_size. All users updated.
11011 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
11012 (grub_term_getcharwidth): Handle \t.
11013 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
11014 and copy.
11015
11016 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11017
11018 Handle big-endian mdraid.
11019
11020 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
11021 * grub-core/Makefile.core.def (mdraid09_be): New module.
11022 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
11023 rather than grub_le_to_cpu* and grub_cpu_to_le*.
11024 * grub-core/disk/mdraid_linux_be.c: New file.
11025
11026 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11027
11028 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
11029
11030 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11031
11032 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11033 missing quotes which caused confusion among translators.
11034
11035 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11036
11037 * util/grub-mkconfig_lib.in: Fix typo.
11038
11039 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11040
11041 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
11042 spaces.
11043 * tests/grub_script_leading_whitespace.in: New file.
11044 * Makefile.util.def (grub_script_leading_whitespace): New test.
11045
11046 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11047
11048 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
11049 to work.
11050
11051 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11052
11053 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
11054 starts with control character.
11055
11056 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11057
11058 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
11059 overflow.
11060 (grub_gdb_outbuf): Likewise.
11061
11062 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11063
11064 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
11065 zero terminator. Fixes a crash.
11066
11067 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11068
11069 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
11070 beyond 4 GiB.
11071 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
11072 images independently of preffered adderss field.
11073
11074 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11075
11076 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
11077 * grub-core/commands/regexp.c: Likewise.
11078 * grub-core/loader/i386/linux.c: Likewise.
11079 * grub-core/partmap/msdos.c: Likewise.
11080 * grub-core/script/execute.c: Likewise.
11081 * grub-core/term/gfxterm.c: Likewise.
11082
11083 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11084
11085 Add variable parsing in $"..." and fix several mismatches with bash.
11086
11087 * Makefile.util.def (grub_script_gettext): New test.
11088 * grub-core/script/execute.c (parse_string): New function.
11089 (gettext_append): Likewise.
11090 (grub_script_arglist_to_argv): Use gettext_append.
11091 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
11092 * tests/grub_script_gettext.in: New file.
11093
11094 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11095
11096 Fix handling of leading spaces in scripts.
11097
11098 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
11099 spaces.
11100 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
11101 other than skipping \r. All users updated.
11102 * tests/grub_script_echo1.in: Add space-related tests.
11103 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
11104
11105 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11106
11107 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
11108
11109 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11110
11111 * configure.ac: Bump up the version to beta2.
11112
11113 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11114
11115 Fix gettext reload bugs (e.g. inability to disable gettext
11116 once enabled).
11117
11118 * grub-core/gettext/gettext.c: Encapsulate all static variables in
11119 main_context and secondary_context. All functions updated.
11120 (grub_gettext_translate): Rename to ...
11121 (grub_gettext_translate_real): ... this. Return NULL on failed
11122 translate.
11123 (grub_gettext_translate): Handle secondary context.
11124 (grub_gettext_delete_list): Close file and zero-out the context.
11125 (grub_mofile_open): Don't call grub_gettext_delete_list.
11126 Don't close file.
11127 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
11128 if locale="" to avoid pointless error message.
11129 (grub_gettext_env_write_lang): Update lang even if load fails.
11130 Handle secondary context.
11131 (grub_gettext_reread_prefix): New function.
11132 (read_main): Likewise.
11133 (read_secondary): Likewise.
11134 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
11135 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
11136 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
11137 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
11138
11139 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11140
11141 * configure.ac: Decrease warning level to avoid spurious warnings and
11142 to be able to compile with GCC 4.2.
11143 * Makefile.util.def: Remove -Wno-error=logical-op.
11144
11145 2012-03-10 William Bittner <william.bittner@gmail.com>
11146
11147 * util/import_unicode.py: Add missing brackets around string for
11148 python 3 support.
11149
11150 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11151
11152 Fix efi chainloader on network root.
11153
11154 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
11155 network devices.
11156 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
11157 New function.
11158
11159 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11160
11161 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
11162 unused show_text member.
11163 * docs/grub.texi: Document "text" property.
11164
11165 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11166
11167 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
11168 in dprintf.
11169
11170 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11171
11172 Fix IMSM handling on Fedora.
11173
11174 * util/getroot.c (grub_util_is_imsm): New function.
11175 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
11176
11177 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11178
11179 * Makefile.am: Strip gold section.
11180 * conf/Makefile.common: Likewise.
11181 * gentpl.py: Likewise.
11182 * grub-core/Makefile.core.def: Likewise.
11183 * grub-core/genmod.sh.in: Likewise.
11184
11185 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11186
11187 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
11188 * util/grub.d/20_linux_xen.in: Likewise.
11189 Based on Debian patch.
11190
11191 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11192
11193 * util/grub.d/10_linux.in: Fix syntax error resulting in
11194 Richard Laager's patch.
11195 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
11196
11197 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11198
11199 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
11200 dependencies.
11201
11202 2012-03-10 Richard Laager <rlaager@wiktel.com>
11203
11204 * util/grub.d/10_linux.in: Fix ZFS root passing.
11205
11206 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11207
11208 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11209 * grub-core/commands/xnu_uuid.c: Likewise.
11210 * grub-core/loader/efi/appleloader.c: Likewise.
11211 * grub-core/script/execute.c: Likewise.
11212 * grub-core/script/main.c: Likewise.
11213 * util/grub-mkfont.c: Likewise.
11214
11215 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11216
11217 * util/grub-mkfont.c (options): Use more appropriate "select" that
11218 "set" for face index.
11219
11220 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11221
11222 * util/grub-editenv.c (options): Gettextize command summaries.
11223
11224 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11225
11226 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
11227 "out of memory" error messagge.
11228
11229 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11230
11231 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
11232 of diskfilter for diskfilter on diskfilter support.
11233
11234 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11235
11236 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
11237
11238 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11239
11240 * util/grub-install.in: Check for themes/starfield/theme.txt and not
11241 themes/starfield.
11242
11243 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11244
11245 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
11246
11247 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11248
11249 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
11250
11251 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11252
11253 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
11254 of error message.
11255
11256 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11257
11258 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
11259
11260 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11261
11262 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
11263 message.
11264 * util/grub-install.in: Fix and gettextize error message.
11265
11266 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11267
11268 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
11269 Gettextize.
11270 * util/grub-mount.c (options): Likewise.
11271
11272 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11273
11274 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
11275 gettextize.
11276 * grub-core/commands/search_wrap.c (options): Likewise.
11277
11278 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11279
11280 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
11281
11282 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11283
11284 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
11285 size calculation.
11286 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
11287 none is known.
11288
11289 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11290
11291 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
11292 "temporary" since it's used in identifier and is limited in space.
11293
11294 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11295
11296 * po/POTFILES.in: Regenerate. Include *.h since they contain
11297 translatable strings as well.
11298
11299 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11300
11301 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
11302 byte-swap on big-endian.
11303 Reported by: Lennart Sorensen
11304
11305 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
11306
11307 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
11308 (allocate_pages): Improve dprintf.
11309 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
11310 code32_start. Fill code32_start and kernel_alignment in params.
11311 (grub_cmd_initrd): Use prot_init_space.
11312
11313 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11314
11315 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
11316
11317 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11318
11319 * util/grub-install.in: Add missing dot at the end of sentence.
11320
11321 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11322
11323 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11324 * grub-core/commands/videotest.c: Likewise.
11325 * grub-core/loader/i386/linux.c: Likewise.
11326
11327 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11328
11329 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
11330 sentence.
11331 Reported by: Milo Casagrande.
11332
11333 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11334
11335 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
11336 * grub-core/commands/gptsync.c: Likewise.
11337 * grub-core/commands/hashsum.c: Likewise.
11338 * grub-core/commands/i386/pc/sendkey.c: Likewise.
11339 * grub-core/commands/legacycfg.c: Likewise.
11340 * grub-core/io/gzio.c: Likewise.
11341 * grub-core/net/net.c: Likewise.
11342 * grub-core/term/gfxterm.c: Likewise.
11343 * grub-core/term/terminfo.c: Likewise.
11344 * grub-core/tests/test_blockarg.c: Likewise.
11345 * grub-core/video/video.c: Likewise.
11346 * util/grub-install.in: Likewise.
11347 * util/grub-mkfont.c: Likewise.
11348
11349 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11350
11351 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
11352
11353 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11354
11355 * grub-core/commands/search_wrap.c (options): Fix a typo.
11356 Reported by: David Prévot.
11357
11358 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11359
11360 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
11361 description.
11362
11363 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11364
11365 * util/grub-script-check.c (main): Fix a syntax error message which was
11366 unclear.
11367
11368 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11369
11370 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
11371
11372 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11373
11374 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
11375 messages.
11376
11377 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11378
11379 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
11380 without argument.
11381 * util/grub-mount.c (options): Likewise.
11382
11383 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11384
11385 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
11386
11387 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11388
11389 * grub-core/net/http.c: Add TRANSLATORS comments.
11390 * grub-core/normal/cmdline.c: Likewise.
11391 * grub-core/normal/misc.c: Likewise.
11392 * grub-core/partmap/msdos.c: Likewise.
11393 * grub-core/parttool/msdospart.c: Likewise.
11394 * grub-core/script/execute.c: Likewise.
11395 * grub-core/script/main.c: Likewise.
11396 * grub-core/term/terminfo.c: Likewise.
11397 * grub-core/video/bitmap.c: Likewise.
11398 * util/grub-install.in: Likewise.
11399 * util/grub-mkimage.c: Likewise.
11400 * util/grub-mklayout.c: Likewise.
11401 * util/grub-setup.c: Likewise.
11402
11403 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11404
11405 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
11406 with similar messages in grub-fstest.
11407
11408 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11409
11410 * util/grub-install.in: Unify "option requires an argument" message
11411 with similar messages in other files.
11412 * util/grub-mkconfig.in: Likewise.
11413
11414 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11415
11416 * util/grub-set-default.in: Replace printf with gettext_printf (the
11417 string in in question is already translated from grub-reboot)
11418
11419 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11420
11421 * configure.ac: Bump up the version to beta1.
11422
11423 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11424
11425 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
11426 case when min_align = 0.
11427
11428 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11429
11430 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
11431 and fix a case when line_start overflows.
11432
11433 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11434
11435 * util/grub-reboot.in (usage): Mention id posibility.
11436 * util/grub-set-default.in (usage): Likewise.
11437
11438 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11439
11440 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
11441 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
11442 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
11443 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
11444 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
11445 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11446 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11447
11448 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11449
11450 * grub-core/commands/menuentry.c (options): Remove
11451 GRUB_ARG_OPTION_REPEATABLE.
11452 Reported by: Andreas Vogel
11453
11454 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
11455
11456 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
11457
11458 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
11459
11460 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
11461 error.
11462
11463 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11464
11465 Use sort -V by the idea of Georgi Georgiev.
11466
11467 * util/grub-mkconfig_lib.in (version_sort): New function.
11468 (version_test_numeric): Use version_sort.
11469
11470 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11471
11472 Use submenus in grub-mkconfig.
11473
11474 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
11475 * util/grub-mkconfig_lib.in (grub_quote): New function.
11476 (gettext_printf): Use gettext and not gettext_quoted to fix several
11477 messages.
11478 * util/grub.d/10_hurd.in: Use submenus.
11479 * util/grub.d/10_kfreebsd.in: Likewise.
11480 * util/grub.d/10_linux.in: Likewise.
11481 * util/grub.d/10_netbsd.in: Likewise.
11482 * util/grub.d/20_linux_xen.in: Likewise.
11483 * util/grub.d/30_os-prober.in: Likewise.
11484 * util/grub.d/10_illumos.in: Add missing quoting.
11485 * util/grub.d/10_windows.in: Likewise.
11486
11487 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11488
11489 Fix menu title instability bug.
11490
11491 * grub-core/commands/menuentry.c (options): New option --id.
11492 (grub_normal_add_menu_entry): New argument id. All users updated.
11493 (grub_cmd_menuentry): Handle --id.
11494 (grub_menu_init): Accept unknown arguments.
11495 * grub-core/normal/main.c (features): Add feature_menuentry_id and
11496 feature_menuentry_options.
11497 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
11498 saved_entry.
11499 (get_entry_number): Match with id as well.
11500 * include/grub/menu.h (grub_menu_entry): New member id.
11501 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
11502 * util/grub.d/00_header.in: Define menuentry_id_option.
11503 * util/grub.d/10_hurd.in: Define id.
11504 * util/grub.d/10_illumos.in: Likewise.
11505 * util/grub.d/10_kfreebsd.in: Likewise.
11506 * util/grub.d/10_linux.in: Likewise.
11507 * util/grub.d/10_netbsd.in: Likewise.
11508 * util/grub.d/10_windows.in: Likewise.
11509 * util/grub.d/20_linux_xen.in: Likewise.
11510 * util/grub.d/30_os-prober.in: Likewise.
11511
11512 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11513
11514 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
11515 "scope" with "body".
11516
11517 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11518
11519 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
11520 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
11521 prot_size and prot_file_size.
11522
11523 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11524
11525 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
11526 All users updated. If easily=1 require raid-5/-6 to be full.
11527 (is_node_readable): Likewise.
11528 (scan_devices): Scan incomplete but readable LVs at the end.
11529 (grub_diskfilter_memberlist): Pull missing devices.
11530 (insert_array): Skip scanning until device is complete or scan is
11531 done otherwise.
11532 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
11533 check.
11534 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
11535 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
11536
11537 2012-03-03 Matthew Garrett <mjg@redhat.com>
11538 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11539
11540 Avoid EFI boot services when loading Linux.
11541
11542 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
11543 avoid_efi_bootservices. All users updated.
11544 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
11545 argument avoid_efi_bootservices. All users updated.
11546 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
11547 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
11548 align, min_align, relocatable, prefered_address. All users updated.
11549 Allocate avoiding boot services if kernel is relocatable.
11550 (grub_cmd_linux): Check if kernel is relocatable.
11551 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
11552 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
11553 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
11554 avoid_efi_boot_services.
11555 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
11556 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
11557 (linux_kernel_params): Likewise.
11558
11559 2012-03-03 Matthew Garrett <mjg@redhat.com>
11560 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11561
11562 Use EDID on EFI.
11563
11564 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
11565 datasize_out.
11566 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
11567 modes. Set gop_handle.
11568 (grub_video_gop_get_edid): New function.
11569 (grub_gop_get_preferred_mode): Likewise.
11570 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
11571 (grub_video_efi_gop_adapter): Set .get_edid.
11572 * include/grub/efi/edid.h: New file.
11573 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
11574
11575 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11576
11577 * util/grub-install.in: Load efivars unconditionally.
11578
11579 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11580
11581 * po/Rules-piglatin: Change suffix from .po-update-en to
11582 .po-update-en-piglatin.
11583
11584 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11585
11586 Add a pig farm.
11587
11588 * po/piglatin.sed: New file.
11589 * po/en@piglatin.header: Likewise.
11590 * po/Rules-piglatin: Likewise.
11591 * po/README: Add en@piglatin to autogenerated languages.
11592
11593 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11594
11595 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
11596 "Command for ...".
11597 * grub-core/commands/hdparm.c (options): Use "Display" rather than
11598 "Check" since we don't check anything.
11599 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
11600 is 64-bit one.
11601 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
11602 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
11603 (grub_md_sha512_real): Likewise.
11604
11605 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11606
11607 * grub-core/commands/gptsync.c: Fix typographic quoting.
11608 * grub-core/commands/ieee1275/suspend.c: Likewise.
11609 * grub-core/commands/parttool.c: Likewise.
11610 * grub-core/commands/search_wrap.c: Likewise.
11611 * grub-core/commands/videoinfo.c: Likewise.
11612 * grub-core/gfxmenu/gui_label.c: Likewise.
11613 * grub-core/hello/hello.c: Likewise.
11614 * grub-core/kern/emu/main.c: Likewise.
11615 * grub-core/net/net.c: Likewise.
11616 * grub-core/normal/menu.c: Likewise.
11617 * grub-core/normal/menu_text.c: Likewise.
11618 * grub-core/normal/misc.c: Likewise.
11619 * util/grub-editenv.c: Likewise.
11620 * util/grub-install.in: Likewise.
11621 * util/grub-kbdcomp.in: Likewise.
11622 * util/grub-mkconfig.in: Likewise.
11623 * util/grub-mknetdir.in: Likewise.
11624 * util/grub-mkrescue.in: Likewise.
11625 * util/grub-mkstandalone.in: Likewise.
11626 * util/grub-reboot.in: Likewise.
11627 * util/grub-set-default.in: Likewise.
11628 * util/grub-setup.c: Likewise.
11629 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11630
11631 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11632
11633 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
11634 * grub-core/commands/keystatus.c: Likewise.
11635 * grub-core/commands/loadenv.c: Likewise.
11636 * grub-core/commands/probe.c: Likewise.
11637 * grub-core/commands/regexp.c: Likewise.
11638 * grub-core/commands/true.c: Likewise.
11639 * grub-core/commands/videoinfo.c: Likewise.
11640 * grub-core/disk/cryptodisk.c: Likewise.
11641 * grub-core/disk/ldm.c: Likewise.
11642 * grub-core/disk/loopback.c: Likewise.
11643 * grub-core/disk/luks.c: Likewise.
11644 * grub-core/fs/zfs/zfsinfo.c: Likewise.
11645 * grub-core/kern/disk.c: Likewise.
11646 * grub-core/kern/emu/hostdisk.c: Likewise.
11647
11648 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11649
11650 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
11651 * util/grub-install.in: Add missing quote in the comment.
11652
11653 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11654
11655 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
11656 * grub-core/commands/lsmmap.c: Likewise.
11657 * grub-core/commands/minicmd.c: Likewise.
11658 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
11659 * grub-core/commands/regexp.c: Likewise.
11660 * grub-core/gdb/gdb.c: Likewise.
11661 * grub-core/term/gfxterm.c: Likewise.
11662 * util/grub-mkconfig.in: Likewise.
11663 * util/grub-mkfont.c: Likewise.
11664 * util/grub-mklayout.c: Likewise.
11665 * util/grub-mknetdir.in: Likewise.
11666 * util/grub-mkrescue.in: Likewise.
11667 * util/grub.d/30_os-prober.in: Likewise.
11668
11669 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11670
11671 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
11672 with "Direct color" and "Packed" with "Packed pixel".
11673 (grub_cmd_videoinfo): Simplify legend.
11674
11675 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11676
11677 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11678 absolutely unclear error message.
11679
11680 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11681
11682 * util/grub-mkstandalone.in: Remove confusing leftover print.
11683
11684 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11685
11686 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
11687 comments.
11688 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
11689 (GRUB_MOD_INIT): Likewise.
11690 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
11691 VGA mode.
11692 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
11693 comments.
11694 * util/grub-install.in (usage): Likewise.
11695 Spell ID in whole letters.
11696 Add missing ending dot.
11697 Quote variables.
11698 * util/grub-reboot.in: Fix capitalisation.
11699 * util/grub-set-default.in: Likewise.
11700
11701 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11702
11703 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
11704 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
11705 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
11706 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
11707 Disable -Werror for -Wdeprecated-declarations.
11708 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
11709 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
11710 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
11711 (grub_util_get_grub_dev): Make luks handling dependent on
11712 HAVE_DEVICE_MAPPER and not __linux__.
11713 (get_win32_path): Fix format security.
11714 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
11715 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
11716 Don't try grub_find_zpool_from_dir.
11717 (grub_make_system_path_relative_to_its_root) [!__linux__]:
11718 #ifdef-out paresdir.
11719
11720 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11721
11722 * util/grub-pe2elf.c (usage): Add missing noreturn.
11723 (write_section_data): Rename name to shname to avoid shadowing.
11724 (write_symbol_table): Rename name to symname to avoid shadowing.
11725 Fix write_reloc_section call.
11726
11727 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11728
11729 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
11730 to ensure that it's after the last byte of .text.
11731
11732 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11733
11734 * util/ieee1275/ofpath.c (my_isdigit): New function.
11735 (trailing_digits): Use my_isdigit.
11736 (strip_trailing_digits): Likewise.
11737
11738 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11739
11740 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
11741 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
11742
11743 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11744
11745 * grub-core/kern/i386/pc/startup.S: Define __start.
11746
11747 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11748
11749 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
11750 strip already transforms he format.
11751
11752 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11753
11754 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
11755
11756 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11757
11758 * util/grub-install.in: Add missing gettext init.
11759 * util/grub-kbdcomp.in: Likewise.
11760 * util/grub-mkconfig.in: Likewise.
11761 * util/grub-mknetdir.in: Likewise.
11762 * util/grub-mkrescue.in: Likewise.
11763 * util/grub-mkstandalone.in: Likewise.
11764 * util/grub-reboot.in: Likewise.
11765 * util/grub-set-default.in: Likewise.
11766 * util/grub.d/00_header.in: Likewise.
11767 * util/grub.d/10_hurd.in: Likewise.
11768 * util/grub.d/10_windows.in: Likewise.
11769 * util/grub.d/30_os-prober.in: Likewise.
11770 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11771
11772 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11773
11774 * po/Rules-swiss: Fix header comment.
11775
11776 2012-02-29 Andreas Vogel <anvoit>
11777
11778 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
11779 resulted in leak of arguments.
11780
11781 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11782
11783 * grub-core/boot/i386/pc/startup_raw.S: Use separate
11784 reed_solomon_size const definition instead of computing it since
11785 Apple assembler doesn't support the later.
11786
11787 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11788
11789 * gentpl.py (kernel): Rewrite Apple part.
11790
11791 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11792
11793 * include/grub/kernel.h (FOR_MODULES): Check module magic.
11794
11795 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11796
11797 * util/grub-mkimagexx.c (locate_sections): Support non-standard
11798 ELF section gap.
11799 (load_image): Likewise.
11800
11801 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11802
11803 * configure.ac: Fix a typo in previous commit.
11804
11805 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11806
11807 Don't add -Wl,-N on Apple platform.
11808
11809 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
11810 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
11811
11812 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11813
11814 * grub-core/Makefile.core.def (lzma_decompress): Use
11815 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
11816
11817 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11818
11819 * grub-core/genmod.sh.in: Rewrite the Apple part.
11820
11821 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11822
11823 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
11824 comparison.
11825
11826 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11827
11828 * acinclude.m4 (grub_CHECK_PIC): New test.
11829 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
11830
11831 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11832
11833 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
11834 to avoid the warning.
11835
11836 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11837
11838 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
11839 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
11840 after. All users updated.
11841
11842 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11843
11844 Use the common size routine in hostfs so we can read disks as well.
11845
11846 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
11847 (grub_util_get_fd_size): ... this. Return size in bytes.
11848 All users updated.
11849 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
11850 grub_util_get_fd_size.
11851
11852 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11853
11854 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
11855 Add blocksize retrieval.
11856
11857 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11858
11859 * configure.ac: Restore CFLAGS after efiemu check.
11860
11861 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11862
11863 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
11864 Apple bug.
11865
11866 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11867
11868 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
11869
11870 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11871
11872 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
11873 (grub_cmd_halt): Likewise.
11874
11875 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11876
11877 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
11878 for local arithmetics.
11879 Break %sp init into 2 instructions.
11880 Add 0 byte at the end.
11881
11882 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11883
11884 * grub-core/disk/diskfilter.c (read_segment): Initialise err
11885 before loops.
11886
11887 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11888
11889 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
11890 for context.
11891
11892 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11893
11894 * grub-core/disk/ldm.c (make_vg): Init part.name.
11895 (grub_ldm_detect): Silence spurious warning.
11896 (grub_util_is_ldm): Likewise.
11897
11898 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11899
11900 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
11901 sane value to avoid a spurious warning.
11902
11903 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11904
11905 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
11906 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
11907
11908 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11909
11910 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
11911 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
11912
11913 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11914
11915 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
11916 hardcoding the relevant info.
11917
11918 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11919
11920 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
11921 missing const qualifiers.
11922 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
11923
11924 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11925
11926 * util/getroot.c [__APPLE__]: Add missing includes.
11927 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
11928
11929 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11930
11931 * util/grub-mkimage.c (generate_image): Silence spurious warning.
11932
11933 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11934
11935 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
11936 avoid conflicts.
11937
11938 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11939
11940 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
11941
11942 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11943
11944 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
11945 and grub_file_close call.
11946
11947 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11948
11949 Add LZSS Mach-O support (needed for new xnu kernelcache).
11950
11951 * grub-core/Makefile.core.def (xnu): Add file lzss.c
11952 * grub-core/loader/lzss.c: New file.
11953 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
11954 on Mach-O open failure.
11955 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
11956 Don't free cmdsXX in uncompressedXX is set.
11957 (grub_macho_file): Init new fields.
11958 New argument is_64bit. All users updated.
11959 Handle compressed. Error out if no suitable architecture is found.
11960 Don't close file.
11961 (grub_macho_open): New argument is_64bit. All users updated.
11962 * grub-core/loader/macho32.c: Add defines for new fields.
11963 * grub-core/loader/macho64.c: Likewise.
11964 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
11965 (grub_macho_parse): Handle compressed.
11966 Defer actual processing if compressed.
11967 (grub_macho_cmds_iterate): Decompress if compressed. New argument
11968 "filename". All users updated.
11969 (grub_macho_size): New argument "filename". All users updated.
11970 (grub_macho_get_entry_point): Likewise.
11971 (grub_macho_load): Handle compressed.
11972 * include/grub/macho.h (grub_macho_lzss_header): New struct.
11973 (GRUB_MACHO_LZSS_OFFSET): New define.
11974 (grub_decompress_lzss): New proto.
11975 * include/grub/machoload.h (grub_macho_file): New fields to handle
11976 compressed.
11977 (grub_macho_contains_macho64): Remove proto.
11978 (grub_macho_contains_macho32): Likewise.
11979 * util/grub.d/30_os-prober.in: Use kernel cache if available.
11980
11981 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11982
11983 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
11984
11985 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
11986
11987 Fix make dist.
11988
11989 * Makefile.am (starfield_theme_files): New var.
11990 (starfield_DATA): Use starfield_theme_files.
11991 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
11992 Add bootcheck-related files.
11993 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
11994 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
11995 and font_char_metrics.txt.
11996 * grub-core/Makefile.core.def (kernel): Update extra_dist.
11997 (setjmp): Add lib/ia64/longjmp.S.
11998 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
11999 * po/POTFILES.in: Regenerate.
12000 * po/Rules-swiss: use DISTFILES.common.extra2 and not
12001 DISTFILES.common.extra1.
12002 * util/devicemap.c: Removed.
12003 * grub-core/lib/i386/relocator_backward.S: Likewise.
12004 * util/import_gcry.py: Remove unused files. Add extra_dist for
12005 ChangeLog.
12006
12007 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12008
12009 * grub-core/gettext/gettext.c (grub_mofile_open): Call
12010 grub_gettext_delete_list before changing grub_gettext_max to avoid
12011 running out of array bounds.
12012
12013 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12014
12015 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
12016 grub_vga_text_init/grub_vga_text_fini.
12017
12018 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12019
12020 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
12021
12022 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12023
12024 * configure.ac: Bump to 2.00~beta0.
12025
12026 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12027
12028 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
12029 missing initialisation.
12030
12031 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12032
12033 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
12034
12035 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12036
12037 Support v2 xnu boot arguments.
12038
12039 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
12040 New argument fsbfreq_out.
12041 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
12042 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
12043 be used.
12044 * grub-core/loader/machoXX.c (grub_macho_load): New argument
12045 darwin_version.
12046 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
12047 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
12048 (grub_xnu_boot_params): Rename to ...
12049 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
12050 (grub_xnu_boot_params_v2): New struct.
12051
12052 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12053
12054 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
12055 zeroing of CRC field before computing CRC.
12056
12057 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12058
12059 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
12060 Change order of allocations to decrease fragmentation.
12061
12062 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12063
12064 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
12065
12066 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12067
12068 Use write-combining MTRR to speed up video with buggy BIOSes.
12069
12070 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
12071 (cpuid): New define.
12072 (rdmsr): Likewise.
12073 (wrmsr): Likewise.
12074 (mtrr_base): Likewise.
12075 (mtrr_mask): Likewise.
12076 (grub_vbe_enable_mtrr_entry): New function.
12077 (grub_vbe_enable_mtrr): Likewise.
12078 (grub_vbe_disable_mtrr): Likewise.
12079 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
12080 control off to BIOS.
12081 (grub_video_vbe_init): Fill mtrr.
12082 (grub_video_vbe_fini): Disable mtrr.
12083 (grub_video_vbe_get_info_and_fini): Likewise.
12084 (grub_video_vbe_setup): Enable mtrr.
12085
12086 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12087
12088 * include/grub/partition.h (grub_partition_map): Change prototype of
12089 embed to take a maximum value for nsectors.
12090 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
12091 * include/grub/fs.h (grub_fs): Likewise.
12092 * grub-core/partmap/msdos.c (embed_signatures): New array.
12093 (pc_partition_map_embed): Check for and avoid sectors matching any
12094 of the signatures in embed_signatures, up to max_nsectors.
12095 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
12096 returned sector map to max_nsectors.
12097 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
12098 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
12099 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
12100 * util/grub-setup.c (setup): Allow for the embedding area being
12101 split into multiple blocklists. Tell dest_partmap->embed the
12102 maximum number of sectors we care about.
12103
12104 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12105
12106 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
12107 Specify blocklist_install and reserver_first_sector for all fs.
12108 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
12109 blocklists.
12110
12111 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12112
12113 * util/grub-install.in: Clarify strings.
12114 Fix source dir check.
12115
12116 2012-02-27 Richard Laager <rlaager@wiktel.com>
12117
12118 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
12119 "zfs" and "fuse.zfs" as synonyms.
12120
12121 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12122
12123 * configure.ac: Put platform and target_cpu substitutions back since
12124 they are used for directories.
12125
12126 2012-02-27 Richard Laager <rlaager@wiktel.com>
12127 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12128
12129 * util/grub.d/10_linux.in: Add ZFS-related arguments.
12130 * util/grub.d/20_linux_xen.in: Likewise.
12131
12132 2012-02-27 Richard Laager <rlaager@wiktel.com>
12133
12134 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
12135 with full paths.
12136
12137 2012-02-27 Richard Laager <rlaager@wiktel.com>
12138
12139 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
12140 unescape.
12141
12142 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12143
12144 Don't use insecure popen in getroot.
12145
12146 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
12147 (exec_pipe): ... here.
12148 (find_root_devices_from_poolname): Use exec_pipe.
12149
12150 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12151
12152 Remove platform and target_cpu replacement.
12153
12154 * configure.ac: Remove platform and target_cpu substitutions.
12155 * tests/util/grub-shell.in: Use modinfo.
12156 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
12157 explicitly.
12158
12159 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12160
12161 Autodetect platform in grub-install but allow override.
12162
12163 * util/grub-install.in: Autodetect platform. Support --target and
12164 --directory. Read platform from modinfo.sh.
12165
12166 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12167
12168 Support btrfs multi-volume probe.
12169
12170 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
12171 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
12172 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
12173 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
12174 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
12175 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
12176 grub_find_root_devices_from_btrfs if on btrfs.
12177
12178 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12179
12180 Remove any awareness of *.c util files about target.
12181
12182 * Makefile.util.def (grub-setup): Split to ...
12183 (grub-bios-setup): ... and this.
12184 (grub-sparc64-setup): ... and this.
12185 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
12186 * docs/man/grub-setup.h2m: Split into ...
12187 * docs/man/grub-sparc64-setup.h2m: ... this.
12188 * docs/man/grub-bios-setup.h2m: ... and this.
12189 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
12190 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
12191 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
12192 (grub_target_addr_t): Remove.
12193 (grub_target_size_t): Remove.
12194 (grub_target_ssize_t): Remove.
12195 * util/grub-install.in: Use new grub-*-setup.
12196 * util/grub-mkimagexx.c (Elf_Word): New define.
12197 (Elf_Half): Likewise.
12198 (Elf_Section): Likewise.
12199 (ELF_ST_TYPE): Likewise.
12200 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
12201 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
12202
12203 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12204
12205 Replace grub_target_addr with more appropriate types.
12206
12207 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
12208 grub_target_addr with grub_addr.
12209 * grub-core/commands/iorw.c (grub_cmd_read): Replace
12210 grub_target_addr with grub_port.
12211 (grub_cmd_write): Likewise.
12212 * grub-core/commands/memrw.c (grub_cmd_read): Replace
12213 grub_target_addr with grub_addr.
12214 (grub_cmd_write): Likewise.
12215 * grub-core/video/efi_uga.c (find_line_len): Likewise.
12216
12217 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12218
12219 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
12220 const qualifier for vendor_guid.
12221
12222 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12223
12224 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
12225 const qualifier.
12226 (efiemu_memequal): Likewise.
12227 (find_variable): Likewise.
12228
12229 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12230
12231 Fix missing console prototype on qemu-mips.
12232
12233 * include/grub/mips/qemu_mips/console.h: New file.
12234
12235 2012-02-27 Matthew Garrett <mjg@redhat.com>
12236 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12237
12238 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
12239 * include/grub/efi/efi.h: Likewise.
12240 * include/grub/efi/api.h: Add guid for EFI-specified variables.
12241 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
12242 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
12243 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
12244 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
12245 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
12246
12247 2012-02-27 Matthew Garrett <mjg@redhat.com>
12248
12249 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
12250
12251 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12252
12253 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
12254 error.
12255
12256 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12257
12258 * configure.ac: Remove inappropriate use of program_transform_name
12259 on grubdir and bootdir but allow explicit specification of those
12260 variables.
12261
12262 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12263
12264 * util/grub-mknetdir.in (grub_prefix): Removed.
12265 (subdir): Use @bootdirname@ and @grubdirname@.
12266
12267 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12268
12269 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
12270
12271 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12272
12273 * po/POTFILES.in: Regenerated.
12274
12275 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12276
12277 Remove improper use of program_transform_name on pkglibrootdir.
12278
12279 * configure.ac (pkglibrootdir): Removed.
12280 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
12281 * util/grub-mkimage.c: Likewise.
12282
12283 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12284
12285 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
12286 warning.
12287
12288 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12289
12290 * util/grub-install.in: Use file identifier if no UUID is available
12291 or user explicitly prompted for it.
12292
12293 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
12294
12295 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
12296 (freebsd_get_zfs): New function.
12297 (grub_freebsd_boot): Pass zfs UUID.
12298 (grub_cmd_freebsd): Set zfs UUID.
12299
12300 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12301
12302 * conf/Makefile.common (platformdir): Base on pkglibdir and not
12303 pkglibrootdir.
12304
12305 2012-02-27 Mike Gilbert <floppym@gentoo.org>
12306
12307 Add configure flag to control libzfs integration.
12308
12309 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
12310
12311 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12312
12313 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
12314 device.
12315 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
12316 small devices.
12317
12318 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12319
12320 Remove grub_{modname}_init and grub_{modname}_fini. They should never
12321 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
12322 be used on non-modules.
12323
12324 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
12325 Rename to grub_boot_init.
12326 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
12327 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
12328 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
12329 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
12330 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
12331 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
12332 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
12333 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
12334 includes.
12335 (grub_machine_init): Remove empty inits.
12336 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
12337 includes.
12338 (grub_machine_init): Remove empty inits.
12339 * grub-core/term/arc/console.c: Remove explicit proto.
12340 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
12341 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
12342 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12343 grub_at_keyboard_fini.
12344 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
12345 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
12346 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12347 grub_gfxterm_fini.
12348 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
12349 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
12350 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12351 grub_vgatext_fini.
12352 * grub-core/term/ieee1275/console.c: Remove explicit proto.
12353 * grub-core/term/serial.c (GRUB_MOD_INIT)
12354 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
12355 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12356 grub_serial_fini.
12357 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
12358 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
12359 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12360 grub_terminfo_fini.
12361 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
12362 (GRUB_MOD_FINI): Likewise.
12363 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
12364 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
12365 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12366 grub_video_radeon_fuloong2e_fini.
12367 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
12368 [LOONGSON]: Rename to grub_video_sis315pro_init.
12369 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12370 grub_video_sis315pro_fini.
12371 * grub-core/video/sm712.c (GRUB_MOD_INIT)
12372 [LOONGSON]: Rename to grub_video_sm712_init.
12373 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12374 grub_video_sm712_fini.
12375 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
12376 (grub_at_keyboard_fini): Likewise.
12377 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
12378 Don't declare grub_{modname}_init.
12379 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
12380 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
12381 New proto.
12382 (grub_keylayouts_fini) [!EMU]: Likewise.
12383 * include/grub/serial.h (grub_serial_init) [!EMU]:
12384 New proto.
12385 (grub_serial_fini) [!EMU]: Likewise.
12386 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
12387 New proto.
12388 (grub_terminfo_fini) [!EMU]: Likewise.
12389 * include/grub/video.h (grub_font_init) [!EMU]:
12390 New proto.
12391 (grub_font_fini) [!EMU]: Likewise.
12392 (grub_gfxterm_init) [!EMU]: Likewise.
12393 (grub_gfxterm_fini) [!EMU]: Likewise.
12394 (grub_video_sm712_init) [!EMU]: Likewise.
12395 (grub_video_sm712_fini) [!EMU]: Likewise.
12396 (grub_video_sis315pro_init) [!EMU]: Likewise.
12397 (grub_video_sis315pro_fini) [!EMU]: Likewise.
12398 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
12399 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
12400
12401 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12402
12403 Make nand a prefix for nand devices.
12404
12405 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
12406
12407 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12408
12409 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
12410 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
12411
12412 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12413
12414 * include/grub/env.h (grub_env_find): Remove prototype.
12415 * grub-core/kern/env.c (grub_env_find): Make static.
12416 (grub_env_set): Remove useless set.
12417
12418 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12419
12420 * grub-core/kern/i386/realmode.S: Remove useless align.
12421
12422 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12423
12424 * include/grub/dl.h (grub_dl_load_file): Don't export.
12425
12426 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12427
12428 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
12429 grub_dprintf.
12430
12431 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12432
12433 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
12434 grub_errors.
12435 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
12436 not reloading whole superblock but only the part which is really needed.
12437 Remove useless grub_errors.
12438 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
12439 grub_errors.
12440
12441 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12442
12443 Don't export grub_get_rtc.
12444
12445 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
12446 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
12447
12448 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12449
12450 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
12451
12452 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12453
12454 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
12455 argument since it can be deduced from diskfilter. All users updated.
12456
12457 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12458
12459 Remove prio_list.
12460
12461 * include/grub/list.h (grub_prio_list): Removed.
12462 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
12463 GRUB_COMMAND_PRIO_MASK.
12464 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
12465 GRUB_COMMAND_FLAG_ACTIVE.
12466 (grub_prio_list_insert): Removed.
12467 (grub_prio_list_remove): Likewise.
12468 (GRUB_AS_PRIO_LIST): Likewise.
12469 (GRUB_AS_PRIO_LIST_P): Likewise.
12470 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
12471 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
12472 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
12473 * grub-core/kern/command.c (grub_register_command_prio): Inline
12474 the prio_list code.
12475 (grub_unregister_command): Likewise.
12476
12477 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12478
12479 Fix interrupt mixup from previous commit.
12480
12481 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
12482 (grub_realidt): New var.
12483 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
12484 Load idt.
12485 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
12486 New declaration.
12487 (grub_relocator16_boot): Set grub_relocator16_idt.
12488 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
12489 (LOCAL(realidt)): ... this.
12490 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
12491 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
12492 (grub_realidt): New variable.
12493
12494 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12495
12496 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
12497 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
12498 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
12499 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
12500 Gettextize.
12501 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
12502 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
12503 * po/POTFILES.in: Regenerate.
12504
12505 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12506
12507 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
12508 errors.
12509
12510 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12511
12512 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
12513 \0.
12514 (add_length): Likewise.
12515
12516 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12517 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
12518
12519 GDB serial and backtrace support.
12520
12521 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
12522 (prot_to_real): Likewise.
12523 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
12524 * grub-core/Makefile.core.def (backtrace): New module.
12525 (gdb): Likewise.
12526 * grub-core/gdb/cstub.c: New file.
12527 * grub-core/gdb/gdb.c: Likewise.
12528 * grub-core/gdb/i386/idt.c: Likewise.
12529 * grub-core/gdb/i386/machdep.S: Likewise.
12530 * grub-core/gdb/i386/signal.c: Likewise.
12531 * grub-core/lib/i386/backtrace.c: Likewise.
12532 * grub-core/lib/backtrace.c: Likewise.
12533 * include/grub/backtrace.h: Likewise.
12534 * include/grub/gdb.h: Likewise.
12535 * include/grub/i386/gdb.h: Likewise.
12536
12537 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12538
12539 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
12540 New function.
12541 (add_length): Likewise.
12542 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
12543 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
12544 proto.
12545 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
12546 __argp_get_display_len.
12547
12548 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12549
12550 $"..." support in scripts.
12551
12552 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
12553 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
12554 * grub-core/script/yylex.l: Likewise.
12555 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
12556 value.
12557
12558 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12559
12560 * gentpl.py: Remove obsolete pkglib_DATA handling.
12561
12562 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12563
12564 Don't transform PACKAGE_TARNAME following a discussion on autoconf
12565 mailing list.
12566
12567 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
12568 * util/grub-kbdcomp.in: Likewise.
12569 * util/grub-mkconfig.in: Likewise.
12570 * util/grub-mkconfig_lib.in: Likewise.
12571 * util/grub-mknetdir.in: Likewise.
12572 * util/grub-mkrescue.in: Likewise.
12573 * util/grub-mkstandalone.in: Likewise.
12574 * util/grub-reboot.in: Likewise.
12575 * util/grub-set-default.in: Likewise.
12576 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12577
12578 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12579
12580 Remove GRUB_PREFIX.
12581
12582 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
12583 * util/grub.d/00_header.in: Compute prefix in the only place it's still
12584 used for backward compatibility.
12585
12586 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12587
12588 Add new all_video module.
12589
12590 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
12591 * grub-core/Makefile.core.def (all_video): New module.
12592 * grub-core/genmoddep.awk: Generate dependency of all_video from
12593 video.lst.
12594 * grub-core/lib/fake_module.c: New file.
12595 * grub-core/normal/main.c (features): Add feature_all_video_module.
12596 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
12597 don't do explicit search again.
12598 insmod all_video in load_video if available.
12599
12600 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12601
12602 Another round of string clarification and adding TRANSLATORS comments.
12603
12604 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12605
12606 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
12607
12608 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12609
12610 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
12611 to grub_ssize_t.
12612 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
12613 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
12614
12615 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12616
12617 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
12618 trailing newline implicitly. All users updated.
12619
12620 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12621
12622 Implement serial on IEEE1275 and EFI.
12623
12624 * docs/grub.texi (Platform-specific limitations): Fix the columen video
12625 on emu. Mention arc and emu as the only platforms without serial
12626 support.
12627 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
12628 ieee1275 platforms.
12629 * grub-core/term/efi/serial.c: New file.
12630 * grub-core/term/ieee1275/serial.c: Likewise.
12631 * grub-core/term/serial.c (grub_serial_find): Disable direct port
12632 specification if no ns8250 driver is available.
12633 (grub_cmd_serial): Likewise.
12634 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
12635 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
12636 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
12637 (grub_efi_parity_type_t): New type.
12638 (grub_efi_stop_bits_t): Likewise.
12639 (grub_efi_serial_io_interface): New struct.
12640 * include/grub/serial.h (grub_serial_port): Make 'broken' field
12641 available for all interfaces.
12642 Add EFI and IEEE1275 fields.
12643 (grub_ofserial_init): New proto.
12644 (grub_efiserial_init): Likeiwse.
12645 * util/grub.d/00_header.in: Don't check for the presence of serial
12646 module.
12647
12648 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12649
12650 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
12651 name as if it was an alias.
12652
12653 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12654
12655 * grub-core/commands/lsacpi.c (options): Fix typo.
12656
12657 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12658
12659 Convert grub-emu to argp.
12660
12661 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
12662 emu.
12663 * util/argp_common.c: Rename to ...
12664 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
12665 Add missing includes.
12666 * grub-core/kern/emu/main.c: Convert to argp.
12667 * po/POTFILES.in: Regenerate.
12668 * util/grub-install.in (usage): Make first letter lowcase in messages
12669 for uniformity.
12670 * util/grub-setup.c (options): Likewise.
12671
12672 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12673
12674 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
12675 Put back accidently commented-out code.
12676
12677 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12678
12679 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
12680 loop check using Brent algorithm.
12681 (grub_hfsplus_btree_search): Likewise.
12682
12683 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12684
12685 * util/grub-install.in: Fix usage of wrong device for PreP install.
12686
12687 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12688
12689 * conf/Makefile.common (CFLAGS_GNULIB): Add
12690 -Wno-unsafe-loop-optimizations.
12691 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
12692 on tools.
12693 * grub-core/commands/legacycfg.c: Add pragma to skip
12694 -Wunsafe-loop-optimizations.
12695 (check_password_md5_real): Fix loop counter type.
12696 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
12697 reading.
12698 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
12699 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
12700 loop condition.
12701 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
12702 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
12703 * grub-core/net/net.c (grub_net_route_address): Add safety loop
12704 condition.
12705 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
12706 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
12707 avoid possible infinite loops.
12708 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
12709 and -Wunsafe-loop-optimizations.
12710 * grub-core/script/yylex.l: Likewise.
12711 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
12712 (print_glyphs): Avoid infinite loops.
12713 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
12714
12715 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
12716
12717 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
12718 to avoid infinite loop.
12719 (disp_acpi_rsdt_table): Likewise.
12720
12721 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12722
12723 * grub-core/font/font.c (grub_font_load): Add support for default
12724 path for fonts ($prefix/fonts).
12725 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
12726 for checking if string is a path.
12727 * grub-core/normal/main.c (features): Add feature_default_font_path.
12728 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
12729 * util/grub.d/00_header.in: Use default directory if possible.
12730 * util/grub-install.in: Install unicode.pf2.
12731
12732 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12733
12734 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
12735 * po/Rules-swiss: New file.
12736 * po/swiss.sed: Likewise.
12737
12738 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12739
12740 * grub-core/fs/btrfs.c (find_device): Fix typos.
12741 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
12742 * util/grub-mkrelpath.c (argp_parser): Likewise.
12743 Reported by: Yuri Chornoivan.
12744
12745 2012-02-23 Dalet Omega <daletomega@gmail.com>
12746
12747 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
12748 for usual informative messages.
12749
12750 2012-02-23 Dalet Omega <daletomega@gmail.com>
12751
12752 Starfield theme.
12753
12754 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
12755 * conf/Makefile.common: Define starfielddir.
12756 * configure.ac: Configure starfield.
12757 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
12758 * themes/starfield/README: Likewise.
12759 * themes/starfield/blob_w.png: Likewise.
12760 * themes/starfield/boot_menu_c.png: Likewise.
12761 * themes/starfield/boot_menu_e.png: Likewise.
12762 * themes/starfield/boot_menu_n.png: Likewise.
12763 * themes/starfield/boot_menu_ne.png: Likewise.
12764 * themes/starfield/boot_menu_nw.png: Likewise.
12765 * themes/starfield/boot_menu_s.png: Likewise.
12766 * themes/starfield/boot_menu_se.png: Likewise.
12767 * themes/starfield/boot_menu_sw.png: Likewise.
12768 * themes/starfield/boot_menu_w.png: Likewise.
12769 * themes/starfield/slider_c.png: Likewise.
12770 * themes/starfield/slider_n.png: Likewise.
12771 * themes/starfield/slider_s.png: Likewise.
12772 * themes/starfield/src/blob_nw.xcf: Likewise.
12773 * themes/starfield/src/bootmenu/: Likewise.
12774 * themes/starfield/src/bootmenu/center.xcf: Likewise.
12775 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
12776 * themes/starfield/src/bootmenu/side.xcf: Likewise.
12777 * themes/starfield/src/slider_c.xcf: Likewise.
12778 * themes/starfield/src/slider_n.xcf: Likewise.
12779 * themes/starfield/src/slider_s.xcf: Likewise.
12780 * themes/starfield/src/terminalbox/: Likewise.
12781 * themes/starfield/src/terminalbox/center.xcf: Likewise.
12782 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
12783 * themes/starfield/src/terminalbox/side.xcf: Likewise.
12784 * themes/starfield/starfield.png: Likewise.
12785 * themes/starfield/terminal_box_c.png: Likewise.
12786 * themes/starfield/terminal_box_e.png: Likewise.
12787 * themes/starfield/terminal_box_n.png: Likewise.
12788 * themes/starfield/terminal_box_ne.png: Likewise.
12789 * themes/starfield/terminal_box_nw.png: Likewise.
12790 * themes/starfield/terminal_box_s.png: Likewise.
12791 * themes/starfield/terminal_box_se.png: Likewise.
12792 * themes/starfield/terminal_box_sw.png: Likewise.
12793 * themes/starfield/terminal_box_w.png: Likewise.
12794 * themes/starfield/theme.txt: Likewise.
12795
12796 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12797
12798 * util/grub.d/00_header.in: Add missing export theme.
12799
12800 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12801
12802 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
12803 already included.
12804 Reported by: Eren D.
12805
12806 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12807
12808 * conf/Makefile.common (grubdatadir): Removed.
12809 (Makefile.am): Move eveything grubdata to pkgdata.
12810
12811 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12812
12813 * grub-core/commands/acpihalt.c (get_sleep_type):
12814 Remove unused variable.
12815
12816 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12817
12818 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
12819 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
12820 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
12821 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
12822 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
12823 i18n with gettext no-op.
12824 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
12825 GRUB_ACPI_OPCODE_STRING_CONST.
12826 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
12827 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
12828
12829 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12830
12831 * po/POTFILES.in: Regenerate.
12832
12833 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12834
12835 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
12836 -Wno-error=missing-noreturn.
12837
12838 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12839
12840 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
12841 condition to avoid possibly infinite loops.
12842 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
12843 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
12844
12845 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12846
12847 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
12848 condition to avoid possibly infinite loops.
12849
12850 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12851
12852 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
12853 on show_error.
12854
12855 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12856
12857 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
12858
12859 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12860
12861 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
12862
12863 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12864
12865 * util/bin2h.c (usage): Add missing attribute noreturn.
12866
12867 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12868
12869 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
12870 if the size isn't divisible by 512.
12871
12872 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12873
12874 Make list_push and list_remove functions rather than inline functions
12875 to decrease size and avoid aliasing violations.
12876
12877 * include/grub/list.h (grub_list_push): Move to ...
12878 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
12879 * include/grub/list.h (grub_list_remove): Move to ...
12880 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
12881
12882 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12883
12884 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
12885 and -Wunused-result.
12886
12887 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
12888
12889 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
12890 Reported by: Seth Goldberg
12891
12892 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
12893
12894 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
12895
12896 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
12897
12898 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
12899 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
12900 command line.
12901 * docs/grub.texi (Simple configuration): Document
12902 GRUB_CMDLINE_GNUMACH.
12903
12904 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
12905
12906 * conf/Makefile.common (platform_SCRIPTS): New variable.
12907 (platform_PROGRAMS): Likewise.
12908 * gentpl.py: Mark *,module and *.image for install.
12909 * grub-core/gdb_grub.in: Add a notice of expected environment.
12910 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
12911 (gmodule.pl): Likewise.
12912
12913 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
12914
12915 Replace grub_checkkey with grub_getkey_noblock.
12916
12917 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
12918 (grub_getkey_noblock): ... this. All users updated.
12919
12920 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
12921
12922 * grub-core/kern/emu/console.c: Move to ...
12923 * grub-core/term/emu/console.c: ...here.
12924 (grub_ncurses_getkey): Fix return value if no key is detected.
12925
12926 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12927
12928 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
12929 (grub_unit_test_fini): Likewise.
12930 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
12931
12932 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12933
12934 * include/grub/test.h (GRUB_UNIT_TEST)
12935
12936 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12937
12938 * grub-core/script/execute.c (grub_script_break): Clarify logic.
12939 Better error handling.
12940 (grub_script_return): Likewise.
12941 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
12942
12943 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12944
12945 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
12946 rimplicit redifinition.
12947
12948 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12949
12950 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
12951 GRUB.
12952
12953 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12954
12955 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
12956 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
12957 prompt here.
12958
12959 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12960
12961 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
12962 as GRUB_ERR_BUG. Don't malloc if no device is available.
12963
12964 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12965
12966 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
12967 Mark calling with invalid term as GRUB_ERR_BUG.
12968
12969 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12970
12971 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
12972 packets rather than raising an error.
12973
12974 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12975
12976 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
12977 in if.
12978
12979 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12980
12981 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
12982 diagnostic to dprintf.
12983 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
12984
12985 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12986
12987 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
12988 device name.
12989
12990 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12991
12992 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
12993 (grub_ntfs_iterate_dir): Likewise.
12994
12995 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12996
12997 Efiemu stylistic fixes and gettext.
12998
12999 * grub-core/efiemu/i386/loadcore32.c
13000 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
13001 * grub-core/efiemu/i386/loadcore64.c
13002 (grub_arch_efiemu_relocate_symbols64): Likewise.
13003 * grub-core/efiemu/i386/pc/cfgtables.c
13004 (grub_machine_efiemu_init_tables): Likewise.
13005 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
13006 (grub_efiemu_loadcore_initXX): Add a filename argument.
13007 All users updated.
13008 Improved error message.
13009 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
13010 Add a filename argument.
13011 All users updated.
13012 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
13013 Reclassify double relocation as GRUB_ERR_BUG.
13014
13015 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13016
13017 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
13018 handling.
13019
13020 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13021
13022 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
13023 on partition.
13024
13025 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13026
13027 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
13028
13029 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13030
13031 Improve string. Gettextize.
13032
13033 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13034
13035 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
13036 utils.
13037 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
13038
13039 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13040
13041 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
13042 [GRUB_UTIL]: New function.
13043 (insert_array) [GRUB_UTIL]: Store partmaps.
13044 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
13045 partmaps.
13046 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
13047 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
13048 (probe_abstraction): Print diskfilter and not raid.
13049 Reported by: Lennart Sorensen
13050
13051 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13052
13053 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
13054 * util/grub-mkimagexx.c (MASK3): New define.
13055 (add_value_to_slot_20b): Use MASK3.
13056 (add_value_to_slot_21): Likewise.
13057 (relocate_addresses): Fix format specification.
13058 (load_image): Explicitly init symtab_section.
13059
13060 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13061
13062 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
13063 (grub_util_biosdisk_get_grub_dev): Fix format specification.
13064
13065 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13066
13067 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
13068 on powerpc.
13069 Reported by: Lennart Sorensen
13070
13071 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13072
13073 * gentpl.py: Add missing license header.
13074 * docs/grub.texi: Update copyright year.
13075
13076 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
13077
13078 Source grub-mkconfig_lib from the build directory at build time.
13079 Suggested by: Vladimir Serbinenko.
13080
13081 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
13082 * util/grub-install.in: Define pkgdatadir if not already set, and source
13083 grub-mkconfig_lib from there.
13084 * util/grub-kbdcomp.in: Likewise.
13085 * util/grub-mkconfig.in: Likewise.
13086 * util/grub-mknetdir.in: Likewise.
13087 * util/grub-mkrescue.in: Likewise.
13088 * util/grub-mkstandalone.in: Likewise.
13089 * util/grub-reboot.in: Likewise.
13090 * util/grub-set-default.in: Likewise.
13091 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
13092
13093 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13094
13095 Increase warning level.
13096
13097 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
13098 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
13099 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
13100 (TARGET_CFLAGS): Likewise.
13101 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
13102 * grub-core/Makefile.core.def (decompressor_xz): Add
13103 -Wno-unreachable-code.
13104 (normal): Add -Wno-redundant-decls.
13105 (xzio): Add -Wno-unreachable-code.
13106 (lzopio): Add -Wno-redundant-decls -Wno-error.
13107 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
13108 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
13109 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
13110 * grub-core/kern/dl.c: Add exception to -Wcast-align.
13111 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
13112 * grub-core/kern/i386/coreboot/init.c: Add exception to
13113 -Wsuggest-attribute=noreturn.
13114 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
13115 * grub-core/kern/ia64/dl_helper.c: Likewise.
13116 * grub-core/kern/mips/dl.c: Likewise.
13117 * grub-core/kern/sparc64/dl.c: Likewise.
13118 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
13119 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
13120 (memcmp): Likewise.
13121 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
13122 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
13123 * grub-core/loader/mips/linux.c: Likewise.
13124 * grub-core/loader/multiboot_elfxx.c: Likewise.
13125 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
13126 * grub-core/video/sm712.c: Add exception to -Wcast-align.
13127 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
13128 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
13129 fixme.
13130 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
13131 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
13132 Fix prototype.
13133
13134 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13135
13136 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
13137 address.
13138
13139 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13140
13141 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
13142 Avoid improper use of strings.
13143 (grub_cmd_legacy_initrdnounzip): Likewise.
13144
13145 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13146
13147 * include/grub/emu/misc.h (grub_util_warn): Add missing format
13148 attribute.
13149 (grub_util_info): Likewise.
13150 (grub_util_error): Likewise.
13151
13152 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13153
13154 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
13155 * util/grub-fstest.c (fstest): Likewise.
13156
13157 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13158
13159 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
13160 (grub_md_sha512_real): Likewise.
13161 (grub_util_get_geli_uuid): Likewise.
13162 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
13163 (grub_util_biosdisk_open): Fix format specification.
13164 Respect format security.
13165 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
13166 (xrealloc): Likewise.
13167 (xasprintf): Likewise.
13168
13169 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13170
13171 * util/import_gcry.py: Include grub/crypto.h in init.c.
13172
13173 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13174
13175 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
13176 (generate_image): Make prefix a const char *.
13177 Fix format specifications. Respect format security.
13178 Avoid void * arithmetics.
13179 Avoid shadowing.
13180 (argp_parser): Remove unused variable. Respect format security.
13181 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
13182 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
13183 (count_funcs): Remove unused variable.
13184 (relocate_addresses): Fix format specification.
13185 Disable x86-64 with elf32. Remove unused variables.
13186 (add_fixup_entry): Avoid shadowing.
13187 (make_reloc_section): Fix format specification.
13188 Use assert.
13189 (locate_sections): Fix format specifications.
13190 (load_image): Avoid shadowing.
13191
13192 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13193
13194 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
13195 Fix format specifications. Respect format security.
13196 Don't translate already translated grub_errmsg.
13197 (argp_parser): Remove unused variable
13198
13199 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13200
13201 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
13202
13203 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13204
13205 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
13206 (main): Likewise. Use xmalloc. Respect format security.
13207
13208 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13209
13210 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
13211 a const char *.
13212 (argp_parser): Remove unused variable.
13213
13214 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13215
13216 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
13217 (add_pixel): Make static.
13218 (add_font): Likewise.
13219 (write_string_section): Make name and str a const char *.
13220 (write_be16_section): Make name a const char *.
13221 (print_glyphs): Make static.
13222 (write_font_ascii_bitmap): Likewise.
13223 (write_font_width_spec): Likewise.
13224 (write_font_pf2): Likewise.
13225 (argp_parser): Remove unused variable.
13226 Respect format security.
13227 (main): Avoid shadowing. Respect format security.
13228
13229 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13230
13231 * util/grub-editenv.c (argp_parser): Make static.
13232 (create_envblk_file): Use xmalloc.
13233 (open_envblk_file): Likewise.
13234 Resepect format security.
13235 (set_variables): Respect format security.
13236
13237 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13238
13239 * util/getroot.c (grub_find_device): Respect format security.
13240 (get_mdadm_uuid): Remove unused variable.
13241 (grub_util_pull_device): Dont call gettext on already translated
13242 grub_errmsg.
13243 (find_system_device): Remove unused variable.
13244 (grub_util_get_grub_dev): Likewise.
13245 (grub_make_system_path_relative_to_its_root): Respect format security.
13246
13247 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13248
13249 * util/grub-fstest.c (execute_command): Make first argument
13250 a const char *.
13251 (read_file): Avoid shadowing.
13252 Reuse underlying error message if device open fails.
13253 (cmd_cmp): Respect format security.
13254 (root): Make const char *.
13255 (fstest): Remove args argument and use global copy.
13256 Respect format security.
13257 (argp_parser): Make static.
13258 (main): Make default_root const char *.
13259
13260 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13261
13262 * util/grub-mount.c (root): Make const char *.
13263 (execute_command): Make first argument a const char *.
13264 (fuse_init): Respect format security.
13265 (argp_parser): Make static. Remove unused variable.
13266 (main): Make default_root a const char *.
13267 Respect format security.
13268
13269 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13270
13271 * util/grub-probe.c (probe): Don't call gettext on already translated
13272 grub_errmsg.
13273 Remove unused variables.
13274 (argp_parser): Remove unused variable.
13275
13276 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13277
13278 * util/grub-script-check.c (argp_parser): Remove unused variable.
13279 (main): Rename read to curread to avoid shadowing.
13280
13281 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13282
13283 * util/misc.c (grub_util_write_image_at): Fix format specification.
13284 (grub_util_write_image): Likewise.
13285 (grub_script_execute_argument_to_string): Removed (unused).
13286 (grub_script_execute_menuentry): Likewise.
13287 (grub_putchar): Likewise.
13288
13289 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13290
13291 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
13292 (FUNCTION) [GRUB_UTIL]: Likewise.
13293 (VARIABLE) [GRUB_UTIL]: Likewise.
13294
13295 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13296
13297 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
13298 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
13299
13300 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13301
13302 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
13303 buffer.
13304
13305 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13306
13307 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
13308 (LzmaEnc_SaveState): Removed (unused).
13309 (LzmaEnc_RestoreState): Likewise.
13310 (LzmaEnc_InitPriceTables): Made static.
13311 (LzmaEnc_Construct): Likewise.
13312 (LzmaEnc_FreeLits): Likewise.
13313 (LzmaEnc_Destruct): Likewise.
13314 (LzmaEnc_Init): Likewise.
13315 (LzmaEnc_InitPrices): Likewise.
13316 (LzmaEnc_Finish): Likewise.
13317 (LzmaEnc_PrepareForLzma2): Removed (unused).
13318 (LzmaEnc_MemPrepare): Likewise.
13319 (LzmaEnc_GetNumAvailableBytes): Likewise.
13320 (LzmaEnc_GetCurBuf): Likewise.
13321 (LzmaEnc_CodeOneMemBlock): Likewise.
13322
13323 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13324
13325 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
13326 (grub_util_ldm_embed): Likewise.
13327
13328 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13329
13330 * util/grub-editenv.c (print_var): Rename name to varname to
13331 avoid shadowing.
13332 (main): Rename index to curindex to avoid shadowing.
13333 Make filename a const char *.
13334
13335 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13336
13337 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
13338 to arg_getline to avoid shadowing.
13339
13340 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13341
13342 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
13343 disk_ to avoid shadowing.
13344
13345 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13346
13347 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
13348 curindex to avoid shadowing.
13349 Make static.
13350 (MatchFinder_GetNumAvailableBytes): Make static.
13351
13352 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13353
13354 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
13355 avoid shadowing.
13356
13357 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13358
13359 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
13360 argument from encrypt to do_encrypt to avoid shadowing.
13361
13362 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13363
13364 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
13365 incorrect nesting of #if's.
13366
13367 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13368
13369 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
13370 checks which are always false on some platforms.
13371 (grub_cmd_lsacpi): Likewise.
13372 * grub-core/kern/misc.c (grub_strtoul): Likewise.
13373 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
13374 Likewise.
13375
13376 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13377
13378 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
13379 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
13380
13381 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13382
13383 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
13384 re_dfa_t to avoid breaking alignment invariants.
13385 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
13386 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
13387
13388 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13389
13390 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
13391 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
13392
13393 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13394
13395 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
13396 Fix declaration.
13397
13398 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13399
13400 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
13401 conserve alignment invariants.
13402 (grub_ehci_ehcc_read16): Likewise.
13403 (grub_ehci_oper_read32): Likewise.
13404 (grub_ehci_oper_write32): Likewise.
13405 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
13406 Conserve alignment invariants.
13407
13408 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13409
13410 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
13411 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
13412 declarations.
13413
13414 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13415
13416 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
13417 Remove unused variable.
13418
13419 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13420
13421 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
13422 Remove set in if.
13423
13424 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13425
13426 * include/grub/net.h: Remove double declarations.
13427
13428 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13429
13430 Remove "payload" command in ia64 Linux loader since I couldn't
13431 find any evidence of it being used for anything.
13432 Replace "relocate" command with an environment variable
13433
13434 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
13435 fields.
13436 (ia64_boot_payload): Removed.
13437 (last_payload): Likewise.
13438 (RELOCATE_OFF): Likewise.
13439 (RELOCATE_ON): Likewise.
13440 (RELOCATE_FORCE): Likewise.
13441 (relocate): Likewise.
13442 (free_pages): Don't free payloads.
13443 (grub_load_elf64): Use common error messages.
13444 Use "linux_relocate" variable.
13445 Increase the space after boot_params.
13446 (grub_cmd_payload): Removed.
13447 (grub_cmd_relocate): Likewise.
13448 (grub_cmd_fpswa): Improve messages.
13449 (cmd_payload): Removed.
13450 (cmd_relocate): Likewise.
13451 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
13452 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
13453
13454 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13455
13456 Convert UHCI to DMA framework.
13457
13458 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
13459 (grub_uhci_pci_iter): Fill new members
13460 (grub_alloc_td): Use P2V and V2P functions.
13461 (grub_free_queue): Likewise.
13462 (grub_alloc_qh): Likewise.
13463 (grub_uhci_setup_transfer): Likewise.
13464 (grub_uhci_check_transfer): Likewise.
13465
13466 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13467
13468 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
13469 Remove assignment in if while on it.
13470
13471 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13472
13473 * util/grub-mkstandalone.in: Fix modules directory.
13474
13475 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13476
13477 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
13478 on i386-pc target.
13479 (argp_parser): Accept "auto" as compression specification.
13480
13481 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13482
13483 Fix `help' with unloaded modules.
13484
13485 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
13486 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
13487 (grub_dyncmd_dispatcher): Small stylistic fix.
13488 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
13489 explicit help is requested.
13490
13491 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13492
13493 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
13494 Explicitly init restart while on it.
13495
13496 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13497
13498 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
13499 uninited variable.
13500
13501 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13502
13503 * util/grub-mknetdir.in: Use . rather than source for POSIX
13504 compatibility.
13505
13506 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13507
13508 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
13509
13510 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13511
13512 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
13513 variable.
13514
13515 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13516
13517 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
13518 without quotes.
13519
13520 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13521
13522 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
13523
13524 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13525
13526 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
13527 iteration of partitions.
13528
13529 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13530
13531 Improve gettext support. Stylistic fixes and error handling fixes while
13532 on it.
13533
13534 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13535
13536 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
13537 part. Instead setup the correct stack in RM.
13538 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
13539 for stack.
13540 * include/grub/i386/relocator_private.h: New file.
13541
13542 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13543
13544 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
13545 argument.
13546 * util/grub-fstest.c (options): Add missing DEVICE part.
13547
13548 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13549
13550 Clarify and unify messages.
13551
13552 * grub-core/commands/hashsum.c (options): Unify messages.
13553 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
13554 literal-only message as translatable.
13555 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
13556 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
13557 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
13558 commands.
13559 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
13560 key, not the key used to unlock. Clarify what it's used for.
13561 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
13562 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
13563 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
13564 * util/grub-editenv.c (options): Unify "verbose" message.
13565 * util/grub-fstest.c (read_file): Unify error message.
13566 (fstest): Add quotes around commands.
13567 (options): Unify "verbose" message.
13568 * util/grub-install.in: Add quotes around variable name.
13569 * util/grub-kbdcomp.in: Unify error message.
13570 * util/grub-mkfont.c (main): Likewise.
13571 * util/grub-mkrescue.in: Likewise.
13572 * util/grub-mklayout.c (options): Unify "verbose" message.
13573 * util/grub-mkstandalone.in: Unify help and verbose messages.
13574 * util/grub-mount.c (options): Unify "verbose" message.
13575 * util/grub-probe.c (options): Likewise.
13576 * util/grub-script-check.c (options): Likewise.
13577 * util/grub-setup.c (setup): Unify no-terminator message.
13578 (options): Use DEVICE and not DEV.
13579 Unify "verbose" message.
13580 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
13581
13582 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13583
13584 Improve and unify messages.
13585
13586 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
13587 name. All users updated.
13588 Print filename in error.
13589 (read_device_map): Print filename in error.
13590 * util/getroot.c (grub_guess_root_devices): Print filename in error.
13591 (grub_util_get_os_disk): Likewise.
13592 (grub_util_biosdisk_get_grub_dev): Likewise.
13593 (grub_util_check_block_device): Likewise.
13594 (grub_util_check_char_device): Likewise.
13595 (grub_make_system_path_relative_to_its_root): Likewise.
13596 * util/grub-editenv.c (create_envblk_file): Likewise.
13597 (open_envblk_file): Likewise.
13598 (write_envblk): Likewise.
13599 * util/grub-fstest.c (cmd_cp): Likewise.
13600 (cmd_cat): Likewise.
13601 (cmd_cmp): Likewise.
13602 * util/grub-menulst2cfg.c (main): Likewise.
13603 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
13604 (write_font_width_spec): Likewise.
13605 (write_font_pf2): Likewise.
13606 * util/grub-mkimage.c (generate_image): New argument outname.
13607 All users updated.
13608 Remove unreacheable message.
13609 (options): Unify messages.
13610 (help_filter): Likewise.
13611 * util/grub-mklayout.c (usage): Removed (unused).
13612 (main): Print filename in error.
13613 * util/grub-mkrescue.in: Fix wrong quoting.
13614 * util/grub-setup.c (setup): Print filename in error.
13615 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
13616 (check_sas): Likewise.
13617 * util/misc.c (grub_util_get_fp_size): Removed.
13618 (grub_util_get_image_size): Print filename in error.
13619 (grub_util_read_at): Removed.
13620 (grub_util_read_image): Print filename in error.
13621 (grub_util_load_image): Likewise.
13622 (grub_util_write_image_at): New argument filename. All users updated.
13623 Print filename in error.
13624 (grub_util_write_image): New argument filename. All users updated.
13625 Print filename in error.
13626 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
13627 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
13628
13629 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13630
13631 * grub-core/Makefile.core.def (pxechain): New module.
13632 * grub-core/loader/i386/pc/pxechainloader.c: New file.
13633 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
13634 function.
13635 (grub_pc_net_config_real): Use grub_pxe_get_cached.
13636 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
13637
13638 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13639
13640 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
13641 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
13642 * include/grub/err.h (grub_error_saved): New struct.
13643 (grub_errmsg): Make array size explicit.
13644 * include/grub/misc.h (grub_error_save): New function.
13645 (grub_error_load): Likewise.
13646 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
13647 (grub_error_push): Update `errno' member name.
13648 (grub_error_pop): Likewise
13649 * grub-core/net/tftp.c (tftp_data): New member save_err.
13650 (tftp_receive): Save error.
13651 (tftp_open): Restore error.
13652
13653 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13654
13655 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
13656 to real mode down to execute A20-related code in protected mode as
13657 intended.
13658
13659 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
13660
13661 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
13662 NULL when the argument `level' has an unexpected value.
13663
13664 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13665
13666 Move platform-dependent files from $prefix to $prefix/$platform.
13667
13668 * config.h.in (GRUB_TARGET_CPU): New definition.
13669 (GRUB_PLATFORM): Likewise.
13670 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
13671 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
13672 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
13673 * grub-core/kern/dl.c (grub_dl_load): Likewise.
13674 * grub-core/normal/autofs.c (read_fs_list): Likewise.
13675 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
13676 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
13677 * grub-core/normal/term.c (read_terminal_list): Likewise.
13678 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
13679 $prefix/locale.
13680 (grub_gettext_init_ext): Likewise.
13681 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
13682 grub_platform.
13683 * util/grub-install.in: Update directories.
13684 * util/grub-mknetdir.in: Likewise.
13685 * util/grub-mkrescue.in: Likewise.
13686
13687 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13688
13689 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
13690 grub_error framework. All users updated.
13691
13692 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13693
13694 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
13695 lists (by always binsearching), improve caching (cache strings
13696 used for binsearch, not only results), improve
13697 maintainability (by using more structured binary search) and correct
13698 error handling.
13699
13700 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13701
13702 * grub-core/script/execute.c (grub_script_return): Fix warning.
13703
13704 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13705
13706 * grub-core/script/execute.c (grub_script_return): Fix potential
13707 NULL-dereference.
13708 Reported by: Jim Meyering.
13709
13710 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13711
13712 * po/POTFILES.in: Regenerate.
13713 * util/grub-install.in: Gettextize the strings missed in first pass.
13714
13715 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13716
13717 * Makefile.util.def (grub-mkdevicemap): Removed.
13718 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
13719 * include/grub/util/deviceiter.h: Removed.
13720 * util/deviceiter.c: Likewise.
13721 * util/getroot.c (grub_util_get_os_disk): New function.
13722 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
13723 replacement for EFI.
13724 * util/grub-mkdevicemap.c: Removed.
13725 * util/grub-probe.c (probe): Handle PRINT_DISK.
13726 (argp_parser): Handle -t disk.
13727
13728 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13729
13730 * util/grub-mkfont.c: Migrate to argp.
13731 * util/grub-mklayout.c: Likewise.
13732 * util/grub-mkpasswd-pbkdf2.c: Likewise.
13733 * util/grub-mkrelpath.c: Likewise.
13734 * util/grub-probe.c: Likewise.
13735 * util/grub-script-check.c: Likewise.
13736
13737 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13738
13739 * util/grub-reboot.in: Add missing datarootdir.
13740 Add missing newline.
13741 * util/grub-set-default.in: Add missing datarootdir.
13742 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
13743 * util/grub-mkrescue.in: Likewise.
13744
13745 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13746
13747 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
13748
13749 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13750
13751 * util/grub-kbdcomp.in: Add decent help and gettextize.
13752 * docs/man/grub-kbdcomp.h2m: New file.
13753
13754 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13755
13756 Migrate grub-mkimage.c to argp.
13757
13758 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
13759 (grub-setup): Likewise.
13760 * util/grub-setup.c (print_version): Move to ...
13761 * util/argp_common.c (print_version): ... here.
13762 * util/grub-setup.c (argp_program_version_hook): Move to ...
13763 * util/argp_common.c (argp_program_version_hook): ... here.
13764 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
13765 safety.
13766 * util/grub-mkimage.c (main): Migrate to argp.
13767
13768 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13769
13770 * util/grub-mkrescue.in: Use same message as
13771 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
13772 for better translations.
13773
13774 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13775
13776 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
13777 options with generic grub-mkrescue.in with the goal of future
13778 merge.
13779
13780 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13781
13782 * grub-core/kern/mm.c: Add missing include of i18n.h
13783 * grub-core/lib/relocator.c: Likewise.
13784
13785 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13786
13787 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
13788 error.
13789 (allocate_pages): Check return value.
13790 Replace fatal with error.
13791 (grub_linux_boot): Replace printf with dprintf.
13792 Check find_mmap_size return value.
13793 Replace fatal with error.
13794 Don't call grub_machine_fini.
13795 (grub_load_elf64): Replace printf with dprintf.
13796 (grub_cmd_linux): Likewise.
13797 (grub_cmd_initrd): Likewise.
13798 (grub_cmd_payload): Likewise.
13799
13800 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13801
13802 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
13803 message.
13804 * grub-core/video/radeon_fuloong2e.c
13805 (grub_video_radeon_fuloong2e_setup): Likewise.
13806 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
13807 * grub-core/video/video.c (grub_video_set_mode): Don't override
13808 standard out of memory message.
13809
13810 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
13811
13812 NetBSD disk wedge support.
13813
13814 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
13815 [__NetBSD__]: Handle NetBSD disk wedges.
13816 * util/getroot.c (convert_system_partition_to_system_disk)
13817 [__NetBSD__]: Likewise.
13818
13819 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
13820
13821 * util/grub-mkconfig.in: Use umask rather than chmod to create
13822 grub.cfg.new to avoid insecure grub.cfg.
13823
13824 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13825
13826 * grub-core/commands/ls.c: Gettextize.
13827 * grub-core/commands/setpci.c: Likewise.
13828 * grub-core/commands/videotest.c: Likewise.
13829 * grub-core/disk/geli.c: Likewise.
13830 * grub-core/kern/mm.c: Likewise.
13831 * grub-core/lib/relocator.c: Likewise.
13832 * grub-core/loader/efi/appleloader.c: Likewise.
13833 * grub-core/loader/i386/xnu.c: Likewise.
13834 * grub-core/loader/ia64/efi/linux.c: Likewise.
13835 * grub-core/loader/xnu.c: Likewise.
13836 * grub-core/net/dns.c: Likewise.
13837 * grub-core/net/net.c: Likewise.
13838 * grub-core/script/lexer.c: Likewise.
13839 * grub-core/script/parser.y: Likewise.
13840 * grub-core/script/yylex.l: Likewise.
13841 * util/getroot.c: Likewise.
13842 * util/grub-setup.c: Likewise.
13843
13844 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13845
13846 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
13847 number.
13848
13849 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13850
13851 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
13852
13853 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13854
13855 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
13856 macro.
13857 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
13858 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
13859
13860 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13861
13862 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
13863 * util/grub-install.in: Gettextize.
13864 * util/grub-mkconfig.in: Likewise.
13865 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
13866 if not available.
13867 (grub_warn): Gettextize.
13868 * util/grub-mknetdir.in: Gettextize.
13869 * util/grub-mkrescue.in: Likewise.
13870 * util/grub-mkstandalone.in: Likewise.
13871 * util/grub-reboot.in: Likewise.
13872 * util/grub-set-default.in: Likewise.
13873 * util/grub.d/00_header.in: Likewise.
13874 * util/grub.d/10_hurd.in: Likewise.
13875 * util/grub.d/10_kfreebsd.in: Likewise.
13876 * util/grub.d/10_linux.in: Likewise.
13877 * util/grub.d/10_netbsd.in: Likewise.
13878 * util/grub.d/10_windows.in: Likewise.
13879 * util/grub.d/20_linux_xen.in: Likewise.
13880 * util/grub.d/30_os-prober.in: Likewise.
13881 * po/POTFILES-shell.in: Regenerate.
13882
13883 2012-02-03 Richard Laager <rlaager@wiktel.com>
13884
13885 * util/grub-mkimage.c (main): Fix format-security warning.
13886 * util/grub-mkrelpath.c (main): Likewise.
13887 * util/grub-probe.c (main): Likewise.
13888
13889 2012-02-03 Richard Laager <rlaager@wiktel.com>
13890
13891 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
13892 failure.
13893 Put back lost PRINT_DRIVE.
13894
13895 2012-02-03 Richard Laager <rlaager@wiktel.com>
13896
13897 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
13898 (grub_guess_root_devices): Replace strlen with sizeof.
13899 Avoid crash.
13900 (find_root_devices_from_poolname): Remove unused variable.
13901 Handle raidzN.
13902
13903 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13904
13905 Support install on multi-device filesystems.
13906
13907 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
13908 (grub_guess_root_devices): ...this. Return char **. All users updated.
13909 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
13910 Removed.
13911 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
13912 (find_root_devices_from_poolname): ... here.
13913 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
13914 Support zfs-fuse.
13915 (grub_guess_root_device): Rename to ...
13916 (grub_guess_root_devices): ... this. Return char **. All users updated.
13917 * util/grub-install.in: Handle multi-device filesystems.
13918 * util/grub-probe.c (probe). Make device_names a char **. Add delim
13919 argument. All users updated.
13920 Handle multi-device filesystems.
13921 Use 'delim' as separator.
13922 Remove device check to allow filesystems on file.
13923 (main): Support -0 argument. Handle multi-device.
13924 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
13925 Fix a cross-device check while on it.
13926 (arguments): Remove root_dev.
13927 (argp_parser): Remove -r.
13928 (main): Remove root_dev.
13929
13930 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
13931
13932 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
13933
13934 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
13935
13936 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
13937 symbol.
13938 Reported by: NODA, Kai <nodakai>.
13939
13940 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
13941
13942 Fix ehci on amd64.
13943
13944 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
13945 pointers.
13946 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
13947 (grub_ehci_setup_qh): Likewise.
13948 (grub_ehci_find_qh): Likewise.
13949 (grub_ehci_transaction): Likewise.
13950 (grub_ehci_setup_transfer): Likewise.
13951 (grub_ehci_check_transfer): Likewise.
13952 (grub_ehci_portstatus): Likewise.
13953 (grub_ehci_detect_dev): Likewise.
13954 (grub_ehci_transfer_controller_data): New field td_last_phys.
13955 (grub_ehci_setup_transfer): Fill td_last_phys.
13956 (grub_ehci_check_transfer): Use td_last_phys.
13957
13958 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
13959
13960 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
13961 if no submenu is present.
13962
13963 2012-02-01 Aleš Nesrsta <starous@volny.cz>
13964
13965 CBI support.
13966
13967 * include/grub/usb.h (grub_usbms_protocol_t): New values
13968 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
13969 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
13970 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
13971 (grub_usbms_dev): Add subclass, protocol and intrpt.
13972 Remove in_maxsz and out_maxsz.
13973 (grub_usbms_reset): Rename to ...
13974 (grub_usbms_bo_reset): .. this.
13975 (grub_usbms_cbi_cmd): New function.
13976 (grub_usbms_cbi_reset): Likewise.
13977 (grub_usbms_reset): Likewise.
13978 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
13979 (grub_usbms_transfer): Rename to ...
13980 (grub_usbms_transfer_bo): ... this.
13981 (grub_usbms_transfer_cbi): Likewise.
13982 (grub_usbms_transfer): Likewise.
13983
13984 2012-02-01 Aleš Nesrsta <starous@volny.cz>
13985 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
13986
13987 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
13988 the support for the CS5536 modification thereos and few bugfixes.
13989
13990 * grub-core/Makefile.core.def (ehci): New module.
13991 * grub-core/bus/usb/ehci.c: New file.
13992 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
13993 port and hubaddr. All users updated.
13994 Save port and hubaddr into dev structure.
13995 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
13996 define.
13997 * include/grub/pci.h (grub_dma_phys2virt): New function.
13998 (grub_dma_virt2phys): Likewise.
13999 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
14000
14001 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14002
14003 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
14004 check as some mkfs implementations omit it.
14005
14006 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14007
14008 * docs/grub.texi (Unicode): Mention identifier and space limitations.
14009
14010 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14011
14012 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
14013 Add new member volname2.
14014 (grub_jfs_label): Use volname2 if available.
14015
14016 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14017
14018 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
14019 over last_mounted as seen in image generated by mkfs.nilfs2.
14020 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
14021
14022 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14023
14024 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
14025 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
14026 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
14027
14028 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14029
14030 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
14031 over the sector.
14032
14033 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14034
14035 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
14036 subvolume name (by removing a bogus and useless check).
14037
14038 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14039
14040 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
14041 sizeof while on it.
14042
14043 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14044
14045 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
14046 (grub_scsi_read_capacity10): ... this.
14047 (grub_scsi_read_capacity16): New function.
14048 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
14049 0xffffffff.
14050 Fix off-by-one error.
14051 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
14052 64-bit unsigned.
14053 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
14054 (grub_scsi_read_capacity10): ... this.
14055 (grub_scsi_read_capacity_data): Rename to ...
14056 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
14057 (grub_scsi_read_capacity16): New struct.
14058 (grub_scsi_read_capacity16_data): Likewise.
14059 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
14060 grub_scsi_cmd_read_capacity10.
14061 New command grub_scsi_cmd_read_capacity16.
14062
14063 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14064
14065 SCSI >2TiB support.
14066
14067 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
14068 (grub_scsi_write16): Likewise.
14069 (grub_scsi_read): Use read16 when necessary.
14070 (grub_scsi_write): Likewise.
14071 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
14072 (grub_scsi_write16): Likewise.
14073 (grub_scsi_cmd_t): Add READ16 and WRITE16.
14074
14075 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14076
14077 SCSI write support (for usbms mainly).
14078
14079 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
14080 a const pointer.
14081 (grub_scsi_write): Implement.
14082 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
14083
14084 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14085
14086 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
14087 variable.
14088
14089 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14090
14091 * grub-core/lib/posix_wrap/string.h (memchr): New function.
14092
14093 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14094
14095 * po/POTFILES.in: Regenerate.
14096
14097 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14098
14099 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
14100 with grub_printf to avoid unnecessary fatal failure.
14101
14102 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14103
14104 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
14105 (INT_MAX): Likewise.
14106 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
14107 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
14108 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
14109 (strcpy): Likewise.
14110 (strstr): Likewise.
14111 (strchr): Likewise.
14112 (strncpy): Likewise.
14113 (strcat): Likewise.
14114 (strncat): Likewise.
14115 (strcoll): Likewise.
14116 * include/grub/types.h (GRUB_SHRT_MAX): New define.
14117 (GRUB_INT_MAX): Likewise.
14118
14119 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14120
14121 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
14122 unexpected error.
14123 (optimize_utf8): Likewise.
14124 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
14125
14126 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14127
14128 * grub-core/boot/i386/pc/lnxboot.S: Use
14129 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
14130 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
14131 location.
14132 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
14133 definition.
14134 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
14135
14136 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14137
14138 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
14139 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
14140 now to avoid double free.
14141 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
14142 hostdisk.
14143 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
14144 * util/grub-probe.c (escape_of_path): Always return a new copy.
14145 (print_full_name): Escape path.
14146 (probe): Don't call grub_util_devname_to_ofpath on NULL.
14147 Fix hints on abstractions.
14148
14149 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14150
14151 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
14152 Don't add "root" line if no compatibility hont is available.
14153 Suggested by: Seth Goldberg.
14154
14155 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14156
14157 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
14158 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
14159 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
14160 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
14161
14162 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14163
14164 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
14165
14166 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14167
14168 * util/grub-pe2elf.c (ehdr): Make static.
14169 (shdr): Likewise.
14170 (num_sections): Likewise.
14171 (offset): Likewise.
14172
14173 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14174
14175 Eliminate ofpath limits and possible overflows.
14176
14177 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
14178 (OF_PATH_MAX): Removed.
14179 (MAX_DISK_CAT): New const.
14180 (find_obppath): Use allocated rather than preallocated buffer.
14181 Return result. Argument of_path removed. All users updated.
14182 Add missing fdstat.
14183 (xrealpath): New function.
14184 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
14185 Allocate rather than use preallocated buffer. All users updated.
14186 (__of_path_common): Use allocated rather than preallocatecd buffer.
14187 Return result. Argument of_path removed. All users updated.
14188 (vendor_is_ATA): Read only needed part form the file.
14189 (check_sas): Allocate depending on contents rather than fixed.
14190 (main) [STANDALONE]: Handle NULL result.
14191
14192 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14193
14194 * grub-core/normal/completion.c (iterate_dev): Close the disk.
14195
14196 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14197
14198 Cryptodisk write support.
14199
14200 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
14201 (grub_cryptodisk_decrypt): Moved logic to ...
14202 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
14203 (grub_cryptodisk_write): Implement.
14204 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
14205 (grub_util_fd_write): ... this. Make global.
14206 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
14207
14208 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14209
14210 * include/grub/list.h (grub_list_remove): Don't crash if element is
14211 removed twice.
14212
14213 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14214
14215 Rename ofconsole to console.
14216
14217 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
14218 as sysnonym to console.
14219 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
14220 * grub-core/term/ieee1275/console.c: ... this. All users updated.
14221 Rename grub_ofconsole_ to grub_console_. All users updated
14222 (grub_console_term_output): Rename "ofconsole" to "console".
14223 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
14224 as "console".
14225
14226 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14227
14228 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
14229 handling.
14230 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
14231 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
14232 GRUB_DISK_DEVICE_FILE_ID.
14233
14234 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14235
14236 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
14237 and improve performance.
14238
14239 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14240
14241 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
14242 missing ieee1275/ prefix on whole disk.
14243
14244 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14245
14246 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
14247 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
14248
14249 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14250
14251 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
14252
14253 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14254
14255 Merge common RAID and LVM logic to an abstract diskfilter.
14256 Add LDM support using the same framework.
14257
14258 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
14259 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
14260 (libgrubmods): Remove grub-core/disk/raid.c and
14261 grub-core/partmap/gpt.c.
14262 * grub-core/Makefile.core.def (ldm): New module.
14263 (raid): Renamed to diskfilter. All users updated.
14264 * grub-core/disk/raid.c: Moved to ...
14265 * grub-core/disk/diskfilter.c: ... here.
14266 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
14267 (lv_num): New var.
14268 (find_array): Renamed to ...
14269 (find_lv): ... this. Support multi-LV. Skip nameless LVs
14270 (grub_is_array_readable): Renamed to ...
14271 (grub_is_lv_readable): ... this. Support multinode hierarchy.
14272 (insert_array): New argument id.
14273 (is_node_readable): New function.
14274 (scan_device): Rename to ...
14275 (scan_disk): .. this. Restrict to one disk.
14276 (scan_devices): New function.
14277 (grub_diskfilter_iterate): Support multi-LV.
14278 Skip invisible and nameless LVs.
14279 (grub_diskfilter_memberlist): Support multi-LV.
14280 (grub_diskfilter_read_node): New function.
14281 (grub_raid_read): Most of logic moved to ...
14282 (read_segment): ... here
14283 (read_lv): New function.
14284 (grub_diskfilter_get_vg_by_uuid): New function.
14285 (grub_diskfilter_make_raid): Likewise.
14286 * grub-core/disk/ldm.c: New file.
14287 * grub-core/disk/lvm.c (vg_list): Removed.
14288 (lv_count): Likewise.
14289 (scan_depth): Likewise.
14290 (is_lv_readable): Likewise.
14291 (grub_lvm_getvalue): Advance pointer past the number.
14292 (find_lv): Removed.
14293 (do_lvm_scan): Refactored into ...
14294 (grub_lvm_detect): ... this. Support raid.
14295 (grub_lvm_iterate): Removed.
14296 (grub_lvm_memberlist): Likewise.
14297 (grub_lvm_open): Likewise.
14298 (grub_lvm_close): Likewise.
14299 (read_lv): Likewise.
14300 (read_node): Likewise.
14301 (is_node_readable): Likewise.
14302 (is_lv_readable): Likewise.
14303 (grub_lvm_read): Likewise.
14304 (grub_lvm_write): Likewise.
14305 (grub_lvm_dev): Use diskfilter
14306 (GRUB_MOD_INIT): Likewise.
14307 (GRUB_MOD_FINI): Likewise.
14308 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
14309 new interface.
14310 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
14311 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14312 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
14313 grub_diskfilter_read_node.
14314 Fix a bug with xor.
14315 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
14316 grub_diskfilter_read_node.
14317 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
14318 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
14319 (grub_disk_dev_iterate): Move from here...
14320 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
14321 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
14322 Make global.
14323 (grub_hostdisk_find_partition_start): Likewise.
14324 (grub_hostdisk_os_dev_to_grub_drive): New function.
14325 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
14326 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
14327 * util/getroot.c (make_device_name): ... here.
14328 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
14329 Move to ...
14330 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
14331 * grub-core/kern/emu/hostdisk.c
14332 (convert_system_partition_to_system_disk): Move to ...
14333 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
14334 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
14335 * util/getroot.c (device_is_wholedisk): ... here.
14336 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
14337 * util/getroot.c (find_system_device): ... here.
14338 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
14339 Move to ...
14340 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
14341 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
14342 Move to ...
14343 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
14344 Handle LDM.
14345 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
14346 Move to ...
14347 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
14348 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
14349 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
14350 DISKFILTER.
14351 * include/grub/raid.h: Renamed to ...
14352 * include/grub/diskfilter.h: ... this.
14353 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
14354 (GRUB_RAID_LAYOUT_*): Make into array.
14355 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
14356 (grub_diskfilter_vg): New struct.
14357 (grub_diskfilter_pv_id): Likewise.
14358 (grub_raid_member): Removed.
14359 (grub_raid_array): Likewise.
14360 (grub_diskfilter_pv): New struct.
14361 (grub_diskfilter_lv): Likewise.
14362 (grub_diskfilter_segment): Likewise.
14363 (grub_diskfilter_node): Likewise.
14364 (grub_diskfilter_get_vg_by_uuid): New proto.
14365 (grub_raid_register): Inline.
14366 (grub_diskfilter_unregister): Likewise.
14367 (grub_diskfilter_make_raid): New proto.
14368 (grub_diskfilter_vg_register): Likewise.
14369 (grub_diskfilter_read_node): Likewise.
14370 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
14371 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
14372 (grub_util_is_ldm): Likewise.
14373 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
14374 (grub_hostdisk_find_partition_start): Likewise.
14375 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
14376 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
14377 New definition.
14378 (grub_gpt_partition_map_iterate): New proto.
14379 * include/grub/lvm.h (grub_lvm_vg): Removed.
14380 (grub_lvm_pv): Likewise.
14381 (grub_lvm_lv): Likewise.
14382 (grub_lvm_segment): Likewise.
14383 (grub_lvm_node): Likewise.
14384 * util/getroot.c [...]
14385 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
14386 (probe_abstraction): Likewise.
14387 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
14388 (main): Remove dead logic.
14389
14390 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
14391
14392 Simplify root device discover and don't fail when trying to open
14393 incorrect devices.
14394
14395 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
14396 function.
14397 (get_diskname_from_path): Likewise.
14398 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
14399 of iterating.
14400
14401 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14402
14403 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
14404
14405 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14406
14407 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
14408 pastthe end.
14409
14410 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14411
14412 * util/grub-install.in: Add missing \.
14413 Reported by: gentoofan
14414
14415 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14416
14417 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
14418 (direct_read): Use correct compressed size.
14419 (grub_squash_read_data): Likewise.
14420
14421 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14422
14423 * docs/grub.texi (Platform limitations): New section.
14424 (Platform-specific operations): Likewise.
14425 * docs/grub-dev.texi (Porting): Likewise.
14426
14427 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14428
14429 IEEE1275 disk write support.
14430
14431 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
14432 const void *.
14433 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
14434 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
14435 and seek loginc to ...
14436 (grub_ofdisk_prepare): ... here.
14437 (grub_ofdisk_write): Implement.
14438
14439 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14440
14441 ARC disk write support.
14442
14443 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
14444 (reopen): New argument writable. All users updated.
14445 Handle required access mode.
14446 (grub_arcdisk_write): Implement.
14447 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
14448 (grub_arc_firmware_vector): Make buffer to write a const buffer.
14449
14450 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14451
14452 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
14453 (read_sblock): Don't attempt to read superblocks outside the disk size.
14454
14455 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14456
14457 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
14458 first superblock to find the second one when possible.
14459
14460 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14461
14462 * util/grub-install.in: Fix an ARC bug.
14463 Print a warning if no platform-specific setup is available.
14464
14465 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14466
14467 Use static allocation rather than scratch pointer in reed_solomon.
14468 It decreases its size significantly and avoids a variable in .text.
14469
14470 * grub-core/lib/reed_solomon.c (scratch): Removed.
14471 (chosenstat): New const or static array.
14472 (sigma): Likewise.
14473 (errpot): Likewise.
14474 (errpos): Likewise.
14475 (sy): Likewise.
14476 (mstat): Likewise.
14477 (errvals): Likewise.
14478 (eqstat): Likewise.
14479 (pol_evaluate): Replace x with log_x argument. All users updated.
14480 (syndroms): Removed.
14481 (gauss_solve): Use statically allocated arrays.
14482 (rs_recover): Likewise.
14483 Calculate syndroms directly.
14484 (decode_block): Use statically allocated arrays.
14485 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
14486 (main) [TEST]: Allow -DTEST -DSTANDALONE.
14487
14488 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14489
14490 Eliminate fixed limit on reed solomon decoder length.
14491
14492 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
14493 rather than hardcoding the address.
14494 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
14495 no_reed_solomon_length.
14496 Move gate_a20 to no-reed-solomon part.
14497 Don't force a particular size of no reed-solomon part.
14498 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
14499 Removed.
14500 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
14501 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
14502
14503 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14504
14505 * grub-core/commands/wildcard.c (match_files): Handle filenames
14506 without explicit device.
14507 (wildcard_expand): Don't add explicit device if not already present.
14508 * tests/grub_script_echo1.in: Add a new expansion test.
14509
14510 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14511
14512 Replace single-linked with double-linked lists. It results in more
14513 compact and more efficient code.
14514
14515 * grub-core/kern/list.c (grub_list_push): Moved from here ...
14516 * include/grub/list.h (grub_list_push): ... to here. Set prev.
14517 (grub_list_remove): Moved from here ...
14518 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
14519 (grub_prio_list_insert): Set prev.
14520 * include/grub/list.h (grub_list): Add prev. All users updated.
14521
14522 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14523
14524 Handle newer autotools. Add some missing quotes while on it.
14525
14526 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
14527 (pkglib_DATA): Move grub-mkconfig_lib from here ...
14528 (pkgdata_DATA): ... here.
14529 * Makefile.util.def (update-grub_lib): Removed.
14530 * conf/Makefile.common (pkglib_DATA): Removed.
14531 (pkglib_SCRIPTS): Likewise.
14532 (pkgdata_DATA): New variable.
14533 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
14534 needed.
14535 Add missing quotes.
14536 Remove unused variable while on it.
14537 * tests/util/grub-shell.in: Likewise.
14538 * util/grub-install.in: Likewise.
14539 * util/grub-mkconfig.in: Likewise.
14540 * util/grub-mknetdir.in: Likewise.
14541 * util/grub-mkrescue.in: Likewise.
14542 * util/grub-mkstandalone.in: Likewise.
14543 * util/grub.d/00_header.in: Likewise.
14544 * util/grub.d/10_hurd.in: Likewise.
14545 * util/grub.d/10_illumos.in: Likewise.
14546 * util/grub.d/10_kfreebsd.in: Likewise.
14547 * util/grub.d/10_linux.in: Likewise.
14548 * util/grub.d/10_netbsd.in: Likewise.
14549 * util/grub.d/10_windows.in: Likewise.
14550 * util/grub.d/20_linux_xen.in: Likewise.
14551 * util/grub.d/30_os-prober.in: Likewise.
14552 * util/update-grub_lib.in: Removed.
14553
14554 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
14555
14556 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
14557 a workaround for intel problem.
14558
14559 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
14560 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14561 2012-01-23 pfsmorigo
14562
14563 * util/grub-install.in: Support dd'in into PreP partition.
14564 * util/grub-probe.c (probe): Support discovering partition type.
14565 (main): Support -t msdos_parttype.
14566
14567 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14568
14569 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
14570 infinite recursion using counter.
14571 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
14572 init to skip it if the magic check fails.
14573 (dec_stream_header): Init s->crc32.
14574
14575 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14576 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
14577 2012-01-22 Richard Laager <rlaager@wiktel.com>
14578
14579 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
14580 All users updated.
14581 (find_bestub): Determine correct size.
14582 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
14583 (scan_disk): Align the size down.
14584 Call check pool before find_bestub to have ashift.
14585
14586 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14587
14588 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
14589 dprintf in no-malloc zone.
14590
14591 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
14592
14593 * configure.ac: Add back in test for limits.h.
14594
14595 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14596
14597 Support 4K-sector NTFS.
14598
14599 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
14600 (grub_ntfs_data): Remove blocksize.
14601 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
14602 Remove data argument. All users updated.
14603
14604 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14605
14606 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
14607 being in .text to avoid dprel references.
14608 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
14609 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
14610 (grub_arch_highmemsize): Likewise.
14611 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
14612 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
14613 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
14614
14615 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14616
14617 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
14618
14619 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
14620 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
14621
14622 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14623
14624 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
14625 GRUB_UTIL.
14626 (grub_set_datetime_cmos): Likewise.
14627
14628 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14629
14630 Make XZ compression parameters dependent on target and not host CPU.
14631
14632 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
14633 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
14634
14635 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14636
14637 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
14638 set but not used variable.
14639
14640 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14641
14642 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
14643 created when no uuid support is compiled into mkfs.reiser.
14644
14645 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14646
14647 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
14648 (utf8_to_macroman): Do the opposite.
14649 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
14650
14651 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14652
14653 * configure.ac: Refise build qemu_mips w/o unifont.
14654
14655 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14656
14657 Eliminate grub_min/grub_max prone to overflow usage.
14658
14659 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
14660 (poll_nonroot_hub): Likewise.
14661 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
14662 (grub_affs_label): Likewise.
14663 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
14664 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
14665 (grub_hfs_label): Likewise.
14666 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
14667 * grub-core/fs/zfs/zfs.c (MIN): Remove.
14668 (zap_leaf_array_equal): Use grub_size. Remove MIN.
14669 (zap_leaf_array_get): Likewise.
14670 (dnode_get_path): Likewise.
14671 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
14672 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
14673 * grub-core/script/execute.c (grub_script_break): Likewise.
14674 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
14675 grub_max.
14676 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
14677 * include/grub/misc.h (grub_min): Removed.
14678 (grub_max): Likewise.
14679
14680 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
14681
14682 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
14683 direct.inode = 0.
14684
14685 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14686
14687 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
14688
14689 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14690
14691 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
14692
14693 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14694
14695 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
14696 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
14697
14698 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14699
14700 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
14701 rather than a hack for grub_strncasemap.
14702
14703 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14704
14705 Support multiple initrds
14706 Note: part of this was accidently committed in r3739.
14707
14708 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
14709 initrd.
14710 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
14711 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
14712 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
14713 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14714 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14715
14716 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14717
14718 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
14719 disks with unknown size.
14720 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
14721
14722 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14723
14724 Remove defines pertaining to arbitrary limits not affecting GRUB
14725 anymore.
14726
14727 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
14728 (EXT2_MAX_SYMLINKCNT): Likewise.
14729 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
14730 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
14731 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
14732 (GRUB_PXE_MAX_BLKSIZE): Likewise.
14733 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
14734 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
14735 (DN_MAX_OBJECT_SHIFT): Likewise.
14736 (DN_MAX_OFFSET_SHIFT): Likewise.
14737 (DN_MAX_OBJECT): Likewise.
14738 (DNODES_PER_LEVEL_SHIFT): Likewise.
14739 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
14740 (SPA_MAXBLOCKSIZE): Likewise.
14741 (SPA_BLOCKSIZES): Likewise.
14742 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
14743 (MZAP_MAX_BLKSZ): Likewise.
14744
14745 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14746
14747 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
14748 handle NULL appropriately.
14749 Remove MIN.
14750
14751 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14752
14753 Fix efiemu.
14754
14755 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
14756 cpu/types.h.
14757 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
14758 * configure.ac: Fix efiemu check.
14759
14760 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14761
14762 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
14763 grub_probe.
14764 Reported by: adamwill
14765
14766 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
14767
14768 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
14769
14770 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14771
14772 Fix handling of wide characters in gfxterm.
14773
14774 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
14775 (clear_char): Likewise.
14776 (paint_char): Skip code == NULL chars.
14777 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
14778
14779 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14780
14781 * grub-core/normal/charset.c: Move comment to right place.
14782
14783 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14784
14785 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
14786 (GRUB_AFFS_FLAG_FFS): Put back where it was.
14787 (grub_affs_mount): Revert the correct version checking.
14788
14789 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14790
14791 * docs/grub.texi (Unicode): Mention several other unsupported features.
14792
14793 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14794
14795 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
14796 case statements as compile-time one.
14797 (direct_read): Prevent spurious warnings.
14798 (grub_squash_read_data): Likewise.
14799
14800 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14801
14802 Various squash4 fixes and LZO and XZ support.
14803
14804 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
14805 Add xzembed source files.
14806 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
14807 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
14808 (grub_squash_inode): New subtype long_dir.
14809 (SQUASH_TYPE_LONG_DIR): New inode type.
14810 (COMPRESSION): New enum.
14811 (XZBUFSIZ): New const.
14812 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
14813 (read_chunk): Use data->decompress.
14814 (zlib_decompress): New function.
14815 (lzo_decompress): Likewise.
14816 (xz_decompress): Likewise.
14817 (squash_mount): Set new data fields.
14818 (grub_squash_iterate_dir): Handle long dir.
14819 (squash_unmount): Free xzdec and xzbuf.
14820 (grub_squash_open): Check ino type.
14821 (direct_read): Stylistic fixes. Use data->decompress.
14822 (grub_squash_read_data): Likewise.
14823 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
14824 (get_byte): Likewise.
14825 (grub_zlib_disk_read): Removed.
14826 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
14827 (GRUB_POSIX_BOOL_DEFINED): New define.
14828 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
14829 * grub-core/lib/xzembed/xz.h: Addmissing includes.
14830 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
14831 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
14832
14833 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14834
14835 Don't override more informative errors.
14836
14837 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
14838 * grub-core/font/font.c (open_section): Likewise.
14839 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
14840 filename. Don't override errors.
14841 (grub_cmd_openbsd_ramdisk): Don't override errors.
14842 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
14843 (grub_cmd_initrd): Likewise.
14844 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
14845 (grub_cmd_initrd): Likewise.
14846 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
14847 (grub_cmd_linux): Likewise.
14848 (grub_cmd_initrd): Likewise.
14849 (grub_cmd_payload): Likewise.
14850 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
14851 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
14852 (grub_cmd_module): Likewise.
14853 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14854 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14855 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
14856 (grub_cmd_xnu_mkext): Likewise.
14857 (grub_cmd_xnu_ramdisk): Likewise.
14858 (grub_xnu_check_os_bundle_required): Likewise.
14859 (grub_xnu_load_kext_from_dir): Likewise.
14860 (grub_cmd_xnu_kextdir): Likewise.
14861 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
14862
14863 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14864
14865 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
14866 as 1024 in block size field. Found on one of my test images.
14867 Small optimisation while on it.
14868
14869 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14870
14871 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
14872 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
14873 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
14874 performance fixes while on it.
14875 (grub_sfs_close): Fix memory leak while on it.
14876 (grub_sfs_label): Convert Latin1 to UTF-8.
14877
14878 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14879
14880 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
14881 space to avoid overflows.
14882 (grub_hfs_label): Convert from macroman to UTF-8.
14883
14884 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14885
14886 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
14887
14888 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14889
14890 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
14891
14892 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14893
14894 * unicode: Import Unicode 6.0 data.
14895
14896 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14897
14898 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
14899 outside of range.
14900
14901 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14902
14903 Avoid cutting in the middle of UTF-8 character.
14904
14905 * include/grub/charset.h (grub_getend): New function.
14906 * grub-core/script/function.c (grub_script_function_find): Use
14907 grub_getend.
14908 * grub-core/normal/completion.c (add_completion): Likewise.
14909
14910 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14911
14912 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
14913 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
14914 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
14915 (GRUB_UNICODE_TAG_END): Likewise.
14916 (GRUB_UNICODE_LAST_VALID): Likewise.
14917
14918 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14919
14920 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
14921 len and make it smaller. All users updated.
14922 * util/import_unicode.py: Put length and not end character.
14923 Check length.
14924
14925 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14926
14927 Make better Unicode-compliant and unify some UTF-8 code pathes.
14928
14929 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
14930 valid character.
14931 (grub_is_valid_utf8): Use grub_utf8_process.
14932 Check resulting code range.
14933 (grub_utf8_to_ucs4): Use grub_utf8_process.
14934 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
14935 valid character.
14936
14937 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14938
14939 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
14940
14941 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14942
14943 * docs/grub.texi (Filesystems): Mention AFS.
14944
14945 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14946
14947 * docs/grub.texi (Filesystems): Clarify restrictions.
14948 (Regexp): Mention non-Unicode regexp behaviour.
14949 (Other): Mention non-Unicode matching behaviour.
14950
14951 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14952
14953 Make HFS implementation use MacRoman.
14954
14955 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
14956 (macroman): New const array.
14957 (macroman_to_utf8): New function.
14958 (utf8_to_macroman): Likewise.
14959 (grub_hfs_find_dir): Use utf8_to_macroman.
14960 (grub_hfs_dir): Use macroman_to_utf8.
14961 Set case_insensitive.
14962
14963 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14964
14965 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
14966
14967 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14968
14969 Integrate hints into autogeneration scripts.
14970
14971 * docs/grub.texi (Filesystems): Add a hostdisk example.
14972 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
14973 (grub-probe): Add ofpath.
14974 * gentpl.py: Remove group nosparc64.
14975 * grub-core/commands/search.c (cache_entry): New struct.
14976 (cache): New var.
14977 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
14978 * grub-core/commands/search_wrap.c (options): Add platform-specific
14979 hint options.
14980 (grub_cmd_search): Handle platform-specific hints.
14981 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
14982 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
14983 (grub_util_biosdisk_data): Likewise.
14984 (grub_util_biosdisk_open): Set device_map.
14985 (read_device_map): Handle "" as indication of no map.
14986 Set device_map.
14987 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
14988 (grub_util_biosdisk_get_compatibility_hint): New function.
14989 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
14990 * include/grub/emu/hostdisk.h
14991 (grub_util_biosdisk_get_compatibility_hint): New proto.
14992 * util/grub-install.in: Don't call grub-mkdevicemap.
14993 Add platform-specific hint to load.cfg.
14994 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
14995 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
14996 hints. Set root preliminary to compatibility hint, not to OS name.
14997 * util/grub-probe.c (PRINT_*): Add hints.
14998 (print): Make static.
14999 (escape_of_path): New function.
15000 (guess_bios_drive): Likewise.
15001 (guess_efi_drive): Likewise.
15002 (guess_baremetal_drive): Likewise.
15003 (print_full_name): Likewise.
15004 (probe): Handle hints.
15005 (main): Likewise.
15006 * util/ieee1275/devicemap.c: Removed.
15007 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
15008 updated.
15009 (grub_util_devname_to_ofpath): Return NULL on failure.
15010
15011 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
15012 resource leak.
15013 * util/getroot.c (grub_util_pull_device): Fix memory leak.
15014
15015 * po/POTFILES.in: Regenerated.
15016
15017 Allow purely long options
15018
15019 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
15020 (SHORT_ARG_USAGE): Likewise.
15021 (grub_arg_show_help): Compare opt with help_options.
15022 (parse_option): Receive opt as argument. If makes big simplificatons.
15023 All users updated
15024
15025 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15026
15027 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
15028 Restructure to avoid warning.
15029
15030 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15031
15032 * util/grub-install.in: Account for possible escaped comma in device
15033 name.
15034
15035 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15036
15037 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
15038 channel.
15039
15040 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15041
15042 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
15043 allocation and zero-setting.
15044 (grub_ieee1275_get_devname): Check that alias is complete.
15045
15046 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15047
15048 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
15049 unaligned segments.
15050
15051 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15052
15053 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
15054 prefix.
15055 (grub_ofdisk_open): Check and discard ieee1275 prefix.
15056 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
15057 Add ieee1275 prefix.
15058
15059 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15060
15061 * docs/grub.texi (Filesystems): Update.
15062
15063 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15064
15065 Support odc, newc and bigendian cpio formats.
15066
15067 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
15068 * grub-core/Makefile.core.def (newc): New module.
15069 (odc): Likewise.
15070 (cpio_be): Likewise.
15071 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
15072 (MAGIC): Likewise.
15073 (MAGIC2): Likewise.
15074 (head) [MODE_ODC]: Adapt for the format.
15075 (head) [MODE_NEWC]: Likewise.
15076 (head) [!MODE_*]: Write fields of interest as arrays.
15077 (MAGIC_USTAR): Removed.
15078 (read_number) [MODE_NEWC]: Change to hex.
15079 (read_number) [!MODE_*]: Parse binary arrays.
15080 (grub_cpio_find_file): Factor out the code for better structure and
15081 always use read_number.
15082 (grub_cpio_mount): Use MAGIC and MAGIC2.
15083 (grub_cpio_dir): Exit on first hook non-0 return.
15084 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
15085 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
15086 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
15087 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
15088 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
15089 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
15090 * grub-core/fs/newc.c: New file.
15091 * grub-core/fs/odc.c: Likewise.
15092 * grub-core/fs/cpio_be.c: Likewise.
15093
15094 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15095
15096 Fix handling of tar numbers occupying the whole field.
15097
15098 * grub-core/fs/cpio.c (read_number): New function.
15099 (grub_cpio_find_file): Use read_number instead of strtoull.
15100
15101 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15102
15103 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
15104 occupying the whole field size.
15105
15106 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
15107
15108 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
15109
15110 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15111
15112 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
15113
15114 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
15115
15116 * grub-core/Makefile.core.def (lzma_decompress): Add missing
15117 TARGET_IMG_LDFLAGS.
15118
15119 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15120
15121 * util/getroot.c (ESCAPED_PATH_MAX): New define.
15122 (mountinfo_entry): Increase the field size to take escaping into
15123 account.
15124 (find_root_device_from_libzfs): Add one byte to size of strings for
15125 security.
15126
15127 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15128
15129 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
15130 an assert.
15131 * util/grub-setup.c (setup): Likewise.
15132
15133 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15134
15135 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
15136 _LzmaDecodeA.
15137
15138 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15139
15140 * docs/grub.texi (Internationalisation): New section.
15141
15142 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15143
15144 * docs/grub.texi (Loopback booting): New section.
15145
15146 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
15147
15148 * util/grub-mkstandalone.in: Fix minor typo errors.
15149
15150 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
15151
15152 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
15153
15154 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
15155 net/icmp.c and net/icmp6.c.
15156 (http): New module.
15157 (priority_queue): Likewise.
15158 * grub-core/io/bufio.c: Rewritten.
15159 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
15160 TYPE_WITH_CONFIGFILE_OPTION.
15161 (legacy_commands): Add bootp and dhcp.
15162 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
15163 (grub_legacy_parse): Likewise.
15164 * grub-core/lib/priority_queue.c: New file.
15165 * grub-core/net/arp.c: Add missing license header.
15166 (arp_find_entry): Removed.
15167 (arp_find_entry): Likewise.
15168 (grub_net_arp_resolve): Rename to ...
15169 (grub_net_arp_send_request): ...this.
15170 (grub_net_arp_receive): New card argument.
15171 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
15172 Set router and DNS server.
15173 (grub_net_configure_by_dhcp_ack): Handle routing information.
15174 (grub_cmd_bootp): Set checksum.
15175 (grub_bootp_init): Remove net_dhcp.
15176 * grub-core/net/dns.c: New file.
15177 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
15178 completion.
15179 (get_card_packet): Handle allocation.
15180 (grub_efinet_findcards): Set mtu.
15181 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
15182 (get_card_packet): Handle allocation.
15183 (emucard): Set mtu.
15184 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
15185 (GRUB_MOD_INIT): Set mtu.
15186 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
15187 mtu.
15188 (get_card_packet): Handle allocation.
15189 (grub_ofnet_findcards): Set mtu.
15190 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
15191 assert.
15192 (grub_net_recv_ethernet_packet): Handle IPv6.
15193 * grub-core/net/http.c: New file.
15194 * grub-core/net/icmp.c: Likewise.
15195 * grub-core/net/icmp6.c: Likewise.
15196 * grub-core/net/ip.c (ip6addr): New type.
15197 (ip6hdr): Likewise.
15198 (reassemble): Likewise.
15199 (cmp): New function.
15200 (reassembles): New variable.
15201 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
15202 (id): New variable.
15203 (send_fragmented): New function.
15204 (grub_net_send_ip_packet): Rename to ...
15205 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
15206 Handle non-UDP.
15207 (grub_net_recv_ip_packets): Rename to ...
15208 (handle_dgram): ... this. Check checksum. Handle non-UDP.
15209 (free_rsm): New function.
15210 (free_old_fragments): Likewise.
15211 (grub_net_recv_ip4_packets): New function.
15212 (grub_net_send_ip6_packet): Likewise.
15213 (grub_net_send_ip_packet): Likewise.
15214 (grub_net_recv_ip6_packets): Likewise.
15215 (grub_net_recv_ip_packets): Likewise.
15216 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
15217 (LINK_LAYER_CACHE_SIZE): New const.
15218 (link_layer_find_entry): New function.
15219 (grub_net_link_layer_add_address): Likewise.
15220 (grub_net_link_layer_resolve_check): Likewise.
15221 (grub_net_link_layer_resolve): Likewise.
15222 (grub_net_ipv6_get_slaac): Likewise.
15223 (grub_net_ipv6_get_link_local): Likewise.
15224 (grub_cmd_ipv6_autoconf): Likewise.
15225 (parse_ip): Handle one number representation.
15226 (parse_ip6): New functoion.
15227 (match_net): Handle IPv6.
15228 (grub_net_resolve_address): Handle IPv6 and DNS.
15229 (grub_net_resolve_net_address): Handle IPv6.
15230 (route_cmp): New function.
15231 (grub_net_route_address): Find best route.
15232 (grub_net_addr_to_str): Handle IPv6.
15233 (grub_net_addr_cmp): New function.
15234 (grub_net_add_addr): Register local route.
15235 (print_net_address): Handle net address.
15236 (grub_net_poll_cards): Retransmit TCP.
15237 (grub_net_poll_cards_idle_real): Likewise.
15238 (have_ahead): New function.
15239 (grub_net_seek_real): Use underlying seek.
15240 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
15241 * grub-core/net/tcp.c: New file.
15242 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
15243 (cmp): New function.
15244 (ack): Likewise.
15245 (tftp_receive): Handle unordered input.
15246 (destroy_pq): New function.
15247 (tftp_close): Close pq.
15248 * grub-core/net/udp.c: Put missing license header.
15249 (grub_net_udp_socket): New function.
15250 (udp_socket_register): Likewise.
15251 (grub_net_udp_close): Likewise.
15252 (grub_net_recv_udp_packet): Check checksum.
15253 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
15254 * include/grub/misc.h (grub_memchr): New function.
15255 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
15256 (grub_net_card_driver): Return buf in recv.
15257 (grub_net_slaac_mac_list): New struct.
15258 (grub_network_level_protocol_id): Add ipv6.
15259 (grub_net_network_level_addr): Likewise.
15260 (grub_net_network_level_net_addr): Likewise.
15261 (grub_net_app_protocol): Add seek.
15262 (grub_net_socket): Removed.
15263 (grub_net_sockets): Likewise.
15264 (grub_net_socket_register): Likewise.
15265 (grub_net_socket_unregister): Likewise.
15266 (FOR_NET_SOCKETS): Likewise.
15267 (grub_net_add_addr): Add const.
15268 (GRUB_NET_BOOTP_*): New enum.
15269 (grub_net_addr_cmp): New proto.
15270 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
15271 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
15272 (grub_net_hwaddr_to_str): NEw proto.
15273 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
15274 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
15275 (grub_dns_init): New proto.
15276 (grub_dns_fini): Likewise.
15277 (grub_net_tcp_retransmit): Likewise.
15278 (grub_net_link_layer_add_address): Likewise.
15279 (grub_net_link_layer_resolve_check): Likewise.
15280 (grub_net_link_layer_resolve): Likewise.
15281 (grub_net_dns_lookup): Likewise.
15282 (grub_net_add_dns_server): Likewise.
15283 (grub_net_remove_dns_server): Likewise.
15284 (GRUB_NET_TRIES): New const.
15285 (GRUB_NET_INTERVAL): Likewise.
15286 * include/grub/net/arp.h: Mostly rewritten.
15287 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
15288 * include/grub/net/ip.h: Mostly rewritten.
15289 * include/grub/net/netbuff.h: Indent.
15290 * include/grub/net/tcp.h: New file.
15291 * include/grub/net/udp.h: Mostly rewritten.
15292 * include/grub/priority_queue.h: New file.
15293 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
15294 (grub_swap_bytes64_compile_time): Likewise.
15295 (grub_cpu_to_be16_compile_time): Likewise.
15296 (grub_cpu_to_be32_compile_time): Likewise.
15297 (grub_cpu_to_be64_compile_time): Likewise.
15298 (grub_be_to_cpu64_compile_time): Likewise.
15299
15300 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
15301
15302 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
15303 UINT_TO_PTR with cast.
15304
15305 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15306
15307 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
15308 don't use them.
15309
15310 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15311
15312 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
15313 already there.
15314
15315 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15316
15317 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
15318 confusing ipxe.
15319
15320 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15321
15322 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
15323 Add missing const attribute.
15324 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
15325 Likewise.
15326 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
15327 Likewise.
15328
15329 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15330
15331 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
15332 misaligned access.
15333 (serpent_setkey): Likewise.
15334 (serpent_encrypt_internal): Likewise.
15335 (serpent_decrypt_internal): Likewise.
15336 (serpent_encrypt): Don't put an alignment-increasing cast.
15337 (serpent_decrypt): Likewise.
15338 (serpent_test): Likewise.
15339
15340 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15341
15342 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
15343
15344 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15345
15346 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
15347
15348 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
15349 grub_addr_t casts.
15350 (PTR_TO_UINT64): Likewise.
15351 (PTR_TO_UINT32): Likewise.
15352
15353 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15354
15355 * util/grub-mkimage.c (generate_image): Decrease the higher limit
15356 because of stack.
15357 * util/grub-setup.c (setup): Don't add redundancy past the higher load
15358 limit.
15359
15360 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15361
15362 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
15363 text_width > available width a bit more gracefully.
15364
15365 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15366
15367 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
15368 current address calculation.
15369
15370 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15371
15372 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
15373 stack.
15374 (encode_block): Likewise.
15375
15376 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15377
15378 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
15379 certainety.
15380
15381 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15382
15383 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
15384 non-RS part to avoid RS messing with GDT.
15385 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
15386 Increase to suit in realmode routines.
15387
15388 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15389
15390 * grub-core/kern/i386/realmode.S: Increase alignment.
15391 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
15392
15393 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15394
15395 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
15396 be deterministic.
15397 (syndroms): Compute 0 syndrom.
15398 (rs_recover): Use 0 syndrom.
15399
15400 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15401
15402 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
15403
15404 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15405
15406 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
15407 brackets.
15408
15409 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15410
15411 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
15412 account.
15413 (get_top_pad): Likewise.
15414 (get_right_pad): Likewise.
15415 (get_bottom_pad): Likewise.
15416
15417 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15418
15419 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
15420
15421 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15422
15423 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
15424 attribute as the structure isn't guaranteed to be properly aligned.
15425 (grub_efi_pci_device_path): Likewise.
15426 (grub_efi_pccard_device_path): Likewise.
15427 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
15428 specify the size of `memory_type'.
15429 (grub_efi_vendor_device_path): Likewise.
15430 (grub_efi_controller_device_path): Likewise.
15431 (grub_efi_acpi_device_path): Likewise.
15432 (grub_efi_expanded_acpi_device_path): Likewise.
15433 (grub_efi_atapi_device_path): Likewise.
15434 (grub_efi_scsi_device_path): Likewise.
15435 (grub_efi_fibre_channel_device_path): Likewise.
15436 (grub_efi_1394_device_path): Likewise.
15437 (grub_efi_usb_device_path): Likewise.
15438 (grub_efi_usb_class_device_path): Likewise.
15439 (grub_efi_i2o_device_path): Likewise.
15440 (grub_efi_mac_address_device_path): Likewise.
15441 (grub_efi_ipv4_device_path): Likewise.
15442 (grub_efi_ipv6_device_path): Likewise.
15443 (grub_efi_infiniband_device_path): Likewise.
15444 (grub_efi_uart_device_path): Likewise.
15445 (grub_efi_vendor_messaging_device_path): Likewise.
15446 (grub_efi_hard_drive_device_path): Likewise.
15447 (grub_efi_cdrom_device_path): Likewise.
15448 (grub_efi_vendor_media_device_path): Likewise.
15449 (grub_efi_file_path_device_path): Likewise.
15450 (grub_efi_protocol_device_path): Likewise.
15451 (grub_efi_piwg_device_path): Likewise.
15452 (grub_efi_bios_device_path): Likewise.
15453
15454 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15455
15456 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
15457 (grub_ucs4_to_utf8_alloc): Likewise.
15458 (grub_ucs4_to_utf8): Likewise.
15459 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
15460 (grub_ucs4_to_utf8_alloc): Likewise.
15461
15462 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15463
15464 AFFS never uses unicode.
15465
15466 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
15467 (grub_latin1_to_utf8): New inline function.
15468 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
15469
15470 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15471
15472 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
15473 overflow.
15474
15475 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15476
15477 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
15478 (grub_squash_dirent_header): Likewise.
15479 (read_chunk): Don't double swap.
15480 (grub_squash_iterate_dir): Fix swap sizes.
15481
15482 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15483
15484 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
15485
15486 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15487
15488 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
15489 (grub_hfs_iterate_dir): Likewise.
15490
15491 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15492
15493 Fix video on platforms where unaligned access is forbidden.
15494 Make several optimisations while on it.
15495
15496 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
15497 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15498 (grub_video_fbblit_replace_32bit_1bit): Likewise.
15499 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15500 Disable.
15501 (grub_video_fbblit_replace_16bit_1bit):
15502 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15503 (grub_video_fbblit_replace_8bit_1bit): Likewise.
15504 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
15505 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
15506 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15507 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15508 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
15509 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
15510 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
15511 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
15512 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
15513 (grub_video_fbblit_replace_index_RGB888): Likewise.
15514 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
15515 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
15516 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
15517 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
15518 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
15519 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
15520 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15521 Disable.
15522 (grub_video_fbblit_blend_XXX565_1bit):
15523 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15524 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
15525 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
15526 void *.
15527 * grub-core/video/fb/video_fb.c (common_blitter)
15528 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
15529 (grub_video_fb_create_render_target_from_pointer)
15530 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
15531 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
15532 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
15533 definition.
15534 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
15535
15536 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15537
15538 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
15539 HH22 and HM10 relocations.
15540
15541 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15542
15543 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
15544
15545 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15546
15547 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
15548 allocation succeeded.
15549
15550 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15551
15552 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
15553 argument a u8 pointer. All users updated.
15554 Handle unaligned buffers.
15555
15556 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15557
15558 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
15559 add_part to workaround compiler bug.
15560
15561 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15562
15563 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
15564
15565 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15566
15567 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
15568 Reserve alignment invariants.
15569 (grub_multiboot_load): Likewise.
15570 (retrieve_video_parameters): Likewise.
15571 (grub_multiboot_make_mbi): Likewise.
15572
15573 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15574
15575 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
15576 incorrect pointer.
15577
15578 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15579
15580 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
15581 (grub_pata_pio_write): Likewise.
15582
15583 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15584
15585 Add noreturn attributes and remove unreachable code.
15586
15587 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
15588 code.
15589 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
15590 code. Mark as noreturn.
15591 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
15592 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
15593 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
15594 unreachable code.
15595 * grub-core/kern/main.c (grub_main): Mark as noreturn.
15596 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
15597 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
15598 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
15599 * include/grub/kernel.h (grub_main): Mark as noreturn.
15600 * include/grub/reader.h (grub_rescue_run): Likewise.
15601
15602 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15603
15604 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
15605 redundant declaration.
15606
15607 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15608
15609 * include/grub/net.h (grub_net_network_level_interfaces): Remove
15610 redundant declaration.
15611 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
15612
15613 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15614
15615 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
15616 to ensure alignment.
15617 (grub_hdparm_print_identify): Make argument uint16 * to ensure
15618 alignment. Ensure tmp alignment.
15619 (grub_cmd_hdparm): Ensure buf alignment.
15620 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
15621 to ensure alignment.
15622 (grub_ata_dumpinfo): Ensure text alignment.
15623 (grub_atapi_identify): Preserve alignment invariant.
15624 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
15625
15626 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15627
15628 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
15629 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
15630 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
15631 * include/grub/misc.h (grub_reboot)
15632 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
15633 (grub_halt) [__mips__]: Likewise.
15634
15635 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15636
15637 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
15638 Remove redundant declaration.
15639 (grub_mmap_get_post64): Likewise.
15640 (grub_mmap_get_upper): Likewise.
15641 (grub_mmap_get_lower): Likewise.
15642
15643 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15644
15645 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
15646 uint32_t * to ensure alignment.
15647 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
15648
15649 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15650
15651 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
15652 uint16_t * to ensure alignment.
15653 (sun_pc_partition_map_iterate): Make `block' a union to ensure
15654 alignment.
15655
15656 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15657
15658 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
15659 to ensure alignment.
15660 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
15661
15662 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15663
15664 * grub-core/fs/ntfs.c (u16at): Make into inline function.
15665 Handle unaligned pointers.
15666 (u32at): Likewise.
15667 (u64at): Likewise.
15668 (fixup): Use byte access instead of v16at.
15669 (find_attr): Fix imporper usage of v32at.
15670 (read_data): Likewise.
15671 (list_file): Handle byte-swapping and unaligned strings.
15672 (grub_ntfs_label): Likewise.
15673
15674 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15675
15676 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
15677 as it's not necessarily aligned.
15678
15679 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15680
15681 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
15682 redundant declaration.
15683 (grub_serial_init): Likewise.
15684 (grub_terminfo_init): Likewise.
15685
15686 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15687
15688 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
15689 function.
15690 (ZAP_HASH_IDX): Likewise.
15691 (ZAP_LEAF_HASH_SHIFT): Likewise.
15692 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
15693 (LEAF_HASH): Likewise.
15694 (ZAP_LEAF_NUMCHUNKS): Likewise.
15695 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
15696 alignment invariants. Return pointer. All users updated.
15697 (ZAP_LEAF_ENTRY): Make into inline function.
15698 (NBBY): Removed.
15699 (xor): LIkewise.
15700 (xor_out): Use grub_crypto_xor.
15701 (dnode_get_path): Use grub_get_unaligned.
15702 (nvlist_find_value): Likewise.
15703 (grub_zfs_nvlist_lookup_uint64): Likewise.
15704 (grub_zfs_nvlist_lookup_string): Likewise.
15705 (get_nvlist_size): Likewise.
15706 (grub_zfs_open): Likewise.
15707 (fill_fs_info): Likewise.
15708 (grub_zfs_dir): Likewise.
15709 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
15710 alignment invariants.
15711 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
15712 necessarily aligned.
15713
15714 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15715
15716 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
15717
15718 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15719
15720 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
15721 arithmetic to conserve alignment invariants.
15722
15723 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15724
15725 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
15726 redundant declaration.
15727 (grub_efiemu_mm_obtain_request): Likewise.
15728 (grub_efiemu_prepare): Likewise.
15729
15730 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15731
15732 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
15733 to match types.
15734
15735 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15736
15737 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
15738 case of aunaligned recptr.
15739 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
15740 alignment.
15741 (grub_hfsplus_btree_search): Handle unaligned index.
15742
15743 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15744
15745 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
15746 to get freetag and skip.
15747
15748 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15749
15750 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
15751 array.
15752 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
15753 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
15754
15755 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15756
15757 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
15758 name for checksum and fix allocation algorithm.
15759
15760 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15761
15762 * include/grub/types.h (grub_properly_aligned_t): New type.
15763 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
15764 (grub_get_unaligned16): Add explicit casts.
15765 (grub_get_unaligned32): Likewise.
15766 (grub_get_unaligned64): Likewise.
15767 (grub_set_unaligned16): New function.
15768 (grub_set_unaligned32): Likewise.
15769
15770 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15771
15772 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
15773
15774 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15775
15776 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
15777 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
15778 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
15779
15780 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15781
15782 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
15783 conditionals.
15784
15785 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15786
15787 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
15788 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
15789
15790 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15791
15792 Unify and improve RAID and crypto xor.
15793
15794 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
15795 changed to grub_crypto_xor
15796 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
15797 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
15798 Use bigger types when possible.
15799
15800 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15801
15802 * grub-core/disk/raid.c (scan_devices): Fix condition.
15803
15804 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15805
15806 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
15807 Make name a const ptr.
15808
15809 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15810
15811 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
15812 first argument a const pointer.
15813 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
15814 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
15815 proto.
15816 (grub_children_iterate): Likewise.
15817 (grub_machine_mmap_iterate): Remove redundant declaration.
15818
15819 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15820
15821 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
15822 (grub_cmd_acpi) [!x86]: Disable EBDA.
15823
15824 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15825
15826 Enable UTF8 in gnulib regexp.
15827
15828 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
15829 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
15830 (isupper): Use grub_isupper.
15831 (isascii): New inline function.
15832 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
15833 * grub-core/lib/posix_wrap/wctype.h: Likewise.
15834 * grub-core/normal/charset.c (grub_utf8_process): New function.
15835 (grub_utf8_to_utf16): Use grub_utf8_process.
15836 (grub_encode_utf8_character): New function.
15837 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
15838 * include/grub/charset.h (grub_utf8_process): New declaration.
15839 (grub_encode_utf8_character): Likewise.
15840 * include/grub/misc.h (grub_islower): New inline function.
15841 (grub_isupper): Likewise.
15842 (grub_strchrsub): Moved down to fix the definitions.
15843
15844 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15845
15846 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
15847 specification.
15848
15849 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15850
15851 * include/grub/loader.h (grub_loader_register_preboot_hook):
15852 Use struct preboot * and not void * for handle. All users updated.
15853 (grub_loader_unregister_preboot_hook): Likewise.
15854
15855 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
15856
15857 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
15858 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
15859 UTF-16-BE. All users updated.
15860 (grub_hfsplus_cmp_catkey): Fix unicode handling.
15861 (grub_hfsplus_iterate_dir): Likewise.
15862 (grub_hfsplus_label): Likewise.
15863
15864 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
15865
15866 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
15867
15868 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
15869
15870 Add missing const qualifiers.
15871
15872 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
15873 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
15874 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
15875 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
15876 (grub_lvm_check_flag): Likewise.
15877 * grub-core/efiemu/i386/coredetect.c
15878 (grub_efiemu_get_default_core_name): Likewise
15879 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
15880 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
15881 * grub-core/fs/ntfs.c (fixup): Likewise.
15882 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
15883 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
15884 (fzap_lookup): Likewise.
15885 (zap_lookup): Likewise.
15886 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
15887 * grub-core/lib/legacy_parse.c (check_option): Likewise.
15888 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
15889 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
15890 (grub_freebsd_add_meta_module): Likewise.
15891 (grub_cmd_freebsd_module): Likewise.
15892 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
15893 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
15894 (grub_xnu_writetree_get_size): Likewise.
15895 (grub_xnu_writetree_toheap_real): Likewise.
15896 (grub_xnu_find_key): Likewise.
15897 (grub_xnu_create_key): Likewise.
15898 (grub_xnu_create_value): Likewise.
15899 (grub_xnu_register_memory): Likewise.
15900 (grub_xnu_check_os_bundle_required): Likewise.
15901 (grub_xnu_scan_dir_for_kexts): Likewise.
15902 (grub_xnu_load_kext_from_dir): Likewise.
15903 * grub-core/normal/color.c (color_list): Likewise.
15904 * grub-core/normal/completion.c (current_word): Likewise.
15905 * grub-core/normal/menu_entry.c (insert_string): Likewise.
15906 * grub-core/term/serial.c (grub_serial_find): Likewise.
15907 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
15908 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
15909 Likewise.
15910 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
15911 (grub_freebsd_add_meta_module): Likewise.
15912 * include/grub/lib/arg.h (grub_arg_option): Likewise.
15913 * include/grub/net.h (grub_net_card_driver): Likewise.
15914 (grub_net_card): Likewise.
15915 (grub_net_app_protocol): Likewise.
15916 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
15917 * include/grub/serial.h (grub_serial_find): Likewise.
15918 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
15919 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
15920 (grub_xnu_create_value): Likewise.
15921 (grub_xnu_find_key): Likewise.
15922 (grub_xnu_scan_dir_for_kexts): Likewise.
15923 (grub_xnu_load_kext_from_dir): Likewise.
15924
15925 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
15926 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
15927 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
15928 Moved from here ...
15929 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
15930
15931 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
15932
15933 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
15934
15935 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
15936
15937 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
15938 (read_device): Fix size calculation.
15939
15940 2011-11-25 Robert Millan <rmh@gnu.org>
15941
15942 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
15943 (find_root_device_from_libzfs): Add zpool output parser to be used
15944 as fallback when libzfs isn't available.
15945
15946 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
15947
15948 * po/Makefile.in.in: Add missing escape-continuation.
15949
15950 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
15951
15952 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
15953
15954 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15955
15956 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
15957
15958 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15959
15960 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
15961
15962 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15963
15964 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
15965
15966 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15967
15968 * grub-core/lib/adler32.c: Add missing license specification.
15969 * grub-core/lib/crc64.c: Likewise.
15970 * grub-core/loader/i386/pc/plan9.c: Likewise.
15971 * grub-core/partmap/plan.c: Likewise.
15972
15973 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
15974
15975 Add facility to debug GRUB with gdb under qemu.
15976
15977 * grub-core/gdb_grub.in: New file.
15978 * grub-core/gmodule.pl.in: Likewise.
15979 * grub-core/Makefile.core.def (gmodule.pl): New script.
15980 (gdb_grub): Likewise.
15981
15982 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15983
15984 * util/grub-mount.c (argp_parser): Accept relative pathes.
15985 * util/grub-fstest.c (argp_parser): Likewise.
15986
15987 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15988
15989 Plan9 support.
15990
15991 * Makefile.util.def (libgrubmods): Add
15992 grub-core/partmap/plan.c.
15993 * docs/grub.texi: Notice Plan9 support.
15994 * grub-core/Makefile.core.def (plan9): New module.
15995 (part_plan): Likewise.
15996 * grub-core/loader/i386/pc/plan9.c: New file.
15997 * grub-core/partmap/plan.c: Likewise.
15998 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
15999 define.
16000 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
16001 * include/grub/mm.h (grub_extend_alloc): New inline function.
16002
16003 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16004
16005 Make Reed-Solomon faster by using power of generator representation of
16006 GF(256)*.
16007
16008 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
16009 (gf_double_t): Likewise.
16010 (gf_invert): Removed.
16011 (gf_powx): New array.
16012 (gf_powx_inv): Likewise.
16013 (scratch): Move higher.
16014 (gf_reduce): Removed.
16015 (gf_mul): Use powx.
16016 (gf_invert): Likewise.
16017 (init_inverts): Replaced with ...
16018 (init_powx): ...this. All users updated.
16019 (pol_evaluate): Replace multiplications with additions.
16020 (rs_encode): Likewise.
16021 (gauss_eliminate): Call gf_invert.
16022 (grub_reed_solomon_add_redundancy): Call init_powx.
16023 (grub_reed_solomon_recover): Call init_powx unconditionally.
16024
16025 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16026
16027 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
16028
16029 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16030
16031 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
16032 disk->partiton for safety.
16033
16034 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16035
16036 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
16037 Fix a memory leak.
16038 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
16039
16040 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16041
16042 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
16043
16044 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16045
16046 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
16047
16048 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16049
16050 Fix spaces handling in proc/self/mountinfo.
16051
16052 * util/getroot.c (unescape): New function.
16053 (grub_find_root_device_from_mountinfo): Use unescape.
16054
16055 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16056
16057 Support ZFS embedding.
16058
16059 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
16060 (grub_zfs_fs): Register grub_zfs_embed.
16061
16062 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16063
16064 Fix MIPS compilation.
16065
16066 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
16067 * include/grub/offsets.h: Rename decompressor fields from
16068 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
16069 * util/grub-mkimage.c (image_targets): Use new names.
16070
16071 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16072
16073 Defer multiboot device parsing until we're in compressed part.
16074
16075 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
16076 bsd_part. setdevice has fallen into disuse.
16077 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
16078 (bsd_part): Likewise.
16079 (boot_dev): New variable.
16080 (multiboot_trampoline): Don't parse multiboot device.
16081 Pass multiboot device in %edx.
16082 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
16083 grub_boot_device.
16084 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
16085 Likewise.
16086 * grub-core/kern/i386/pc/startup.S: Save edx.
16087 (grub_boot_drive): Removed.
16088 (grub_install_dos_part): Likewise.
16089 (grub_install_bsd_part): Likewise.
16090 (grub_boot_device): New variable.
16091 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
16092 (grub_install_bsd_part): Likewise.
16093 (grub_boot_drive): Likewise.
16094 (grub_boot_device): New variable.
16095 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
16096 Removed.
16097 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
16098 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
16099 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
16100 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
16101 * util/grub-install.in: Remove redundant condition.
16102
16103 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16104
16105 Fix bug introduced by previous commit.
16106
16107 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
16108
16109 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16110
16111 Use decompressors framework on i386-pc. It increases core size
16112 by 46 bytes but improves compatibility and maintainability.
16113
16114 * grub-core/Makefile.core.def (lzma_decompress): New image.
16115 (kernel): Add i386_pc_ldflags.
16116 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
16117 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
16118 to real_to_prot, prot_to_real and device info.
16119 * include/grub/offsets.h: Renamed decompressor offsets.
16120 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
16121 (image_target_desc): Remove raw_size and rename decompressor fields.
16122 (compress_kernel): Handle lzma.
16123 (generate_image): Handle decompressors on i386-pc.
16124
16125 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16126
16127 * configure.ac: Add -fno-asynchronous-unwind-tables.
16128
16129 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16130
16131 Move assembly code to C by using intwrap. It increases core size
16132 by 88 bytes but improves compatibility and maintainability.
16133
16134 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
16135 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
16136 ... here. Translated to C.
16137 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
16138 * grub-core/term/i386/pc/console.c (grub_console_getkey):
16139 ... here. Translated to C.
16140 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
16141 * grub-core/term/i386/pc/console.c (grub_console_getxy):
16142 ... here. Translated to C.
16143 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
16144 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
16145 ... here. Translated to C.
16146 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
16147 * grub-core/term/i386/pc/console.c (grub_console_cls):
16148 ... here. Translated to C.
16149 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
16150 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
16151 ... here. Translated to C.
16152 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
16153 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
16154 Translated to C.
16155 * grub-core/term/i386/pc/console.c (int10_9): New function.
16156 (grub_console_putchar): Likewise.
16157 * include/grub/i386/pc/console.h: Removed the not anymore shared
16158 functions.
16159
16160 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16161
16162 Move grub_chainloader_real_boot out of the kernel.
16163
16164 * grub-core/Makefile.am: Remove machine/loader.h.
16165 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
16166 Removed.
16167 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
16168 variable.
16169 (grub_relocator16_keep_a20_enabled): Likewise.
16170 (grub_relocator16_boot): Fill new variables.
16171 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
16172 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
16173 relocator.
16174 (grub_chainloader_unload): Likewise.
16175 (grub_chainloader_cmd): Likewise.
16176 * include/grub/i386/pc/loader.h: Removed.
16177 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
16178 and esi. All initialisers updated.
16179
16180 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16181 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
16182
16183 * Makefile.util.def (grub-mount): New util.
16184 * .bzrignore: Add grub-mount.
16185 * configure.ac: Check for fuse and enable grub-mount if available.
16186 * docs/man/grub-mount.h2m: New file.
16187 * util/grub-mount.c: Likewise.
16188
16189 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16190
16191 * grub-core/commands/efi/fixvideo.c: Gettextize.
16192 * grub-core/commands/hashsum.c: Likewise.
16193 * grub-core/commands/i386/cmostest.c: Likewise.
16194 * grub-core/commands/i386/pc/drivemap.c: Likewise.
16195 * grub-core/commands/i386/pc/lsapm.c: Likewise.
16196 * grub-core/commands/i386/pc/sendkey.c: Likewise.
16197 * grub-core/commands/lsmmap.c: Likewise.
16198 * grub-core/commands/menuentry.c: Likewise.
16199 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
16200 * grub-core/commands/setpci.c: Likewise.
16201 * grub-core/loader/i386/bsd.c: Likewise.
16202 * grub-core/loader/i386/linux.c: Likewise.
16203 * util/getroot.c: Likewise.
16204 * util/grub-editenv.c: Likewise.
16205 * util/grub-fstest.c: Likewise.
16206 * util/grub-mkfont.c: Likewise.
16207 * util/grub-mkimage.c: Likewise.
16208 * util/grub-mkpasswd-pbkdf2.c: Likewise.
16209 * util/grub-pe2elf.c: Likewise.
16210 * util/grub-probe.c: Likewise.
16211 * util/grub-setup.c: Likewise.
16212 * util/ieee1275/ofpath.c: Likewise.
16213 * util/misc.c: Likewise.
16214 * util/raid.c: Likewise.
16215
16216 2011-11-11 Robert Millan <rmh@gnu.org>
16217
16218 * util/getroot.c (grub_util_get_geom_abstraction): Remove
16219 __attribute__((unused)) from `os_dev', which *is* being used.
16220
16221 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16222
16223 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
16224 forgotten define.
16225 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
16226 GRUB_IA64_DL_GOT_ALIGN.
16227 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
16228 GRUB_IA64_DL_TRAMP_ALIGN.
16229
16230 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16231
16232 Replace grub_fatal with normal errors in i386 linux loader.
16233
16234 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
16235 (allocate_pages): Check find_efi_mmap_size return value.
16236 (grub_e820_add_region): Return error.
16237 (grub_linux_boot): Check mmap return value.
16238
16239 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16240
16241 * grub-core/commands/acpihalt.c: Gettextized.
16242 * grub-core/commands/cacheinfo.c: Likewise.
16243 * grub-core/commands/cmp.c: Likewise.
16244 * grub-core/commands/efi/loadbios.c: Likewise.
16245 * grub-core/commands/gptsync.c: Likewise.
16246 * grub-core/commands/ieee1275/suspend.c: Likewise.
16247 * grub-core/commands/legacycfg.c: Likewise.
16248 * grub-core/commands/memrw.c: Likewise.
16249 * grub-core/commands/minicmd.c: Likewise.
16250 * grub-core/commands/parttool.c: Likewise.
16251 * grub-core/commands/time.c: Likewise.
16252 * grub-core/commands/videoinfo.c: Likewise.
16253 * grub-core/disk/geli.c: Likewise.
16254 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
16255 * grub-core/disk/luks.c: Likewise.
16256 * grub-core/disk/lvm.c: Likewise.
16257 * grub-core/font/font_cmd.c: Likewise.
16258 * grub-core/fs/zfs/zfscrypt.c: Likewise.
16259 * grub-core/fs/zfs/zfsinfo.c: Likewise.
16260 * grub-core/gfxmenu/view.c: Likewise.
16261 * grub-core/kern/emu/hostdisk.c: Likewise.
16262 * grub-core/kern/emu/main.c: Likewise.
16263 * grub-core/kern/emu/misc.c: Likewise.
16264 * grub-core/kern/emu/mm.c: Likewise.
16265 * grub-core/kern/mips/arc/init.c: Likewise.
16266 * grub-core/kern/mips/loongson/init.c: Likewise.
16267 * grub-core/kern/partition.c: Likewise.
16268 * grub-core/lib/i386/halt.c: Likewise.
16269 * grub-core/lib/mips/arc/reboot.c: Likewise.
16270 * grub-core/lib/mips/loongson/reboot.c: Likewise.
16271 * grub-core/loader/i386/pc/chainloader.c: Likewise.
16272 * grub-core/loader/i386/xnu.c: Likewise.
16273 * grub-core/loader/multiboot.c: Likewise.
16274 * grub-core/net/bootp.c: Likewise.
16275 * grub-core/net/net.c: Likewise.
16276 * grub-core/normal/term.c: Likewise.
16277 * grub-core/partmap/bsdlabel.c: Likewise.
16278 * grub-core/parttool/msdospart.c: Likewise.
16279 * grub-core/term/gfxterm.c: Likewise.
16280 * grub-core/term/terminfo.c: Likewise.
16281 * grub-core/video/i386/pc/vbe.c: Likewise.
16282 * util/grub-menulst2cfg.c: Likewise.
16283 * util/grub-mkdevicemap.c: Likewise.
16284 * util/grub-mklayout.c: Likewise.
16285 * util/grub-mkrelpath.c: Likewise.
16286 * util/grub-script-check.c: Likewise.
16287 * util/ieee1275/grub-ofpathname.c: Likewise.
16288 * util/resolve.c: Likewise.
16289
16290 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16291
16292 Support %1$d syntax.
16293
16294 * tests/printf_unit_test.c: New file.
16295 * Makefile.util.def (printf_test): New test.
16296 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
16297
16298 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16299
16300 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
16301 fix.
16302
16303 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16304
16305 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
16306 dprintf.
16307 * grub-core/font/font.c (grub_font_load): Likewise.
16308
16309 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16310
16311 * util/grub-macho2img.c: Add comment concerning gettext.
16312 * grub-core/lib/legacy_parse.c: Likewise.
16313
16314 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16315
16316 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
16317 (grub_xvasprintf): Likewise.
16318
16319 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16320
16321 Add const keyword to grub_env_get and gettextize week days.
16322
16323 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
16324 (grub_read_hook_datetime): Return const char *.
16325 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
16326 updated.
16327 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
16328 Mark for gettext.
16329 (grub_get_weekday_name): Return const char *. Call gettext.
16330 * grub-core/script/argv.c (grub_script_argv_append): Receive const
16331 char * and len as the argument. All users updated.
16332 (grub_script_argv_split_append): Receive const char *.
16333 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
16334 * include/grub/env.h (grub_env_get): Likewise.
16335 (grub_env_read_hook_t): Return const char *.
16336 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
16337 (grub_script_argv_split_append): Likewise.
16338
16339 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16340
16341 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
16342
16343 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16344
16345 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
16346 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
16347
16348 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16349
16350 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
16351 Fix prototype.
16352
16353 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16354
16355 Fix mips compilation.
16356
16357 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
16358 normal decoder.
16359 (hashes): Use in embed decoder as well (for sizes).
16360 (dec_stream_header): Fix embed decompressor logic.
16361 (dec_stream_footer): Likewise.
16362
16363 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16364
16365 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
16366 an error and not a fatal on unrecognised relocation types.
16367
16368 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16369
16370 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
16371 Issue error rather than printf on unknown arguments.
16372
16373 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16374
16375 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
16376 Make buf a const.
16377
16378 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16379
16380 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
16381 Fix module name.
16382
16383 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16384
16385 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
16386 leftover debug printf.
16387
16388 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16389
16390 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
16391
16392 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16393
16394 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
16395 A stylistic fix.
16396
16397 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16398
16399 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
16400
16401 2011-11-10 Shea Levy <slevy@tieronedesign.com>
16402
16403 Allow all modules to perform serial IO
16404
16405 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
16406 * include/grub/serial.h (grub_serial_port_configure): New inline
16407 function.
16408 (grub_serial_port_fetch): Likewise.
16409 (grub_serial_port_put): Likewise.
16410 (grub_serial_port_fini): Likewise.
16411 (grub_serial_find): New proto.
16412
16413 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16414
16415 Put symlink at the end of the node and fix a potential
16416 memory corruption.
16417
16418 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
16419 Make symlink into an array.
16420 (set_rockridge): Set have_symlink and alloc_dirents.
16421 (grub_iso9660_read_symlink): Use new layout.
16422 (grub_iso9660_iterate_dir): Fix memory corruption.
16423 Use new layout.
16424 (grub_iso9660_dir): Set have_symlink.
16425 (grub_iso9660_open): Likewise.
16426
16427 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16428
16429 Remove local keyword.
16430
16431 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
16432 (version_test_gt): Likewise.
16433 (version_find_latest): Likewise.
16434 (gettext_printf): Likewise.
16435 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
16436
16437 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16438
16439 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
16440
16441 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16442
16443 Fix ZFS memory and resource leaks.
16444
16445 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
16446 All users updated.
16447 Free type on exit.
16448 (fill_vdev_info): New parameter inserted. All users updated.
16449 (check_pool_label): Likewise.
16450 (scan_disk): Likewise.
16451 (scan_devices): Close non-inserted disks.
16452 (fzap_iterate): Free l.
16453 (unmount_device): Free children descripto memory.
16454
16455 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16456
16457 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
16458 argument (access out of bounds).
16459
16460 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16461
16462 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
16463 >= 6 drives.
16464
16465 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16466
16467 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
16468 Fix declaration.
16469
16470 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16471
16472 Fix several memory leaks.
16473
16474 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
16475 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
16476 (grub_cpio_dir): Likewise.
16477 * grub-core/fs/fat.c (grub_fat_label): Likewise.
16478 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
16479 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
16480 (grub_romfs_label): Likewise.
16481 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
16482 (squash_unmount): New function.
16483 (grub_squash_dir): Fix memory leak.
16484 (grub_squash_open): Likewise.
16485 (grub_squash_read): Likewise.
16486 (grub_squash_mtime): Likewise.
16487 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
16488 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
16489 * util/grub-fstest.c (fstest): Likewise.
16490
16491 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16492
16493 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
16494 avoid accessing beyond the array.
16495
16496 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16497
16498 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
16499
16500 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16501
16502 Several AFFS fixes.
16503
16504 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
16505 (GRUB_AFFS_FLAG_FFS): Removed.
16506 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
16507 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
16508 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
16509 (grub_fshelp_node): Make block 32-bit.
16510 Add block_cache and last_block_cache.
16511 (grub_affs_read_block): Fill and use block cache.
16512 (grub_affs_read_file): Removed.
16513 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
16514 boot block.
16515 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
16516 safety.
16517 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
16518 space.
16519 (grub_affs_close): Free block cache.
16520 (grub_affs_read): Use grub_fshelp_read_file directly.
16521
16522 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16523
16524 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
16525 with no error set.
16526
16527 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16528
16529 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
16530 used variable.
16531 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
16532 Likewise.
16533
16534 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16535
16536 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
16537
16538 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
16539 byteswap when needed.
16540
16541 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16542
16543 Fix FreeBSD compilation.
16544
16545 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
16546 to avoid circular dependency.
16547 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
16548 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
16549 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
16550
16551 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16552
16553 Fix ZFS crypto error types.
16554
16555 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
16556 (grub_gcm_decrypt): Likewise.
16557 (grub_zfs_load_key_real): Fix error code type. Handle possible error
16558 from PBKDF2.
16559
16560 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16561
16562 Illumos support.
16563
16564 * Makefile.util.def (10_illumos): New script.
16565 * configure.ac: Set COND_HOST_ILLUMOS.
16566 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
16567 Support Illumos calls.
16568 (find_partition_start) [__sun__]: Likewise.
16569 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
16570 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
16571 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
16572 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
16573 device.
16574 * util/grub-probe.c (probe) [__sun__]: Do character check.
16575 * util/grub.d/10_illumos.in: New file.
16576
16577 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16578
16579 Support escaped commas in hostdisk.
16580
16581 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
16582 (find_grub_drive): Use unescape_cmp.
16583 (make_device_name): Escape commas.
16584
16585 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16586
16587 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
16588
16589 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16590
16591 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
16592 variable.
16593
16594 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16595
16596 Support trampoline jumps on powerpc.
16597
16598 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
16599 __ia64__ path.
16600 (grub_dl_load_segments): Set mod->sz.
16601 (grub_dl_flush_cache): Flush whole space occupied by module, not just
16602 segments.
16603 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
16604 (jump): Likewise.
16605 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
16606 function.
16607 (trampoline): New struct.
16608 (trampoline_template): New const.
16609 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
16610 * include/grub/dl.h (grub_dl): Add sz element.
16611 [__powerpc__]: Follow __ia64__.
16612 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
16613 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
16614 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
16615 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
16616
16617 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16618
16619 ZFS crypto support.
16620
16621 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
16622 * grub-core/Makefile.core.def (zfscrypt): New module.
16623 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
16624 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
16625 it. All users updated.
16626 (grub_zfs_decrypt): New var.
16627 (grub_zfs_load_key): Likewise.
16628 (zio_checksum_functions): Add SHA256+MAC.
16629 (zio_checksum_verify): Handle incomplete comparison due to MAC.
16630 (zio_read): Handle encrypted blocks.
16631 (zap_verify): Remove incorrect check.
16632 (fzap_iterate): Handle non-standard fzap.
16633 (zap_iterate): Likewise.
16634 (zap_iterate_u64): New function.
16635 (dnode_get_fullpath): Load keys.
16636 * grub-core/fs/zfs/zfscrypt.c: New file.
16637 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
16638 (grub_crypto_ecb_encrypt): Make input const.
16639 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
16640 (grub_crypto_ecb_encrypt): Make input const.
16641 (GRUB_CIPHER_AES): New macro.
16642 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
16643 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
16644 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
16645 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
16646 prefix. All users updated.
16647 (grub_zfs_add_key): New proto.
16648 (grub_zfs_decrypt): Likewise.
16649 (grub_zfs_load_key): Likewise.
16650 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
16651 * util/grub-fstest.c (options): Add -K option.
16652 (argp_parser): Likewise.
16653
16654 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16655
16656 Support zle compression on ZFS.
16657
16658 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
16659 (decomp_table): Add zle.
16660 * include/grub/zfs/zio.h (zio_compress): Add zle.
16661
16662 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16663
16664 Support BtrFS embedding.
16665
16666 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
16667 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
16668 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
16669 * util/grub-setup.c (setup): Use fs embedding if available.
16670 Add additional sanity check.
16671
16672 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16673
16674 * util/grub-install.in: Fix condition for config_opt.
16675
16676 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16677
16678 Support third redundancy strip on raidz3.
16679
16680 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
16681 Return error on singularity. All users updated.
16682 (read_device): Don't stop on 3rd failure on raidz3.
16683
16684 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16685
16686 Support case-insensitive ZFS subvolumes.
16687
16688 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
16689 All users updated.
16690 (zap_hash): Likewise.
16691 (name_cmp): New function.
16692 (zap_leaf_array_equal): New parameter case_insensitive.
16693 All users updated.
16694 (zap_leaf_lookup): Likewise.
16695 (fzap_lookup): Likewise.
16696 (zap_lookup): Likewise.
16697 (dnode_get_path): New parameter case_insensitive. Retrieve case
16698 sensitiviness of a volume. All users updated.
16699 (dnode_get_fullpath): New parameter case_insensitive.
16700 All users updated.
16701 (grub_zfs_dir): Set info.case_insensitiveness.
16702
16703 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16704
16705 Support second redundancy strip on raidz(2,3).
16706
16707 * grub-core/fs/zfs/zfs.c (powx): New array.
16708 (powx_inv): Likewise.
16709 (poly): New const.
16710 (xor_out): New function.
16711 (gf_mul): Likewise.
16712 (recovery): Likewise.
16713 (read_device): Use second redundancy strip.
16714
16715 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16716
16717 Use a power of generator representation of GF(256) multiplication group
16718 to save space time and complexity.
16719
16720 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
16721 (raid6_table2): Likewise.
16722 (powx): New array.
16723 (powx_inv): Likewise.
16724 (poly): New const.
16725 (grub_raid_block_mul): Replace with ...
16726 (grub_raid_block_mulx): ...this.
16727 (grub_raid6_init_table): Rewritten.
16728 (grub_raid6_recover): Use power of generator representation.
16729
16730 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16731
16732 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
16733 for the right device.
16734
16735 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16736
16737 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
16738 expected by grub-mkimage and it's more clear since there is no implicit
16739 padding.
16740
16741 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16742
16743 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
16744 disk.
16745 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
16746
16747 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
16748
16749 * util/grub-mkrescue.in: Fix handling xorriso option.
16750
16751 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16752
16753 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
16754 NULL.
16755
16756 2011-11-03 crocket <crockabiscuit@gmail.com>
16757
16758 * util/grub.d/10_linux.in: Add Slackware initrd naming.
16759
16760 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16761
16762 XZ CRC64 and SHA256 support.
16763
16764 * Makefile.util.def (libgrubmods): Add crc64.c.
16765 * grub-core/Makefile.core.def (crc64): New module.
16766 * grub-core/lib/crc64.c: New file.
16767 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
16768 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
16769 Fix the type.
16770 (MAX_HASH_SIZE): New define.
16771 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
16772 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
16773 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16774 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16775 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
16776 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
16777 Handle non-crc32 hashes.
16778 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
16779 (dec_stream_header): Handle non-crc32 hashes.
16780 (dec_stream_footer): Likewise.
16781 (dec_block_header): Likewise.
16782 (dec_main): Likewise.
16783 (xz_dec_init): Likewise.
16784 (xz_dec_reset): Likewise.
16785 (xz_dec_end): Likewise.
16786 * util/import_gcry.py: Add CRC64 line.
16787
16788 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16789
16790 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
16791 as well.
16792
16793 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16794
16795 Make reiserfs label retrieval similar to other *_label functions.
16796
16797 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
16798 (REISERFS_MAX_LABEL_LENGTH): Removed.
16799 (REISERFS_LABEL_OFFSET): Likewise.
16800 (grub_reiserfs_label): Rewritten.
16801
16802 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16803
16804 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
16805 field.
16806
16807 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16808
16809 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
16810
16811 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
16812
16813 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
16814 drive failure on both raidz and raidz2.
16815
16816 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
16817
16818 Fix RAIDZ(2) for >= 5 devices.
16819
16820 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
16821 asize argument. All users updated.
16822
16823 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16824
16825 Fix RAIDZ(2).
16826
16827 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
16828 (fill_vdev_info_real): Set ashift.
16829 (read_device): Rewrite RAIDZ part based on reverse engineering.
16830
16831 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16832
16833 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
16834 don't report potentially unavialiable fields in debug output.
16835 (find_path): Fix double-free and memory leak.
16836
16837 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16838
16839 Read label on UFS1.
16840
16841 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
16842 (grub_ufs_fs): Always set .label.
16843
16844 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16845
16846 Use shifts in UFS.
16847
16848 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
16849 (grub_ufs_data): New field log2_blksz.
16850 (grub_ufs_read_file): Use shifts.
16851 (grub_ufs_mount): Check block size and logarithm it.
16852
16853 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16854
16855 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
16856 long symlinks.
16857
16858 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16859
16860 Handle symlinks and long names on tar and cpio.
16861
16862 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
16863 (ATTR_FILE): Likewise.
16864 (ATTR_DIR): Likewise.
16865 (ATTR_LNK): Likewise.
16866 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
16867 (grub_cpio_find_file): Fill mode, handle linkname field as well as
16868 L and K entries.
16869 (grub_cpio_mount): Zero-fill data.
16870 (handle_symlink): New function.
16871 (grub_cpio_dir): Handle symlinks.
16872 (grub_cpio_open): Likewise.
16873 (grub_cpio_close) [MODE_USTAR]: Free linkname.
16874
16875 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16876
16877 Fix iso9660 filename limitations and fix memory leaks.
16878
16879 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
16880 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
16881
16882 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16883
16884 Fix JFS file name length limitations.
16885
16886 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
16887 (grub_jfs_diropen): Fix maximum filename length.
16888 (grub_jfs_getent): Fix filename length.
16889 (grub_jfs_lookup_symlink): Fix size checks.
16890
16891 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16892
16893 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
16894 string.
16895
16896 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16897
16898 Leverage BFS implementation to read AFS.
16899
16900 * Makefile.util.def (libgrubmods): Add afs.c.
16901 * grub-core/Makefile.core.def (afs): New module
16902 * grub-core/fs/afs.c: New file.
16903 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
16904
16905 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16906
16907 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
16908
16909 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16910
16911 * grub-core/fs/bfs.c: Run indent.
16912
16913 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16914
16915 BFS implementation based on the specification.
16916
16917 * grub-core/fs/bfs.c: New file.
16918 * Makefile.util.def (libgrubmods): Add bfs.c.
16919 * grub-core/Makefile.core.def (bfs): New module.
16920
16921 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16922
16923 * util/grub-fstest.c (cmd_cp): Clarify error message.
16924 (cmd_cmp): Likewise.
16925
16926 2011-10-30 Yves Blusseau <blusseau@zetam.org>
16927
16928 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
16929 and befs_be.
16930
16931 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
16932
16933 Remove afs and befs because of copyright problem.
16934
16935 * grub-core/fs/afs.c: Removed.
16936 * grub-core/fs/afs_be.c: Removed.
16937 * grub-core/fs/befs.c: Removed.
16938 * grub-core/fs/befs_be.c: Removed.
16939 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
16940 * grub-core/Makefile.core.def (afs): Removed.
16941 (afs_be): Likewise.
16942 (befs): Likewise.
16943 (befs_be): Likewise.
16944
16945 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16946
16947 Prefer rockridge over Joliet.
16948
16949 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
16950 to ...
16951 (set_rockridge): ... here.
16952 (grub_iso9660_mount): Check rockridge on the primary label when
16953 discovering. Ignore Joliet if Rockridge is present.
16954
16955 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16956
16957 Use shifts in nilfs2.
16958
16959 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
16960 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
16961 (grub_nilfs2_palloc_entries_per_group): Replace with ...
16962 (grub_nilfs2_log_palloc_entries_per_group): ... this.
16963 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
16964 (grub_nilfs2_entries_per_block): Replaced with ...
16965 (grub_nilfs2_log_entries_per_block_log): ... this.
16966 (grub_nilfs2_blocks_per_group): Replaced with ...
16967 (grub_nilfs2_blocks_per_group_log): ... this.
16968 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
16969 (grub_nilfs2_blocks_per_desc_block_log): ... this.
16970 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
16971 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
16972 (grub_nilfs2_palloc_entry_offset): Replaced ...
16973 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
16974 (grub_nilfs2_dat_translate): Use shifts.
16975 (grub_nilfs2_read_inode): Likewise.
16976 (GRUB_MOD_INIT): Ensure that logs are correct.
16977
16978 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16979
16980 Use shifts in minix filesystem.
16981
16982 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
16983 (GRUB_MINIX_ZONE2SECT): Likewise.
16984 (grub_minix_data): Replace block_size with log_block_size.
16985 (grub_minix_read_file): Use shifts.
16986 (grub_minix_mount): Check block size and take a logarithm.
16987
16988 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16989
16990 Use shifts in squash4.
16991
16992 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
16993 (squash_mount): Check block size and take logarithm.
16994 (direct_read): Use shifts.
16995
16996 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16997
16998 Correct befs block counting logic.
16999
17000 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
17001 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
17002 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
17003 (grub_afs_read_inode): Use block_shift.
17004 (RANGE_SHIFT): New definition.
17005 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
17006 unexpected conditions, use shifts and appropriate types.
17007 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
17008
17009 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17010
17011 * grub-core/disk/raid.c (scan_devices): Check partition.
17012 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
17013
17014 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17015
17016 Support BFS (befs) UUID.
17017
17018 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
17019 (grub_afs_small_data_element_header): New struct.
17020 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
17021 (grub_afs_read_attribute) [MODE_BFS]: New function.
17022 (grub_afs_iterate_dir): Allocate for complete inode.
17023 (grub_afs_mount): Likewise.
17024 (grub_afs_uuid) [MODE_BFS]: New function.
17025 (grub_afs_fs) [MODE_BFS]: Add .uuid.
17026
17027 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17028
17029 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
17030 (zfs_unmount): Fix memory leak.
17031
17032 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17033
17034 Support NTFS reparse points.
17035
17036 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
17037 (symlink_descriptor): New struct.
17038 (grub_ntfs_read_symlink): New function.
17039 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
17040 (grub_ntfs_open): Likewise.
17041
17042 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17043
17044 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
17045
17046 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17047
17048 fstest xnu_uuid subcommand.
17049
17050 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
17051 grub-core/commands/xnu_uuid.c.
17052 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
17053 (fstest): Handle xnu_uuid.
17054 (options): Document xnu_uuid.
17055 (argp_parser): Parse xnu_uuid.
17056
17057 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17058
17059 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
17060 -l argument. Add newline at the end if printing.
17061 (GRUB_MOD_INIT): Document -l.
17062
17063 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17064
17065 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
17066
17067 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17068
17069 ZFS multi-device and version 33 support.
17070
17071 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
17072 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
17073 (grub_zfs_data): Add multidev-ice-related fields.
17074 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
17075 (dva_get_offset): Make dva const.
17076 (zfs_fetch_nvlist): New function.
17077 (fill_vdev_info_real): Likewise.
17078 (fill_vdev_info): Likewise.
17079 (check_pool_label): Likewise.
17080 (scan_disk): Likewise.
17081 (scan_devices): Likewise.
17082 (read_device): Likewise.
17083 (read_dva): Likewise.
17084 (zio_read_gang): Use read_dva.
17085 (zio_read_data): Likewise.
17086 (zap_leaf_lookup): Add missing endian conversion.
17087 (zap_verify): Add missing endian conversion. All users updated.
17088 (fzap_lookup): Likewise.
17089 (fzap_iterate): Likewise.
17090 (dnode_get_path): Handle SA bonus.
17091 (nvlist_find_value): Make input const. All users updated.
17092 (unmount_device): New function.
17093 (zfs_unmount): Use unmount_device.
17094 (zfs_mount): Use scan_disk.
17095 (zfs_mtime): New function.
17096 (grub_zfs_open): Handle system attributes.
17097 (fill_fs_info): Likewise.
17098 (grub_zfs_dir): Likewise.
17099 (grub_zfs_fs): Add mtime.
17100 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
17101 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
17102 (SA_MTIME_OFFSET): Likewise.
17103 (SA_SYMLINK_OFFSET): Likewise.
17104 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
17105 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
17106 (fstest): Support zfsinfo.
17107 (argp_parser): Likewise.
17108
17109 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17110
17111 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
17112 error.
17113
17114 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17115
17116 ZFS fixes.
17117
17118 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
17119 sharing the same block. Iterate over correct number of indices.
17120 (dnode_get_path): Handle symlinks correctly.
17121
17122 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17123
17124 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
17125
17126 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17127
17128 Read label on HFS+.
17129
17130 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
17131 (grub_hfsplus_btree_search): Fix types.
17132 (grub_hfsplus_label): Implement.
17133
17134 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17135
17136 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
17137
17138 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17139
17140 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
17141
17142 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17143
17144 Fix symlink handling on iso9660.
17145
17146 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
17147 All users updated.
17148 (grub_iso9660_susp_iterate): Accept zero-size iterate.
17149 (grub_iso9660_read_symlink): Moved most of code ...
17150 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
17151
17152 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17153
17154 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17155 Use union to avoid breaking strict-aliasing rules.
17156
17157 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17158
17159 Support multi-extent iso files.
17160
17161 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
17162 Add node.
17163 (grub_fshelp_node): Revamp. All users updated.
17164 (FLAG_*): New enum.
17165 (read_node): New function.
17166 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
17167 All users updated.
17168 (grub_iso9660_mount): Don't attempt to read sua when there is none.
17169 (get_node_size): New function.
17170 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
17171 entries.
17172 Fix memory leak on . and ..
17173 (grub_iso9660_read): Use read_node.
17174 (grub_iso9660_close): Free node.
17175
17176 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17177
17178 Fix tar 4G limit and handle paths containing dot.
17179
17180 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
17181 (canonicalize): New function.
17182 (grub_cpio_find_file): Use canonicalize. Store offs in
17183 grub_disk_addr_t.
17184 (grub_cpio_dir): Use grub_disk_addr_t.
17185 (grub_cpio_open): Likewise.
17186
17187 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17188
17189 Fix handling of uncompressed blocks on squashfs and break 4G limit.
17190
17191 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
17192 unused flags.
17193 (grub_squash_inode): Add long_file and block_size.
17194 (grub_squash_cache_inode): New struct.
17195 (grub_squash_dirent): Make types into enum.
17196 (SQUASH_TYPE_LONG_REGULAR): New type.
17197 (grub_squash_frag_desc): Add field size.
17198 (SQUASH_BLOCK_FLAGS): New enum.
17199 (grub_squash_data): Use grub_squash_cache_inode.
17200 (grub_fshelp_node): Make ino_chunk 64-bit.
17201 (read_chunk): Minor argument change. All users updated.
17202 (squash_mount): Use correct le_to_cpu.
17203 (grub_squash_open): Handle LONG_REGULAR.
17204 (direct_read): New function.
17205 (grub_squash_read_data): Handle blocks correctly.
17206
17207 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17208
17209 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
17210
17211 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17212
17213 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
17214
17215 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17216
17217 Fix 2G limit on ZFS.
17218
17219 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
17220 types.
17221 (uberblock_verify): Likewise.
17222 (dmu_read): Likewise.
17223 (grub_zfs_read): Likewise. Remove invalid cast.
17224
17225 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17226
17227 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
17228 (grub_jfs_blkno): Fix incorrect shift.
17229 (grub_jfs_read_file): Use more appropriate types.
17230
17231 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17232
17233 Support triple indirect on minix2 and minix3.
17234
17235 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
17236 Declare triple_indir_zone.
17237 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
17238 indirect.
17239
17240 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17241
17242 Minix FS fixes.
17243
17244 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
17245 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
17246 Rename ctime to mtime. All users updated.
17247 (grub_minix_get_file_block): Fix types and double indirect computations.
17248
17249 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17250
17251 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
17252 if no label is found.
17253 (grub_fat_iterate_dir): Fix file size type.
17254 (grub_fat_iterate_dir): Likewise.
17255
17256 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17257
17258 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
17259 save some space.
17260 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
17261 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
17262
17263 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17264
17265 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
17266
17267 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17268
17269 * util/import_gcry.py: Accept space between # and include.
17270
17271 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17272
17273 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
17274
17275 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17276
17277 Fine grainely disable warnings on lexer. Remove Wno-error on it.
17278
17279 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
17280 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
17281 yylex_strncpy.
17282 * grub-core/script/yylex.l: Add fine-grained #pragma.
17283
17284 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17285
17286 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
17287 New inline function.
17288 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
17289 Likewise.
17290 (memset) [GRUB_UTIL]: Likewise.
17291 (memcmp) [GRUB_UTIL]: Likewise.
17292
17293 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17294
17295 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
17296 inline function rather than a define.
17297
17298 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17299
17300 * util/grub-setup.c: Add missing include.
17301
17302 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17303
17304 * util/ieee1275/grub-ofpathname.c: Add missing include.
17305
17306 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17307
17308 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
17309 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
17310 Likewise.
17311
17312 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17313
17314 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
17315 grub_memcmp usage.
17316
17317 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17318
17319 * util/grub-install.in: Add datarootdir as per automake manual
17320 suggestion.
17321 * util/grub-mknetdir.in: Likewise.
17322
17323 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17324
17325 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
17326 suggestion.
17327 * util/grub.d/10_kfreebsd.in: Likewise.
17328 * util/grub.d/10_linux.in: Likewise.
17329 * util/grub.d/10_netbsd.in: Likewise.
17330 * util/grub.d/10_windows.in: Likewise.
17331 * util/grub.d/20_linux_xen.in: Likewise.
17332
17333 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
17334
17335 Remove redundant grub_kernel_image_size.
17336
17337 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
17338 _edata and _start.
17339 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
17340 the small code. It moves it only by few bytes but simplifies the code.
17341 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
17342 _start.
17343 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
17344 (grub_kernel_image_size): Removed.
17345 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
17346 (grub_kernel_image_size): Removed.
17347 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
17348 compiled with Apple toolchain.
17349 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
17350 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
17351 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
17352 (grub_total_module_size): Likewise.
17353 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
17354 Removed.
17355 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
17356 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
17357 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
17358 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
17359 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
17360 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
17361 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
17362 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
17363 Removed.
17364 (grub_total_module_size): Removed.
17365 * util/grub-mkimage.c (image_target_desc): Remove image_size.
17366 (image_targets): Likewise.
17367 Set .compressed_size to no field on sparc.
17368 (generate_image): Remove kernel_image_size handling.
17369
17370 2011-10-19 Szymon Janc <szymon@janc.net.pl>
17371
17372 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
17373 NULL pointer dereference.
17374
17375 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17376
17377 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
17378 done with a dedicated section.
17379
17380 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
17381 Ensure the correct position of boot_path.
17382 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
17383 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
17384 other fields.
17385 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
17386 * include/grub/boot.h: Removed. All references removed.
17387 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
17388 Removed.
17389 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
17390
17391 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17392
17393 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
17394 name.
17395
17396 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17397
17398 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
17399
17400 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17401
17402 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
17403 Don't add the bogus brackets.
17404
17405 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17406
17407 ExFAT support.
17408
17409 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
17410 * grub-core/Makefile.core.def (exfat): New module.
17411 * grub-core/fs/exfat.c: New file.
17412 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
17413 (GRUB_FAT_ATTR_*): Make into an enum.
17414 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
17415 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
17416 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
17417 (GRUB_FAT_MAXFILE): Removed.
17418 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
17419 (grub_current_fat_bpb_t): New type.
17420 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
17421 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
17422 (grub_fat_dir_node_t): New type.
17423 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
17424 (fat_log2) [MODE_EXFAT]: Removed.
17425 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
17426 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
17427 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
17428 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
17429 (grub_fat_label) [MODE_EXFAT]: New function.
17430 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
17431 reserved_first_sector to 0.
17432
17433 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17434
17435 Move grub_reboot out of the kernel.
17436
17437 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
17438 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
17439 * grub-core/lib/efi/reboot.c: ... here.
17440 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
17441 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
17442 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
17443 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
17444 * grub-core/lib/i386/reboot_trampoline.S: ... here.
17445 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
17446 * grub-core/lib/ieee1275/reboot.c: ... here.
17447 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
17448 * grub-core/lib/mips/arc/reboot.c: ... here.
17449 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
17450 * grub-core/lib/mips/loongson/reboot.c: ...here.
17451 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
17452 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
17453 * include/grub/emu/misc.h (grub_reboot): New function declaration.
17454 * include/grub/i386/reboot.h: New file.
17455 * include/grub/mips/loongson/ec.h: Fix includes.
17456 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
17457 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
17458 * grub-core/lib/i386/reboot.c: New file.
17459
17460 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
17461
17462 Make grub_prefix into module to fix the arbitrary limit and save
17463 some space.
17464
17465 * grub-core/kern/emu/main.c (grub_prefix): Removed.
17466 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
17467 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
17468 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
17469 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
17470 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
17471 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
17472 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
17473 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
17474 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
17475 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
17476 * include/grub/ia64/efi/kernel.h: Removed.
17477 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
17478 (grub_prefix): Removed.
17479 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
17480 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
17481 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
17482 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
17483 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
17484 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
17485 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
17486 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
17487 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
17488 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
17489 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
17490 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
17491 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
17492 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
17493 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
17494 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
17495 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
17496 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
17497 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
17498 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
17499 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
17500 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
17501 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
17502 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
17503 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
17504 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
17505 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
17506 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
17507 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
17508 from module.
17509 * util/grub-mkimage.c (image_target_desc): Removed prefix and
17510 prefix_end.
17511 (image_targets): Likewise.
17512 (generate_image): Put prefix as a module.
17513
17514 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17515
17516 Replace grub_module_iterate with FOR_MODULES.
17517
17518 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
17519 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
17520 (grub_efi_modules_addr): ...this.
17521 * grub-core/kern/efi/init.c (grub_modbase): New variable.
17522 (grub_efi_init): Set grub_modbase.
17523 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
17524 (grub_modbase): New variable.
17525 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
17526 (grub_modbase): New variable.
17527 (grub_machine_init): Set grub_modbase.
17528 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
17529 (grub_modbase): New variable.
17530 (grub_machine_init): Set grub_modbase.
17531 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
17532 (grub_modbase): New variable.
17533 (grub_machine_init): Set grub_modbase.
17534 * grub-core/kern/main.c (grub_module_iterate): Remove.
17535 (grub_modules_get_end): Use grub_modbase.
17536 (grub_load_modules): Use FOR_MODULES.
17537 (grub_load_config): Likewise.
17538 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
17539 (grub_modbase): New variable.
17540 (grub_machine_init): Set grub_modbase.
17541 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
17542 (grub_modbase): New variable.
17543 (grub_machine_init): Set grub_modbase.
17544 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
17545 Removed.
17546 (grub_modbase): New variable.
17547 (grub_machine_init): Set grub_modbase.
17548 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
17549 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
17550 (grub_module_iterate): Likewise.
17551 (grub_modbase): New variable declaration.
17552 (FOR_MODULES): New macro.
17553
17554 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17555
17556 * configure.ac: Check for __ctzdi2 and __ctzsi2.
17557 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
17558
17559 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17560
17561 Fix few obvious type discrepancies.
17562
17563 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
17564 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
17565 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
17566 variable.
17567 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
17568 and connected types.
17569 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
17570 offset.
17571 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
17572 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
17573 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
17574 and connected types.
17575
17576 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17577
17578 Fix python 3.x incompatibilities.
17579
17580 * gentpl.py: Put brackets around print strings.
17581 * util/import_gcry.py: Open explicitly as utf-8.
17582 Use in instead of has_key.
17583
17584 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17585
17586 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
17587 (GRUB_XFS_INO_AGBITS): Make into inline function.
17588 (GRUB_XFS_INO_INOINAG): Likewise.
17589 (GRUB_XFS_INO_AG): Likewise.
17590 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
17591 (GRUB_XFS_EXTENT_OFFSET): Likewise.
17592 (GRUB_XFS_EXTENT_BLOCK): Likewise.
17593 (GRUB_XFS_EXTENT_SIZE): Likewise.
17594 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
17595 (GRUB_XFS_NEXT_DIRENT): Likewise.
17596 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
17597 (grub_xfs_read_file): Fix offset type.
17598
17599 2011-10-15 Robert Millan <rmh@gnu.org>
17600
17601 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
17602
17603 2011-10-15 Robert Millan <rmh@gnu.org>
17604
17605 Fix build problem on FreeBSD and GNU/kFreeBSD.
17606
17607 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
17608
17609 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17610
17611 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
17612
17613 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
17614 types.
17615 (grub_hfsplus_btree_recoffset): Likewise.
17616 (grub_hfsplus_btree_recptr): Likewise.
17617 (grub_hfsplus_find_block): Likewise.
17618 (grub_hfsplus_btree_search): Likewise.
17619 (grub_hfsplus_read_block): Likewise.
17620 (grub_hfsplus_read_file): Likewise.
17621 (grub_hfsplus_mount): Likewise.
17622 (grub_hfsplus_btree_iterate_node): Likewise.
17623 (grub_hfsplus_btree_search): Likewise.
17624 (grub_hfsplus_iterate_dir): Likewise.
17625 (grub_hfsplus_read): A small code simplification.
17626
17627 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17628
17629 * grub-core/kern/emu/hostdisk.c
17630 (convert_system_partition_to_system_disk): Don't assume that children
17631 of mapper nodes are mapper nodes.
17632
17633 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17634
17635 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
17636 * include/grub/misc.h (grub_isxdigit): New function.
17637 * grub-core/video/colors.c (my_isxdigit): Removed. All users
17638 switched to grub_isxdigit.
17639 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
17640 number starting with a letter.
17641
17642 2011-10-09 Robert Millan <rmh@gnu.org>
17643
17644 LVM support for FreeBSD and GNU/kFreeBSD.
17645
17646 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
17647 GNU/kFreeBSD.
17648 (LVM_DEV_MAPPER_STRING): Move from here ...
17649 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
17650 * util/getroot.c: Include `<grub/util/lvm.h>'.
17651 (grub_util_get_dev_abstraction): Enable
17652 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
17653 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
17654 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
17655 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
17656 support it.
17657 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
17658 GNU/kFreeBSD.
17659 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
17660 when LVM abstraction is required for ${GRUB_DEVICE}.
17661
17662 2011-10-06 Szymon Janc <szymon@janc.net.pl>
17663
17664 Add support for LZO compression in GRUB:
17665 - import of minilzo library,
17666 - LZO decompression for btrfs,
17667 - lzop files decompression.
17668
17669 * grub-core/io/lzopio.c: New file.
17670 * grub-core/lib/adler32.c: Likewise.
17671 * grub-core/lib/minilzo/lzoconf.h: Likewise.
17672 * grub-core/lib/minilzo/lzodefs.h: Likewise.
17673 * grub-core/lib/minilzo/minilzo.c: Likewise.
17674 * grub-core/lib/minilzo/minilzo.h: Likewise.
17675 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
17676 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
17677 grub-core/lib/minilzo/minilzo.c to common.
17678 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
17679 cflags in cppflags.
17680 * grub-core/Makefile.core.def (btrfs): Likewise.
17681 * grub-core/Makefile.core.def (lzopio): New module.
17682 (adler32): Likewise.
17683 * grub-core/fs/btrfs.c: Include minilzo.h.
17684 (GRUB_BTRFS_COMPRESSION_LZO): New define.
17685 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
17686 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
17687 (grub_btrfs_lzo_decompress): New function.
17688 (grub_btrfs_extent_read): Add support for LZO compression type.
17689 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
17690 (GRUB_USHRT_MAX): Likewise.
17691 (GRUB_UINT_MAX): Likewise.
17692 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
17693 (UINT_MAX): Likewise.
17694 (CHAR_BIT): Likewise.
17695 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
17696 grub-core/lib/posix_wrap/limits.h
17697 (UCHAR_MAX): Likewise.
17698 * include/grub/file.h (grub_file_filter_id): New compression filter
17699 GRUB_FILE_FILTER_LZOPIO.
17700 * include/grub/file.h (grub_file_filter_id): Set
17701 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
17702 * include/grub/types.h (grub_get_unaligned16): New function.
17703 (grub_get_unaligned32): Likewise.
17704 (grub_get_unaligned64): Likewise.
17705 * util/import_gcry.py (cryptolist): Add adler32.
17706
17707 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
17708
17709 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
17710 in perspective decreases the complexity of build system and fixes
17711 compilation right now.
17712
17713 2011-10-01 Ales Nesrsta <starous@volny.cz>
17714
17715 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
17716 (fixed problem related to using UHCI with coreboot).
17717
17718 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
17719
17720 * gentpl.py: Use Autogen macros so that the output template file
17721 (Makefile.tpl) size is reduced.
17722
17723 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
17724
17725 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
17726 extra_dist.
17727
17728 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17729
17730 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
17731 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
17732
17733 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17734
17735 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
17736 _fullpath.
17737
17738 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17739
17740 Remove extra declaration of sleep for mingw32.
17741
17742 * util/misc.c (sleep) [__MINGW32__]: Removed.
17743 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
17744
17745 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
17746
17747 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
17748 type and packname.
17749 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
17750 Resurrected.
17751 (NETBSD_BTINFO_BOOTWEDGE): New definition.
17752 (grub_netbsd_btinfo_bootwedge): New struct.
17753 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17754 New function.
17755 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
17756
17757 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
17758
17759 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
17760 loader.
17761
17762 2011-09-28 Andreas Born <futur.andy@googlemail.com>
17763
17764 Fix incorrect identifiers in bash-completion.
17765
17766 * util/bash-completion.d/grub-completion.bash.in
17767 (_grub_mkpasswd-pbkdf2): Rename to ...
17768 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
17769 (_grub_script-check): Rename to ...
17770 (_grub_script_check): ... this. All users updated.
17771
17772 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
17773
17774 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
17775 Return 0 if disk isn't biosdisk.
17776
17777 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17778
17779 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
17780 on NetBSD.
17781 * Makefile.util.def (grub-fstest): Likewise.
17782
17783 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17784
17785 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
17786 Get sector size from disk label.
17787
17788 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
17789
17790 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
17791 */README* as well as README*.
17792 Reported by: Axel Beckert.
17793
17794 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17795
17796 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
17797 case of less than 256 MiB of RAM.
17798
17799 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17800
17801 * grub-core/commands/wildcard.c (make_regex): Handle @.
17802
17803 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17804
17805 * util/grub-install.in: Move cryptodisk logic to appropriate place.
17806
17807 2011-08-21 Szymon Janc <szymon@janc.net.pl>
17808
17809 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
17810 AC_LANG_CONFTEST macros.
17811
17812 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17813
17814 Add grub-fstest option to uncompress data for commands.
17815
17816 * util/grub-fstest.c (uncompress): New var.
17817 (options): New option -u.
17818
17819 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17820
17821 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
17822 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
17823
17824 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17825
17826 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
17827 file type was not recognized correctly (not gzip or corrupted).
17828
17829 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17830
17831 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
17832 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
17833
17834 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17835
17836 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
17837 loongson.
17838 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
17839 video_radeon_fuloong2e.
17840 * grub-core/video/radeon_fuloong2e.c: New file.
17841 * include/grub/video.h (grub_video_id_t): Add new ID
17842 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
17843
17844 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17845
17846 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
17847 define.
17848 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
17849 that PRID matches the detected subplatform and reset the subplatform
17850 if it doesn't.
17851
17852 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17853
17854 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
17855
17856 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17857
17858 Fix PCI iterating on functions >= 4.
17859
17860 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
17861 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
17862 Removed.
17863 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
17864 (grub_pci_read): Fix bitmask.
17865 (grub_pci_read_word): Likewise.
17866 (grub_pci_read_byte): Likewise.
17867 (grub_pci_write): Likewise.
17868 (grub_pci_write_word): Likewise.
17869 (grub_pci_write_byte): Likewise.
17870
17871 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17872
17873 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
17874 can still be specified in TARGET_CFLAGS)
17875
17876 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17877
17878 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
17879
17880 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
17881 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
17882 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
17883 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
17884 (FULOONG): Rename to ...
17885 (FULOONG2F): ... this. All users updated.
17886 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
17887 (machtype_fuloong2f_str): ... this.
17888 (machtype_fuloong2e_str): New string.
17889 Check for machtype_fuloong2e_str.
17890 * grub-core/loader/mips/linux.c (loongson_machtypes)
17891 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
17892 * grub-core/term/serial.c (loongson_defserial)
17893 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
17894 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
17895 loongson_defserial.
17896 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
17897 Rename to ...
17898 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
17899 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
17900 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
17901 to IMAGE_FULOONG2F_FLASH. All users updated.
17902 (image_targets): Rename images.
17903 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
17904
17905 2011-08-19 Szymon Janc <szymon@janc.net.pl>
17906
17907 Make enable of disk cache statistics code configurable.
17908
17909 * configure.ac: --enable-cache-stats added.
17910 * config.h.in (DISK_CACHE_STATS): New define.
17911 * grub-core/Makefile.core.def (cacheinfo): New command.
17912 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
17913 * grub-core/commands/cacheinfo.c: New file.
17914 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
17915 moved to cacheinfo.c.
17916 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
17917 debug code.
17918 * include/grub/disk.h: Likewise.
17919
17920 2011-08-19 Szymon Janc <szymon@janc.net.pl>
17921
17922 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
17923 * grub-core/Makefile.am: Likewise.
17924
17925 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
17926
17927 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
17928 non-zero pull.
17929
17930 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
17931
17932 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
17933 All users updated.
17934 (grub_jfs_lookup_symlink): Use correct starting inode.
17935
17936 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
17937
17938 * util/grub-setup.c (main): Add missing gcry initialisation.
17939
17940 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
17941
17942 Don't accept text modes on EFI when booting Linux.
17943
17944 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
17945 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
17946
17947 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
17948 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
17949
17950 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
17951 use of "/path/.." as in grub-install for EFI as well as handling
17952 symlinks correctly.
17953 Fixes Debian bug #637768.
17954
17955 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
17956
17957 * util/grub-probe.c: Remove duplicate #include.
17958
17959 2011-08-10 Robert Millan <rmh@gnu.org>
17960
17961 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
17962
17963 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
17964 function.
17965 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
17966 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
17967
17968 2011-08-03 Robert Millan <rmh@gnu.org>
17969
17970 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
17971 la_array as packed.
17972 Reported by: Zachary Bedell
17973
17974 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
17975
17976 * configure.ac: The Loongson port requires grub-mkfont due to its
17977 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
17978 be built.
17979
17980 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
17981
17982 * util/grub-install.in: Don't source grub-mkconfig_lib until after
17983 processing arguments (otherwise help2man fails when GRUB has not yet
17984 been installed).
17985
17986 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
17987
17988 New script grub-mkstandalone.
17989
17990 * Makefile.util.def (grub-mkstandalone): New script.
17991 * docs/man/grub-mkstandalone.h2m: New file.
17992 * util/grub-mkstandalone.in: Likewise.
17993
17994 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
17995
17996 Support ATA disks with 4K sectors.
17997
17998 * include/grub/ata.h (grub_ata): New member log_sector_size.
17999 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
18000 (grub_ata_identify): Read sector size.
18001 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
18002
18003 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18004
18005 * util/grub-install.in: Don't use uhci outside of x86.
18006
18007 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18008
18009 * util/grub-mkrescue.in: Add missing quotes.
18010
18011 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18012
18013 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
18014 dereference.
18015
18016 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18017
18018 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
18019
18020 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18021
18022 * include/grub/video.h: add missing EXPORT_FUND on
18023 grub_video_edid_checksum and grub_video_edid_preferred_mode.
18024
18025 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18026
18027 * include/grub/mips/kernel.h: Fix define conflict.
18028
18029 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18030
18031 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
18032 all four ways.
18033
18034 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
18035
18036 Preferred resolution detection for VBE.
18037
18038 * grub-core/video/video.c (grub_video_edid_checksum): New function.
18039 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
18040 the Flat Panel extension, in line with the X.org VESA driver.
18041 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
18042 New function.
18043 (grub_vbe_bios_get_ddc_capabilities): Likewise.
18044 (grub_vbe_bios_read_edid): Likewise.
18045 (grub_vbe_get_preferred_mode): Likewise.
18046 (grub_video_vbe_setup): When the mode is "auto", try to get the
18047 preferred mode from VBE, and use the largest mode that is no larger
18048 than the preferred mode (some BIOSes expose a preferred mode that is
18049 not in their mode list!). If this fails, fall back to 640x480 as a
18050 safe conservative choice.
18051 (grub_video_vbe_get_edid): New function.
18052 (grub_video_vbe_adapter): Add get_edid.
18053 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
18054 (struct grub_video_adapter): Add get_edid.
18055 (grub_video_edid_checksum): Add prototype.
18056 (grub_video_edid_preferred_mode): Likewise.
18057 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
18058 structure.
18059
18060 * grub-core/commands/videoinfo.c (print_edid): New function.
18061 (grub_cmd_videoinfo): Print EDID if available.
18062
18063 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
18064 is more appropriate on a wider range of platforms than 640x480.
18065 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
18066 documentation.
18067
18068 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18069
18070 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
18071
18072 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18073
18074 * po/POTFILES.in: Regenerate.
18075
18076 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18077
18078 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
18079 incorrect memory usage.
18080
18081 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18082
18083 * util/grub-install.in: Source grub-mkconfig_lib.
18084
18085 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18086
18087 Remove getroot.c from core on emu platform.
18088
18089 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
18090 kern/emu/raid.c.
18091 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
18092 useless.
18093 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
18094 * util/getroot.c (get_win32_path): ... here.
18095 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
18096 * util/getroot.c (fini_libzfs): ... here.
18097 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
18098 * util/getroot.c (grub_get_libzfs_handle): ... here.
18099 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
18100 Moved from here...
18101 * util/getroot.c (grub_find_zpool_from_dir): ... here.
18102 * grub-core/kern/emu/misc.c
18103 (grub_make_system_path_relative_to_its_root): Moved from here...
18104 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
18105 * grub-core/kern/emu/getroot.c: Moved from here ...
18106 * util/getroot.c: ... here. All users updated.
18107 * grub-core/kern/emu/raid.c: Moved from here ...
18108 * util/raid.c: ... here. All users updated.
18109
18110 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18111
18112 * po/POTFILES.in: Regenerate.
18113
18114 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18115
18116 Fix compilation on GNU/Linux.
18117
18118 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
18119 Disable geli.
18120 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
18121 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
18122 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
18123
18124 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18125 2011-07-07 Michael Gorven <michael@gorven.za.net>
18126 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
18127
18128 LUKS and GELI support.
18129
18130 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
18131 grub-core/disk/luks.c, grub-core/disk/geli.c,
18132 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
18133 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
18134 grub-core/lib/arg.c.
18135 (libgrubmods.a): Remove gcrypts cflags and cppflags.
18136 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
18137 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
18138 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
18139 (grub-bin2h): Add libgcry.a.
18140 (grub-mkimage): Likewise.
18141 (grub-mkrelpath): Likewise.
18142 (grub-script-check): Likewise.
18143 (grub-editenv): Likewise.
18144 (grub-mkpasswd-pbkdf2): Likewise.
18145 (grub-pe2elf): Likewise.
18146 (grub-fstest): Likewise.
18147 (grub-mkfont): Likewise.
18148 (grub-mkdevicemap): Likewise.
18149 (grub-probe): Likewise.
18150 (grub-ofpath): Likewise.
18151 (grub-mklayout): Likewise.
18152 (example_unit_test): Likewise.
18153 (grub-menulst2cfg): Likewise.
18154 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
18155 * grub-core/Makefile.core.def (cryptodisk): New module.
18156 (luks): Likewise.
18157 (geli): Likewise.
18158 * grub-core/disk/AFSplitter.c: New file.
18159 * grub-core/disk/cryptodisk.c: Likewise.
18160 * grub-core/disk/geli.c: Likewise.
18161 * grub-core/disk/luks.c: Likewise.
18162 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
18163 grub_util_is_lvm.
18164 (grub_util_get_dm_abstraction): New function.
18165 (grub_util_follow_gpart_up): Likewise.
18166 (grub_util_get_geom_abstraction): Likewise.
18167 (grub_util_get_dev_abstraction): Use new functions.
18168 (grub_util_pull_device): Pull GELI and LUKS.
18169 (grub_util_get_grub_dev): Handle LUKS and GELI.
18170 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
18171 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
18172 (follow_geom_up): Removed.
18173 (grub_util_fd_seek): New function.
18174 (open_device): Use grub_util_fd_seek.
18175 (nread): Rename to ..
18176 (grub_util_fd_read): ... this. All users updated.
18177 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
18178 (grub_crypto_cbc_decrypt): Likewise.
18179 (grub_crypto_hmac_write): Likewise.
18180 (grub_crypto_hmac_buffer): Likewise.
18181 (grub_password_get): Extend to util.
18182 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
18183 New member modname.
18184 (gcry_md_spec) [GRUB_UTIL]: Likewise.
18185 * include/grub/cryptodisk.h: New file.
18186 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
18187 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
18188 LUKS and GELI.
18189 (grub_util_follow_gpart_up): New proto.
18190 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
18191 (grub_util_fd_read): Likewise.
18192 (grub_cryptodisk_cheat_mount): Likewise.
18193 (grub_util_cryptodisk_print_uuid): Likewise.
18194 (grub_util_get_fd_sectors): Likewise.
18195 * util/grub-fstest.c (mount_crypt): New var.
18196 (fstest): Mount crypto if requested.
18197 (options): New option -C.
18198 (argp_parser): Parse -C.
18199 (main): Init and fini gcry.
18200 * util/grub-install.in: Support cryptodisk install.
18201 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
18202 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
18203 cryptodisk.
18204 (prepare_grub_to_access_device): Likewise.
18205 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
18206 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
18207 (probe_cryptodisk_uuid): New function.
18208 (probe_abstraction): Likewise.
18209 (probe): Use new functions.
18210 * util/import_gcry.py: Create Makefile.utilgcry.def.
18211 Add modname member.
18212
18213 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18214
18215 Lazy device scanning.
18216
18217 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
18218 (grub-setup): Remove util/raid.c.
18219 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
18220 * grub-core/disk/lvm.c (scan_depth): New variable.
18221 (grub_lvm_iterate): Rescan if necessary.
18222 (find_lv): New function based on grub_lvm_open.
18223 (grub_lvm_open): Use find_lv. Rescan on error.
18224 (is_node_readable): New function.
18225 (is_lv_readable): Likewise.
18226 (grub_lvm_scan_device): Skip already found disks.
18227 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
18228 Stop if searched device is found and readable.
18229 * grub-core/disk/raid.c (inscnt): New variable.
18230 (scan_depth): Likewise.
18231 (scan_devices): New function based on grub_raid_register. Abort if
18232 looked for device is found.
18233 (grub_raid_iterate): Rescan if needed.
18234 (find_array): NEw function based on -grub_raid_open.
18235 (grub_raid_open): Use find_array and rescan.
18236 (insert_array): Set became_readable_at.
18237 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
18238 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
18239 New function.
18240 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
18241 (grub_util_pull_device): New function.
18242 (grub_util_get_grub_dev): Call grub_util_pull_device.
18243 * util/raid.c: Moved to ..
18244 * grub-core/kern/emu/raid.c: ... here.
18245 (grub_util_raid_getmembers): New parameter "bootable".
18246 All users updated. Support 1.x.
18247 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
18248 All users updated.
18249 * include/grub/disk.h (grub_disk_pull_t): New enum.
18250 (grub_disk_dev): Change iterate prototype.
18251 All users updated.
18252 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
18253 New proto.
18254 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
18255 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
18256 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
18257 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
18258 All users updated.
18259 * include/grub/util/raid.h: Removed.
18260
18261 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18262
18263 * po/POTFILES.in: Regenerate.
18264
18265 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18266
18267 Unify sparc init with other ieee1275.
18268
18269 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
18270 instead of kern/sparc64/ieee1275/init.c.
18271 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
18272 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
18273 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
18274 grub/machine/kernel.h.
18275 (grub_ieee1275_original_stack) [__sparc__]: New variable.
18276 (grub_claim_heap) [__sparc__]: Use sparc version.
18277 (grub_machine_init): Moved args parsing to
18278 (grub_parse_cmdline): ...this.
18279 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
18280 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
18281 New definition.
18282 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
18283
18284 Move BOOTP to separate file.
18285
18286 * grub-core/Makefile.core.def (net): Add net/bootp.c.
18287 * grub-core/net/net.c: Move all BOOTP functions to
18288 * grub-core/net/bootp.c: ... here.
18289
18290 Use frame interface on PXE.
18291
18292 * grub-core/Makefile.core.def (pxecmd): Removed.
18293 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
18294 * grub-core/commands/i386/pc/pxecmd.c: Removed.
18295 * grub-core/i386/pc/pxe.c: Moved from here ...
18296 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
18297 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
18298 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
18299
18300 EFI network support.
18301
18302 * grub-core/Makefile.core.def (efinet): New module.
18303 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
18304 here...
18305 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
18306 All users updated.
18307 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
18308 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
18309 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
18310 * grub-core/net/drivers/efi/efinet.c: New file.
18311 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
18312 (grub_efi_net_config): New extern var.
18313
18314 Various cleanups and bugfixes.
18315
18316 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
18317 error.
18318 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
18319 disk declared as partition.
18320 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
18321 leak on failure.
18322 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
18323 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
18324 (grub_debug_zalloc): Likewise.
18325 (grub_debug_realloc): Likewise.
18326 (grub_debug_memalign): Likewise.
18327 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
18328 Check that target is IPv4.
18329 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
18330 local-mac-address as fallback.
18331 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
18332 memory leak.
18333 * grub-core/net/ip.c (ipchksum): Rename to ...
18334 (grub_net_ip_chksum): ... this. All users updated.
18335 (grub_net_recv_ip_packets): Special handling for DHCP.
18336 * util/grub-mkimage.c (generate_image): Zero-out aout header.
18337
18338 Unify prefix handling
18339
18340 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
18341 (grub_machine_get_bootlocation): ... this.
18342 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
18343 (grub_machine_get_bootlocation): ... this.
18344 (grub_prefix): New variable.
18345 (prefix): Removed.
18346 (root_dev): New variable.
18347 (dir): Likewise.
18348 (main): Use new variables.
18349 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
18350 Revamped into ...
18351 (grub_machine_get_bootlocation): ... this.
18352 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
18353 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
18354 (grub_machine_get_bootlocation): ... this.
18355 (grub_machine_set_prefix): Removed.
18356 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
18357 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
18358 Revamped into ...
18359 (grub_machine_get_bootlocation): ... this.
18360 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
18361 (grub_set_prefix_and_root): ... this. All users updated.
18362 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
18363 Revamped into ...
18364 (grub_machine_get_bootlocation): ... this.
18365 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
18366 (grub_machine_get_bootlocation): New proto.
18367 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
18368
18369 Less intrusive and more reliable seek on network implementation.
18370
18371 * grub-core/kern/file.c (grub_file_net_seek): Removed.
18372 (grub_file_seek): Don't call grub_file_net_seek.
18373 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
18374 (grub_net_fs_read_real): .. this.
18375 (grub_net_seek_real): Use net->offset.
18376 (grub_net_fs_read): Seek if necessary.
18377
18378 Unify IEEE1275 netwotk config with the other platforms.
18379
18380 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
18381 New variable.
18382 (grub_machine_get_bootlocation): Support network.
18383 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
18384 Support type and device parsing.
18385 (grub_ieee1275_get_device_type): New function.
18386 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
18387 into ...
18388 (grub_ieee1275_net_config_real): ... this.
18389 (grub_ofnet_probecards): Removed.
18390 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
18391 * include/grub/ieee1275/ofnet.h: Removed.
18392 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
18393 extern var.
18394 (grub_ieee1275_get_device_type): New function.
18395
18396 Unify network device closing across platforms and make more robust.
18397
18398 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
18399 grub_grubnet_fini.
18400 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
18401 already.
18402 * grub-core/net/net.c (grub_net_network_level_interface_register):
18403 Update num_ifaces.
18404 (grub_net_card_unregister): Close all interfaces.
18405 (receive_packets): Don't poll if no iterfaces are registered.
18406 Open if necessary.
18407 (grub_net_fini_hw): New function.
18408 (grub_net_restore_hw): Likewise.
18409 (fini_hnd): New variable.
18410 (GRUB_MOD_INIT): Register preboot hook.
18411 (GRUB_MOD_FINI): Run and unregister preboot hook.
18412
18413 Poll network cards when idle.
18414
18415 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
18416 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
18417 * grub-core/net/net.c (receive_packets): Save last poll time.
18418 (grub_net_poll_cards_idle_real): New function.
18419 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
18420 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
18421 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
18422
18423 Rename ofnet interfaces.
18424
18425 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
18426 (grub_ofnet_findcards): Use ofnet_%s names.
18427
18428 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
18429
18430 Cleanup socket opening.
18431
18432 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
18433 (grub_net_fs_close): Likewise.
18434 (grub_net_fs_read_real): Use eof member.
18435 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
18436 (+grub_net_udp_close): New inline function.
18437
18438 * include/grub/net/tftp.h: Moved to the top of ...
18439 * grub-core/net/tftp.c: ... here.
18440 * include/grub/net/ip.h: Moved mostly to the top of ...
18441 * grub-core/net/ip.c: ... here.
18442 * include/grub/net/ethernet.h: Moved mostly to the top of ...
18443 * grub-core/net/ethernet.c: ... here.
18444
18445 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
18446
18447 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
18448 FS name.
18449
18450 * include/grub/net/ip.h (ipv4_ini): Removed.
18451 (ipv4_fini): Likewise.
18452
18453 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
18454 (grub_net_send_ip_packets): Likewise.
18455
18456 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18457
18458 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
18459 grub_read_cmos prototype.
18460
18461 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18462
18463 VGA text support in qemu-mips
18464
18465 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
18466 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
18467 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
18468 text.
18469 * grub-core/kern/i386/qemu/init.c: Renamed to ...
18470 * grub-core/kern/vga_init.c: ... this.
18471 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
18472 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
18473 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
18474 Adjust.
18475 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
18476 GRUB_MACHINE_PCI_IO_BASE.
18477
18478 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18479
18480 MIPS qemu flash support.
18481
18482 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
18483 magic.
18484 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
18485 (grub_machine_init): Probe memory if its size isn't known.
18486 * util/grub-mkimage.c (image_targets): Add flash targets.
18487 (generate_image): Handle flash targets.
18488
18489 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18490
18491 MIPS qemu at_keyboard support.
18492
18493 * gentpl.py (videoinkernel): Add qemu-mips.
18494 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
18495 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
18496 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
18497 modules.
18498 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
18499 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
18500 * grub-core/term/serial.c (grub_serial_register)
18501 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
18502
18503 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18504
18505 CMOS support on sparc.
18506
18507 * gentpl.py (cmos): Add powerpc and sparc.
18508 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
18509 powerpc and sparc.
18510 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
18511 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
18512 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
18513 grub_set_datetime_cmos.
18514 * grub-core/lib/ieee1275/cmos.c: New file.
18515 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
18516 (find_rtc): Set no_ieee1275_rtc on error.
18517 (grub_get_datetime): Call grub_get_datetime_cmos on error.
18518 (grub_set_datetime): Call grub_set_datetime_cmos on error.
18519 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
18520 fail. Move value to argument. All users updated
18521 (grub_cmos_write): Likewise.
18522 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
18523 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
18524 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
18525 grub_get_datetime_cmos and grub_set_datetime_cmos.
18526
18527 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
18528
18529 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
18530 sourcing grub-mkconfig_lib.
18531 * util/update-grub_lib.in: Likewise.
18532 * util/grub.d/00_header.in: Likewise.
18533 * util/grub.d/10_hurd.in: Likewise.
18534 * util/grub.d/10_kfreebsd.in: Likewise.
18535 * util/grub.d/10_linux.in: Likewise.
18536 * util/grub.d/10_netbsd.in: Likewise.
18537 * util/grub.d/10_windows.in: Likewise.
18538 * util/grub.d/20_linux_xen.in: Likewise.
18539 * util/grub.d/30_os-prober.in: Likewise.
18540
18541 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
18542
18543 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
18544 default_bg_color rather than black.
18545 (grub_gfxterm_fullscreen): Likewise.
18546 (grub_gfxterm_background_color_cmd): Save new background color in
18547 default_bg_color.
18548
18549 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18550
18551 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
18552
18553 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18554
18555 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
18556 mismerge.
18557
18558 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18559
18560 Chainloading on coreboot support.
18561
18562 * grub-core/Makefile.core.def (chain): Add coreboot.
18563 * grub-core/loader/i386/coreboot/chainloader.c: New file.
18564
18565 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18566
18567 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
18568 if it happens.
18569
18570 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18571
18572 Implement time command.
18573
18574 * grub-core/Makefile.core.def (time): New module.
18575 * grub-core/commands/time.c: New file.
18576 * grub-core/script/parser.y: Remove "time" keyword.
18577 * grub-core/script/yylex.l: Likewise.
18578
18579 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18580
18581 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
18582
18583 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18584
18585 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
18586 when handling leftovers.
18587
18588 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18589
18590 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
18591 so that help2man doesn't fail.
18592
18593 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18594
18595 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
18596 type in pointers on sparc64.
18597 (get_card_packet): Likewise.
18598
18599 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
18600
18601 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
18602 with `*'.
18603 (grub_cmd_videoinfo): Fetch current video mode.
18604
18605 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18606
18607 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
18608 because of underlying system restrictions.
18609
18610 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18611
18612 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
18613 necessary.
18614
18615 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18616
18617 Coreboot video support.
18618
18619 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
18620 (vbe): Likewise.
18621 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
18622 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
18623 here ...
18624 * grub-core/kern/i386/int.S: ... here.
18625 * grub-core/video/i386/pc/vbe.c: Updated includes.
18626 * grub-core/video/i386/pc/vga.c: Likewise.
18627 * include/grub/i386/coreboot/memory.h
18628 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
18629 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
18630 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
18631 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
18632 Disable interrupts.
18633 * include/grub/i386/pc/vga.h: Removed. All users updated.
18634
18635 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18636
18637 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
18638 definitions for dprintf.
18639 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
18640
18641 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18642
18643 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
18644 prototype.
18645 (get_card_packet): Likewise.
18646
18647 2011-06-26 Yves Blusseau <blusseau@zetam.org>
18648
18649 Display the path of the file when file is not found
18650
18651 * grub-core/fs/fat.c: Display the filename when file is not found.
18652 * grub-core/fs/fshelp.c: Likewise.
18653 * grub-core/fs/hfs.c: Likewise.
18654 * grub-core/fs/jfs.c: Likewise.
18655 * grub-core/fs/minix.c: Likewise.
18656 * grub-core/fs/ufs.c: Likewise.
18657 * grub-core/fs/btrfs.c: Likewise.
18658 * grub-core/commands/i386/pc/play.c: Likewise.
18659
18660 2011-06-26 Szymon Janc <szymon@janc.net.pl>
18661
18662 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
18663 pointer checks before calling grub_free().
18664 * grub-core/commands/wildcard.c (match_devices): Likewise.
18665 * grub-core/commands/wildcard.c (match_files): Likewise.
18666 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
18667 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
18668 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
18669 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
18670 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
18671 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
18672 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
18673 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
18674 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
18675
18676 2011-06-25 Patrick <p55@mailinator.com>
18677
18678 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
18679
18680 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
18681
18682 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
18683 (grub_pxe_send): Likewise.
18684 (GRUB_MOD_INIT): Fix types.
18685
18686 2011-06-24 Szymon Janc <szymon@janc.net.pl>
18687
18688 * grub-core/io/xzio.c: Fix code style issues
18689
18690 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18691 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
18692
18693 Network infrastructure.
18694 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
18695
18696 * include/grub/net/arp.h: New file.
18697 * include/grub/net/device.h: Likewise.
18698 * include/grub/net/ethernet.h: Likewise.
18699 * include/grub/net/ip.h: Likewise.
18700 * include/grub/net/netbuff.h: Likewise.
18701 * include/grub/net/tftp.h: Likewise.
18702 * include/grub/net/udp.h: Likewise.
18703 * include/grub/ieee1275/ofnet.h: Likewise.
18704 * include/grub/emu/export.h: Likewise.
18705 * include/grub/net.h: Likewise.
18706 * grub-core/net/arp.c: Likewise.
18707 * grub-core/net/ethernet.c: Likewise.
18708 * grub-core/net/ip.c: Likewise.
18709 * grub-core/net/udp.c: Likewise.
18710 * grub-core/net/tftp.c: Likewise.
18711 * grub-core/net/netbuff.c: Likewise.
18712 * grub-core/net/net.c: Likewise.
18713 * grub-core/net/drivers/emu/emunet.c: Likewise.
18714 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
18715 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
18716 export.h.
18717 * grub-core/Makefile.core.def (net): New module.
18718 (tftp): Likewise.
18719 (ofnet): Likewise.
18720 (emunet): Likewise.
18721 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
18722 network protocols.
18723 * grub-core/kern/device.c (grub_net_open) : New variable.
18724 (grub_device_open): Handle network device.
18725 (grub_device_close): Likewise.
18726 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
18727 (grub_grubnet_fini): Likewise.
18728 (grub_file_seek): Seek in network device.
18729 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
18730 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
18731 network root.
18732 (grub_machine_fini): Call grub_grubnet_fini.
18733 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
18734 network.
18735 (grub_ieee1275_get_aliasdevname): New function.
18736 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
18737 Add unofficial Solaris network info.
18738 (grub_multiboot_make_mbi): Likewise.
18739 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
18740 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
18741 * include/grub/device.h (grub_fs): Removed.
18742 * include/grub/err.h (grub_err_t): Add network-related values.
18743 * include/grub/i386/pc/pxe.h: Removed bootp parts.
18744 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
18745 (grub_ieee1275_get_aliasdevname): New proto.
18746 * include/grub/net.h: Rewritten.
18747
18748 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18749
18750 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
18751 names.
18752
18753 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18754
18755 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
18756 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
18757 it truncates the output.
18758 Reported by: Ximin Luo.
18759
18760 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18761
18762 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
18763
18764 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18765
18766 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
18767 partmap before abstraction.
18768
18769 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
18770
18771 * util/grub-mkconfig_lib.in: Add missing quotes.
18772
18773 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18774
18775 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
18776 old method if mountinfo would return /dev/root and /dev/root doesn't
18777 exist.
18778
18779 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18780
18781 ZFS zlib support
18782
18783 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
18784 (decomp_table): Add zlib entries.
18785 (zio_read): USe 8 bits for compression function rather than 3.
18786 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
18787
18788 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18789
18790 * grub-core/disk/ahci.c: Add missing license statements.
18791 * grub-core/fs/romfs.c: Likewise.
18792 * grub-core/lib/ia64/setjmp.S: Likewise.
18793 * grub-core/loader/i386/pc/freedos.c: Likewise.
18794 * grub-core/loader/ia64/efi/linux.c: Likewise.
18795 * grub-core/video/colors.c: Likewise.
18796 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
18797
18798 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18799
18800 AHCI support.
18801
18802 * grub-core/Makefile.core.def (ata_pthru): Removed.
18803 (ahci): New module.
18804 (pata): Likewise.
18805 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
18806 on unload.
18807 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
18808 readwrite.
18809 (grub_hdparm_do_check_powermode_cmd): Likewise.
18810 (grub_hdparm_do_smart_cmd): Likewise.
18811 (grub_hdparm_set_val_cmd): Likewise.
18812 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
18813 * grub-core/disk/ahci.c: New file.
18814 * grub-core/disk/ata.c: Factor out the low-level part into ...
18815 * grub-core/disk/pata.c: ... here.
18816 * grub-core/disk/ata_pthru.c: Contents moved to ...
18817 * grub-core/disk/pata.c: ... here.
18818 * grub-core/disk/scsi.c (grub_scsi_names): New array.
18819 (grub_scsi_iterate): Use grub_scsi_names.
18820 (grub_scsi_open): Likewise.
18821 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
18822 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
18823 (grub_ata_regs_t): New struct.
18824 (grub_disk_ata_pass_through_parms): Likewise.
18825 (grub_ata_device): Renamed to ...
18826 (grub_ata): ... this.
18827 (grub_ata_dev): New struct.
18828 Removed all low-level inline functions.
18829 * include/grub/scsi.h: Add PATA and AHCI subsystems.
18830 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
18831 iterate hooks and open. All users updated.
18832 * util/grub-install.in: Handle AHCI disk module.
18833
18834 2011-06-23 Szymon Janc <szymon@janc.net.pl>
18835
18836 Add support for DRI and RSTn markers in JPEG files.
18837
18838 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
18839 (JPEG_MARKER_RST0): Likewise.
18840 (JPEG_MARKER_RST1): Likewise.
18841 (JPEG_MARKER_RST2): Likewise.
18842 (JPEG_MARKER_RST3): Likewise.
18843 (JPEG_MARKER_RST4): Likewise.
18844 (JPEG_MARKER_RST5): Likewise.
18845 (JPEG_MARKER_RST6): Likewise.
18846 (JPEG_MARKER_RST7): Likewise.
18847 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
18848 (grub_jpeg_decode_dri): New function.
18849 (grub_jpeg_decode_sos): Move image data related part into
18850 grub_jpeg_decode_data function.
18851 (grub_jpeg_decode_data): New function.
18852 (grub_jpeg_reset): New function.
18853 (grub_jpeg_decode_jpeg): Handle new markers.
18854
18855 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18856
18857 * util/ieee1275/ofpath.c (check_sas): Close fd.
18858 (main): Free of_path.
18859 Reported by: David Volgyes <dvolgyes>.
18860
18861 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18862
18863 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
18864 Reported by: David Volgyes <dvolgyes>.
18865
18866 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18867
18868 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
18869 file after stat.
18870 Reported by: David Volgyes <dvolgyes>.
18871
18872 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18873
18874 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
18875
18876 Reported by: David Volgyes <dvolgyes>.
18877
18878 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18879
18880 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
18881 Prevent memory leak.
18882
18883 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18884
18885 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
18886 (main): Close file.
18887 Reported by: David Volgyes <dvolgyes>.
18888
18889 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18890
18891 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
18892 to continue if allocation is failed.
18893
18894 Reported by: David Volgyes <dvolgyes>.
18895
18896 2011-06-23 David Volgyes <dvolgyes>
18897
18898 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
18899 dereference.
18900
18901 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18902
18903 Fix spurious warning.
18904
18905 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
18906 (acorn_partition_map_find): Use .bin member.
18907
18908 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18909
18910 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
18911 /dev/root as a valid device.
18912
18913 2011-06-23 Jim Meyering <meyering@redhat.com>
18914
18915 Avoid NULL deref in grub_device_open.
18916
18917 * grub-core/kern/device.c (grub_device_open): Don't dereference
18918 a NULL pointer upon failed grub_env_get.
18919
18920 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18921
18922 Support non-512B sectors and agglomerate reads.
18923
18924 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
18925 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
18926 (disk_io_guid): Removed.
18927 (make_devices): Locate solely by BlockIO.
18928 (grub_efidisk_open): Fill log_sector_size and total_sectors.
18929 (grub_efidisk_read): Use read_blocks.
18930 (grub_efidisk_write): Use write_blocks.
18931 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
18932 log_sector_size.
18933 (get_safe_sectors): Handle non-512B sectors.
18934 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
18935 sectors.
18936 (grub_biosdisk_write): Handle non-512B sectors.
18937 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
18938 (grub_scsi_read): Remove special non-512B block handling (now handled
18939 one level up).
18940 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
18941 and do sanity checks.
18942 (grub_disk_adjust_range): Handle non-512B sectors.
18943 (transform_sector): New function.
18944 (grub_disk_read_small): Likewise.
18945 (grub_disk_read): Rewritten.
18946 (grub_disk_write): Handle non-512B sectors.
18947 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
18948 log_sector_size.
18949 (open_device): Use log_sector_size.
18950 (grub_util_biosdisk_read): Likewise.
18951 (grub_util_biosdisk_write): Likewise.
18952 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
18953 non-512B sectors.
18954 (pc_partition_map_embed): Likewise.
18955 * include/grub/disk.h (grub_disk): New field log_sector_size.
18956 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
18957 (GRUB_DISK_CACHE_BITS): Increased to 6.
18958 * util/grub-fstest.c (fstest): New command testload.
18959 (argp_parser): Likewise.
18960
18961 2011-06-16 Robert Millan <rmh@gnu.org>
18962
18963 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
18964 `ata' driver on kernel of FreeBSD 9.
18965
18966 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
18967 (get_ataraid_disk_name): New functions.
18968 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
18969 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
18970 get_ataraid_disk_name() and get_ada_disk_name().
18971
18972 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
18973
18974 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
18975 input format.
18976
18977 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
18978
18979 * docs/grub.texi (Obtaining and Building GRUB): Substitute
18980 `ftp.gnu.org' for `alpha.gnu.org'.
18981
18982 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
18983
18984 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
18985 partitions under /dev/disk/by-id/.
18986
18987 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
18988
18989 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
18990 after ten consecutive open failures. Scanning all the way up to
18991 10000 is excessive and can cause serious performance problems in
18992 some configurations.
18993 Fixes Ubuntu bug #787461.
18994
18995 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
18996
18997 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
18998 opening new one.
18999
19000 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
19001 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19002
19003 Don't stat devices unless we have to.
19004
19005 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
19006 dir == /dev/mapper.
19007 (grub_guess_root_device): Use already known os_dev if possible.
19008 * grub-core/kern/emu/hostdisk.c
19009 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
19010 if device is known to be a dm one.
19011
19012 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
19013
19014 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
19015 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
19016 Reported by: Pawel Tecza.
19017
19018 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
19019
19020 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
19021 (lsefisystab): Likewise.
19022 (lssal): Likewise.
19023 (lsefimmap): Likewise.
19024 (hdparm): Enable on qemu-mips.
19025 (setjmp): Add ia64 nodist.
19026 (serial): Simplify tags.
19027
19028 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19029
19030 * Makefile.util.def (grub-ofpathname): Install manual page.
19031
19032 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19033
19034 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
19035
19036 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19037
19038 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
19039
19040 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19041
19042 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
19043 into dprintf.
19044
19045 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19046
19047 Use full 64-bit division.
19048
19049 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
19050 (grub_divmod64): ... this.
19051 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
19052 version.
19053
19054 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19055
19056 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
19057 `source'.
19058
19059 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19060
19061 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
19062 to avoid accidents when debugging with 'sh -x'.
19063 * grub-core/gensyminfo.sh.in: Likewise.
19064 * tests/example_scripted_test.in: Likewise.
19065 * tests/grub_cmd_regexp.in: Likewise.
19066 * tests/grub_script_blanklines.in: Likewise.
19067 * tests/grub_script_dollar.in: Likewise.
19068 * tests/grub_script_expansion.in: Likewise.
19069 * tests/grub_script_final_semicolon.in: Likewise.
19070 * tests/partmap_test.in: Likewise.
19071 * tests/util/grub-shell-tester.in: Likewise.
19072 * tests/util/grub-shell.in: Likewise.
19073
19074 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19075
19076 Move gfxmenu color handling to video, so that gfxterm can use it
19077 too.
19078
19079 * grub-core/gfxmenu/named_colors.c: Move to ...
19080 * grub-core/video/colors.c: ... here. Rename
19081 grub_gui_get_named_color to grub_video_get_named_color.
19082 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
19083 * grub-core/video/colors.c (my_isxdigit): ... here.
19084 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
19085 Move to ...
19086 * grub-core/video/colors.c (parse_hex_color_component): ... here.
19087 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
19088 to ...
19089 * grub-core/video/colors.c (grub_video_parse_color): ... here.
19090
19091 * include/grub/gui.h (grub_gui_color_t): Move to ...
19092 * include/grub/video.h (grub_video_rgba_color_t): ... here.
19093 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
19094 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
19095 * include/grub/gui.h (grub_gui_map_color): Move to ...
19096 * include/grub/video.h (grub_video_map_rgba_color): ... here.
19097 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
19098 to ...
19099 * include/grub/video.h (grub_video_get_named_color): ... here.
19100 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
19101 * include/grub/video.h (grub_video_parse_color): ... here.
19102
19103 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
19104 video/colors.c.
19105 (gfxmenu): Remove gfxmenu/named_colors.c.
19106 (video) [videomodules]: Add video/colors.c.
19107
19108 Add a background_color command.
19109
19110 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
19111 function.
19112 (GRUB_MOD_INIT): Register background_color command.
19113 (GRUB_MOD_FINI): Unregister background_color command.
19114 (redraw_screen_rect): Allow blend/replace of text layer to be
19115 controlled independently from whether there is a background bitmap.
19116 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
19117 changing bitmap.
19118
19119 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19120
19121 Patch BPB in ntldr and chainloader --bpb.
19122
19123 * grub-core/fs/fat.c: Include grub/fat.h.
19124 (grub_fat_bpb): Moved to ...
19125 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
19126 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
19127 grub/ntfs.h.
19128 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
19129 Moved from here...
19130 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
19131 here.
19132 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
19133 New function.
19134 (grub_chainloader_cmd): Patch BPB if --bpb is given.
19135 (GRUB_MOD_INIT): Show --bpb.
19136 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
19137 * grub-core/normal/main.c (features): New variable.
19138 (GRUB_MOD_INIT): Set feature_* variables.
19139 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
19140 proto.
19141 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
19142
19143 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19144
19145 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
19146 for cleanness.
19147
19148 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19149
19150 FreeDOS direct loading support.
19151
19152 * docs/grub.texi (Supported OS): Add FreeDOS.
19153 * grub-core/Makefile.core.def (freedos): New module.
19154 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
19155 variable.
19156 (grub_relocator16_boot): Handle %ebx.
19157 * grub-core/lib/i386/relocator16.S: Likewise.
19158 * grub-core/loader/i386/pc/freedos.c: New file.
19159
19160 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19161
19162 Long Linux command line support.
19163
19164 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19165 (maximal_cmdline_size): New variable.
19166 (allocate_pages): Use maximal_cmdline_size.
19167 (grub_cmd_linux): Set and use maximal_cmdline_size.
19168 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19169 (allocate_pages): Use maximal_cmdline_size.
19170 (grub_cmd_linux): Set and use maximal_cmdline_size.
19171 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
19172 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
19173 and cmdline_size.
19174
19175 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19176 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19177
19178 Improve devmapper support
19179
19180 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
19181 (grub_util_is_lvm): New function.
19182 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
19183 than lvm if not dmraid.
19184 Handle mapped md nodes.
19185 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
19186 (grub_util_device_is_mapped): ... this. Make always available. All users
19187 updated.
19188 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
19189 (convert_system_partition_to_system_disk): Handle lvm, mpath and
19190 dmraid nodes.
19191 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
19192
19193 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19194
19195 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
19196
19197 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
19198 * grub-core/modinfo.sh.in: New file.
19199 * grub-core/Makefile.core.def (modinfo.sh): New script.
19200 * util/grub-mknetdir.in: Use modinfo.sh.
19201 * util/grub-mkrescue.in: Likewise.
19202
19203 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19204
19205 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
19206 Fix potential usage of Elf32 instead of Elf64 when compiling on
19207 32-bit architecture. Add endianness macros while on it.
19208
19209 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19210
19211 Use mipsel- rather than mips- in directories involving mipsel ports to
19212 allow both endiannesses coexist.
19213
19214 * configure.ac: proparate target_cpu=mipsel rather than resetting to
19215 mips. All conditions adjusted.
19216 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
19217 variable.
19218 * util/grub-install.in: Adjust conditions to take renaming into account.
19219 * util/grub-mkimage.c (image_targets): Likewise. New target
19220 mips-qemu_mips-elf for bigendian mips.
19221
19222 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19223
19224 Avoid unnecessary copying on MIPS.
19225
19226 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
19227 early if src == dest.
19228 * util/grub-mkimage.c (generate_image): Arange for src == dest if
19229 compression is none.
19230
19231 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19232
19233 Reduce memory footprint on SGI by putting modules before the kernel
19234 as opposed to after.
19235
19236 * grub-core/Makefile.core.def (kernel): Increase linking address.
19237 (none_decompress): Likewise.
19238 (xz_decompress): Likewise.
19239 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
19240 address.
19241 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
19242 layout change.
19243 (grub_arch_modules_addr): New function.
19244 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
19245 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
19246 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
19247 here.
19248 * grub-core/kern/mips/startup.S (total_size): Rename to ...
19249 (grub_total_modules_size): ... this. Make global.
19250 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
19251 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
19252 New definition.
19253 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
19254 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
19255 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
19256 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
19257 * util/grub-mkimage.c (image_target_desc): New flag
19258 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
19259 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
19260 (generate_image): Handle images with modules before kernel.
19261
19262 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19263
19264 Prevent potential loss of memory map by overwrite on qemu-mips.
19265
19266 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19267 Save ram size in $s4.
19268 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
19269 All users changed to grub_arch_memsize.
19270 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
19271 Loongson.
19272 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
19273 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
19274 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
19275 external variable.
19276
19277 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19278
19279 * .bzrignore: Remove grub-dumpbios.
19280
19281 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19282
19283 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
19284 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
19285 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
19286 existing options which append).
19287 * docs/grub.texi (Simple configuration): Document new options.
19288 Reported by: Ian Jackson. Fixes Debian bug #617538.
19289
19290 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19291
19292 * util/grub-fstest.c (cmd_cat): New function.
19293 (fstest): Handle CMD_CAT.
19294 (options): Add cat.
19295 (argp_parser): Handle cat.
19296
19297 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19298
19299 * Makefile.util.def (grub-bin2h): Don't install.
19300 * docs/man/grub-bin2h.h2m: Remove.
19301
19302 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19303
19304 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
19305 place.
19306
19307 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19308
19309 Reenable qemu-mips port.
19310
19311 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
19312 Fix small arc bug while on it.
19313 * gentpl.py: Handle qemu_mips.
19314 * grub-core/Makefile.am: Likewise.
19315 * grub-core/Makefile.core.def: Likewise.
19316 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
19317 inappropriate includes.
19318 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
19319 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
19320 * grub-core/kern/main.c (grub_modules_get_end)
19321 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
19322 * grub-core/kern/mips/qemu-mips: Moved to ..
19323 * grub-core/kern/mips/qemu_mips: ... this.
19324 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
19325 (grub_machine_init): Call terminfo_init and serial_init.
19326 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
19327 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19328 New variable.
19329 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
19330 parameter passing.
19331 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
19332 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
19333 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
19334 * include/grub/mips/qemu_mips/cmos.h: New file.
19335 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
19336 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
19337 Removed.
19338 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
19339 Use correct mips-style address.
19340 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
19341 (GRUB_TICKS_PER_SECOND): Removed.
19342 (grub_get_rtc): Likewise.
19343 (grub_cpu_idle): Likewise.
19344 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
19345 New definition.
19346 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
19347 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
19348 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
19349 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
19350 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
19351 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
19352 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
19353 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
19354
19355 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19356
19357 SGI ARCS port.
19358
19359 * Makefile.util.def (libgrubmods.a): Add dvh.c.
19360 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
19361 platforms.
19362 * configure.ac: New target mips-arc.
19363 * gentpl.py: Likewise.
19364 * grub-core/Makefile.am: Likewise.
19365 * grub-core/Makefile.core.def: Likewise.
19366 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
19367 (none_decompress): Likewise.
19368 (lsdev): New module.
19369 (datetime): Use lib/arc/datetime.c on ARC.
19370 (part_dvh): New module.
19371 * grub-core/commands/arc/lsdev.c: New file.
19372 * grub-core/disk/arc/arcdisk.c: Likewise.
19373 * grub-core/kern/mips/arc/init.c: Likewise.
19374 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
19375 aligned addresses.
19376 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
19377 support.
19378 (grub_arch_dl_relocate_symbols): Likewise.
19379 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
19380 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
19381 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
19382 platforms.
19383 * grub-core/lib/arc/datetime.c: New file.
19384 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
19385 pci.h on non-loongson.
19386 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
19387 (grub_linux_boot): Set unused registers to 0.
19388 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
19389 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
19390 * grub-core/mmap/mips/uppermem.c: ...here.
19391 * grub-core/partmap/dvh.c: New file.
19392 * grub-core/term/arc/console.c: Likewise.
19393 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
19394 (grub_terminfo_set_current): Add terminal "arc".
19395 (grub_terminfo_readkey): Support ARC sequences.
19396 * include/grub/arc/arc.h: New file.
19397 * include/grub/arc/console.h: Likewise.
19398 * include/grub/disk.h (grub_disk_dev_id): Add
19399 GRUB_DISK_DEVICE_ARCDISK_ID.
19400 * include/grub/mips/arc/kernel.h: New file.
19401 * include/grub/mips/arc/memory.h: Likewise.
19402 * include/grub/mips/arc/time.h: Likewise.
19403 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
19404 * include/grub/mips/kernel.h (grub_halt): ... here.
19405 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
19406 here...
19407 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
19408 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
19409 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
19410 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
19411 proto.
19412 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
19413 from here ...
19414 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
19415 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
19416 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
19417 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
19418 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
19419 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
19420 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
19421 (grub_phys_addr_t): Moved from here ...
19422 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
19423 (grub_vtop): Moved from here ...
19424 * include/grub/mips/memory.h (grub_vtop): ... here.
19425 (grub_map_memory): Moved from here ...
19426 * include/grub/mips/memory.h (grub_map_memory): ... here.
19427 (grub_unmap_memory): Moved from here ...
19428 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
19429 (grub_machine_mmap_iterate): Moved from here ...
19430 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
19431 (grub_mmap_get_lower): Moved from here ...
19432 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
19433 (grub_mmap_get_upper): Moved from here ...
19434 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
19435 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19436 here ...
19437 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19438 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
19439 here ...
19440 * include/grub/mips/time.h (grub_get_rtc): ... here.
19441 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19442 here ...
19443 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19444 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
19445 here ...
19446 * include/grub/mips/time.h (grub_cpu_idle): ... here.
19447 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
19448 definition.
19449 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
19450 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
19451 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
19452 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
19453 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
19454 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
19455 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
19456 (GRUB_MACHINE_LINK_ADDR): Likewise.
19457 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
19458 to 6.
19459 * util/grub-install.in: Run dvhtool on ARC.
19460 * util/grub-mkimage.c (image_targets): Add mips-arc.
19461 (generate_image): Handle ECOFF output for mips-arc.
19462
19463 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19464
19465 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
19466 blocks.
19467
19468 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19469
19470 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
19471 after enabling port.
19472
19473 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19474
19475 Skip incorrect USB devices.
19476
19477 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
19478 configcnt == 0.
19479 * include/grub/usb.h (grub_usb_err_t): New enum value
19480 GRUB_USB_ERR_BADDEVICE.
19481
19482 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19483
19484 Fuloong video init support.
19485
19486 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
19487 well.
19488 (grub_vga_read_arx): New function.
19489 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
19490 definition.
19491 (framebuffer): New members io, mmioptr and mmiobase.
19492 (read_sis_cmd): New function.
19493 (write_sis_cmd): Likewise.
19494 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
19495 rather than 640x400.
19496 * grub-core/video/sis315_init.c: New file.
19497
19498 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19499
19500 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
19501 non-loongson.
19502 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
19503 to grub_dl_register_symbol.
19504
19505 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19506
19507 Fix compilation errors.
19508
19509 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
19510 potentially unused.
19511 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
19512 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
19513 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
19514 to loongson machines.
19515
19516 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19517
19518 Several FS mtime support.
19519
19520 * grub-core/fs/affs.c (grub_affs_time): New struct.
19521 (grub_affs_file): New field mtime.
19522 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
19523 type. Removed 'size'. New field 'di'. All users updated.
19524 (grub_affs_mount): Simplify checsum checking.
19525 (grub_affs_iterate_dir): New helper grub_affs_create_node.
19526 (grub_affs_dir): Handle mtime.
19527 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
19528 (grub_cpio_dir): Likewise.
19529 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
19530 (grub_hfs_filerec): New field mtime.
19531 (grub_hfs_dir): Handle mtime.
19532 (grub_hfs_mtime): New function.
19533 (grub_hfs_fs): Register grub_hfs_mtime.
19534 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
19535 (grub_iso9660_dir): New field mtime.
19536 (grub_fshelp_node): New field dirent.
19537 (iso9660_to_unixtime): New function.
19538 (iso9660_to_unixtime2): Likewise.
19539 (grub_iso9660_read_symlink): Use node->dirent.
19540 (grub_iso9660_iterate_dir): Likewise.
19541 (grub_iso9660_dir): Set mtime.
19542 (grub_iso9660_mtime): New function.
19543 (grub_iso9660_fs): Register grub_iso9660_mtime.
19544 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
19545 (grub_jfs_inode): New fields atime, ctime and mtime.
19546 (grub_jfs_dir): Set mtime.
19547 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
19548 * grub-core/fs/ntfs.c (list_file): Set mtime.
19549 (grub_ntfs_dir): Likewise.
19550 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
19551 (grub_reiserfs_iterate_dir): Set mtime.
19552 (grub_reiserfs_dir): Likewise.
19553 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
19554 (grub_fshelp_node): Likewise.
19555 (grub_sfs_iterate_dir): Set mtime.
19556 (grub_sfs_dir): Likewise.
19557 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
19558 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
19559 (grub_xfs_inode): New fields atime, mtime, ctime.
19560 (grub_xfs_dir): Set mtime.
19561 * include/grub/datetime.h (grub_datetime2unixtime): New function.
19562 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
19563 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
19564
19565 Support UDF symlinks.
19566
19567 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
19568 (grub_ufs_read_symlink): New function. All users updated.
19569
19570 Check amiga partmap checksum.
19571
19572 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
19573 (grub_amiga_partition): Likewise.
19574 (amiga_partition_map_checksum): New function.
19575 (amiga_partition_map_iterate): Check checksum.
19576
19577 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19578
19579 ROMFS support.
19580
19581 * Makefile.util.def (libgrubmods.a): Add romfs.
19582 * grub-core/Makefile.core.def (romfs): New module.
19583 * grub-core/fs/romfs.c: New file.
19584
19585 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19586
19587 Squashfs v4 support.
19588
19589 * Makefile.util.def (libgrubmods.a): Add squash4.
19590 * grub-core/Makefile.core.def (squash4): New module.
19591 * grub-core/fs/squash4.c: New file.
19592 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
19593 disk_input_start, disk_input.
19594 (get_byte): Handle disk_input.
19595 (grub_zlib_disk_read): New function.
19596 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
19597
19598 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19599 2011-05-15 Feiran Zheng <famcool@gmail.com>
19600
19601 * Makefile.util.def (libgrubmods.a): Add minix3.
19602 * grub-core/Makefile.core.def (minix3): New module.
19603 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
19604 (GRUB_MINIX_BSIZE): Removed.
19605 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
19606 (grub_minix_ino_t): New type.
19607 (grub_minix_le_to_cpu_ino): New macro.
19608 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
19609 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
19610 (grub_minix_data): New field block_size.
19611 (grub_minix_read_file): Handle 64-bit correctly.
19612 * grub-core/fs/minix3.c: New file.
19613
19614 2011-05-15 Tristan Gingold <gingold@free.fr>
19615 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
19616 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19617
19618 IA64 support.
19619
19620 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
19621 * configure.ac: Add ia64-efi target.
19622 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
19623 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
19624 * gentpl.py: Add ia64_efi platform.
19625 Rename x86_efi to efi and Add ia64-efi. All users updated.
19626 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
19627 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
19628 Remove kern/generic/rtc_get_time_ms.c on EFI.
19629 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
19630 kern/ia64/dl_helper.c on ia64-efi.
19631 Add kern/emu/cache.c on emu.
19632 (linux): Use on loader/ia64/efi/linux.c on ia64.
19633 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
19634 whether symbol is a function.
19635 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
19636 (grub_symbol): New field 'isfunc'.
19637 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
19638 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
19639 (grub_dl_load_segments): Place all sections into the same region.
19640 [__ia64__]: Create trampolines and got.
19641 [GRUB_MACHINE_EMU]: Call mprotect.
19642 (grub_dl_resolve_symbols): Resolve symbol type as well.
19643 [__ia64__]: Create function descriptors.
19644 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
19645 (grub_rtc_get_time_ms): ... this. Expressions simplified.
19646 (grub_get_rtc): New function.
19647 * grub-core/kern/emu/cache.c [__ia64__]: New file.
19648 * grub-core/kern/emu/cache.S: Renamed to ...
19649 * grub-core/kern/emu/cache_s.S: ... this.
19650 [__ia64__]: Add a nop.
19651 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
19652 [__ia64__]: New function.
19653 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
19654 * grub-core/kern/ia64/dl.c: New file.
19655 * grub-core/kern/ia64/dl_helper.c: Likewise.
19656 * grub-core/kern/ia64/efi/init.c: New file.
19657 * grub-core/kern/ia64/efi/startup.S: Likewise.
19658 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
19659 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
19660 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
19661 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
19662 * grub-core/loader/ia64/efi/linux.c: New file.
19663 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
19664 (GRUB_MOD_DEP): Likewise.
19665 (grub_dl) [__ia64__]: New fields got and tramp.
19666 (grub_dl): New field 'base'.
19667 (grub_dl_register_symbol): New argument isfunc. All users updated.
19668 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
19669 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
19670 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
19671 (grub_ia64_dl_get_tramp_got_size): New proto.
19672 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
19673 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
19674 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
19675 * include/grub/efi/api.h: Skip call wrappers on ia64.
19676 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
19677 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
19678 * include/grub/elf.h (ELF_ST_INFO): New definition.
19679 * include/grub/ia64/efi/kernel.h: New file.
19680 * include/grub/ia64/efi/memory.h: Likewise.
19681 * include/grub/ia64/efi/time.h: Likewise.
19682 * include/grub/ia64/kernel.h: Likewise.
19683 * include/grub/ia64/setjmp.h: Likewise (from glibc).
19684 * include/grub/ia64/time.h: New file.
19685 * include/grub/ia64/types.h: Likewise.
19686 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
19687 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
19688 New protos.
19689 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
19690 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
19691 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
19692 * util/grub-mkimage.c (image_target_desc): New field pe_target.
19693 All users updated.
19694 (EFI64_HEADER_SIZE): New definition. All users updated.
19695 (image_targets): Add ia64-efi.
19696 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
19697 jumpers_addr. All users updated.
19698 Create function descriptors.
19699 (count_funcs): New function.
19700 (unaligned_uint32): New struct.
19701 (MASK20): New definition.
19702 (MASK19): Likewise.
19703 (MASKF21): Likewise.
19704 (add_value_to_slot_20b): New function.
19705 (add_value_to_slot_21_real): Likewise.
19706 (add_value_to_slot_21): Likewise.
19707 (ia64_kernel_trampoline): New struct.
19708 (nopm): New variable.
19709 (jump): Likewise.
19710 (make_trampoline): New function.
19711 (relocate_addresses): Handle ia64.
19712 (make_reloc_section): Likewise.
19713 (load_image): Likewise.
19714
19715 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19716
19717 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
19718 warning. Move variables before code while on it.
19719
19720 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19721
19722 Fuloong support.
19723
19724 * configure.ac: Rename yeeloong platform to loongson. All users updated.
19725 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
19726 * grub-core/boot/mips/loongson/fuloong.S: New file.
19727 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
19728 Explicitly init CS5536.
19729 [FULOONG]: Don't use serial until CS5536 is available.
19730 Set GPIO based on dumps.
19731 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
19732 [FULOONG]: Handle GPIO and memory controller differences.
19733 Parse machine type in $a2.
19734 * grub-core/boot/mips/startup_raw.S: Determine and save the
19735 architecture.
19736 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
19737 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
19738 init on architecture type.
19739 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
19740 SIS315E. Don't init at_keyboard on fuloong.
19741 (grub_halt): Support Fuloong.
19742 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
19743 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
19744 (loongson_machtypes): New array.
19745 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
19746 type.
19747 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
19748 config. All users updated. Handle CS5536 serial.
19749 * grub-core/term/serial.c (grub_serial_register): Conditionalise
19750 default port on machine type. Register serial as inactive.
19751 * grub-core/video/sis315pro.c: New file.
19752 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
19753 definition.
19754 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
19755 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
19756 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
19757 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
19758 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
19759 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
19760 to ...
19761 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
19762 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
19763 definition.
19764 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
19765 (grub_arch_machine): New extern var.
19766 * include/grub/mips/loongson/serial.h
19767 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
19768 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
19769 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
19770 (GRUB_MACHINE_SERIAL_PORT0): ... this.
19771 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
19772 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
19773 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
19774 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
19775 * include/grub/term.h (grub_term_register_input_inactive): New inline
19776 function.
19777 (grub_term_register_output_inactive): Likewise.
19778 * include/grub/video.h (grub_video_driver_id): New value
19779 GRUB_VIDEO_DRIVER_SIS315PRO.
19780 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
19781 New field "names". All users updated.
19782 New field value IMAGE_FULOONG_FLASH.
19783 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
19784
19785 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
19786
19787 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
19788 and add some clarification.
19789
19790 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19791
19792 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
19793 platforms if kernel is compressed.
19794
19795 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19796
19797 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
19798 unused modules since currently referrence counter isn't reliable and
19799 there isn't much memory to recover there anyway.
19800
19801 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19802
19803 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
19804 rather than resetting it to allow modules to reference themselves
19805 in init.
19806
19807 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19808
19809 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
19810 counter on dependencies since grub_dl_unref already handles this.
19811
19812 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19813
19814 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
19815 on error if not already done.
19816
19817 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19818
19819 Fix few potential memory misusage.
19820
19821 * grub-core/font/font.c (load_font_index): Don't free char_index to
19822 avoid double free.
19823 (grub_font_load): Zero-fill font at alloc for safety.
19824 Close file on error.
19825 (free_font): Free bmp_idx.
19826
19827 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19828
19829 * docs/grub.texi (Installation): Fix several outdated claims.
19830
19831 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19832
19833 Handle module_license on windows.
19834
19835 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
19836 sections shifted.
19837 (insert_string): Make argument const char * instead of char *.
19838 (write_section_data): Handle long section names.
19839 Handle module_license.
19840
19841 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19842
19843 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
19844 handle class-free menuentries.
19845 (grub_normal_add_menu_entry): Add a check to be sure.
19846
19847 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19848
19849 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
19850 PgUp and PgDown.
19851
19852 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19853
19854 * configure.ac: Bump version to 1.99.
19855
19856 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19857
19858 Give ATA device a bit more time on first try in order to allow disks
19859 to spin up.
19860
19861 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
19862 if dev->present is 1. Reset dev->present on failure.
19863 (grub_ata_device_initialize): Set dev->present to 1.
19864 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
19865 (grub_ata_device): New member 'present'.
19866
19867 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19868
19869 * util/grub-mkimage.c (generate_image): Update hash.
19870
19871 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19872
19873 Flush caches on DMA memory.
19874
19875 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
19876 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
19877 (grub_dma_free): Likewise.
19878 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
19879
19880 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19881
19882 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
19883 to avoid asm treating ld and sd as macros.
19884
19885 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19886
19887 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
19888 decompressor.
19889
19890 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19891
19892 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
19893 grub_decompress_core since later would fail if grub_decompress_core
19894 is too far.
19895
19896 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19897
19898 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
19899 R_MIPS_JALR since it's used by newer compiler.
19900
19901 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
19902
19903 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
19904
19905 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19906
19907 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
19908 file_path to 0 for surety.
19909 (grub_chainloader_boot): Set exit_data to NULL.
19910 Unset the loader once done.
19911 (grub_cmd_chainloader): Fix confusing error message if file is empty.
19912
19913 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19914
19915 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
19916 unknown key into a dprintf.
19917
19918 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19919
19920 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
19921 on first non-existant partition.
19922
19923 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19924
19925 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
19926 openning fails.
19927 Reported by: Mark Korenberg.
19928
19929 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19930
19931 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
19932 overflow.
19933
19934 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19935
19936 * util/grub-mkimage.c (main): Explicitely flush and sync the output
19937 before closing to ensure that it will be readable by grub-setup.
19938
19939 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19940
19941 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
19942 (devpath_1): Use MAKE_PIWG_PATH.
19943 (devpath_2): Likewise.
19944 (devpath_3): Likewise.
19945 (devpath_4): Likewise.
19946 (devpath_5): Likewise.
19947 (devpath_6): Likewise.
19948
19949 The appleldr.mod was checked that to be binary identical to previous
19950 version.
19951
19952 2011-05-05 Zach <mikezackles>
19953
19954 Support 2010 Macbooks.
19955
19956 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
19957 (devs): Add devpath_6.
19958
19959 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19960
19961 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
19962 /dev/random. /dev/urandom is good enough for our purposes (salting).
19963
19964 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19965
19966 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
19967
19968 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19969
19970 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
19971 hexadecimal.
19972
19973 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19974
19975 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
19976 and not 0 on failure.
19977
19978 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
19979
19980 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
19981 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
19982 disk; otherwise grub_fs_probe will not fall back to the next
19983 filesystem.
19984 (grub_pxefs_open): Likewise, for consistency.
19985 Reported and tested by: Ezekiel Grave.
19986
19987 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
19988
19989 * tests/partmap_test.in: Don't hardcode path to parted.
19990 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
19991
19992 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
19993
19994 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
19995 of `ls' to find out which devices are available.
19996
19997 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
19998
19999 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
20000 than source address for efi mmap buffer.
20001
20002 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20003
20004 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
20005 wrong action on non-detecting the magic.
20006
20007 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20008
20009 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
20010 already supplied by another part of the module (fixes compilation on
20011 FreeBSD).
20012
20013 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20014
20015 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
20016 match the one used by mdadm.
20017
20018 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20019
20020 * po/README: Add instructions for creating po/LINGUAS.
20021
20022 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20023
20024 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
20025 #551428.
20026
20027 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
20028 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
20029 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
20030 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
20031 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
20032 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
20033 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
20034 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
20035 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
20036 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
20037 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
20038 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
20039 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
20040 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
20041 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
20042 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
20043 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
20044 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
20045 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
20046 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
20047 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
20048 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
20049
20050 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20051
20052 * grub-core/kern/emu/getroot.c
20053 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
20054 test that was incorrectly reintroduced in r3214.
20055 Reported by: Ian Dall. Fixes Savannah bug #33133.
20056
20057 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20058
20059 Fix stack pointer handling in 16-bit relocator.
20060
20061 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
20062 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
20063 Fixes Ubuntu bug #683904.
20064
20065 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20066
20067 * configure.ac: Bump version to 1.99~rc2.
20068
20069 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20070
20071 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
20072 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
20073 * grub-core/lib/x86_64/setjmp.S: Likewise.
20074 * grub-core/lib/mips/setjmp.S: Likewise.
20075 * grub-core/lib/powerpc/setjmp.S: Likewise.
20076 * grub-core/lib/sparc64/setjmp.S: Likewise.
20077
20078 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20079
20080 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
20081 * grub-core/lib/efi/datetime.c: Likewise.
20082
20083 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20084
20085 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
20086 New function.
20087 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
20088 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
20089 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
20090
20091 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20092
20093 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
20094 bitmap.
20095 (grub_gfxterm_term_init): Likewise.
20096
20097 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20098
20099 Take into account the decorations the computing menu entry width.
20100
20101 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
20102 (grub_gfxmenu_create_box): Register get_border_width.
20103 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
20104 if available.
20105 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
20106 get_border_width.
20107
20108 2011-04-18 Endres Puschner <code@e7p.de>
20109
20110 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
20111 Don't skip first class.
20112
20113 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20114
20115 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
20116 chunks.
20117 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
20118
20119 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20120
20121 Complete 64-bit division support.
20122
20123 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
20124 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
20125 * include/grub/misc.h (grub_divmod64): Rename to ...
20126 (grub_divmod64_full): ... this.
20127 (grub_divmod64): New inline function.
20128
20129 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20130
20131 * util/grub-mkimage.c (generate_image): Add forgotten comma.
20132
20133 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20134
20135 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
20136 performing the necessary test.
20137
20138 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20139
20140 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
20141 (kfreebsd.elf): Likewise.
20142 (pc-chainloader.elf): Likewise.
20143 (ntldr.elf): Likewise.
20144
20145 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20146
20147 Identify RAID by its UUID rather than (guessed) name.
20148
20149 * grub-core/disk/raid.c (ascii2hex): New function.
20150 (grub_raid_open): Accept mduuid/%s specification.
20151 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
20152 (get_mdadm_uuid): ... this.
20153 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
20154
20155 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
20156
20157 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
20158 to negative size.
20159
20160 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20161
20162 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
20163 btrfs subvolume.
20164 * util/grub.d/20_linux_xen.in: Likewise.
20165
20166 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20167
20168 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
20169 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
20170
20171 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
20172 Build a list of relevant visible mounts using the mnt_id and
20173 parent_mnt_id fields, and then scan that list at the end.
20174
20175 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20176
20177 * docs/grub.texi (normal): New section.
20178 (normal_exit): New section.
20179 (Embedded configuration): Add reference to normal.
20180 (GRUB only offers a rescue shell): Likewise.
20181 * docs/grub-dev.texi (Error Handling): Fix typo.
20182
20183 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20184
20185 * NEWS: Drop obsolete entry about probe-only btrfs support.
20186
20187 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20188
20189 * util/import_gcry.py: Fix typo.
20190
20191 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20192
20193 * NEWS: Add btrfs support.
20194
20195 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20196 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20197
20198 BtrFS support. Written by me (Vladimir) with important bugfixes and
20199 even more important testing by Colin.
20200
20201 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
20202 * grub-core/Makefile.core.def (btrfs): Add crc.c.
20203 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
20204 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
20205 mem_input_off and mem_input. All users updated to accept in-RAM input.
20206 (gzio_seek): New function.
20207 (test_zlib_header): Likewise.
20208 (grub_gzio_read): Likewise.
20209 (grub_zlib_decompress): Likewise.
20210 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
20211 Accept partial and non-virtual mounts.
20212 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
20213 avoid receiving /dev/dm-X as device.
20214 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
20215 Handle bind and partial mounts.
20216 * grub-core/lib/crc.c: New file.
20217 * include/grub/deflate.h: Likewise.
20218 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
20219 proto.
20220 * include/grub/lib/crc.h: New file.
20221
20222 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20223
20224 Implement automatic module license checking according to new GNU
20225 guidelines.
20226
20227 * grub-core/kern/dl.c (grub_dl_check_license): New function.
20228 (grub_dl_load_core): Use grub_dl_check_license.
20229 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
20230 (GRUB_MOD_LICENSE): Likewise.
20231 (GRUB_MOD_DUAL_LICENSE): Likewise.
20232 All modules updated.
20233
20234 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20235
20236 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
20237 reserved_first_sector to 1. btrfs reserves plenty of space for boot
20238 loaders.
20239 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
20240
20241 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20242
20243 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
20244
20245 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20246
20247 * util/grub-fstest.c (read_file): Report GRUB error if file opening
20248 failed.
20249
20250 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20251
20252 * grub-core/kern/file.c (grub_file_open): Don't take into account the
20253 parenthesis in the middle of the filename.
20254
20255 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20256
20257 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
20258 rather than trying to put initrd way too high.
20259 Reported by: Ryan Lortie <desrt@desrt.ca>
20260
20261 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20262
20263 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
20264 improperly removed string.
20265
20266 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20267
20268 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
20269 is_disk.
20270 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
20271 (open_device) Likewise.
20272 (grub_util_biosdisk_close): Likewise.
20273 Reported by: Mark Korenberg.
20274
20275 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
20276
20277 * util/grub-mkconfig_lib.in: Add missing quotes.
20278
20279 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
20280
20281 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
20282 is NULL.
20283
20284 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20285
20286 Dynamically count the number of lines for the lower banner.
20287
20288 * grub-core/normal/menu_entry.c (per_term_screen): New member
20289 num_entries.
20290 (print_down): Use num_entries.
20291 (update_screen): Likewise.
20292 (grub_menu_entry_run): Set num_entries.
20293 * grub-core/normal/menu_text.c (menu_viewer_data): New member
20294 num_entries.
20295 (grub_print_message_indented): Move real part to ...
20296 (grub_print_message_indented_real): ... here. Additional argument
20297 dry_run.
20298 (draw_border): Additional argument num_entries.
20299 (print_message): Additional argument dry_run.
20300 (print_entries): Receive menu viewer data.
20301 (grub_menu_init_page): New argment num_entries.
20302 (menu_text_set_chosen_entry): Use num_entries.
20303 (grub_menu_try_text): Likewise.
20304 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
20305 All users updated.
20306 (grub_ucs4_count_lines): New function.
20307 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
20308 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
20309 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
20310 (grub_term_border_height): Likewise.
20311 (grub_term_num_entries): Likewise.
20312
20313 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20314
20315 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
20316 Remove now unused string.
20317
20318 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20319
20320 * docs/grub-dev.texi (Finding your way around): Update for 1.99
20321 build system.
20322 (Getting started): GRUB is developed in Bazaar now, not Subversion.
20323
20324 (Comment): Fix typo.
20325 (Getting started): General copy-editing.
20326 (Typical Development Experience): Likewise.
20327 (Error Handling): Likewise.
20328 (Video API): Likewise.
20329
20330 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20331
20332 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
20333 throughout.
20334
20335 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20336
20337 * util/grub-mkimage.c (main): Handle special naming of yeeloong
20338 directory.
20339
20340 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20341
20342 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
20343 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
20344 "development".
20345
20346 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20347
20348 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
20349 grub_strcpy since the lines aren't necessarily 0-terminated.
20350
20351 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20352
20353 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
20354 root on legacy.
20355
20356 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20357
20358 * grub-core/commands/probe.c (options): Argument to set isn't optional.
20359 (GRUB_MOD_INIT): DEVICE isn't optional.
20360
20361 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20362
20363 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
20364 word on new line if it's too long anyway. Fixes a hang.
20365
20366 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20367
20368 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
20369 const.
20370 * util/grub-setup.c (main): Reuse md device name if available.
20371 * util/raid.c (grub_util_raid_getmembers): Receive device name and
20372 not GRUB name as argument.
20373 Based on patch by: Florian Wagner <fwagner>.
20374
20375 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20376
20377 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
20378 Place mbi on low memory for better compatibility.
20379
20380 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20381
20382 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
20383
20384 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20385 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20386
20387 * autogen.sh: Ensure that collate and ctype locale is C.
20388 * conf/Makefile.common: Likewise.
20389
20390 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20391
20392 * grub-core/normal/menu.c: Add missing include.
20393
20394 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20395
20396 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
20397
20398 2011-04-08 Martin Zuther <mzuther@mzuther.de>
20399
20400 * util/grub-mkconfig.in: Ignore emacsen backup.
20401
20402 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20403
20404 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
20405 on open.
20406 (grub_util_biosdisk_close): Likewise.
20407
20408 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20409
20410 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
20411 const attribute and use grub_isdigit.
20412
20413 2011-04-06 Andrey <dev_null@ukr.net>
20414
20415 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
20416 gcc warning.
20417
20418 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20419
20420 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
20421 useful grub_dprintf's.
20422
20423 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20424
20425 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
20426
20427 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20428
20429 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
20430
20431 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20432
20433 Output errors if theme loading failed.
20434
20435 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
20436 grub_gfxterm_fullscreen on error paths to ...
20437 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
20438 theme loading error.
20439
20440 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20441
20442 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
20443 space for older compilers.
20444 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
20445
20446 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20447
20448 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
20449 and report them as not RAID members since they are useless for GRUB.
20450 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
20451
20452 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20453
20454 Increase LVM implementation robustness in order not to crash on
20455 configurations like pvmove. Previously code assumed that in some places
20456 only lvs or only pvs are used whereas it seems that they are used
20457 interchangeably.
20458
20459 * grub-core/disk/lvm.c (read_node): New function.
20460 (read_lv): Use read_node.
20461 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
20462 Match volumes only at the end when all lvs are found. Take both
20463 pvs (first) and lvs (second) into account.
20464 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
20465 mirror_* into node_*. All users updated.
20466 (grub_lvm_stripe): Merge this ...
20467 (grub_lvm_mirror): ... and this ...
20468 (grub_lvm_node): ... into this. All users updated.
20469
20470 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20471
20472 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
20473 of function to allow further scanning for LVMs.
20474
20475 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20476
20477 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
20478 on failed seek as it breaks open fd reusage.
20479
20480 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20481
20482 * util/grub-install.in: Add a recommendation to use --recheck before
20483 reporting bugs.
20484
20485 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20486
20487 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
20488 are obtained.
20489
20490 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20491
20492 GRUB developper manual based on existing Internals section and
20493 contributions by the various authors with active copyright assignment.
20494
20495 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
20496 * docs/font_char_metrics.png: New file.
20497 * docs/font_char_metrics.txt: Likewise.
20498 * docs/grub-dev.texi: Likewise.
20499 * docs/grub.texi (Internals): Move from here ...
20500 * docs/grub-dev.texi: ... here.
20501
20502 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20503
20504 Store the loopback device as data on loopback grub_disk structures,
20505 rather than the file it points to. This fixes use of freed memory
20506 if an existing loopback device is replaced.
20507
20508 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
20509 disk->data, not dev->file.
20510 (grub_loopback_read): Adjust file assignment to match.
20511 Fixes Ubuntu bug #742967.
20512
20513 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20514
20515 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
20516 when replacing an existing device.
20517
20518 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
20519
20520 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
20521 memory corruptions.
20522
20523 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
20524 unsigned.
20525 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
20526 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
20527 (grub_jfs_read_inode): Likewise.
20528 (grub_jfs_opendir): Likewise. Remove now useless casts.
20529 (grub_jfs_getent): Likewise.
20530 Make ino a grub_uint32_t rather than int.
20531 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
20532 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
20533 division and module with bit operations.
20534 (grub_jfs_find_file): Make ino a grub_uint32_t.
20535 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
20536
20537 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20538
20539 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
20540 warning. (This was in fact always initialised before use, but GCC
20541 wasn't smart enough to prove that.)
20542 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
20543
20544 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
20545
20546 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
20547 stack alignment.
20548 (efi_wrap_1): Likewise.
20549 (efi_wrap_2): Likewise.
20550 (efi_wrap_3): Likewise.
20551 (efi_wrap_4): Likewise.
20552 (efi_wrap_5): Likewise.
20553 (efi_wrap_6): Likewise.
20554 (efi_wrap_10): Likewise.
20555 Based on information by: Red Hat/Peter Jones.
20556
20557 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20558
20559 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
20560 set-but-not-used variable.
20561
20562 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20563
20564 * docs/grub.texi (Simple configuration): Be more explicit about
20565 GRUB_DEFAULT, and add an example.
20566 Reported by: Leslie Rhorer.
20567
20568 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20569
20570 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
20571 shell".
20572
20573 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20574
20575 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
20576 * util/grub.d/20_linux_xen.in: Likewise.
20577
20578 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20579
20580 * util/grub.d/10_linux.in: Try alternative config filenames where
20581 we parse config file.
20582 * util/grub.d/20_linux_xen.in: Likewise.
20583
20584 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20585
20586 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
20587 * util/grub.d/20_linux_xen.in: Likewise.
20588
20589 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20590
20591 * grub-core/disk/raid.c (insert_array): Add few potentially
20592 useful grub_util_info.
20593 (grub_raid_register): Likewise.
20594
20595 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20596
20597 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
20598 Preserve partition number in mdadm code path.
20599
20600 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20601
20602 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
20603 few potentially useful grub_util_info.
20604
20605 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20606
20607 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
20608
20609 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20610
20611 * docs/grub.texi (default): Use @example rather than nested
20612 itemized lists to avoid breaking gendocs.
20613
20614 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20615
20616 * docs/grub.texi (Future): Update.
20617
20618 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20619
20620 * docs/grub.texi (Environment): New chapter.
20621 (Changes from GRUB Legacy): Link to "Environment block" section for
20622 details of limitations.
20623 (Simple configuration): Likewise. Link to documentation of gfxmode
20624 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
20625 respectively.
20626 (Shell-like scripting): Note that normal variables are stored in the
20627 environment.
20628 (gettext): Link to documentation of lang and locale_dir.
20629 (list_env): New section.
20630 (load_env): New section.
20631 (save_env): New section.
20632
20633 (Reporting bugs): Fix typo.
20634
20635 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20636
20637 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
20638 the example.
20639
20640 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20641
20642 * grub-core/term/at_keyboard.c (set_scancodes)
20643 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
20644
20645 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20646
20647 * docs/grub.texi (Menu-specific commands): Remove some semantics
20648 that were true in GRUB Legacy but not in GRUB 2.
20649 (submenu): New section.
20650 (false): New section.
20651 (read): New section.
20652 (true): New section.
20653
20654 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20655
20656 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
20657
20658 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20659
20660 * docs/grub.texi (Simple configuration): Explain some of the
20661 current limitations of grub-mkconfig.
20662 Reported by: Leslie Rhorer.
20663
20664 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20665
20666 Old macs search for boot.efi rather than for bootia32.efi.
20667
20668 * util/grub-install.in: Copy bootia32.efi to boot.efi.
20669 * util/grub-mkrescue.in: Likewise.
20670 Suggested by: Peter Jones.
20671
20672 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20673
20674 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
20675
20676 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20677
20678 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
20679 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
20680 (grub_lvm_mirror): New struct.
20681 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
20682 (grub_lvm_iterate): Iterate only visible volumes.
20683 (grub_lvm_read): Factor out to ..
20684 (read_lv): ... this. Support mirrors.
20685 (grub_lvm_read): New wrapper function.
20686 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
20687 stripped or mirrored.
20688
20689 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20690
20691 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
20692
20693 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20694
20695 * docs/grub.texi (loopback): New section.
20696
20697 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20698
20699 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
20700 removed -p option.
20701
20702 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20703
20704 * docs/grub.texi (BIOS installation): New section, partly based on
20705 previous text in other sections.
20706 (Installing GRUB using grub-install): Replace BIOS discussion with a
20707 cross-reference.
20708 (Images): Likewise.
20709
20710 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20711
20712 * grub-core/kern/emu/hostdisk.c (find_partition_start)
20713 [HAVE_DIOCGDINFO]: Add safety checks.
20714
20715 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20716
20717 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
20718 per default compiled in kernel and prior to 8.0 isn't shipped at all.
20719
20720 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20721
20722 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
20723 real_sb->size is zero (e.g. RAID-0), get the disk size from
20724 real_sb->data_size instead.
20725 Fixes Ubuntu bug #743136.
20726
20727 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20728
20729 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
20730 printf clauses for printing size and start.
20731
20732 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20733
20734 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
20735 Reported and tested by: Timothy Nikkel.
20736
20737 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20738
20739 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
20740 (dirty_region_add_real): ... this.
20741 (dirty_region_add): Don't discard margin refresh when performing
20742 scheduled repaint.
20743
20744 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20745
20746 * grub-core/lib/relocator.c (allocate_regstart)
20747 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
20748 terminals are capabple of malloc-free operation.
20749 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20750 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20751
20752 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
20753
20754 * util/grub-setup.c: Copy the partition table zone if floppy support
20755 is disabled, even if no partition table is found.
20756
20757 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
20758 during POST if an invalid partition table is contained in the PBR
20759 of the active partition when GRUB is installed to a partition.
20760
20761 2011-03-28 Colin Watson <cjwatson@debian.org>
20762
20763 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
20764 comment.
20765
20766 2011-03-28 Colin Watson <cjwatson@debian.org>
20767
20768 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
20769 to be specific about what kind of RAID device we're scanning for.
20770
20771 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
20772
20773 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
20774 return freed string.
20775
20776 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20777
20778 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
20779
20780 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20781
20782 Use libgeom on FreeBSD to detect partitions.
20783
20784 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
20785 (grub-mkrelpath): Likewise.
20786 (grub-script-check): Likewise.
20787 (grub-editenv): Likewise.
20788 (grub-mkpasswd-pbkdf2): Likewise.
20789 (grub-fstest): Likewise.
20790 (grub-mkfont): Likewise.
20791 (grub-mkdevicemap): Likewise.
20792 (grub-probe): Likewise.
20793 (grub-setup): Likewise.
20794 (grub-ofpathname): Likewise.
20795 (grub-mklayout): Likewise.
20796 (example_unit_test): Likewise.
20797 (grub-menulst2cfg): Likewise.
20798 * grub-core/Makefile.core.def (grub-emu): Likewise.
20799 (grub-emu-lite): Likewise.
20800 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
20801 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
20802 define HAVE_DIOCGDINFO.
20803 (follow_geom_up) [FreeBSD]: New function.
20804 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
20805 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
20806 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
20807 unconditionally of HAVE_DIOCGDINFO.
20808
20809 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20810
20811 Fix FreeBSD compilation problem.
20812
20813 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
20814 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
20815
20816 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
20817
20818 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
20819 Switch back to page zero before loading a kernel, since some kernel
20820 drivers expect that.
20821 Thanks to: Felix Kuehling.
20822
20823 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20824
20825 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
20826 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
20827 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
20828
20829 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20830
20831 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
20832 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
20833
20834 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20835
20836 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
20837 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
20838 malloc is disabled.
20839
20840 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20841
20842 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
20843 for modules headers when counting the needed allocation size.
20844
20845 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20846
20847 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
20848 if no ASCII character is found to prevent crash.
20849
20850 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
20851
20852 * grub-core/video/bitmap.c (match_extension): Ignore case.
20853
20854 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20855
20856 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
20857
20858 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20859
20860 * grub-core/script/parser.y: Declare "time" as valid argument.
20861
20862 2011-03-23 Peter Jones <pjones@redhat.com>
20863
20864 Fix incorrect assert failure reporting.
20865
20866 * grub-core/tests/example_functional_test.c (example_test): Add
20867 a failure comment.
20868 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
20869 (failure_start): ...this. Check that malloc succeeded.
20870 Don't call xvasprintf. Return failure struct.
20871 (failure_append_vtext): New function.
20872 (failure_append_text): Likewise.
20873 (add_failure): Likewise.
20874 (grub_test_assert_helper): Likewise.
20875 * include/grub/test.h (grub_test_assert_helper): New declaration.
20876 (grub_test_assert): Macro rewritten.
20877
20878 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20879
20880 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
20881
20882 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20883
20884 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
20885
20886 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20887
20888 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
20889 into GRUB-style one.
20890
20891 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20892
20893 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
20894 error and not grub_errno.
20895 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
20896
20897 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20898
20899 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
20900 GRUB_USB_SPEED_NONE in case of failure and not the error code.
20901
20902 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20903
20904 * grub-core/efiemu/i386/pc/cfgtables.c
20905 (grub_machine_efiemu_init_tables): Make declaration a prototype.
20906 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
20907 (grub_xnu_unlock): Likewise.
20908 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
20909
20910 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20911
20912 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
20913 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
20914 * grub-core/commands/hashsum.c (aliases): Likewise.
20915 * grub-core/commands/setpci.c (pci_registers): Likewise.
20916 * grub-core/disk/usbms.c (attach_hook): Likewise.
20917 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
20918 (zio_checksum_table): Likewise.
20919 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
20920 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
20921 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
20922 * grub-core/lib/relocator.c (leftovers): Likewise.
20923 (extra_blocks): Likewise.
20924 * grub-core/loader/i386/bsd.c (relocator): Likewise.
20925 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
20926 (modules_last): Likewise.
20927 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
20928 (devices): Likewise.
20929 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
20930 (modules_last): Likewise.
20931 * grub-core/normal/auth.c (users): Likewise.
20932 * grub-core/normal/context.c (initial_menu): Likewise.
20933 (current_menu): Likewise.
20934 * grub-core/normal/crypto.c (crypto_specs): Likewise.
20935 * grub-core/term/serial.c (grub_serial_ports): Likewise.
20936 (grub_serial_terminfo_input_template): Likewise.
20937 (grub_serial_terminfo_output_template): Likewise.
20938 (grub_serial_terminfo_input): Likewise.
20939 (grub_serial_terminfo_output): Likewise.
20940 (registered): Likewise.
20941 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
20942
20943 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20944
20945 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
20946 grub_video_mode_type_t.
20947 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
20948 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
20949 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
20950
20951 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20952
20953 * util/grub-install.in: Correct the x86-64 name as x86_64.
20954
20955 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
20956
20957 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
20958 initial chunk read from the kernel always includes GRUB's multiboot
20959 header, which is now outside the first sector.
20960
20961 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
20962
20963 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
20964 cached mmap_size, so that this works correctly when called multiple
20965 times.
20966 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
20967
20968 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
20969
20970 * docs/grub.texi (Simple configuration): Tidy up formatting.
20971
20972 2011-03-07 Szymon Janc <szymon@janc.net.pl>
20973
20974 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
20975 Set-but-not-used variable removed.
20976
20977 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
20978
20979 Workaround yet another IEEE1275 bug.
20980
20981 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
20982 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
20983 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
20984 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
20985 is set.
20986 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
20987 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
20988
20989 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
20990
20991 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
20992 error.
20993
20994 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
20995
20996 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
20997 empty, since in that case we can only generate either nothing or a
20998 syntactically invalid configuration file.
20999 Reported by: Michal Suchanek. Fixes Debian bug #612898.
21000
21001 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
21002
21003 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
21004 (Making a GRUB bootable CD-ROM): Likewise.
21005 (Invoking grub-mkrescue): New section.
21006 Reported by: Yann Dirson. Fixes Debian bug #612585.
21007
21008 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
21009
21010 * util/grub-install.in: Remove unnecessary brackets from tr
21011 arguments.
21012 * util/grub.d/10_hurd.in: Likewise.
21013 * util/grub.d/10_kfreebsd.in: Likewise.
21014 * util/grub.d/10_linux.in: Likewise.
21015 * util/grub.d/20_linux_xen.in: Likewise.
21016 Reported by: Jamie Heilman. Fixes Debian bug #612564.
21017
21018 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
21019
21020 * include/grub/file.h (not_easly_seekable): Rename to ...
21021 (not_easily_seekable): ... this. Update all users.
21022
21023 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
21024
21025 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
21026 grub-mkrescue.
21027
21028 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
21029
21030 * util/grub-mkimage.c (generate_image): Refuse to create the images
21031 bigger than the actual flash (512K) in Loongson machines. 512K is also
21032 the biggest chip supported by them.
21033
21034 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21035
21036 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
21037
21038 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
21039
21040 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
21041 super_offset field.
21042
21043 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21044
21045 * util/grub-install.in: Ignore install device on platforms
21046 where it doesn't make sense. Always use UUIDs except on pc, efi and
21047 sparc64.
21048 Reported by: Daniel Kahn Gillmor.
21049
21050 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21051
21052 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
21053
21054 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21055
21056 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
21057 (iterate_real): Don't rely on partition being non-NULL.
21058
21059 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21060
21061 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
21062 supported platforms. Put a compile time assert for this rather than
21063 generate a warning with 32-bit shift.
21064
21065 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21066
21067 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
21068 logical expression more readable.
21069
21070 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21071
21072 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
21073 even if some elements have a name.
21074 Reported by: Alexander GQ Gerasiov.
21075
21076 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21077
21078 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
21079 path unreadable if `grub-probe -t abstraction' fails, for example if
21080 memberlist fails on an LVM volume group.
21081 Reported by: Darius Jahandarie.
21082
21083 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21084
21085 * docs/grub.texi (Simple configuration): Document
21086 GRUB_PRELOAD_MODULES.
21087
21088 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
21089
21090 * .bzrignore: Remove nonexistent grub-pbkdf2.
21091
21092 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
21093
21094 * configure.ac: Bump version to 1.99~rc1.
21095
21096 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
21097
21098 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
21099 for safety.
21100
21101 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21102
21103 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
21104 module.
21105
21106 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21107
21108 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
21109
21110 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21111
21112 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
21113 diskdevid.
21114
21115 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21116
21117 Fix compilation on cygwin.
21118
21119 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
21120 -R .drectve on cygwin.
21121 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
21122 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
21123 (COND_CYGWIN): New condition.
21124 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
21125 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
21126 not @TARGET_OBJ2ELF@.
21127 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
21128 type to determine whether aux is to be used.
21129
21130 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21131
21132 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
21133 realpath'ed device string.
21134 Handle floppy (somewhat).
21135 Issue error in unknown case rather than garbage.
21136 Reported by: Axel Beckert.
21137
21138 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21139
21140 * util/grub.d/00_header.in (load_video): Handle the case when no video
21141 drivers available.
21142 Thanks to: Axel Beckert.
21143
21144 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21145
21146 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
21147 variable. Fixes problem on big endian platforms.
21148
21149 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21150
21151 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
21152 It doesn't work well there.
21153
21154 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21155
21156 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
21157 warning.
21158 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
21159 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
21160 counter.
21161
21162 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21163
21164 Use alias->path rather than buggy "canon".
21165
21166 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
21167 (ofdisk_hash_add): New argument curcan. All users updated.
21168
21169 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21170
21171 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
21172
21173 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21174
21175 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
21176 loadmask before doing any calculations. Use correct type for offset.
21177 (grub_linux_load64): Likewise.
21178
21179 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21180
21181 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
21182 with NULL.
21183 (console_grub_equivalences_unshift): Likewise.
21184 Reported by: Daniel Dehennin.
21185
21186 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21187
21188 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
21189 (set_env_limn_ro): Likewise.
21190 (GRUB_MOD_INIT): Likewise.
21191 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
21192 ARRAY_SIZE while on it.
21193 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
21194 * grub-core/normal/context.c (grub_env_export): Move from here ...
21195 * grub-core/kern/env.c (grub_env_export): ... here.
21196 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
21197 prefix.
21198 * grub-core/kern/main.c (grub_main): Export root and prefix.
21199 * include/grub/env.h (grub_env_export): Export.
21200 Reported by: Seth Goldberg.
21201
21202 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21203
21204 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21205 Take into account space used by ELF sections and multiboot palette.
21206 Reported by: Grégoire Sutre.
21207
21208 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21209
21210 * BUGS: New file.
21211
21212 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21213
21214 Pass more appropriate video id to Linux.
21215
21216 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
21217 grub_video_get_driver_id and variable gfxpayloadforcelfb to
21218 fill have_vga.
21219 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
21220 shift params->lfb_size.
21221 * include/grub/i386/linux.h: Make an enume out of have_vga values.
21222
21223 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21224
21225 * util/grub-menulst2cfg.c: Add missing include of misc.h.
21226
21227 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21228
21229 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
21230 separator and pass bootpath/devid even if only one of them is available.
21231 Reported by: Seth Goldberg.
21232
21233 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21234
21235 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
21236 implementations bug on them.
21237
21238 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
21239 memory.
21240 (filter_memory_map): Likewise.
21241
21242 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21243
21244 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
21245 Reported by: nebuchadnezzar.
21246
21247 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21248
21249 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
21250 Reported by: nebuchadnezzar.
21251
21252 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21253
21254 Submenu default support.
21255
21256 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
21257 auto_boot. All users updated.
21258 Declared static.
21259 Handle chosen and default with submenus.
21260 (grub_menu_execute_with_fallback): Declared static.
21261 Don't notify failure if autobooted. Upper level does it.
21262 (menuentry_eq): New function.
21263 (get_entry_number): Use menuentry_eq.
21264 (show_menu): New parameter "autobooted". All users updated.
21265 (grub_show_menu): Likewise.
21266 * include/grub/normal.h (grub_show_menu): Likewise.
21267 * include/grub/menu.h (grub_menu_execute_entry): Removed.
21268 (grub_menu_execute_with_fallback): Likewise.
21269
21270 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21271
21272 * util/grub-mklayout.c (usage): Update help text.
21273
21274 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21275
21276 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
21277
21278 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21279
21280 * util/grub-menulst2cfg.c (main): Trim the line.
21281
21282 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21283
21284 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
21285 (grub_machine_init): Don't check amount of low memory as reportedly
21286 INT 12h can be broken and if low memory is too low we wouldn't have
21287 gotten into grub_machine_init anyway.
21288
21289 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21290
21291 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
21292 (grub_machine_mmap_iterate): Take low memory into account
21293
21294 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21295
21296 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
21297 badfs.
21298 Reported by: TiCPU.
21299
21300 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21301
21302 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
21303 members errors.
21304
21305 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21306
21307 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
21308 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
21309
21310 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21311
21312 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
21313 openbsd and netbsd types being in part_bsd module.
21314
21315 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21316
21317 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
21318 (_FILE_OFFSET_BITS): Likewise.
21319 Reported by: Seth Goldberg.
21320
21321 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
21322
21323 * configure.ac: Check for libdevmapper header.
21324
21325 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21326
21327 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
21328 avoid aliasing.
21329 (fzap_lookup): Likewise.
21330 (dnode_get): Likewise.
21331 (make_mdn): Likewise.
21332 (zfs_mount): Likewise.
21333 (fzap_iterate): Use temporary pointer to avoid aliasing.
21334 (grub_zfs_read): Likewise.
21335 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
21336 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
21337 pointers to avoid aliasing.
21338 (grub_cmd_xnu_kernel64): Likewise.
21339 (grub_xnu_load_driver): Likewise.
21340
21341 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21342
21343 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
21344 aliasing warning.
21345 (grub_cmd_terminal_output): Likewise.
21346 Reported and tested by: Grégoire Sutre.
21347
21348 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21349
21350 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
21351 warning.
21352 Reported and tested by: Grégoire Sutre.
21353
21354 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21355
21356 * configure.ac: Do CPU substitution even if it's specified explicitly.
21357 Reported and tested by: Alain Greppin.
21358
21359 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21360
21361 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
21362 Reported and tested by: Alain Greppin.
21363
21364 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21365
21366 Satisfy some bison versions need for inttypes.h.
21367
21368 * grub-core/lib/posix_wrap/inttypes.h: New file.
21369 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
21370 (int16_t): Likewise.
21371 (int32_t): Likewise.
21372 (int64_t): Likewise.
21373 Reported and tested by: Alain Greppin.
21374
21375 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21376
21377 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
21378 Silence spurious warning.
21379 Reported and tested by: Alain Greppin.
21380
21381 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21382
21383 * docs/grub.texi (Support automatic decompression): Update with xz
21384 decompression support.
21385
21386 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21387
21388 Improve loaders' kernel command line handling.
21389
21390 * grub-core/lib/cmdline.c: New file.
21391 * include/grub/lib/cmdline.h: Likewise.
21392 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
21393 grub_create_loader_cmdline to create kernel command line.
21394 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
21395 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
21396 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
21397 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
21398 (linux): Add lib/cmdline.c on common.
21399
21400 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21401
21402 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
21403 inopos might be unaligned.
21404
21405 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21406
21407 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
21408 endian transformations.
21409 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21410 Based on report by: Doug Nazar.
21411
21412 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
21413
21414 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
21415 array->members[i].start_sector.
21416 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
21417
21418 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21419
21420 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
21421 Reported and tested by: Grégoire Sutre.
21422
21423 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21424
21425 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
21426 avoid causing test failures by clearing the screen.
21427
21428 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21429
21430 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
21431 Fix prefix check to handle the case where dir ends with a slash
21432 (most significantly, "/" itself).
21433 Reported by: Michael Vogt.
21434
21435 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21436
21437 Run terminfo_cls on initing terminfo output to clear the screen and
21438 move the cursor to (0,0).
21439
21440 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
21441 Call grub_terminfo_output_init.
21442 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
21443 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
21444 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
21445
21446 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21447
21448 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
21449 only when needed.
21450
21451 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21452
21453 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
21454 CTRL.
21455
21456 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21457
21458 The E820 type 5 is BADRAM, not EXEC_CODE.
21459
21460 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21461 (GRUB_E820_BADRAM): New define.
21462 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
21463 into reserved. Propagate BADRAM.
21464 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21465 (GRUB_E820_BADRAM): New define.
21466
21467 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21468
21469 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
21470 Ignore the memory post-4G.
21471 (grub_relocator_firmware_alloc_region): Additional debug statement.
21472
21473 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21474
21475 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
21476 names.
21477 Reported by: David Pravec.
21478
21479 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21480
21481 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
21482 BIOSes.
21483
21484 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21485
21486 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
21487 Prevent overflow.
21488 (grub_reed_solomon_recover): Likewise.
21489
21490 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21491
21492 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
21493
21494 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21495
21496 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
21497 variable.
21498
21499 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
21500
21501 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
21502 descriptions of extract_legacy_entries_source and
21503 extract_legacy_entries_configfile.
21504 Reported by: Seung Soo, Ha.
21505
21506 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
21507
21508 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
21509 on devices that do not implement function 0.
21510
21511 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
21512
21513 * grub-core/fs/hfsplus.c: Make parent unsigned.
21514 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
21515 overflows.
21516 (grub_hfsplus_cmp_extkey): Likewise
21517
21518 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21519
21520 * util/grub-install.in: Correctly use bootloader_id and not
21521 GRUB_DISTRIBUTOR on efibootmgr line.
21522
21523 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21524
21525 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
21526
21527 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
21528
21529 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
21530 Xen and reorder menu item wording to make it clearer that this entry
21531 will launch Xen. Print separate messages when loading Xen and
21532 Linux.
21533
21534 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21535
21536 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
21537 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
21538 loop in case of incorrect amiga partmap.
21539
21540 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21541
21542 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
21543 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
21544 Reported by:EHeM.
21545
21546 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21547
21548 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
21549 spurious warning.
21550 Reported by: crocket
21551
21552 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21553
21554 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
21555 Preload EFIemu.
21556 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
21557
21558 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21559
21560 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
21561 is loaded
21562 (grub_cmd_xnu_kextdir): Likewise.
21563 (grub_cmd_xnu_splash): Likewise.
21564
21565 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21566
21567 Avoid using Reed-Solomon with 0 redundancy.
21568
21569 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
21570 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
21571 or 0 redundancy.
21572 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
21573 (grub_reed_solomon_recover): Likewise.
21574
21575 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21576
21577 Don't use disk subsystem in freebsd_boot.
21578
21579 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
21580 (freebsd_biosdev): Likewise.
21581 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
21582 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
21583
21584 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
21585
21586 Handling of files of unknown size is currently limited. They can't be
21587 used e.g. for initrd or modules. Moreover gzip handling of not
21588 easily seekable files is buggy. Disable unknown file size for now. May
21589 be inefficient but works.
21590
21591 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
21592 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
21593
21594 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
21595
21596 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
21597 floppy probe.
21598
21599 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
21600
21601 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
21602
21603 2010-12-25 Shea Levy <shlevy>
21604
21605 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
21606
21607 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21608
21609 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
21610 Windows Server 2008.
21611 Reported by: Devin Giddings.
21612
21613 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21614
21615 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
21616 writing an error message because of async power management.
21617 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
21618 (grub_reboot): Likewise.
21619
21620 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
21621
21622 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
21623 keep unit tests from failing when they shouldn't.
21624
21625 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21626
21627 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
21628 previous patch increased the size of the RS code by 20 bytes (at
21629 least with gcc-4.4), so increase this by 20 bytes to match.
21630 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
21631
21632 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21633
21634 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
21635 scratch area. Make sure to initialise chosen in standalone mode as
21636 well as non-standalone.
21637 Reported by: Robert Hooker and Andy Whitcroft.
21638 Tested by: Andy Whitcroft.
21639
21640 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21641
21642 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
21643 constructing a new unescaped string and passing it to grub_xputs in
21644 one go, rather than passing characters to grub_printf one at a time.
21645
21646 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21647
21648 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
21649 initialising utf16.
21650
21651 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21652
21653 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
21654 comment. Add an extra layer of quotation, requiring the output of
21655 this function to be used in a printf format string.
21656 (gettext_printf): New function.
21657 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
21658 Extract translatable strings from here-documents and use a temporary
21659 variable instead, so that xgettext can find them.
21660 * util/grub.d/10_kfreebsd.in: Likewise.
21661 * util/grub.d/10_linux.in: Likewise.
21662 * util/grub.d/20_linux_xen.in: Likewise.
21663
21664 * po/grub.d.sed: New file.
21665 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
21666 arguments. Set c-format flags on all strings extracted from
21667 util/grub.d/ (xgettext refuses to include these itself for strings
21668 it extracted from a shell file, but these really are c-format).
21669
21670 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
21671
21672 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
21673 Avoid next pointing to nowhere.
21674
21675 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21676
21677 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
21678 rather than assuming than rootblock is exactly in the middle.
21679 (grub_affs_label): Likewise.
21680
21681 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21682
21683 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
21684 reserved_first_sector to 0.
21685 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
21686 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
21687 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
21688
21689 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21690
21691 Fix handling of UTF-16 UDF labels.
21692
21693 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
21694 (read_string): .. here.
21695 (grub_udf_label): Use read_string.
21696
21697 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
21698
21699 * grub-core/normal/menu_entry.c (run): Execute commands from menu
21700 editor under argument scope.
21701 Reported by: Jordan Uggla
21702
21703 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21704
21705 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
21706
21707 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
21708
21709 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
21710 line, and other keys scroll an entire page (previous handling was
21711 for \r and \n to scroll a page and other keys to scroll two lines).
21712
21713 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21714
21715 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21716 Set ptrdest to correct get_physical_target_address rather than
21717 incorrect get_virtual_current_address.
21718
21719 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
21720
21721 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
21722 correct cat to grub_uint8_t * rather than grub_uint32_t *.
21723
21724 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21725
21726 * .bzrignore: Ignore grub-core/rs_decoder.S.
21727
21728 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21729
21730 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
21731 .mo/.mo.gz opening sequence to ...
21732 (grub_mofile_open_lang): ... here.
21733 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
21734 * util/grub.d/00_header.in (grub_lang): Include country part of
21735 locale.
21736 Reported by: Mario Limonciello.
21737
21738 2010-12-09 Robert Millan <rmh@gnu.org>
21739
21740 * NEWS: Document addition of ZFS support.
21741
21742 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
21743
21744 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
21745 rather than `/ 2', as the latter requires -Wa,--divide which would
21746 require bumping our minimum binutils version.
21747
21748 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
21749
21750 * util/grub-script-check.c (main): Print script line number on
21751 error.
21752
21753 2010-12-01 Robert Millan <rmh@gnu.org>
21754
21755 * grub-core/fs/zfs/zfs.c: New file.
21756 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
21757 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
21758 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
21759 * grub-core/fs/zfs/zfsinfo.c: Likewise.
21760
21761 * include/grub/zfs/dmu.h: Likewise.
21762 * include/grub/zfs/dmu_objset.h: Likewise.
21763 * include/grub/zfs/dnode.h: Likewise.
21764 * include/grub/zfs/dsl_dataset.h: Likewise.
21765 * include/grub/zfs/dsl_dir.h: Likewise.
21766 * include/grub/zfs/sa_impl.h: Likewise.
21767 * include/grub/zfs/spa.h: Likewise.
21768 * include/grub/zfs/uberblock_impl.h: Likewise.
21769 * include/grub/zfs/vdev_impl.h: Likewise.
21770 * include/grub/zfs/zap_impl.h: Likewise.
21771 * include/grub/zfs/zap_leaf.h: Likewise.
21772 * include/grub/zfs/zfs.h: Likewise.
21773 * include/grub/zfs/zfs_acl.h: Likewise.
21774 * include/grub/zfs/zfs_znode.h: Likewise.
21775 * include/grub/zfs/zil.h: Likewise.
21776 * include/grub/zfs/zio.h: Likewise.
21777 * include/grub/zfs/zio_checksum.h: Likewise.
21778
21779 * Makefile.util.def: Build ZFS into libgrubmods.
21780 * grub-core/Makefile.core.def: Build zfs.mod.
21781
21782 2010-11-30 Szymon Janc <szymon@janc.net.pl>
21783
21784 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
21785 variable.
21786 * grub-core/commands/wildcard.c (match_files): Likewise.
21787
21788 2010-11-30 Robert Millan <rmh@gnu.org>
21789
21790 * grub-core/loader/i386/bsd.c
21791 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
21792 whether kernel is loaded using grub_loader_is_loaded(), rather
21793 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
21794 certain error conditions.
21795
21796 2010-11-30 Robert Millan <rmh@gnu.org>
21797
21798 * grub-core/commands/echo.c: Include `<grub/term.h>'.
21799 (grub_cmd_echo): Call grub_refresh() after printing a message.
21800
21801 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
21802
21803 Avoid using tricks for initialising endian variables.
21804
21805 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
21806 Make const.
21807 (GRUB_MOD_INIT): Don't byte-swap.
21808 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
21809 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
21810 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
21811 (grub_swap_bytes32_compile_time): Likewise.
21812 (grub_cpu_to_le32_compile_time): Likewise.
21813 (grub_cpu_to_le16_compile_time): Likewise.
21814
21815 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
21816
21817 * util/grub-setup.c (setup): Stop recommending --force. People who
21818 understand the dangers of blocklists are able to find this option
21819 anyway and the ones who don't shouldn't use it anyway.
21820
21821 2010-11-26 Robert Millan <rmh@gnu.org>
21822
21823 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
21824 Update all users.
21825
21826 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
21827
21828 Fix LVM-on-RAID probing.
21829
21830 * util/grub-probe.c (probe): Remember which disk was detected as
21831 RAID (perhaps an LVM physical volume). Use that disk's raidname
21832 rather than that of the top-level disk.
21833
21834 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
21835
21836 Fix cmdline argument quotes for setparams command of menuentry
21837 definitions.
21838
21839 * grub-core/commands/menuentry.c (setparams_prefix): Use single
21840 quotes for arguments.
21841 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
21842 grub_strchrsub function instead.
21843
21844 * include/grub/misc.h (grub_strchrsub): New function.
21845
21846 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
21847
21848 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
21849 effort by skipping "." and ".." entries up-front.
21850 Suggested by: Michael Lazarev.
21851
21852 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
21853
21854 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
21855 ldflags to ldadd, to fix link line ordering.
21856 (none_decompress): Likewise.
21857
21858 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
21859
21860 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
21861 platforms.
21862 (grub-emu-lite): Remove kern/emu/cache.S.
21863
21864 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21865
21866 * util/deviceiter.c (compare_devices): If the by-id link for a
21867 device couldn't be resolved, fall back to sorting by the by-id link
21868 rather than segfaulting.
21869 Reported and tested by: Daniel Mierswa.
21870
21871 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21872
21873 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
21874 ldflags, to fix link line ordering.
21875
21876 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21877
21878 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
21879 linkers are picky about this.
21880
21881 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21882
21883 * grub-core/Makefile.am (command.lst): Adjust sed expression
21884 ordering so that extended and priority commands aren't treated as
21885 ordinary commands.
21886
21887 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21888
21889 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
21890 Remove byte-swapping function calls, which are not valid in
21891 structure initialisers.
21892 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
21893 non-const.
21894 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
21895 grub_gpt_partition_type_bios_boot.
21896
21897 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
21898
21899 Fix test program build on GNU/kFreeBSD.
21900
21901 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
21902 $(LIBNVPAIR)' library dependencies.
21903
21904 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
21905
21906 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
21907
21908 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
21909
21910 * util/grub-install.in: Remove excessive quoting that broke
21911 installations to RAID devices.
21912
21913 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
21914
21915 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
21916 bootloader version instead of 0.
21917
21918 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
21919
21920 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
21921 warning.
21922
21923 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
21924
21925 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
21926 retrieve the metadat sector if size isn't known.
21927 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21928
21929 2010-11-18 Robert Millan <rmh@gnu.org>
21930
21931 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
21932 with grub_memcmp().
21933
21934 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
21935
21936 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
21937 arrow.
21938 Reported by: Jordan Uggla.
21939
21940 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
21941
21942 Make better UTF compliant.
21943
21944 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
21945 sequences as incorrect.
21946 (grub_is_valid_utf8): Likewise.
21947 (grub_utf8_to_ucs4): Likewise.
21948 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
21949 (grub_ucs4_to_utf8_alloc): Likewise.
21950 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
21951
21952 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
21953
21954 Make legacy_source behave like source.
21955
21956 * grub-core/commands/legacycfg.c (legacy_file): Don't call
21957 grub_show_menu.
21958 (grub_cmd_legacy_source): Call grub_show_menu if needed.
21959
21960 2010-11-16 Colin Watson <cjwatson@debian.org>
21961
21962 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
21963 (-Wunused implies -Wunused-parameter, but not vice versa).
21964
21965 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
21966
21967 * configure.ac: Make error messages less confusing by testing for
21968 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
21969 accepted, but produces a diagnostic if something else is wrong).
21970
21971 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
21972
21973 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
21974 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
21975 (now unused).
21976 (grub_keyboard_controller_init)
21977 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
21978 read the initial state since controller isn't inited yet.
21979
21980 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
21981
21982 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
21983 allocate_regbeg may need to create new chunk header.
21984
21985 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
21986
21987 Fix quoting in legacy parser.
21988
21989 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
21990 single quotes.
21991 (grub_legacy_parse): Likewise.
21992 Reported by: Jordan Uggla.
21993 Tested by: Jordan Uggla.
21994
21995 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
21996
21997 Don't add -lgcc on i386 and x86_64.
21998
21999 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
22000 * conf/Makefile.common (LDADD_KERNEL): Likewise.
22001 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
22002
22003 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22004
22005 * configure.ac: Add -Wno-trampolines when supported.
22006
22007 2010-11-14 Modestas Vainius <modax@debian.org>
22008
22009 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
22010 fakeraid.
22011
22012 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22013
22014 Add generic logical block size support for UDF.
22015
22016 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
22017 (GRUB_UDF_BLKSZ): Removed.
22018 (struct grub_udf_data): New field "lbshift" to hold the logical block
22019 size of the file system in log2 format. All users updated.
22020 (sblocklist): Change type to unsigned.
22021 (grub_udf_mount): Change type of "sblklist" to unsigned.
22022 Move AVDP search before VRS recognition, because the latter requires
22023 knowledge of the logical block size, which is detected during the
22024 former.
22025 Detect and validate logical block size during AVDP search, adding
22026 support for block sizes 512, 1024 and 4096.
22027 Make VRS recognition independent of block size.
22028
22029 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22030
22031 Properly handle deleted files on UDF.
22032
22033 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
22034 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
22035 set.
22036
22037 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22038
22039 Support reading files larger than 2 GiB.
22040
22041 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
22042 "offset" to grub_off_t.
22043 (grub_udf_read_file): Likewise for parameter "pos".
22044
22045 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22046
22047 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
22048 unavailable.
22049 (Simple configuration): Refer to Changes from GRUB Legacy about
22050 save_env availability.
22051
22052 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22053
22054 * util/grub-install.in: Ignore empty partition table detection
22055 instead of trying to include part_ module.
22056
22057 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22058
22059 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
22060 LVM on RAID support.
22061
22062 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22063
22064 Properly define WORDS_BIGENDIAN in wrapped environments.
22065
22066 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
22067 definition.
22068 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
22069
22070 Reported by: Manoel Rebelo Abranches.
22071 Tested by: Manoel Rebelo Abranches.
22072
22073 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22074
22075 * util/grub-mkconfig.in: Fix quoting.
22076
22077 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22078
22079 Support big ext2 files.
22080
22081 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
22082 (grub_ext2_read_block): Support triple indirect blocks.
22083 (grub_ext2_read_file): Use 64-bit types and read size_high.
22084 (grub_ext2_open): Read size_high.
22085 Reported by: Ximin Luo.
22086 Tested by: Manoel Rebelo Abranches.
22087
22088 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22089
22090 * util/grub-install.in: Handle filenames containing spaces.
22091 Reported by: Jordan Uggla.
22092 Tested by: Jordan Uggla.
22093
22094 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22095
22096 * util/grub-mkconfig.in (grub_script_check): New variable.
22097 Use grub_script_check instead of grub-script-check.
22098 Reported by: Barry Jackson.
22099
22100 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22101
22102 * docs/grub.texi (menu): Correct the order.
22103 Reported by: D. Hugh Redelmeier.
22104
22105 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
22106
22107 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
22108 jump.
22109
22110 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
22111
22112 * include/grub/elfload.h (grub_elf32_size): New parameter.
22113 All users updated.
22114 Return maximum segments alignment.
22115 (grub_elf64_size): Likewise.
22116 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
22117 Return maximum segments alignment.
22118 (grub_elf64_size): Likewise.
22119 * grub-core/loader/powerpc/ieee1275/linux.c:
22120 (grub_linux_claimmap_iterate): New function. Uses the
22121 "available" property in the "memory" node for memory allocation
22122 for kernel in the PowerPC loader.
22123 (grub_linux_load32): Correctly find linux entry point offset.
22124 (grub_linux_load64): Likewise.
22125
22126 2010-11-07 Robert Millan <rmh@gnu.org>
22127
22128 On mips-yeeloong, build with -march=loongson2f when this flag is
22129 available (GCC >= 4.4).
22130 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
22131 `-march=mips3'.
22132 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
22133 or otherwise add -march=mips3.
22134
22135 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
22136
22137 Suppress shell expansion on echo '*' and echo "*" like cases.
22138 Reported by: Jordan Uggla.
22139
22140 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
22141 string arguments before shell expansion.
22142 * tests/grub_cmd_echo.in: New testcases.
22143
22144 2010-11-07 Robert Millan <rmh@gnu.org>
22145
22146 * conf/mips-qemu-mips.rmk: Remove stale file from previous
22147 transition.
22148
22149 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
22150
22151 * grub-core/kern/emu/hostdisk.c
22152 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
22153
22154 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22155
22156 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
22157 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
22158 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
22159
22160 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22161
22162 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
22163
22164 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22165
22166 * util/grub-install.in: Replace useless recomendation to pass
22167 --modules with a recomendation to report a bug.
22168
22169 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22170
22171 Properly register serial terminfo.
22172 Reported by: Jordan Uggla
22173
22174 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
22175 const.
22176 (grub_serial_terminfo_output_template): Likewise.
22177 (grub_cmd_serial): Register "serial" with terminfo.
22178 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
22179 grub_serial_terminfo_output.
22180
22181 2010-11-05 Robert Millan <rmh@gnu.org>
22182
22183 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
22184 needed).
22185
22186 2010-11-05 Robert Millan <rmh@gnu.org>
22187
22188 On Yeeloong, pass machine type information to Linux.
22189
22190 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
22191 (LOONGSON_MACHTYPE): New macro, set to
22192 "machtype=lemote-yeeloong-2f-8.9inches".
22193 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
22194 additional argument to Linux.
22195
22196 2010-11-04 Robert Millan <rmh@gnu.org>
22197
22198 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
22199 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
22200 (its SATA disks are detected as slaveless IDE master drives on
22201 kFreeBSD).
22202 Reported by Carsten Aulbert.
22203
22204 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
22205
22206 * util/bin2h.c (main): Fix spelling error in generated output.
22207
22208 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
22209
22210 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
22211
22212 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22213
22214 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
22215 vga= option is supplied.
22216
22217 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22218
22219 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
22220 * util/grub.d/10_kfreebsd.in: Likewise.
22221 * util/grub.d/10_linux.in: Likewise.
22222 * util/grub.d/20_linux_xen.in: Likewise.
22223
22224 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22225
22226 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
22227 argument as an argument to no-argument option.
22228
22229 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22230
22231 * util/grub.d/10_linux.in: Add missing load_video with explicit
22232 GRUB_GFXPAYLOAD_LINUX.
22233
22234 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22235
22236 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
22237
22238 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22239
22240 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
22241 elements with invlid index.
22242 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22243 * grub-core/disk/raid.c (insert_array): Automatically reallocate
22244 members.
22245 * include/grub/raid.h (grub_raid_member): New struct.
22246 (grub_raid_array): Transform devices and start_sector into usage of
22247 grub_raid_member. All users updated
22248 (allocated_devs): New member.
22249
22250 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22251
22252 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
22253 is modified
22254
22255 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
22256
22257 NetBSD build fix for getline function conflict from gnulib.
22258
22259 * Makefile.util.def (libgrubkern.a): New library for grub kernel
22260 components that depend on gnulib headers.
22261 (libgrubmods.a): Renamed from earlier libgrub.a.
22262 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
22263
22264 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22265
22266 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
22267 install rather than creating a broken install.
22268
22269 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22270
22271 * util/grub-setup.c (argp): Remove misleading example of installing to
22272 a partition.
22273
22274 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22275
22276 * util/grub-setup.c (setup): Clarify the error message.
22277
22278 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22279
22280 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
22281
22282 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22283
22284 * grub-core/kern/emu/misc.c
22285 (grub_make_system_path_relative_to_its_root)
22286 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
22287
22288 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22289
22290 * grub-core/kern/emu/misc.c
22291 (grub_make_system_path_relative_to_its_root): Revert r2882.
22292
22293 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
22294
22295 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
22296 useless field head. All users updated.
22297 (free_subchunk): Correct handling of IN_REGION subchunk.
22298
22299 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
22300
22301 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
22302 (Supported kernels): Likewise.
22303
22304 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
22305
22306 Make mktemp invocations portable.
22307
22308 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
22309 exit if mktemp fails.
22310 * tests/grub_script_blockarg.in: Likewise.
22311 * tests/partmap_test.in: Likewise.
22312 * tests/util/grub-shell-tester.in: Likewise.
22313 * tests/util/grub-shell.in: Likewise.
22314 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
22315 * Makefile.am: Likewise, and chain shell commands with `&&'
22316 instead of ';'.
22317 * util/grub-mkrescue.in: Use the same explicit template as above, and
22318 exit if mktemp fails.
22319
22320 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
22321
22322 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
22323 Linux kernel, reported by Dennis Schridde.
22324
22325 2010-10-17 Szymon Janc <szymon@janc.net.pl>
22326
22327 * grub-core/normal/auth.c (grub_auth_check_authentication):
22328 Set-but-not-used variable removed.
22329
22330 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22331
22332 * docs/grub.texi (GNU/Linux): Document APM unavailability with
22333 32-bit linux protocol.
22334
22335 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22336
22337 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
22338 cursor shape for sanity.
22339
22340 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22341
22342 * docs/grub.texi (Installation): Document buggy BIOS install.
22343
22344 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22345
22346 * docs/grub.texi (Installation): Indent.
22347
22348 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22349
22350 * util/grub-setup.c (setup): New parameter allow_floppy.
22351 (arguments): New member allow_floppy.
22352 (argp_parser): Handle --allow-floppy.
22353 (main): Pass allow_floppy.
22354 * util/grub-install.in: New option --allow-floppy passed though to
22355 grub-setup.
22356
22357 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22358
22359 * util/grub-install.in: Handle partitionless disks.
22360
22361 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22362
22363 * util/grub-setup.c (setup): Don't clean blocklists before readability
22364 verfification.
22365
22366 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22367
22368 * docs/grub.texi (Installation): Document embedding zone. Remove
22369 obsolete grub-install example.
22370
22371 2010-10-16 Szymon Janc <szymon@janc.net.pl>
22372
22373 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
22374 Set-but-not-used variable ifdef'ed.
22375 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
22376 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
22377 variable removed.
22378 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
22379 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
22380 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
22381 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
22382 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
22383 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
22384 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
22385 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
22386 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
22387 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
22388 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
22389 Likewise.
22390
22391 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22392
22393 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
22394 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
22395 enum value.
22396
22397 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22398
22399 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
22400 synonym to _S5_. Needed for some DSDTs.
22401
22402 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22403
22404 Userspace ACPI parser debugging.
22405
22406 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
22407 headers and add relevant defines. Don't include standard headers.
22408 (main) [GRUB_DSDT_TEST]: New function.
22409 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
22410 Don't declare functions.
22411
22412 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22413
22414 Remove dead grub_efi_mm_fini.
22415
22416 * grub-core/kern/efi/mm.c (allocated_page): Removed.
22417 (ALLOCATED_PAGES_SIZE): Likewise.
22418 (MAX_ALLOCATED_PAGES): Likewise.
22419 (allocated_pages): Likewise.
22420 (grub_efi_allocate_pages): Don't record allocated pages.
22421 (grub_efi_free_pages): Likewise.
22422 (grub_efi_mm_init): Likewise.
22423 (grub_efi_mm_fini): Removed.
22424
22425 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22426
22427 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
22428 (grub_efi_mm_init): Take into account the memory map size increase.
22429
22430 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22431
22432 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
22433 (serial_hw_put): Wait based on real time rather than port reads. Don't
22434 roken ports.
22435 * include/grub/serial.h (grub_serial_port): New field broken.
22436
22437 2010-10-16 Robert Millan <rmh@gnu.org>
22438
22439 * grub-core/kern/emu/misc.c
22440 (grub_make_system_path_relative_to_its_root): Fix premature return
22441 when processing non-root ZFS filesystems.
22442 Reported by Sergio Talens-Oliag.
22443
22444 2010-10-15 Robert Millan <rmh@gnu.org>
22445
22446 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
22447 guarantee compressed ones are processed first.
22448
22449 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22450
22451 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
22452 grub_efiemu_autocore.
22453
22454 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22455
22456 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
22457 rather than 0x1b.
22458 (grub_console_getkey): Use correct jae opcode rather than ja.
22459
22460 2010-10-12 Robert Millan <rmh@gnu.org>
22461
22462 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
22463 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
22464 variable. All references updated.
22465
22466 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
22467
22468 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
22469
22470 Correctly distinguish mdraid flavours.
22471
22472 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
22473 (insert_array): New argument raid.
22474 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
22475 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
22476 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
22477
22478 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
22479
22480 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
22481 handling of special keys.
22482
22483 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22484
22485 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
22486 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
22487
22488 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22489
22490 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
22491 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
22492 users updated.
22493 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
22494 Use right endpoint when querying descriptor.
22495
22496 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22497
22498 Clear out 0x80 color bit on EFI.
22499 Tested by: decoder
22500 Reported by: decoder and meta tech.
22501
22502 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
22503 (grub_console_setcolorstate): Clear out 0x80 bit.
22504 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
22505 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
22506 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
22507
22508 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22509
22510 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
22511 Set to "auto".
22512
22513 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22514
22515 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
22516 mo_file after freeing.
22517
22518 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22519
22520 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
22521
22522 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22523
22524 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
22525 flags.
22526
22527 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22528
22529 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
22530 usage.
22531
22532 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22533
22534 Put terminfo into core on ieee1275 and yeeloong (needed for console).
22535
22536 * gentpl.py: New groups terminfoinkernel and terminfomodule.
22537 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
22538 and terminfo.h when needed.
22539 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
22540 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
22541 (terminfo): Enable only on terminfokernel.
22542 (extcmd): Likewise.
22543 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
22544 * include/grub/lib/arg.h: Likewise.
22545 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
22546 incorrect usage of ->.
22547
22548 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22549
22550 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
22551 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
22552
22553 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22554
22555 Fix coreboot compilation.
22556
22557 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
22558 Take VBE info into account even if only text is supported.
22559 (fill_vbe_info): Take into account the case when only VGA text
22560 is supported.
22561 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
22562 on coreboot, multiboot and qemu.
22563
22564 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22565
22566 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
22567 debug messages.
22568 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
22569
22570 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22571
22572 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
22573 parameters.
22574
22575 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22576
22577 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
22578 if they were BSD-style.
22579
22580 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22581
22582 * grub-core/boot/i386/pc/lnxboot.S: Replace
22583 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
22584 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
22585
22586 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22587
22588 Write embedding zone using Reed-Solomon.
22589
22590 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
22591 * grub-core/Makefile.am (rs_decoder.S): New target.
22592 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
22593 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
22594 (multiboot): Move to RS part.
22595 (post_reed_solomon): New label.
22596 (grub_boot_drive): Move to non-RS part since it's modified in memory
22597 on boot.
22598 Include rs_decoder.S.
22599 * grub-core/lib/reed_solomon.c: New file.
22600 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
22601 New definition.
22602 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
22603 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
22604 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
22605 * include/grub/partition.h (grub_partition_map): Change prototype of
22606 embed to allow returning additional sectors.
22607 * include/grub/reed_solomon.h: New file.
22608 * util/grub-setup.c (setup): Handle Reed-Solomon.
22609
22610 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
22611
22612 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22613 i386 and x86-64 definedness tests.
22614
22615 2010-09-27 Yves Blusseau <blusseau@zetam.org>
22616
22617 Fix generation of kernel_syms.lst
22618
22619 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
22620 ASM_PREFIX
22621
22622 2010-09-26 Robert Millan <rmh@gnu.org>
22623
22624 Support degraded ZFS arrays in "grub-probe -t device" resolution.
22625
22626 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
22627 the pool is an array of devices, iterate through it and return the
22628 first device that passes a stat() test (instead of blindly returning
22629 the first one).
22630
22631 2010-09-26 Robert Millan <rmh@gnu.org>
22632
22633 Build fixes for GNU/kFreeBSD.
22634
22635 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
22636 to programs that require ZFS conversion.
22637 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
22638 kernels that don't have FLOPPY_MAJOR.
22639
22640 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22641
22642 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
22643
22644 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22645
22646 Fix grub-emu build.
22647
22648 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
22649 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
22650 mdraid09 and mdraid1x.
22651
22652 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
22653
22654 Re-enable grub-extras.
22655
22656 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
22657 avoid confusing Automake. Run autogen only twice, once for the top
22658 level and once for grub-core. Add Makefile.util.def and
22659 Makefile.core.def from extra modules to the appropriate autogen
22660 invocations. If Makefile.common exists in an extra module, include
22661 it in both Makefile.util.am and grub-core/Makefile.core.am;
22662 similarly, include any Makefile.util.common file in Makefile.util.am
22663 and any Makefile.core.common file in grub-core/Makefile.core.am.
22664 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
22665 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
22666 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
22667 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
22668
22669 * gentpl.py (gvar_add): Turn GVARS into a set.
22670 (global_variable_initializers): Sort global variables on output.
22671 (vars_init): New function.
22672 (first_time): Likewise.
22673 (library): Ensure that non-global variable initialisations are
22674 emitted before the first time we emit code for a library block.
22675 Append to variables rather than setting them. Only emit
22676 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
22677 each conditional path.
22678 (program): installdir() emits an Autogen macro, so must be passed to
22679 var_add rather than gvar_add.
22680 (data): Likewise.
22681 (script): Likewise.
22682 (rules): New function, centralising handling for different target
22683 types. Set up Guile association lists for first_time and vars_init,
22684 and send most output to a diversion so that variable initialisations
22685 can be emitted first.
22686 (module_rules): Use new rules function.
22687 (kernel_rules): Likewise.
22688 (image_rules): Likewise.
22689 (library_rules): Likewise.
22690 (program_rules): Likewise.
22691 (script_rules): Likewise.
22692 (data_rules): Likewise.
22693
22694 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
22695
22696 * .bzrignore: Add contrib and grub-core/contrib. Remove
22697 grub-core/Makefile.gcry.am.
22698
22699 2010-09-24 Yves Blusseau <blusseau@zetam.org>
22700
22701 * grub-core/lib/LzFind.c: Add missing include.
22702 * grub-core/lib/LzmaEnc.c: Likewise.
22703 * grub-core/script/lexer.c: Likewise.
22704 * grub-core/script/yylex.l: Likewise.
22705 * util/grub-macho2img.c: Likewise.
22706 * util/grub-menulst2cfg.c: Likewise.
22707 * util/grub-mklayout.c: Likewise.
22708 * util/grub-mkpasswd-pbkdf2.c
22709 * util/grub-mkrelpath.c: Likewise.
22710 * util/resolve.c: Likewise.
22711
22712 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
22713
22714 * Makefile.util.def (example_unit_test): Add
22715 grub-core/gnulib/libgnu.a.
22716
22717 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
22718
22719 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
22720
22721 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
22722
22723 Support xz compression on yeeloong.
22724
22725 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
22726 * configure.ac: Check for LZMA.
22727 * grub-core/Makefile.core.def (xz_decompress): New target.
22728 (none_decompress): Likewise.
22729 * grub-core/boot/decompressor/minilib.c: New file.
22730 * grub-core/boot/decompressor/none.c: Likewise.
22731 * grub-core/boot/decompressor/xz.c: Likewise.
22732 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
22733 * grub-core/kern/mips/cache_flush.S: Likewise.
22734 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
22735 * grub-core/kern/mips/startup.S: Move first stage to ...
22736 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
22737 nomacro.
22738 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
22739 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
22740 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
22741 Allocate statically.
22742 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
22743 Allocate statically or use scratch. Don't check CRC32.
22744 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
22745 Allocate statically. Don't check CRC32.
22746 * include/grub/decompressor.h: New file.
22747 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
22748 Removed.
22749 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
22750 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
22751 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
22752 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
22753 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
22754 * util/grub-mkimage.c (grub_compression_t): New type.
22755 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
22756 (image_target_desc): New field default_compression.
22757 (image_targets): Adjust yeeloong targets.
22758 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
22759 (compress_kernel): New parameter comp.
22760 (generate_image): Likewise. Handle new compression case.
22761 (options): New option --compression
22762 (help): Likewise.
22763 (main): Handle new option.
22764
22765 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
22766
22767 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
22768
22769 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
22770
22771 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22772 typo in __i386__ conditional.
22773
22774 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22775
22776 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
22777 include.
22778
22779 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22780
22781 Implement EFI and ACPI multiboot2 extensions.
22782
22783 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
22784 new tags as supported.
22785 (acpiv2_size): New function.
22786 (grub_multiboot_get_mbi_size): Take new tags into account.
22787 (grub_multiboot_make_mbi): Add new tags.
22788 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
22789
22790 2010-09-21 Aleš Nesrsta <starous@volny.cz>
22791
22792 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
22793 Added missing configuration of USB device.
22794
22795 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22796
22797 * grub-core/normal/menu_entry.c (run): Make sure we always return
22798 a value.
22799
22800 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22801
22802 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
22803 NumberOfPages is UINT64 according to the UEFI specification, not
22804 UINTN. Fix printf format.
22805
22806 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22807
22808 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
22809 `err' to grub_usb_err_t.
22810 Reported and tested by: KESHAV P.R.
22811
22812 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22813
22814 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
22815 tpart non-const, so that we can assign to it. (Since this is a
22816 typedef, the constness refers to the pointer rather than what it
22817 points to.)
22818
22819 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22820
22821 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
22822 $(top_srcdir)/grub-core/gnulib as well as
22823 $(top_builddir)/grub-core/gnulib.
22824 Reported by: KESHAV P.R.
22825
22826 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22827
22828 * util/grub-install.in: Fix the bootloader ID option to be
22829 consistently --bootloader-id, not --bootloader_id.
22830 Reported by: KESHAV P.R.
22831
22832 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22833
22834 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
22835 check hash checksum." consistently translatable.
22836
22837 2010-09-21 Yves Blusseau <blusseau@zetam.org>
22838
22839 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
22840 $(top_builddir).
22841
22842 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22843
22844 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
22845 (GRUB_MOD_INIT): Register sha1sum command.
22846 (GRUB_MOD_FINI): Unregister sha1sum command.
22847
22848 2010-09-21 Yves Blusseau <blusseau@zetam.org>
22849
22850 Keep boot and grub directory names in sync with utils scripts
22851
22852 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
22853 * config.h.in: Add previous macros.
22854 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
22855 * util/grub-install.in: Use $bootdir and $grubdir variables.
22856
22857 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22858
22859 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
22860 convert partition names to disk names if the new `convert' parameter
22861 is set.
22862 (grub_util_biosdisk_get_grub_dev): If opening the disk device
22863 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
22864 disk in its own right. This can happen with Xen disk images.
22865
22866 2010-09-21 Yves Blusseau <blusseau@zetam.org>
22867
22868 * util/grub-editenv.c: Update strings to avoid warnings when generating
22869 grub.pot file.
22870 * util/grub-setup.c: Likewise.
22871
22872 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
22873
22874 * configure.ac: Change version to 1.99~beta0.
22875
22876 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
22877
22878 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
22879 Add BADRAM.
22880 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
22881 Likewise.
22882 * include/multiboot.h: Resynced with specification.
22883 * include/multiboot2.h: Likewise.
22884
22885 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22886
22887 Fix po directory handling.
22888
22889 * configure.ac: Create po/Makefile.in rather than po/Makefile.
22890 * grub-core/gnulib/Makefile.am: Import gettext module.
22891 * m4/gnulib-cache.m4: Likewise.
22892 * m4/gnulib-comp.m4: Likewise.
22893 * m4/gettext.m4: New file, from gnulib.
22894 * m4/glibc2.m4: Likewise.
22895 * m4/iconv.m4: Likewise.
22896 * m4/intdiv0.m4: Likewise.
22897 * m4/intl.m4: Likewise.
22898 * m4/intldir.m4: Likewise.
22899 * m4/intlmacosx.m4: Likewise.
22900 * m4/intmax.m4: Likewise.
22901 * m4/inttypes-pri.m4: Likewise.
22902 * m4/lcmessage.m4: Likewise.
22903 * m4/lib-ld.m4: Likewise.
22904 * m4/lib-link.m4: Likewise.
22905 * m4/lib-prefix.m4: Likewise.
22906 * m4/lock.m4: Likewise.
22907 * m4/nls.m4: Likewise.
22908 * m4/po.m4: Likewise.
22909 * m4/printf-posix.m4: Likewise.
22910 * m4/progtest.m4: Likewise.
22911 * m4/threadlib.m4: Likewise.
22912 * m4/uintmax_t.m4: Likewise.
22913 * m4/visibility.m4: Likewise.
22914 * po/Makefile.am: Remove.
22915 * po/Makefile.in.in: New file, from gettext.
22916 ($(DOMAIN).pot-update): Support POTFILES-shell.
22917 * po/Makevars: New file.
22918 * po/POTFILES-shell: Rename to ...
22919 * po/POTFILES-shell.in: ... this. Update.
22920 * po/POTFILES: Rename to ...
22921 * po/POTFILES.in: ... this. Update.
22922 * po/Rules-quot: New file, from gettext.
22923 * po/boldquot.sed: Likewise.
22924 * po/en@boldquot.header: Likewise.
22925 * po/en@quot.header: Likewise.
22926 * po/insert-header.sin: Likewise.
22927 * po/quot.sed: Likewise.
22928 * po/remove-potcdate.sin: Likewise.
22929
22930 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22931
22932 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
22933
22934 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22935
22936 * util/grub.d/20_linux_xen.in: Use submenus.
22937
22938 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22939
22940 Support submenus.
22941
22942 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
22943 parameter submenu. All users updated.
22944 * grub-core/normal/main.c (free_menu): Rename to ...
22945 (grub_normal_free_menu): ... this. Made global.
22946 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
22947 if requested.
22948 * grub-core/normal/menu_entry.c (screen): New field submenu.
22949 (make_screen): Set submenu.
22950 (run): Open new context if requested.
22951 * include/grub/menu.h (grub_menu_entry): New field submenu.
22952 * include/grub/normal.h (grub_normal_free_menu): New proto.
22953
22954 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22955
22956 Menu entries extractor.
22957
22958 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
22959 variants.
22960 (GRUB_MOD_INIT): Register new variants.
22961 (GRUB_MOD_FINI): Unregister new variants.
22962 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
22963 into grub_cmd_legacy_source.
22964 (grub_cmd_legacy_source): Implement extractor variants.
22965 (GRUB_MOD_INIT): Register new variants.
22966 (GRUB_MOD_FINI): Unregister new variants.
22967 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
22968 as an extractor.
22969 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
22970 search as an extractor.
22971 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
22972 test as an extractor.
22973 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
22974 as an extractor.
22975 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
22976 (grub_env_new_context): New function.
22977 (grub_env_context_open): Likewise.
22978 (grub_env_extractor_open): Likewise.
22979 (grub_env_extractor_close): Likewise.
22980 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
22981 grub_extractor_level.
22982 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
22983 * include/grub/env.h (grub_env_extractor_open): New proto.
22984 (grub_env_extractor_close): Likewise.
22985 * include/grub/normal.h (grub_extractor_level): New external variable.
22986
22987 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22988
22989 Make cutmem accept a region specification.
22990 Suggested by: Samuel Thibault
22991
22992 * grub-core/mmap/mmap.c (parsemem): New function.
22993 (grub_cmd_cutmem): Handle new arguments.
22994
22995 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22996
22997 New command cutmem.
22998
22999 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
23000 (GRUB_MOD_INIT): Register new command.
23001 (GRUB_MOD_FINI): Unregister new command.
23002
23003 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23004
23005 Support some annoying BSD and Minix subpartitions.
23006
23007 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
23008 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
23009 Properly handle concatenation.
23010 * grub-core/kern/device.c (grub_device_iterate): Likewise.
23011 * grub-core/normal/completion.c (iterate_partition): Likewise.
23012 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
23013 contain partition. All users updated.
23014 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
23015 struct.
23016 (grub_openbsdlabel_partition_map): Likewise.
23017 (bsdlabel_partition_map_iterate): Rename to ..
23018 (iterate_real): ... this. New arguments sector, freebsd and pmap.
23019 (bsdlabel_partition_map_iterate): New function.
23020 (netopenbsdlabel_partition_map_iterate): Likewise.
23021 (netbsdlabel_partition_map_iterate): Likewise.
23022 (openbsdlabel_partition_map_iterate): Likewise.
23023 (GRUB_MOD_INIT): Register new partmaps.
23024 (GRUB_MOD_FINI): Unregister new partmaps.
23025 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
23026 (grub_partition_msdos_iterate): ... this. All users updated.
23027 Don't support embedding other than in a minix partition.
23028 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
23029 proto.
23030 * include/grub/partition.h (grub_partition): New field msdostype.
23031 * util/grub-install.in: Handle openbsd and netbsd types being in
23032 part_bsd module.
23033
23034 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23035
23036 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
23037
23038 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
23039 * grub-core/Makefile.core.def (mdraid): Renamed to ...
23040 (mdraid09): ... this.
23041 (mdraid1x): New module.
23042 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
23043 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
23044
23045 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23046
23047 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
23048 vsprintf.
23049
23050 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23051
23052 * grub-core/commands/efi/lsefimmap.c: Correct header.
23053 * NEWS: Update.
23054
23055 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23056
23057 * util/grub-editenv.c (argp_parser): Don't pass translated strings
23058 as printf format strings; the translations might contain '%' which
23059 could cause a crash.
23060 (main): Likewise.
23061 * util/grub-fstest.c (argp_parser): Likewise.
23062 * util/grub-setup.c (argp_parser): Likewise.
23063 (main): Likewise.
23064
23065 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23066
23067 Use argp in grub-fstest.
23068
23069 * util/grub-fstest.c: Don't include getopt.h.
23070 Include argp.h.
23071 (root): New variable.
23072 (args_count): Likewise.
23073 (nparm): Likewise.
23074 (num_disks): Likewise.
23075 (images): Likewise.
23076 (cmd): Likewise.
23077 (debug_str): Likewise.
23078 (args): Likewise.
23079 (options): Transformed to argp.
23080 (usage): Removed.
23081 (main): Split argument parsing into ...
23082 (argp_parser): ... this. Changed to argp format.
23083 (argp): New variable.
23084 (main): Use argp_parse.
23085
23086 2010-09-20 Tristan Gingold <gingold@free.fr>
23087 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
23088 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23089
23090 * grub-core/commands/efi/lsefimmap.c: New file.
23091 * grub-core/Makefile.core.def (lsefimmap): New module.
23092 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
23093
23094 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23095
23096 Pause the execution (10s max) if any errors are displayed so the user
23097 has a chance to see them.
23098
23099 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
23100 (grub_print_error): Increment grub_err_printed_errors.
23101 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
23102 execution if any errors were displayed.
23103 (show_menu): Remove old code for pause.
23104 * grub-core/normal/menu_entry.c (run): Likewise.
23105 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
23106 users updated.
23107 (grub_normal_get_char_counter): Likewise.
23108 * include/grub/err.h (grub_err_printed_errors): New external variable.
23109 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
23110
23111 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23112
23113 Support multiboot VBE info.
23114
23115 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
23116 Take VBE info into account.
23117 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
23118 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23119 Call fill_vbe_info when appropriate.
23120 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
23121 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
23122 as supported.
23123 (grub_multiboot_get_mbi_size): Take new tags into account.
23124 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
23125 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23126 Call fill_vbe_tag when appropriate.
23127 (grub_multiboot_make_mbi): Properly align tags.
23128 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
23129 function.
23130 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
23131 proto.
23132 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
23133
23134 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23135
23136 Suport manual terminal geometry specification.
23137
23138 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
23139 Save state in grub_ofconsole_terminfo_output.
23140 (grub_ofconsole_term): Use grub_terminfo_getwh.
23141 (grub_ofconsole_getwh): Removed.
23142 * grub-core/term/serial.c (grub_serial_getwh): Removed.
23143 (grub_serial_term): Use grub_terminfo_getwh.
23144 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
23145 (options): New struct.
23146 (OPTION_*): New enum.
23147 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
23148 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
23149 width and height.
23150 (grub_terminfo_getwh): New proto.
23151 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
23152
23153 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23154
23155 Handle legacy "terminal" command.
23156
23157 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
23158 and FLAG_TERMINAL.
23159 (legacy_commands): Add terminal and title.
23160 (grub_legacy_parse): Handle terminal. Simplify title handling.
23161
23162 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23163
23164 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
23165 parameters overflow.
23166
23167 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23168
23169 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
23170 widthspec.h.
23171
23172 * docs/grub.texi (Shell-like scripting): Document `!'.
23173 (Network): Simplify using new i386-pc-pxe format. Mention
23174 grub-mknetdir.
23175
23176 * NEWS: Update.
23177
23178 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23179
23180 * Makefile.am (SUBDIRS): Restore "."; it's important to force
23181 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
23182 when needed.
23183
23184 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23185
23186 * grub-core/commands/efi/lsefisystab.c: Correct header.
23187 * grub-core/commands/efi/lssal.c: Likewise.
23188 * grub-core/commands/testload.c: Likewise.
23189
23190 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23191
23192 * util/grub-mkrescue.in: Add explicit root argument to --set to
23193 prevent the UUID being interpreted as an argument to --set (matches
23194 previous change to prepare_grub_to_access_device).
23195
23196 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23197
23198 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
23199 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
23200 the verbosity of later #ifs.
23201 (find_partition_start): Define this function on FreeBSD too.
23202 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
23203 function.
23204 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
23205 on FreeBSD.
23206
23207 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23208
23209 * util/grub-editenv.c: Use argp instead of getopt.
23210
23211 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23212
23213 * util/grub-setup.c: Use argp instead of getopt.
23214
23215 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23216
23217 Use gnulib-tool to create gnulib source files.
23218
23219 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
23220 grub-core/gnulib directories
23221 * .bzignore: Add **/.deps and autogenerated gnulib files
23222 * configure.ac: Assign auxiliary directory to build-aux, add invocation
23223 of gnulib macros, add grub-core/gnulib/Makefile
23224 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
23225 include m4 directory to aclocal.
23226 * Makefile.util.def: Remove direct compilation of gnulib source files
23227 and use the new grub-core/gnulib/libgnu.a.
23228 * build-aux/config.rpath: move config.rpath from top directory to
23229 build-aux
23230 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
23231 in gnulib headers
23232 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
23233 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
23234 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
23235 header.
23236 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
23237 string.
23238
23239 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23240
23241 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
23242 grub-core/genmod.sh and grub-core/gensyminfo.sh
23243
23244 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
23245
23246 Add a test for echo command options.
23247
23248 * tests/grub_cmd_echo.in: New test.
23249 * Makefile.util.def: Rules for new test.
23250
23251 2010-09-20 Szymon Janc <szymon@janc.net.pl>
23252
23253 Remove crc.mod and move crc command to hashsum.mod.
23254 Remove lib/crc.c - users updated to use gcrypt implementation.
23255
23256 * grub-core/commands/crc.c: Removed.
23257 * grub-core/Makefile.core.def (crc): Module removed.
23258 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
23259 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
23260 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
23261 * grub-core/lib/crc.c: Removed.
23262 * include/grub/lib/crc.h: Removed.
23263 * Makefile.util.def (crc): Remove lib/crc.c
23264 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
23265 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
23266 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
23267 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
23268 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
23269 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
23270
23271 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23272
23273 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
23274
23275 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23276
23277 Split config.h for util and core.
23278
23279 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
23280 (ADDR32): Likewise.
23281 (DATA32): Likewise.
23282 (BSS_START_SYMBOL): Likewise.
23283 (END_SYMBOL): Likewise.
23284 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
23285 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
23286 * config.h.in: New file.
23287 * configure.ac: Use config-util.h as config define file.
23288 Rename MACHINE into GRUB_MACHINE. All users updated.
23289 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
23290 updated.
23291 (NESTED_FUNC_ATTR): Likewise.
23292 Substitue new variables.
23293 (COND_HAVE_ASM_USCORE): New conditional.
23294 * grub-core/Makefile.am (ASM_PREFIX): New variable.
23295 (kernel_syms.lst): Use ASM_PREFIX.
23296 * grub-core/kern/emu/console.c: Include config-util.h.
23297 * grub-core/kern/emu/misc.c: Likewise.
23298 * grub-core/kern/emu/mm.c: Likewise.
23299 * include/grub/emu/misc.h: Likewise.
23300 * include/grub/libgcc.h: Likewise.
23301
23302 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23303
23304 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
23305 constants usage.
23306 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
23307 Fix GRUB_TERM_KEY_* constants usage.
23308 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
23309
23310 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23311
23312 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
23313 print pointer.
23314 * grub-core/bus/usb/uhci.c: Remove empty define.
23315 (grub_uhci_check_transfer): Add missing cast.
23316 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
23317 print pointer.
23318 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
23319 PRIuGRUB_SIZE.
23320 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
23321
23322 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23323
23324 * grub-core/Makefile.core.def (legacycfg): Add
23325 lib/i386/pc/vesa_modes_table.c on emu.
23326
23327 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23328
23329 Reduce number of temporary files generated by build system.
23330
23331 * grub-core/gencmdlist.sh: Removed.
23332 * grub-core/genfslist.sh: Removed.
23333 * grub-core/genhandlerlist.sh: Removed.
23334 * grub-core/genmodsrc.sh: Removed.
23335 * grub-core/genpartmaplist.sh: Removed.
23336 * grub-core/genparttoollist.sh: Removed.
23337 * grub-core/gentermiinallist.sh: Removed.
23338 * grub-core/genvideolist.sh: Removed.
23339
23340 * grub-core/genmod.sh.in: New file.
23341 * grub-core/gensyminfo.sh.in: New file.
23342
23343 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
23344 * conf/Makefile.extra-dist: Update with new files.
23345 * gentpl.py: Remove rules related to unnecessary temporary files.
23346 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
23347 and und-* files.
23348 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
23349 genmod.sh scripts.
23350 * grub-core/bus/usb/uhci.c: Remove empty #define.
23351 * grub-core/genmoddep.awk: Updated with new syminfo format.
23352 * util/bash-completion.d/Makefile.am: Add config.log to
23353 CLEANFILES.
23354
23355 2010-09-19 Yves Blusseau <blusseau@zetam.org>
23356
23357 * Makefile.util.def: Add forgotten $(LIBINTL) library.
23358
23359 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23360
23361 * util/grub-mkconfig.in: Check the config script for syntax errors
23362 before saving.
23363
23364 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
23365 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23366
23367 * Makefile.util.def (grub-install): Use util/grub-install.in on all
23368 platforms.
23369 * util/grub-install.in: Add EFI and IEEE1275 support.
23370 * util/i386/efi/grub-install.in: Removed.
23371 * util/ieee1275/grub-install.in: Likewise.
23372
23373 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23374
23375 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
23376 (grub_cmd_cmosclean): Likewise.
23377 (GRUB_MOD_INIT): Register command cmosclean.
23378 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
23379 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
23380
23381 2010-09-18 Carles Pina i Estany <carles@pina.cat>
23382 2010-09-18 Aleš Nesrsta <starous@volny.cz>
23383 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23384
23385 Add keyboard layouts support.
23386
23387 * Makefile.util.def (grub-mklayout): New file.
23388 (grub-kbdcomp): New script.
23389 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
23390 Add keyboard_layouts.h.
23391 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
23392 commands/boot.c on yeeloong.
23393 (keylayouts): New module.
23394 * grub-core/bus/usb/ohci.c
23395 * grub-core/bus/usb/uhci.c
23396 * grub-core/bus/usb/usbhub.c (rescan): New variable.
23397 (grub_usb_add_hub): Poll interrupt pipe for device handling.
23398 (attach_root_port): Likewise.
23399 (poll_nonroot_hub): Likewise.
23400 (grub_usb_poll_devices): Likewise.
23401 (detach_device): Close transfer.
23402 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
23403 function.
23404 (grub_usb_bulk_setup_readwrite): Likewise.
23405 (grub_usb_bulk_finish_readwrite): Likewise.
23406 * grub-core/commands/keylayouts.c: New file.
23407 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
23408 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
23409 aliases.
23410 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
23411 support scancode 2.
23412 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
23413 * include/grub/keyboard_layouts.h: New file.
23414 * util/grub-mklayout.c: New file.
23415 * util/grub-kbdcomp.in: Likewise.
23416
23417 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23418
23419 Unify memory types.
23420
23421 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
23422 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
23423 types.
23424 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
23425 (grub_upper_mem): Likewise.
23426 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
23427 * include/grub/memory.h (grub_memory_type_t): New enum.
23428 All users updated.
23429
23430 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23431
23432 * grub-core/Makefile.core.def (lsapm): New module.
23433 * grub-core/commands/i386/pc/lsapm.c: New file.
23434 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
23435 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
23436 Likewise.
23437 * include/grub/i386/pc/apm.h: New file.
23438 * include/multiboot.h (multiboot_apm_info): New struct.
23439
23440 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23441
23442 GRUB-legacy configuration file support.
23443
23444 * Makefile.util.def (grub-menulst2cfg): New util.
23445 * docs/man/grub-menulst2cfg.h2m: New file.
23446 * grub-core/Makefile.core.def (legacycfg): New module.
23447 * grub-core/commands/legacycfg.c: New file.
23448 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
23449 (grub_normal_add_menu_entry): ... this.
23450 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
23451 (grub_normal_set_password): ...this.
23452 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
23453 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
23454 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
23455 * grub-core/lib/legacy_parse.c: New file.
23456 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
23457 * include/grub/i386/pc/vesa_modes_table.h: New file.
23458 * include/grub/legacy_parse.h: Likewise.
23459 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
23460 * util/grub-menulst2cfg.c: New file.
23461
23462 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23463
23464 * grub-core/kern/emu/hostdisk.c
23465 (convert_system_partition_to_system_disk): Initialise node.
23466
23467 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23468
23469 * grub-core/kern/emu/hostdisk.c
23470 (convert_system_partition_to_system_disk): Fix devmapper memory pool
23471 leak.
23472 Reported and based on patch by: Modestas Vainius.
23473
23474 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23475
23476 Fix DM-RAID probing with recent versions of device-mapper udev
23477 rules.
23478
23479 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
23480 canonicalise device paths under /dev/mapper/.
23481 (convert_system_partition_to_system_disk): Compare the
23482 uncanonicalised path to /dev/mapper/ rather than the canonicalised
23483 path, since device nodes under /dev/mapper/ are often symlinks.
23484
23485 2010-09-17 Yves Blusseau <blusseau@zetam.org>
23486
23487 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
23488
23489 2010-09-16 Yves Blusseau <blusseau@zetam.org>
23490
23491 * configure.ac: Avoid some annoying error messages if freetype-config
23492 program is not found.
23493
23494 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23495
23496 Support RAID on virtio devices, and others.
23497
23498 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
23499 Rename to ...
23500 [__MINGW32__] (grub_find_device): ... this.
23501 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
23502 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
23503 reasonable default if dir is NULL.
23504 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
23505 ...
23506 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
23507 (grub_guess_root_device): Update callers.
23508 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
23509
23510 * util/raid.c (grub_util_getdiskname): Remove.
23511 (grub_util_raid_getmembers): Use grub_find_device rather than
23512 grub_util_getdiskname.
23513
23514 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23515
23516 * docs/grub.texi (serial): Remove obsolete comment about GRUB
23517 needing to be compiled with serial support.
23518 (ls): Indicate that multiple files are accepted.
23519 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
23520 indicate that multiple files are accepted.
23521
23522 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23523
23524 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
23525 libgrub_a_init.c, and util/bash-completion.d/grub.
23526
23527 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23528
23529 * util/grub-setup.c (setup): Fix incorrect container semantics.
23530
23531 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23532
23533 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
23534 misusage.
23535 Reported by: J. Nick Terry
23536
23537 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23538
23539 Move embedding routines to partmap sources files.
23540
23541 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
23542 [GRUB_UTIL]: New variable.
23543 (gpt_partition_map_iterate): Set part.parent.
23544 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
23545 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
23546 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
23547 New function.
23548 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
23549 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
23550 (grub_partition_map) [GRUB_UTIL]: New field embed.
23551 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
23552 (setup): Use ->embed.
23553
23554 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23555
23556 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
23557 function.
23558 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
23559 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
23560
23561 2010-09-15 Yves Blusseau <blusseau@zetam.org>
23562
23563 Add function to get completions from usage.
23564
23565 * util/bash-completion.d/grub-completion.bash.in: Add function to get
23566 completions from usage. Use LC_ALL=C to get options properly.
23567
23568 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23569
23570 * grub-core/gnulib/basename-lgpl.c: Imported.
23571 * grub-core/gnulib/basename.c: Likewise.
23572 * grub-core/gnulib/dirname-lgpl.c: Likewise.
23573 * grub-core/gnulib/dirname.c: Likewise.
23574 * grub-core/gnulib/dirname.h: Likewise.
23575 * grub-core/gnulib/stripslash.c: Likewise.
23576
23577 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23578
23579 * grub-core/gnulib/error.c: Resynced.
23580 * grub-core/gnulib/getopt.c: Likewise.
23581 * grub-core/gnulib/getopt_int.h: Likewise.
23582 * grub-core/gnulib/regex.h: Likewise.
23583 * grub-core/gnulib/regex_internal.c: Likewise.
23584 * grub-core/gnulib/regex_internal.h: Likewise.
23585
23586 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23587
23588 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
23589 CRC calculations and validity checks.
23590 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
23591 calculations.
23592
23593 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23594
23595 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
23596
23597 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23598
23599 Fix incorrect echo options handling.
23600 Reported by: Yves Blusseau.
23601
23602 * include/grub/command.h (grub_command_flags_t): New flags
23603 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
23604 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
23605 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
23606
23607 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23608
23609 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
23610 users updated.
23611 (GRUB_COMMAND_FLAG_MENU): Likewise.
23612 (GRUB_COMMAND_FLAG_BOTH): Likewise.
23613 (GRUB_COMMAND_FLAG_TITLE): Removed.
23614 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
23615 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
23616 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
23617 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
23618 (grub_command_flags_t): New enum. All users updated.
23619
23620 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
23621
23622 Fix solaris compilation.
23623
23624 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
23625 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
23626 (grub-emu-list): Likewise.
23627
23628 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23629
23630 Remove deprecated root command.
23631
23632 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
23633 updated.
23634
23635 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23636
23637 * util/i386/pc/grub-setup.c: Merge this ...
23638 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
23639 * util/grub-setup.c: ... into this.
23640 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
23641 New struct.
23642
23643 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23644
23645 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
23646 possible.
23647
23648 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23649
23650 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
23651 allocate p.
23652
23653 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23654
23655 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
23656 explicit root argument to set to prevent UUID to be interpreted as
23657 argument to set.
23658
23659 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23660
23661 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
23662
23663 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23664
23665 Don't export grub_gate_a20.
23666
23667 * grub-core/kern/i386/pc/init.c: Remove leftovers.
23668 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
23669 to ...
23670 (grub_gate_a20): ... this. All users updated.
23671 * include/grub/i386/pc/init.h: Removed. All users updated.
23672
23673 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23674
23675 Create euro.pf2 which supports most European languages.
23676
23677 * Makefile.am (grubdata_DATA): Add euro.pf2.
23678 (euro.pf2): New target.
23679 (CLEANFILES): Add euro.pf2.
23680
23681 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23682
23683 * configure.ac: Disable emu-usb by default to prevent inadvertent
23684 device takeover.
23685
23686 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23687
23688 Disable usbserial on grub-emu since our libusb code isn't good enough
23689 yet.
23690
23691 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
23692 (usbserial_pl2303): Likewise.
23693 (usbserial_ftdi): Likewise.
23694
23695 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23696
23697 * include/grub/disk.h (grub_disk): Remove has_partitions.
23698 All users updated.
23699 * disk/loopback.c (grub_loopback): Remove has_partitions.
23700 All users updated.
23701 (options): Remove partitions. All users updated.
23702 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
23703 * util/i386/pc/grub-setup.c (setup): copy partition table only when
23704 actual partition table is found.
23705
23706 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23707
23708 Remove readability checks (too many false negatives).
23709
23710 * util/grub-install.in: Remove readability checks.
23711 * util/grub-mkconfig.in: Likewise.
23712 * util/grub.d/10_hurd.in: Likewise.
23713 * util/grub.d/10_kfreebsd.in: Likewise.
23714 * util/grub.d/10_linux.in: Likewise.
23715 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
23716 way.
23717
23718 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23719
23720 Enable acpi shutdown on all ACPI platforms.
23721
23722 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
23723 on coreboo, multiboot and EFI.
23724 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
23725 (grub_acpi_halt): Likewise.
23726 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
23727 (grub_cmd_halt): Don't call grub_acpi_halt directly.
23728 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
23729 * grub-core/lib/i386/halt.c (grub_halt)
23730 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
23731
23732 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23733
23734 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
23735 context.
23736
23737 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23738
23739 * grub-core/video/efi_gop.c: Fix over-80-chars line.
23740 * grub-core/video/efi_uga.c: Likewise.
23741
23742 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23743
23744 Filter devaliases and never open same device twice.
23745
23746 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
23747 (last_ihandle): Likewise.
23748 (ofdisk_hash_ent): New member shortest.
23749 (ofdisk_hash_add): Add canonical path too.
23750 (scan): New function.
23751 (grub_ofdisk_iterate): Iterate over hashed entries.
23752 (compute_dev_path): Don't add :0.
23753 (grub_ofdisk_open): Don't really open the disk.
23754 (grub_ofdisk_close): Avoid closing unrelated disk.
23755 (grub_ofdisk_read): Implement reopen logic.
23756 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
23757 New function.
23758 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
23759 New proto.
23760
23761 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23762
23763 Fix sparc64.
23764
23765 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
23766 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
23767 right address. Add sparc64_ieee1275_ldflags.
23768 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
23769 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
23770 to grub_host_to_target_addr
23771 (load_image): Likewise.
23772
23773 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23774
23775 * grub-core/normal/completion.c (complete_file): Handle device
23776 containing slash.
23777 Fix based on patch by Doug Nazar.
23778
23779 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23780
23781 grub-mknetdir script.
23782
23783 * Makefile.util.def (grub-mknetdir): New module.
23784 * tests/util/grub-shell.in: Support boot=net
23785 * util/grub-mknetdir.in: New file.
23786
23787 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23788
23789 videoinfo on non-vbe.
23790
23791 * grub-core/Makefile.core.def (vbeinfo): Removed.
23792 (vbetest): Removed.
23793 (videoinfo): New module.
23794 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
23795 * grub-core/commands/i386/pc/vbetest.c: Removed.
23796 * grub-core/commands/videoinfo.c: New file.
23797 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
23798 specification.
23799 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
23800 as vbetest.
23801 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
23802 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
23803 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
23804 mode_number. New parameter mode. All users updated.
23805 (grub_video_gop_iterate): New function.
23806 (grub_video_efi_gop): New member iterate.
23807 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
23808 (grub_vbe_set_video_mode): Remove setting useless fields.
23809 (vbe2videoinfo): New function.
23810 (grub_video_vbe_iterate): Likewise.
23811 (grub_video_vbe_setup): Use vbe2videoinfo.
23812 (grub_video_vbe_print_adapter_specific_info): New function.
23813 (grub_video_vbe_adapter): New fields iterate and
23814 print_adapter_specific_info.
23815 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
23816 All users updated.
23817 (grub_video_mode_info): New field mode_number.
23818 (grub_video_adapter): New fields iterate and
23819 print_adapter_specific_info.
23820
23821 2010-09-13 Tristan Gingold <gingold@free.fr>
23822 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
23823 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23824
23825 * grub-core/commands/efi/lsefisystab.c: New file.
23826 * grub-core/commands/efi/lssal.c: Likewise.
23827 * grub-core/Makefile.core.def (lsacpi): New module.
23828 (lsefisystab): Likewise.
23829 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
23830 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
23831 (grub_efi_sal_system_table): New struct.
23832 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
23833 (grub_efi_sal_system_table_memory_descriptor): Likewise.
23834 (grub_efi_sal_system_table_platform_features): Likewise.
23835 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
23836 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
23837 (grub_efi_sal_system_table_ap_wakeup): Likewise.
23838 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
23839
23840 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23841
23842 Support explicit user claim that a device is BIOS-visible.
23843
23844 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
23845 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
23846 * grub-core/kern/emu/hostdisk.c
23847 (convert_system_partition_to_system_disk): Support mdX.
23848 (find_system_device): New parameter add. All users updated.
23849 (grub_util_biosdisk_is_present): New function.
23850 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
23851 proto.
23852
23853 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23854
23855 Search hints support.
23856
23857 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
23858 All users updated.
23859
23860 2010-09-13 Yves Blusseau <blusseau@zetam.org>
23861
23862 Bash completion script for util commands
23863
23864 * Makefile.am: Add util/bash-completion.d directory
23865 * configure.ac: Likewise.
23866 * util/bash-completion.d/Makefile.am: New file.
23867 * util/bash-completion.d/grub-completion.bash.in: Likewise.
23868
23869 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23870
23871 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
23872 (print_backlog): set backlog_ucs4 and backlog_glyphs.
23873 Reported by: Yves Blusseau.
23874
23875 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23876
23877 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
23878 partition size and offset.
23879
23880 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23881
23882 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
23883
23884 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23885
23886 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
23887
23888 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23889
23890 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
23891 (grub_xvasprintf): Likewise.
23892
23893 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23894
23895 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
23896
23897 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23898
23899 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
23900 args ending with NULL.
23901
23902 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23903
23904 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
23905 pointer.
23906
23907 2010-09-11 Szymon Janc <szymon@janc.net.pl>
23908
23909 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
23910
23911 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23912
23913 Shutdown using ACPI.
23914
23915 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
23916 * grub-core/commands/acpihalt.c: New file.
23917 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
23918 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
23919 (grub_acpi_halt): New proto.
23920 (GRUB_ACPI_SLP_EN): New const.
23921 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
23922 (GRUB_ACPI_OPCODE_*): New enum.
23923 (GRUB_ACPI_EXTOPCODE_*): Likewise.
23924
23925 2010-09-11 Tristan Gingold <gingold@free.fr>
23926 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
23927 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23928
23929 * commands/lsacpi.c: New file.
23930 * grub-core/Makefile.core.def (lsacpi): New module.
23931 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
23932 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
23933 (grub_acpi_madt_entry_header): New struct.
23934 (grub_acpi_madt): Likewise.
23935 (grub_acpi_madt_entry_interrupt_override): Likewise.
23936 (grub_acpi_madt_entry_sapic): Likewise.
23937 (grub_acpi_madt_entry_lsapic): Likewise.
23938 (grub_acpi_madt_entry_platform_int_source): Likewise.
23939 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
23940 (PRIuGRUB_UINT32_T): Likewise.
23941 (PRIxGRUB_UINT64_T): Likewise.
23942
23943 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23944
23945 Implement loading palette on ieee1275_fb.
23946
23947 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
23948 (have_setcolors): Likewise.
23949 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
23950 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
23951 (grub_video_ieee1275_set_palette): Implement.
23952
23953 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23954 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
23955
23956 * util/grub-install.in (grub_partition): New variable.
23957 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
23958 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
23959 Fixes a bug reported by Yves Blusseau.
23960
23961 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23962
23963 Fix emu on mipsel.
23964
23965 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
23966 =grub_cpu_flush_cache on all mips and not only yeeloong.
23967 * configure.ac (COND_mips): New conditional.
23968 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
23969 platforms.
23970 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
23971 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
23972 [GRUB_LINKER_HAVE_INIT]: New function.
23973 (grub_emu_post_init): Likewise.
23974 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
23975 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
23976 * include/grub/cache.h (_mips): Include mips/cache.h.
23977 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
23978 LVM and RAID prototypes.
23979 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
23980 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
23981 function.
23982
23983 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
23984
23985 * util/grub-install.in: Don't try to verify core.img until after
23986 running grub-mkimage to create it.
23987
23988 2010-09-10 Robert Millan <rmh@gnu.org>
23989
23990 * util/grub.d/10_hurd.in: Add misc readability checks.
23991 * util/grub.d/10_kfreebsd.in: Likewise.
23992 * util/grub.d/10_linux.in: Likewise.
23993
23994 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
23995
23996 * util/grub-install.in: ${imgext} won't be defined here until the
23997 install branch is merged. For the meantime, only verify core.img on
23998 i386-pc and sparc64-ieee1275 platforms.
23999
24000 2010-09-10 Robert Millan <rmh@gnu.org>
24001
24002 Solaris support in grub_find_zpool_from_dir(). Thanks
24003 Seth Goldberg for referring to getextmntent() facility.
24004
24005 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
24006 `sys/mkdev.h'.
24007 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
24008 `<sys/mnttab.h>'.
24009 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
24010 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
24011 method for finding zpool name.
24012
24013 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24014
24015 grub-fstest needs the host and hostfs modules while other utilities
24016 actively require those modules to be absent, so grub-fstest needs
24017 its own initialisation and finalisation code.
24018
24019 * Makefile.am (grub_fstest.pp): New target.
24020 (grub_fstest_init.lst): Likewise.
24021 (grub_fstest_init.c): Likewise.
24022 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
24023
24024 2010-09-10 Robert Millan <rmh@gnu.org>
24025
24026 * configure.ac: Check for `struct statfs.f_fstypename' and
24027 `struct statfs.f_mntfromname'.
24028
24029 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
24030 kFreeBSD-specific code.
24031
24032 2010-09-10 Robert Millan <rmh@gnu.org>
24033
24034 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
24035 on ZFS. Now non-main filesystems are supported as / too.
24036
24037 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
24038
24039 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
24040 and grub-core/disk/host.c to ...
24041 (grub-fstest): ... here. Having the host disk implementation
24042 present confuses grub-probe and other utility programs.
24043
24044 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
24045 when writing to a file, not when writing to stdout.
24046
24047 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
24048
24049 * tests/partmap_test.in: New test for partitions.
24050 * Makefile.util.def: Rules for new test.
24051
24052 2010-09-09 Robert Millan <rmh@gnu.org>
24053
24054 * util/grub-probe.c (probe): Fix a pair of unhandled error
24055 conditions.
24056
24057 2010-09-09 Robert Millan <rmh@gnu.org>
24058
24059 Basic Btrfs support (detection and UUID).
24060
24061 * grub-core/fs/btrfs.c: New file.
24062 * Makefile.util.def (library): Register btrfs.c.
24063 * grub-core/Makefile.core.def: Likewise.
24064
24065 2010-09-08 Robert Millan <rmh@gnu.org>
24066
24067 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
24068 with (optional) parameters to specify device and relative path.
24069 * util/grub-install.in: Use is_path_readable_by_grub() to
24070 verify readability of a few critical files.
24071 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
24072 verify readability of grub.cfg.new.
24073
24074 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24075
24076 Split minix.mod into minix.mod and minix2.mod.
24077
24078 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
24079 * grub-core/Makefile.core.def (minix2): New module.
24080 * grub-core/fs/minix.c: Use definitions instead of runtime version
24081 checking.
24082 * grub-core/fs/minix2.c: New file.
24083
24084 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24085
24086 Add new --boot-directory option to replace --root-directory
24087
24088 * util/grub-install.in: Add new --boot-directory option
24089 * util/grub-reboot.in: Likewise.
24090 * util/grub-set-default.in: Likewise.
24091
24092 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24093
24094 * util/grub-mkconfig.in: Use new variable.
24095
24096 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24097
24098 * configure.ac: Define some useful variables.
24099
24100 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24101
24102 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
24103 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
24104 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
24105 Use terminfo and don't use cursor-on/cursor-off unless it's known
24106 to work.
24107 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
24108 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
24109
24110 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
24111
24112 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
24113 starts with "(,", fill the drive containing the loaded image in
24114 between those two characters, but expect that a full partition
24115 specification including partition map names will follow.
24116
24117 2010-09-08 Robert Millan <rmh@gnu.org>
24118
24119 * configure.ac: Remove `--enable-grub-fstest' option.
24120 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
24121
24122 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
24123 `grub-fstest' instead of `grub-probe' for readability verification.
24124 * util/grub-probe.c (probe): Remove readability verification kludge.
24125
24126 2010-09-08 Robert Millan <rmh@gnu.org>
24127
24128 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
24129 initializing `GRUB_FS'.
24130
24131 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
24132
24133 Not command (!) support to GRUB script.
24134
24135 * tests/grub_script_not.in: New test.
24136 * Makefile.util.def: Rules for new test.
24137
24138 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
24139 ! command as a special case.
24140 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
24141
24142 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24143
24144 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
24145 grub_free.
24146
24147 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24148
24149 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
24150
24151 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24152
24153 * docs/grub.texi (Shell-like scripting): Documentation for break,
24154 continue, shift and return commands.
24155
24156 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
24157
24158 Rename CD-ROM to cd on BIOS.
24159
24160 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
24161 "cd".
24162 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
24163
24164 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24165
24166 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
24167 * util/grub-probe.c (main): Likewise.
24168 * util/i386/pc/grub-setup.c (main): Likewise.
24169 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
24170 Reported and debugged by: alexxy
24171
24172 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24173
24174 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
24175 diagnostic info.
24176
24177 2010-09-05 Jo Shields <directhex@apebox.org>
24178
24179 * util/grub.d/30_os-prober.in: Add missing classes.
24180
24181 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24182
24183 * docs/grub.texi (Theme file format): Document new position format.
24184
24185 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24186
24187 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
24188 a table. Use @code instead of @verbatim.
24189
24190 2010-09-05 Colin D Bennett <colin@gibibit.com>
24191
24192 Gfxmenu documentation.
24193
24194 * docs/grub.texi (Theme file format): New chapter.
24195
24196 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24197
24198 * grub-core/Makefile.core.def (xzio): New module.
24199 * grub-core/io/xzio.c: New file.
24200 * grub-core/lib/xzembed/xz.h: New file (from xembed).
24201 * grub-core/lib/xzembed/xz_config.h: Likewise.
24202 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
24203 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
24204 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
24205 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
24206 * grub-core/lib/xzembed/xz_private.h: Likewise.
24207 * grub-core/lib/xzembed/xz_stream.h: Likewise.
24208 * include/grub/file.h (grub_file_filter_id): New compression filter
24209 GRUB_FILE_FILTER_XZIO.
24210
24211 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24212
24213 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
24214 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
24215 size.
24216
24217 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24218
24219 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
24220 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
24221
24222 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24223
24224 Uncompressed checksum support.
24225
24226 * grub-core/commands/hashsum.c (options): Add option --uncompress.
24227 (check_list): New parameter uncompress.
24228 (grub_cmd_hashsum): Handle --uncompress.
24229
24230 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24231
24232 Reintroduce testload.
24233
24234 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
24235 from here ...
24236 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
24237 (GRUB_MOD_INIT): New function.
24238 (GRUB_MOD_FINI): Likewise.
24239 * grub-core/Makefile.core.def (testload): New module.
24240
24241 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24242
24243 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
24244 (uint8_t): New type.
24245 (uint16_t): Likewise.
24246 (uint32_t): Likewise.
24247 (uint64_t): Likewise.
24248
24249 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24250
24251 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
24252
24253 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24254
24255 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
24256 Made static.
24257 (grub_gzfile_open): Removed. All users updated.
24258 (GRUB_MOD_INIT): New function.
24259 (GRUB_MOD_FINI): Likewise.
24260 * grub-core/kern/file.c (grub_file_filters_all): New variable.
24261 (grub_file_filters_enabled): Likewise.
24262 (grub_file_open): Handle filters.
24263 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
24264 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
24265 * include/grub/file.h (grub_file_filter_id_t): New type.
24266 (grub_file_filter_t): Likewise.
24267 (grub_file_filters_all): New extern variable.
24268 (grub_file_filters_enabled): Likewise.
24269 (grub_file_filter_register): New inline function.
24270 (grub_file_filter_unregister): Likewise.
24271 (grub_file_filter_disable): Likewise.
24272 (grub_file_filter_disable_compression): Likewise.
24273 * include/grub/gzio.h: Removed.
24274
24275 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24276
24277 Filename expansion support for wildcards in GRUB script.
24278
24279 * tests/grub_script_expansion.in: New test.
24280 * Makefile.util.def: Rule for new test.
24281
24282 * grub-core/commands/wildcard.c: New file, implements filename
24283 expansion support for GRUB script.
24284 * grub-core/Makefile.core.def: Rule update for regexp.mod.
24285 * grub-core/script/argv.c: Cosmetic changes.
24286 * grub-core/script/execute.c (grub_script_arglist_to_argv):
24287 Refactored to perform wildcard expansion on arguments.
24288 * include/grub/script_sh.h (grub_script_wildcard_translator): New
24289 struct.
24290
24291 * tests/util/grub-shell.in: Fix quoting for read input.
24292
24293 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24294
24295 Support for updating environment variables with matched substrings
24296 of regexp.
24297
24298 * tests/grub_cmd_regexp.in: New test.
24299 * Makefile.util.def: Rule for new test.
24300
24301 * grub-core/commands/regexp.c: New option -s to update environment
24302 variables with regexp matches.
24303
24304 2010-09-04 Szymon Janc <szymon@janc.net.pl>
24305
24306 * include/grub/file.h (grub_file): New member not_easly_seekable.
24307 (grub_file_seekable): New inline function.
24308 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
24309 easily seekable.
24310 (grub_gzio_open): Set not_easly_seekable.
24311 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
24312 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
24313
24314 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24315
24316 Support for options to appear multiple times on cmdline.
24317
24318 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
24319 * grub-core/commands/extcmd.c: Support for repeatable option.
24320 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
24321 repeatable option support.
24322
24323 Refactor menuentry into a regular command.
24324
24325 * grub-core/commands/menuentry.c: New file, menuentry command
24326 implementation.
24327 * grub-core/Makefile.core.def: Rule update for normal.mod.
24328 * grub-core/normal/main.c: Moved menuentry creation to
24329 grub-core/commands/menuentry.c.
24330 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
24331 (grub_menu_execute_entry_real): Removed.
24332 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
24333 function.
24334 (grub_script_execute_menuentry): Removed.
24335 * grub-core/script/parser.y (menuentry): Removed.
24336 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
24337 * grub-core/script/yylex.l (menuentry): Removed.
24338 * include/grub/menu.h (grub_menu_init): New prototype.
24339 (grub_menu_fini): New prototype.
24340 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
24341 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
24342 (grub_script_execute_sourcecode): New prototype.
24343
24344 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24345
24346 "return" command for GRUB script functions.
24347
24348 * tests/grub_script_return.in: New test.
24349 * Makefile.util.def: Rules for new test.
24350
24351 * grub-core/script/execute.c (grub_script_return): New function.
24352 * grub-core/script/main.c: Register/unregister return commaond.
24353 * include/grub/script_sh.h (grub_script_return): New prototype.
24354
24355 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24356
24357 "setparams" command to update positional parameters.
24358
24359 * tests/grub_script_setparams.in: New test.
24360 * Makefile.util.def: Rules for new test.
24361
24362 * grub-core/script/argv.c (grub_script_argv_make): New function.
24363 * grub-core/script/execute.c (replace_scope): New function.
24364 (grub_script_setparams): New function.
24365 * grub-core/script/lexer.c: Remove unused variables.
24366 * grub-core/script/main.c: Register/unregister setparams command.
24367 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
24368 (grub_script_setparams): New prototype.
24369
24370 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24371
24372 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
24373 grub_free order.
24374
24375 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24376
24377 Support for passing block of commands as an argument to extcmds.
24378
24379 * Makefile.util.def: Rules for new test.
24380 * tests/grub_script_blockarg.in: New test.
24381 * grub-core/tests/test_blockarg.c: New file, block argument
24382 command used in the test.
24383
24384 * include/grub/extcmd.h (grub_extcmd_context): New struct.
24385 (grub_register_extcmd_prio): New function prototype.
24386 (grub_extcmd_dispatcher): New function prototype.
24387 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
24388 type.
24389 * include/grub/script_sh.h (struct grub_script): New members
24390 `children', `next_siblings' and `refcnt' for block arguments and
24391 reference counting.
24392 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
24393 (grub_script_arg): New member `script' for block argument.
24394 (grub_script_argv): New member `script' for block argument.
24395 (grub_parser_param): New member `scripts' for block argument.
24396 (grub_script_mem_free): New extern function prototype.
24397 (grub_script_ref): New function prototype.
24398 (grub_script_unref): New function prototype.
24399
24400 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
24401 extcmd form to support block arguments.
24402 * grub-core/script/argv.c: Block arguments support.
24403 * grub-core/script/execute.c: Likewise.
24404 * grub-core/script/lexer.c: Likewise.
24405 * grub-core/script/main.c: Likewise.
24406 * grub-core/script/script.c: Likewise.
24407 * grub-core/script/parser.y: Likewise. New `block' and `block0'
24408 non-terminals.
24409
24410 * grub-core/commands/acpi.c: Update extcmd implementations with
24411 grub_extcmd_context_t.
24412 * grub-core/commands/cat.c: Likewise.
24413 * grub-core/commands/echo.c: Likewise.
24414 * grub-core/commands/extcmd.c: Likewise.
24415 * grub-core/commands/hashsum.c: Likewise.
24416 * grub-core/commands/hdparm.c: Likewise.
24417 * grub-core/commands/help.c: Likewise.
24418 * grub-core/commands/hexdump.c: Likewise.
24419 * grub-core/commands/i386/cpuid.c: Likewise.
24420 * grub-core/commands/i386/pc/drivemap.c: Likewise.
24421 * grub-core/commands/i386/pc/halt.c: Likewise.
24422 * grub-core/commands/i386/pc/sendkey.c: Likewise.
24423 * grub-core/commands/iorw.c: Likewise.
24424 * grub-core/commands/keystatus.c: Likewise.
24425 * grub-core/commands/loadenv.c: Likewise.
24426 * grub-core/commands/ls.c: Likewise.
24427 * grub-core/commands/lspci.c: Likewise.
24428 * grub-core/commands/memrw.c: Likewise.
24429 * grub-core/commands/probe.c: Likewise.
24430 * grub-core/commands/search_wrap.c: Likewise.
24431 * grub-core/commands/setpci.c: Likewise.
24432 * grub-core/commands/sleep.c: Likewise.
24433 * grub-core/disk/loopback.c: Likewise.
24434 * grub-core/hello/hello.c: Likewise.
24435 * grub-core/loader/i386/bsd.c: Likewise.
24436 * grub-core/loader/xnu.c: Likewise.
24437 * grub-core/term/gfxterm.c: Likewise.
24438 * grub-core/term/serial.c: Likewise.
24439 * grub-core/tests/lib/functional_test.c: Likewise.
24440
24441 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24442
24443 Multi-line quoted strings support.
24444
24445 * grub-core/script/lexer.c (append_newline): Removed.
24446 (grub_script_lexer_yywrap): Refactored.
24447 (grub_script_lexer_init): Refactored.
24448 * grub-core/script/yylex.l (yywrap): New function.
24449 (grub_lexer_resplit): New function.
24450 (grub_lexer_unput): New function.
24451 * include/grub/script_sh.h (grub_lexer_param): New members, unput
24452 and resplit.
24453 * tests/grub_script_echo1.in: Added few more testcases.
24454
24455 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
24456
24457 * grub-core/kern/misc.c: Don't add abort alias in utils.
24458 Reported by: echoline.
24459
24460 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
24461
24462 Add missing files into "make dist" tarball for other platforms.
24463
24464 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
24465 * conf/Makefile.common (dist_noinst_DATA): New variable.
24466 * conf/Makefile.extra-dist: Added missing make dist files.
24467 * grub-core/Makefile.core.def: Likewise.
24468
24469 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24470
24471 Compress grub_prefix.
24472
24473 * grub-core/boot/i386/pc/lnxboot.S: Use
24474 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
24475 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
24476 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
24477 GRUB_MACHINE_PREFIX_END. All users updated.
24478 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
24479 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
24480 + 0x40.
24481 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
24482 * util/grub-mkimage.c (image_target_desc): Change data_end to
24483 prefix_end. All users updated.
24484
24485 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24486
24487 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
24488 value.
24489 (grub_openbsd_boot): Likewise.
24490 (grub_netbsd_boot): Likewise.
24491 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
24492 (grub_xnu_boot): Likewise.
24493
24494 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24495
24496 * configure.ac: Clean LIBS variable after tests.
24497
24498 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24499
24500 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
24501
24502 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24503
24504 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
24505 echo if libdevmapper will be used.
24506
24507 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
24508
24509 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
24510 constant for the same file.
24511
24512 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24513
24514 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
24515
24516 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24517
24518 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
24519 grub-core/*.pp.
24520
24521 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24522
24523 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
24524 required by the boot protocol.
24525
24526 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
24527 ebp and edi members.
24528 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
24529 state.ebp and state.edi.
24530 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
24531 %ebp and %edi according to grub_relocator32_ebp and
24532 grub_relocator32_edi respectively.
24533 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
24534 and state.edi.
24535
24536 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24537
24538 Add i386-pc-pxe image target.
24539
24540 * util/grub-mkimage.c (image_target_desc): New enum value
24541 IMAGE_I386_PC_PXE.
24542 (image_targets): New target i386-pc-pxe.
24543 (generate_image): Handle i386-pc-pxe image.
24544
24545 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24546
24547 Fix grub_pxe_scan.
24548
24549 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
24550 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
24551 All users updated.
24552 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
24553 (grub_pxe_pxenv): Correct type.
24554
24555 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24556
24557 * NEWS: Document most of the important changes since 1.98.
24558
24559 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24560
24561 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
24562 generated manual page) a little.
24563
24564 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24565
24566 * docs/grub.texi: Add myself as an author.
24567
24568 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
24569
24570 * Makefile.util.def (libgrub.a): Add missing sunpc.
24571 Reported by: Seth Goldberg.
24572
24573 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24574
24575 Interrupt wrapping and code simplifications.
24576
24577 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
24578 x86_noieee1275 which are functionaly equivalent in this case.
24579 (grub-install): Make source on each platform explicit. Enable on
24580 all noemu.
24581 * gentpl.py (x86_efi_pc): Removed group.
24582 (x86_noefi): Likewise.
24583 (i386_noefi): Likewise.
24584 (x86_noieee1275): Likewise.
24585 (i386_noieee1275): Likewise.
24586 (i386_noefi_noieee1275): Likewise.
24587 (i386_pc_qemu_coreboot): Likewise.
24588 (i386_coreboot_multiboot): Likewise.
24589 (i386_pc_coreboot_multiboot_qemu): Likewise.
24590 (x86_noefi_mips): Likewise.
24591 (noieee1275): Likewise.
24592 (ieee1275_mips): Likewise.
24593 (noemu_noieee1275): Likewise.
24594 (cmos): New group.
24595 (usb): Likewise.
24596 (videoinkernel): Likewise.
24597 (videomodules): Likewise.
24598 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
24599 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
24600 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
24601 include/grub/loader.h, include/grub/msdos_partition.h,
24602 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
24603 include/grub/machine/console.h, include/grub/machine/vga.h,
24604 include/grub/machine/vbe.h, include/grub/machine/init.h,
24605 include/grub/machine/kernel.h, include/grub/cpu/time.h,
24606 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
24607 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
24608 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
24609 * grub-core/Makefile.core.def (kernel): Explicit the source for
24610 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
24611 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
24612 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
24613 Use videoinkernel tag.
24614 (usb): Enable on all usb.
24615 (usbserial_common): Likewise.
24616 (usbserial_pl2303): Likewise.
24617 (usbserial_ftdi): Likewise.
24618 (uhci): Enable on all x86.
24619 (ohci): Enable on all pci.
24620 (cmostest): Enable on all CMOS.
24621 (acpi): Include commands/acpi.c on all platforms.
24622 (halt): Add relevant lib/*/halt.c.
24623 (hdparm): Enable on all pci.
24624 (lspci): Likewise.
24625 (usbtest): Enable on all usb.
24626 (ata): Enable on all pci.
24627 (ata_pthru): Likewise.
24628 (usbms): Enable on all usb.
24629 (usb_keyboard): Likewise.
24630 (font): Use tag videomodules.
24631 (bufio): Likewise.
24632 (datetime): Use tag cmos. Enable on all noemu.
24633 (mmap): Use tags common and x86.
24634 (gfxterm): Use tag videomodules.
24635 (bitmap): Likewise.
24636 (bitmap_scale): Likewise.
24637 (video_fb): Likewise.
24638 (video): Likewise.
24639 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
24640 adjust padding accordingly. All users updated.
24641 (grub_ohci_transaction): Fix bad format specification.
24642 (GRUB_MOD_INIT): Add asserts for struct size.
24643 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
24644 (grub_alloc_td): Likewise.
24645 (grub_free_queue): Likewise.
24646 (grub_uhci_transfer): Likewise.
24647 (grub_uhci_transaction): Fix bad format specification.
24648 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
24649 (grub_usb_bulk_readwrite): Likewise.
24650 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
24651 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
24652 Made static.
24653 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
24654 Made static.
24655 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
24656 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
24657 Transformed into C.
24658 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
24659 Moved from here ...
24660 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
24661 ... here. Transformed into C. Made static.
24662 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
24663 Moved from here ...
24664 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
24665 ... here. Transformed into C. Made static.
24666 * grub-core/kern/i386/pc/startup.S
24667 (grub_biosdisk_check_int13_extensions): Moved from here ...
24668 * grub-core/disk/i386/pc/biosdisk.c
24669 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
24670 Made static.
24671 * grub-core/kern/i386/pc/startup.S
24672 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
24673 * grub-core/disk/i386/pc/biosdisk.c
24674 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
24675 Transformed into C. Made static.
24676 * grub-core/kern/i386/pc/startup.S
24677 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
24678 * grub-core/disk/i386/pc/biosdisk.c
24679 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
24680 Transformed into C. Made static.
24681 * grub-core/kern/i386/pc/startup.S
24682 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
24683 * grub-core/disk/i386/pc/biosdisk.c
24684 (grub_biosdisk_get_diskinfo_standard): ... here.
24685 Transformed into C. Made static.
24686 * grub-core/kern/i386/pc/startup.S
24687 (grub_biosdisk_get_num_floppies): Moved from here ...
24688 * grub-core/disk/i386/pc/biosdisk.c
24689 (grub_biosdisk_get_num_floppies): ... here.
24690 Transformed into C. Made static.
24691 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
24692 New function.
24693 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
24694 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
24695 Transformed into C. Made static.
24696 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
24697 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
24698 Transformed into C. Made static.
24699 * grub-core/kern/i386/ieee1275/init.c: Removed.
24700 * grub-core/kern/i386/misc.S: Likewise.
24701 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
24702 Splitted from here ...
24703 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
24704 Transformed into C. Made static. All users updated.
24705 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
24706 Transformed into C. Made static. All users updated.
24707 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
24708 Moved from here...
24709 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
24710 Transformed into C. Made static. All users updated.
24711 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
24712 Moved from here...
24713 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
24714 Transformed into C. Made static. All users updated.
24715 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
24716 Removed (replaced by C version).
24717 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
24718 Moved from here...
24719 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
24720 Transformed into C. Made static.
24721 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
24722 Moved from here...
24723 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
24724 ... here. Transformed into C.
24725 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
24726 Moved from here...
24727 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
24728 ... here. Transformed into C.
24729 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
24730 Moved from here...
24731 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
24732 ... here. Transformed into C. Made static.
24733 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
24734 Moved from here...
24735 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
24736 ... here. Transformed into C.
24737 * grub-core/kern/i386/pc/startup.S
24738 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
24739 * grub-core/video/i386/pc/vbe.c
24740 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
24741 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
24742 Moved from here...
24743 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
24744 ... here. Transformed into C.
24745 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
24746 Moved from here...
24747 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
24748 ... here. Transformed into C.
24749 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
24750 Moved from here...
24751 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
24752 ... here. Transformed into C.
24753 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
24754 Moved from here...
24755 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
24756 ... here. Transformed into C.
24757 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
24758 Moved from here...
24759 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
24760 ... here. Transformed into C. Made static.
24761 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
24762 Moved from here...
24763 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
24764 ... here. Transformed into C. Made static.
24765 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
24766 Moved from here...
24767 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
24768 ... here. Transformed into C. Made static.
24769 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
24770 pxe_rm_entry as third argument.
24771 (grub_bios_interrupt): New function.
24772 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
24773 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
24774 of calling grub_stop.
24775 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
24776 * grub-core/lib/efi/halt.c (grub_halt): ...here.
24777 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
24778 * grub-core/lib/emu/halt.c (grub_halt): ... here.
24779 * grub-core/lib/i386/halt.c: Moved from here ...
24780 * grub-core/lib/i386/halt.c: ... here.
24781 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
24782 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
24783 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
24784 grub_stop_floppy.
24785 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
24786 * include/grub/i386/coreboot/init.h: Removed.
24787 * include/grub/i386/multiboot/init.h: Likewise.
24788 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
24789 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
24790 * include/grub/i386/pc/int.h: New file.
24791 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
24792 (grub_pxe_scan): Removed.
24793 (grub_pxe_call): Update prototype.
24794 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
24795 prototypes.
24796 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
24797 * include/grub/i386/qemu/init.h: Removed.
24798 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
24799 noreturn.
24800 (grub_halt): Likewise.
24801 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
24802 (grub_reboot): Likewise.
24803 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
24804 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
24805 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
24806
24807 2010-08-30 Robert Millan <rmh@gnu.org>
24808
24809 * NEWS: Document addition of ZFS support in `grub-install' and
24810 `grub-mkconfig'.
24811
24812 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
24813
24814 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
24815 dprintf output.
24816
24817 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24818
24819 Remove leftover embedding of font objects.
24820
24821 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
24822 * util/grub-install.in (font): Removed.
24823 * util/grub-mkimage.c (generate_image): Remove font support. All users
24824 updated.
24825
24826 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24827
24828 Remove leftover embedding of font objects.
24829
24830 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
24831 * util/grub-install.in (font): Removed.
24832 * util/grub-mkimage.c (generate_image): Remove font support. All users
24833 updated.
24834
24835 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24836
24837 * docs/grub.texi (Network): Fix reference to pxe_blksize.
24838 Reported by: Ian Turner
24839
24840 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24841
24842 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
24843 timeout to avoid indefinite boot stalling.
24844
24845 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24846
24847 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
24848 (grub_env_write_color_highlight): Likewise.
24849
24850 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24851
24852 * grub-core/normal/term.c (print_more): Return to normal and not
24853 to standard state after printing "---MORE---".
24854
24855 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24856
24857 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
24858 Mask out the bit 0x80 since it has other meaning that specifiing color.
24859
24860 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
24861
24862 New relocator. Allows for more kernel support and more straightforward
24863 loader writing.
24864
24865 * Makefile.am (BOOTTARGET): New variable.
24866 (QEMU32): Likewise.
24867 (linux.init.x86_64): New target.
24868 (linux.init.i386): Likewise.
24869 (multiboot.elf): Likewise.
24870 (kfreebsd.elf): Likewise.
24871 (kfreebsd.aout): Likewise.
24872 (pc-chainloader.elf): Likewise.
24873 (pc-chainloader.bin): Likewise.
24874 (ntldr.elf): Likewise.
24875 (ntldr.bin): Likewise.
24876 (multiboot2.elf): Likewise.
24877 (kfreebsd.init.x86_64): Likewise.
24878 (kfreebsd.init.i386): Likewise.
24879 (knetbsd.init.i386): Likewise.
24880 (kopenbsd.init.i386): Likewise.
24881 (knetbsd.init.x86_64): Likewise.
24882 (kopenbsd.init.x86_64): Likewise.
24883 (linux-initramfs.i386): Likewise.
24884 (linux-initramfs.x86_64): Likewise.
24885 (kfreebsd-mfsroot.i386.img): Likewise.
24886 (knetbsd.image.i386): Likewise.
24887 (kopenbsd.image.i386): Likewise.
24888 (kopenbsd.image.x86_64): Likewise.
24889 (knetbsd.miniroot-image.i386.img): Likewise.
24890 (kfreebsd-mfsroot.x86_64.img): Likewise.
24891 (knetbsd.image.x86_64): Likewise.
24892 (knetbsd.miniroot-image.x86_64.img): Likewise.
24893 (kfreebsd-mfsroot.i386.gz): Likewise.
24894 (bootcheck-kfreebsd-i386): Likewise.
24895 (kfreebsd-mfsroot.x86_64.gz): Likewise.
24896 (bootcheck-kfreebsd-x86_64): Likewise.
24897 (knetbsd.miniroot-image.i386.gz): Likewise.
24898 (bootcheck-knetbsd-i386): Likewise.
24899 (bootcheck-kopenbsd-i386): Likewise.
24900 (bootcheck-kopenbsd-x86_64): Likewise.
24901 (knetbsd.miniroot-image.x86_64.gz): Likewise.
24902 (bootcheck-knetbsd-x86_64): Likewise.
24903 (bootcheck-linux-i386): Likewise.
24904 (bootcheck-linux-x86_64): Likewise.
24905 (bootcheck-linux16-i386): Likewise.
24906 (bootcheck-linux16-x86_64): Likewise.
24907 (bootcheck-multiboot): Likewise.
24908 (bootcheck-multiboot2): Likewise.
24909 (bootcheck-kfreebsd-aout): Likewise.
24910 (bootcheck-pc-chainloader): Likewise.
24911 (bootcheck-ntldr): Likewise.
24912 (CLEANFILES): Add new targets.
24913 (BOOTCHECKS): New variable.
24914 (.PHONY): Add bootchecks.
24915 (SUCCESSFUL_BOOT_STRING): New variable.
24916 (BOOTCHECK_TIMEOUT): Likewise.
24917 (bootcheck): New target
24918 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
24919 * configure.ac: Correct efiemu excuse.
24920 * docs/grub.texi (Supported kernels): New chapter.
24921 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
24922 include/grub/mm_private.h. Simplify inclusion of
24923 include/grub/boot.h, include/grub/loader.h
24924 and include/grub/msdos_partition.h
24925 (KERNEL_HEADER_FILES) [i386_coreboot]:
24926 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
24927 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
24928 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
24929 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
24930 include/grub/machine/loader.h.
24931 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
24932 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
24933 extra_dist.
24934 (pci.mod): Enable on i386-multiboot.
24935 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
24936 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
24937 i386-qemu.
24938 (relocator.mod): Rewritten.
24939 (aout.mod): Enable on all x86.
24940 (bsd.mod): Likewise.
24941 (ntldr.mod): New module.
24942 (linux.mod): Use loader/i386/linux.c on all x86.
24943 (xnu.mod): Enable on all x86.
24944 (vga_text.mod): disable on EFI and QEMU.
24945 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
24946 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
24947 * grub-core/efiemu/loadcore.c: Likewise.
24948 * grub-core/efiemu/main.c: Likewise.
24949 (grub_efiemu_exit_boot_services): Removed.
24950 (grub_efiemu_finish_boot_services): Likewise.
24951 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
24952 function.
24953 * grub-core/efiemu/i386/nocfgtables.c: New file.
24954 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
24955 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
24956 (grub_efi_finish_boot_services): Moved from here ...
24957 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
24958 Fille finish memory map and related data.
24959 (finish_mmap_buf): New variable.
24960 (grub_efi_uintn_t finish_mmap_size): Likewise.
24961 (grub_efi_uintn_t finish_key): Likewise.
24962 (grub_efi_uintn_t finish_desc_size): Likewise.
24963 (grub_efi_uint32_t finish_desc_version): Likewise.
24964 (grub_efi_is_finished): Likewise.
24965 (grub_efi_get_memory_map): Use saved memory map if EFI is already
24966 finished.
24967 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
24968 (grub_elf64_phdr_iterate): Likewise.
24969 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
24970 (grub_os_area_size): Likewise.
24971 (grub_machine_init): Don't reserve os area.
24972 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
24973 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
24974 * grub-core/kern/i386/loader.S: Removed.
24975 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
24976 (grub_os_area_size): Likewise.
24977 (grub_machine_init): Don't reserve os area.
24978 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
24979 Don't call grub_dl_unload_all.
24980 Don't include loader.S.
24981 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
24982 Declare the memory after _end as available.
24983 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
24984 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
24985 (GRUB_MM_ALLOC_MAGIC): Moved from here...
24986 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
24987 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
24988 * include/grub/mm_private.h (grub_mm_header): ... here.
24989 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
24990 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
24991 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
24992 (grub_mm_region): ..here. Removed addr. Added pre_size.
24993 All users updated.
24994 * grub-core/kern/mm.c (base): Renamed to ...
24995 (grub_mm_base): ... this. Made global.
24996 (grub_real_malloc): Alloc from end of region.
24997 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
24998 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
24999 * grub-core/kern/powerpc/cache_flush.S: ... here.
25000 * grub-core/lib/efi/relocator.c: New file.
25001 * grub-core/lib/i386/relocator.c: Rewritten.
25002 * grub-core/lib/i386/relocator16.S: New file.
25003 * grub-core/lib/i386/relocator32.S: Likewise.
25004 * grub-core/lib/i386/relocator64.S: Likewise.
25005 * grub-core/lib/i386/relocator_asm.S: Rewritten.
25006 * grub-core/lib/i386/relocator_common.S: New file.
25007 * grub-core/lib/ieee1275/relocator.c: Likewise.
25008 * grub-core/lib/mips/relocator.c: Rewritten.
25009 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
25010 stylistic adjustments.
25011 * grub-core/lib/powerpc/relocator.c: New file.
25012 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
25013 * grub-core/lib/relocator.c: Rewritten.
25014 * grub-core/lib/x86_64/relocator_asm.S: New file.
25015 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
25016 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
25017 (bsd_tag): New struct.
25018 (tags): New variable.
25019 (tags_last): Likewise.
25020 (netbsd_module): New struct.
25021 (netbsd_mods): New variable.
25022 (netbsd_mods_last): Likewise.
25023 (openbsd_opts): New parameter "serial".
25024 (OPENBSD_SERIAL_ARG): New definition.
25025 (netbsd_opts): New parameter "serial".
25026 (NETBSD_SERIAL_ARG): New definition.
25027 (grub_freebsd_add_meta): Reorganised into ...
25028 (grub_bsd_add_meta): ...this. All users updated.
25029 (grub_freebsd_add_mmap): Reorganised into ...
25030 (generate_e820_mmap): ...this...
25031 (grub_bsd_add_mmap): ...and this. All users updated.
25032 (grub_freebsd_list_modules): Use tags.
25033 (grub_netbsd_add_meta_module): New function.
25034 (grub_netbsd_list_modules): Likewise.
25035 (grub_freebsd_boot): Use relocator and finish EFI.
25036 (grub_openbsd_boot): Likewise.
25037 (grub_netbsd_setup_video): New function.
25038 (grub_netbsd_add_modules): Likewise.
25039 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
25040 and finish EFI.
25041 (grub_bsd_unload): Unload tags.
25042 (grub_bsd_load_aout): Use relocator.
25043 (grub_bsd_elf32_size_hook): New function.
25044 (grub_bsd_elf32_hook): Use relocator.
25045 (grub_bsd_elf64_size_hook): New function.
25046 (grub_bsd_elf64_hook): Use relocator.
25047 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
25048 (grub_bsd_load): Zero-out openbsd_ramdisk.
25049 (grub_bsd_load): Use relocator.
25050 (grub_cmd_openbsd): Support serial.
25051 (grub_cmd_netbsd): Support modules.
25052 (grub_cmd_freebsd_module): Use relocator.
25053 (grub_netbsd_module_load): New function.
25054 (grub_cmd_netbsd_module): Likewise.
25055 (grub_cmd_openbsd_ramdisk): Likewise.
25056 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
25057 kopenbsd_ramdisk.
25058 (GRUB_MOD_FINI): Unregister new commands.
25059 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
25060 (grub_freebsd_load_elfmodule_obj): Use relocator.
25061 (grub_freebsd_load_elfmodule): Likewise.
25062 (grub_freebsd_load_elf_meta): Likewise.
25063 (grub_netbsd_load_elf_meta): New function.
25064 (grub_openbsd_find_ramdisk): Likewise.
25065 * grub-core/loader/i386/bsd_helper.S: Removed.
25066 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
25067 * grub-core/loader/i386/bsd_trampoline.S: Removed.
25068 * grub-core/loader/i386/efi/linux.c: Likewise.
25069 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
25070 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
25071 (DEFAULT_VIDEO_MODE): Likewise.
25072 (real_mode_target): New variable.
25073 (prot_mode_target): Likewise.
25074 (initrd_mem_target): Likewise.
25075 (relocator): Likewise.
25076 (efi_mmap_buf): Likewise.
25077 (efi_mmap_size): Likewise.
25078 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
25079 (free_pages): Use relocator.
25080 (allocate_pages): Account for efi_mmap and use relocator. Return error.
25081 (grub_linux_setup_video): Return error.
25082 (grub_linux_trampoline_start): Removed.
25083 (grub_linux_trampoline_end): Likewise.
25084 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
25085 andd video parameters depending on firmware.
25086 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
25087 [GRUB_MACHINE_EFI]: Pass EFI parameters.
25088 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
25089 (grub_cmd_initrd): Use relocator.
25090 * grub-core/loader/i386/linux_trampoline.S: Removed.
25091 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
25092 (elf_sec_entsize): Likewise.
25093 (elf_sec_shstrndx): Likewise.
25094 (elf_sections): Likewise.
25095 (grub_multiboot_load): Use relocator.
25096 (grub_multiboot_get_mbi_size): Account for sections.
25097 (grub_multiboot_make_mbi): Use relocator and support sections.
25098 (grub_multiboot_add_elfsyms): New function.
25099 (grub_multiboot_free_mbi): Free sections.
25100 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
25101 (grub_linux_real_target): Likewise.
25102 (grub_linux_real_chunk): Likewise.
25103 (grub_linux16_prot_size): Likewise.
25104 (grub_linux16_boot): Use relocator.
25105 (grub_linux_unload): Unload relocator.
25106 (grub_cmd_linux): Use relocator.
25107 (grub_cmd_initrd): Likewise.
25108 * grub-core/loader/i386/pc/ntldr.c: New file.
25109 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
25110 Don't try to guess CPU frequency.
25111 (grub_xnu_set_video): Stretch bitmap.
25112 (grub_xnu_boot): Use relocator.
25113 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
25114 (grub_linux_unload): Free relocator.
25115 (grub_linux_load32): Use relocator.
25116 (grub_linux_load64): Likewise.
25117 (grub_cmd_initrd): Likewise.
25118 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
25119 (grub_multiboot_unload): Unload relocator.
25120 (grub_cmd_multiboot): Use relocator.
25121 (grub_cmd_module): Likewise.
25122 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
25123 Use relocator and support sections.
25124 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
25125 (elf_sec_entsize): Likewise.
25126 (elf_sec_shstrndx): Likewise.
25127 (elf_sections): Likewise.
25128 (grub_multiboot_load): Use relocator.
25129 (grub_multiboot_get_mbi_size): Account for sections.
25130 (grub_multiboot_make_mbi): Use relocator and support sections.
25131 (grub_multiboot_add_elfsyms): New function.
25132 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
25133 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
25134 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
25135 Prototype changed. All users updated.
25136 (grub_xnu_align_heap): Simplified.
25137 (grub_xnu_writetree_toheap): Likewise.
25138 (grub_xnu_unload): Unload relocator.
25139 (grub_cmd_xnu_kernel): Use relocator.
25140 (grub_cmd_xnu_kernel64): Likewise.
25141 (grub_xnu_register_memory): Simplified.
25142 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
25143 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
25144 EFI is finished.
25145 (grub_console_checkkey): Likewise.
25146 (grub_console_getkey): Likewise.
25147 (grub_console_getwh): Likewise.
25148 (grub_console_getxy): Likewise.
25149 (grub_console_gotoxy): Likewise.
25150 (grub_console_cls): Likewise.
25151 (grub_console_setcolorstate): Likewise.
25152 (grub_console_setcursor): Likewise.
25153 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
25154 * grub-core/tests/boot/kbsd.init-i386.S: New file.
25155 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
25156 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
25157 * grub-core/tests/boot/kernel-8086.S: Likewise.
25158 * grub-core/tests/boot/kernel-i386.S: Likewise.
25159 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
25160 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
25161 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
25162 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
25163 * grub-core/tests/boot/knetbsd.cfg: Likewise.
25164 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
25165 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
25166 * grub-core/tests/boot/linux.cfg: Likewise.
25167 * grub-core/tests/boot/linux.init-i386.S: Likewise.
25168 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
25169 * grub-core/tests/boot/linux16.cfg: Likewise.
25170 * grub-core/tests/boot/multiboot.cfg: Likewise.
25171 * grub-core/tests/boot/multiboot2.cfg: Likewise.
25172 * grub-core/tests/boot/ntldr.cfg: Likewise.
25173 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
25174 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
25175 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
25176 New definition.
25177 * include/grub/dl.h (grub_dl_unload_all): Removed.
25178 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
25179 (grub_efi_finish_boot_services): Change prototype.
25180 (grub_efi_is_finished): New variable.
25181 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
25182 Changed prototype.
25183 (grub_efiemu_finish_boot_services): Removed.
25184 (grub_machine_efiemu_init_tables): New prototype.
25185 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
25186 (grub_elf64_phdr_iterate): Likewise.
25187 * include/grub/i386/bsd.h: Include relocator.h.
25188 (freebsd_tag_header): New struct.
25189 (grub_openbsd_bios_mmap): Removed.
25190 (grub_unix_real_boot): Removed.
25191 (grub_freebsd_load_elfmodule32): Changed prototype.
25192 (grub_freebsd_load_elfmodule_obj64): Likewise.
25193 (grub_freebsd_load_elf_meta32): Likewise.
25194 (grub_freebsd_load_elf_meta64): Likewise.
25195 (grub_freebsd_add_meta): Removed.
25196 (grub_netbsd_load_elf_meta32): New prototype.
25197 (grub_netbsd_load_elf_meta64): Likewise.
25198 (grub_bsd_add_meta): Likewise.
25199 (grub_openbsd_ramdisk_descriptor): New struct.
25200 (grub_openbsd_find_ramdisk32): New prototype.
25201 (grub_openbsd_find_ramdisk64): Likewise.
25202 * include/grub/i386/coreboot/loader.h: Removed.
25203 * include/grub/i386/efi/loader.h: Likewise.
25204 * include/grub/i386/ieee1275/loader.h: Likewise.
25205 * include/grub/i386/linux.h (linux_kernel_header): Change void *
25206 to grub_uint32_t.
25207 * include/grub/i386/loader.h: Removed.
25208 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
25209 value.
25210 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
25211 (grub_phys_addr_t): New type.
25212 (grub_vtop): New inline function.
25213 (grub_map_memory): Likewise.
25214 (grub_unmap_memory): Likewise.
25215 * include/grub/i386/multiboot/loader.h: Removed.
25216 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
25217 (NETBSD_BTINFO_CONSOLE): New definition.
25218 (NETBSD_BTINFO_SYMTAB): Likewise.
25219 (NETBSD_BTINFO_MODULES): Likewise.
25220 (NETBSD_BTINFO_FRAMEBUF): Likewise.
25221 (grub_netbsd_bootinfo): New struct.
25222 (grub_netbsd_btinfo_common): Use explicit bitsize.
25223 (grub_netbsd_btinfo_mmap_entry): Removed.
25224 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
25225 (grub_netbsd_btinfo_bootdisk): New struct.
25226 (grub_netbsd_btinfo_symtab): Likewise.
25227 (grub_netbsd_btinfo_serial): Likewise.
25228 (grub_netbsd_btinfo_modules): Likewise.
25229 (grub_netbsd_btinfo_framebuf): Likewise.
25230 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
25231 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
25232 Likewise.
25233 (grub_openbsd_bootargs): Use explicit bitsize.
25234 (grub_openbsd_bootarg_console): New struct.
25235 (GRUB_OPENBSD_COM_MAJOR): New definition.
25236 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
25237 * include/grub/i386/pc/efiemu.h: Removed.
25238 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
25239 * include/grub/i386/qemu/loader.h: Removed.
25240 * include/grub/i386/relocator.h: Rewritten.
25241 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
25242 * include/grub/mips/memory.h: New file.
25243 * include/grub/mips/multiboot.h: Rewritten.
25244 * include/grub/mips/relocator.h: Rewritten.
25245 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
25246 (grub_vtop): New function.
25247 (grub_map_memory): Likewise.
25248 (grub_unmap_memory): Likewise.
25249 * include/grub/misc.h (ALIGN_DOWN): New definition.
25250 * include/grub/mm.h (grub_mm_check_real): New proto.
25251 (GRUB_MM_CHECK): New definition.
25252 * include/grub/mm_private.h: New file.
25253 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
25254 (grub_multiboot_get_mbi_size): Removed.
25255 (grub_multiboot_make_mbi): Change prottype.
25256 (grub_multiboot_set_accepts_video): New proto.
25257 (grub_multiboot_add_elfsyms): Likewise.
25258 (grub_multiboot_payload_eip): New variable.
25259 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
25260 New prototype.
25261 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
25262 New definition.
25263 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
25264 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
25265 * include/grub/powerpc/ieee1275/loader.h: Removed.
25266 * include/grub/powerpc/memory.h: New file.
25267 * include/grub/powerpc/relocator.h: Likewise.
25268 * include/grub/relocator.h: Likewise.
25269 * include/grub/relocator_private.h: Likewise.
25270 * include/grub/sparc64/ieee1275/loader.h: Removed.
25271 * include/grub/x86_64/memory.h: New file.
25272 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
25273 (grub_xnu_heap_malloc): Likewise.
25274 (grub_xnu_heap_real_start): Removed.
25275 (grub_xnu_heap_start): Likewise.
25276 (grub_xnu_relocator): New variable.
25277 (grub_xnu_heap_target_start): Likewise.
25278 * tests/util/grub-shell.in: Support non-pc.
25279 * util/grub-mkimage.c (image_targets): Fix multiboot target.
25280
25281 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25282
25283 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
25284 on malloc error.
25285 (grub_bidi_logical_to_visual): Check that malloc succeded.
25286 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
25287 puts.
25288 (grub_xputs_normal): Likewise.
25289
25290 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25291
25292 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
25293 extra_dist.
25294
25295 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25296
25297 * grub-core/efiemu/runtime/efiemu.sh: Removed.
25298
25299 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25300
25301 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
25302
25303 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25304
25305 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
25306 dprintf.
25307
25308 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
25309
25310 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
25311
25312 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25313
25314 * grub-core/normal/term.c (print_more): Fix a memory leak.
25315 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
25316 (grub_xputs_normal): Likewise.
25317
25318 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25319
25320 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
25321 the begining of the string
25322
25323 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25324
25325 * grub-core/script/script.c (grub_script_parse): Free parsed on
25326 failure.
25327
25328 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25329
25330 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
25331 on failure.
25332
25333 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25334
25335 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
25336 return.
25337
25338 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25339
25340 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
25341 (scroll_up): Fix a memory leak.
25342
25343 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25344
25345 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
25346 errors.
25347
25348 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
25349
25350 Handle USB pendrives exposed as floppies.
25351
25352 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
25353 floppy.
25354 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
25355 Check for partitions on all devices.
25356
25357 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
25358
25359 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
25360 (readkey): Likewise.
25361
25362 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
25363
25364 Multiple variable names support to "export" command.
25365
25366 * normal/context.c (grub_cmd_export): "export" command supports
25367 multiple variable names.
25368
25369 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
25370
25371 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
25372 --target=drive output to Mach device name.
25373
25374 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25375
25376 New Automake based build system for GRUB.
25377
25378 * ABOUT-NLS: New file.
25379 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
25380 in Makefile.util.def file.
25381 * Makefile.util.def: New file. Autogen build definitions file for
25382 GRUB host utils.
25383 * conf/Makefile.common: New file. Common variables for GRUB host
25384 utils and target modules.
25385 * conf/Makefile.extra-dist: New file. Extra files for make dist.
25386 * docs/Makefile.am: New file. Automake file for docs.
25387 * gentpl.py: New file. Python script to generate Autogen
25388 template.
25389 * grub-core/Makefile.am: New file. GRUB target modules' rules
25390 that doesn't fit in Makefile.core.def file.
25391 * grub-core/Makefile.core.def: New file. Autogen build
25392 definitions file for GRUB target modules.
25393 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
25394 specific setjmp.S file.
25395 * po/Makefile.am: New file.
25396
25397 * .bzrignore: New ignores.
25398 * INSTALL: New requirements, without Ruby.
25399 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
25400 * autogen.sh: Updated to invoke autogen as necessary.
25401 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
25402 and defines for Automake conditionals.
25403 * geninit.sh: Refactoring.
25404
25405 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
25406 necessary.
25407 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
25408 New prototype.
25409
25410 * include/grub/test.h: Fix functional test modules' naming.
25411 * grub-core/tests/example_functional_test.c: Fix test module name.
25412
25413 * util/misc.c: Hosted versions' of grub functions for libgrub.a
25414 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
25415 * util/grub-editenv.c: Likewise.
25416 * util/grub-fstest.c: Likewise.
25417 * util/grub-mkdevicemap.c: Likewise.
25418 * util/grub-mkfont.c: Likewise.
25419 * util/grub-mkimage.c: Likewise.
25420 * util/grub-mkpasswd-pbkdf2.c: Likewise.
25421 * util/grub-probe.c: Likewise.
25422 * util/grub-script-check.c: Likewise.
25423 * util/i386/pc/grub-setup.c: Likewise.
25424 * util/sparc64/ieee1275/grub-setup.c: Likewise.
25425
25426 * tests/util/grub-shell.in: Fix override directory path.
25427 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
25428 * util/import_gcry.py: Create Makefile.gcry.def file instead.
25429
25430 * util/lvm.c: Update #includes.
25431 * util/raid.c: Likewise.
25432 * util/resolve.c: Likewise.
25433 * grub-core/bus/emu/pci.c: Likewise.
25434 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
25435 * grub-core/lib/posix_wrap/string.h: Likewise.
25436 * grub-core/kern/emu/main.c: Likewise.
25437
25438 * grub-core/gensymlist.sh: New file. Script for generating kernel
25439 symbols file.
25440 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
25441
25442 * grub-core/gentrigtables.c: Fix unused variable warnings.
25443
25444 * Makefile.in: Removed.
25445 * conf/any-emu.rmk: Removed.
25446 * conf/common.rmk: Removed.
25447 * conf/i386-coreboot.rmk: Removed.
25448 * conf/i386-efi.rmk: Removed.
25449 * conf/i386-ieee1275.rmk: Removed.
25450 * conf/i386-multiboot.rmk: Removed.
25451 * conf/i386-pc.rmk: Removed.
25452 * conf/i386-qemu.rmk: Removed.
25453 * conf/i386.rmk: Removed.
25454 * conf/mips-yeeloong.rmk: Removed.
25455 * conf/mips.rmk: Removed.
25456 * conf/powerpc-ieee1275.rmk: Removed.
25457 * conf/sparc64-ieee1275.rmk: Removed.
25458 * conf/tests.rmk: Removed.
25459 * conf/x86-efi.rmk: Removed.
25460 * conf/x86_64-efi.rmk: Removed.
25461 * gendistlist.sh: Removed.
25462 * geninitheader.sh: Removed.
25463 * genkernsyms.sh.in: Removed.
25464 * genmk.rb: Removed.
25465 * gensymlist.sh.in: Removed.
25466 * mkinstalldirs: Removed.
25467 * boot: Moved ...
25468 * grub-core/boot: ... to here.
25469 * bus: Moved ...
25470 * grub-core/bus: ... to here.
25471 * commands: Moved ...
25472 * grub-core/commands: ... to here.
25473 * disk: Moved ...
25474 * grub-core/disk: ... to here.
25475 * efiemu: Moved ...
25476 * grub-core/efiemu: ... to here.
25477 * font: Moved ...
25478 * grub-core/font: ... to here.
25479 * fs: Moved ...
25480 * grub-core/fs: ... to here.
25481 * gencmdlist.sh: Moved ...
25482 * grub-core/gencmdlist.sh: ... to here.
25483 * genemuinit.sh: Moved ...
25484 * grub-core/genemuinit.sh: ... to here.
25485 * genemuinitheader.sh: Moved ...
25486 * grub-core/genemuinitheader.sh: ... to here.
25487 * genfslist.sh: Moved ...
25488 * grub-core/genfslist.sh: ... to here.
25489 * genhandlerlist.sh: Moved ...
25490 * grub-core/genhandlerlist.sh: ... to here.
25491 * genmoddep.awk: Moved ...
25492 * grub-core/genmoddep.awk: ... to here.
25493 * genmodsrc.sh: Moved ...
25494 * grub-core/genmodsrc.sh: ... to here.
25495 * genpartmaplist.sh: Moved ...
25496 * grub-core/genpartmaplist.sh: ... to here.
25497 * genparttoollist.sh: Moved ...
25498 * grub-core/genparttoollist.sh: ... to here.
25499 * genterminallist.sh: Moved ...
25500 * grub-core/genterminallist.sh: ... to here.
25501 * gentrigtables.c: Moved ...
25502 * grub-core/gentrigtables.c: ... to here.
25503 * genvideolist.sh: Moved ...
25504 * grub-core/genvideolist.sh: ... to here.
25505 * gettext: Moved ...
25506 * grub-core/gettext: ... to here.
25507 * gfxmenu: Moved ...
25508 * grub-core/gfxmenu: ... to here.
25509 * gnulib: Moved ...
25510 * grub-core/gnulib: ... to here.
25511 * hello: Moved ...
25512 * grub-core/hello: ... to here.
25513 * hook: Moved ...
25514 * grub-core/hook: ... to here.
25515 * io: Moved ...
25516 * grub-core/io: ... to here.
25517 * kern: Moved ...
25518 * grub-core/kern: ... to here.
25519 * lib: Moved ...
25520 * grub-core/lib: ... to here.
25521 * loader: Moved ...
25522 * grub-core/loader: ... to here.
25523 * mmap: Moved ...
25524 * grub-core/mmap: ... to here.
25525 * normal: Moved ...
25526 * grub-core/normal: ... to here.
25527 * partmap: Moved ...
25528 * grub-core/partmap: ... to here.
25529 * parttool: Moved ...
25530 * grub-core/parttool: ... to here.
25531 * script: Moved ...
25532 * grub-core/script: ... to here.
25533 * term: Moved ...
25534 * grub-core/term: ... to here
25535 * tests/example_functional_test.c: Moved ...
25536 * grub-core/tests/example_functional_test.c: ... to here.
25537 * tests/lib/functional_test.c: Moved ...
25538 * grub-core/tests/lib/functional_test.c: ... to here.
25539 * tests/lib/test.c: Moved ...
25540 * grub-core/tests/lib/test.c: ... to here.
25541 * video: Moved ...
25542 * grub-core/video: ... to here.
25543
25544 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25545
25546 Replace --enable-grub-emu-modules with grub-emu-lite.
25547
25548 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
25549 cache.S.
25550
25551 * include/grub/emu/misc.h (grub_emu_init): New prototype.
25552 * kern/emu/full.c: New file. For grub-emu specific initialization.
25553 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
25554 * kern/emu/main.c: Call initialization function grub_emu_init.
25555
25556 * Makefile.in: Include grub-emu-lite in install.
25557 * commands/parttool.c: Use grub_no_autoload to differentiate
25558 between grub-emu and grub-emu-lite.
25559 * include/grub/misc.h: New variable grub_no_autoload.
25560
25561 * conf/any-emu.rmk: New rules for grub-emu-lite.
25562 * configure.ac: Remove --enable-grub-emu-modules.
25563 * genmk.rb: Cleanup unnecessary rules.
25564 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
25565
25566 * normal/main.c: Don't load list files on grub-emu-lite.
25567 * util/misc.c (grub_arch_sync_caches): Removed.
25568
25569 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
25570
25571 * kern/mips/startup.S (grub_prefix): Update comment to refer to
25572 grub-mkimage rather than grub-mkelfimage.
25573 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
25574
25575 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
25576
25577 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
25578 a key after CapsLock or NumLock. It's just a qemu bug.
25579
25580 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25581
25582 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
25583 needed by libusb wrapper.
25584
25585 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
25586
25587 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
25588
25589 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25590
25591 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
25592 --nounzip is passed.
25593
25594 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
25595
25596 USB hotunplugging and USB serial support.
25597
25598 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
25599 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
25600 (grub_uhci_transfer): Respect timeout and set *actual.
25601 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
25602 non-standard length.
25603 (grub_usb_device_attach): Autoload modules.
25604 (GRUB_MOD_INIT): Set grub_term_poll_usb.
25605 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
25606 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
25607 users updated.
25608 (grub_usb_add_hub): Fill nports and children.
25609 (attach_root_port): Receive hub instead of controller.
25610 All users updated. Fill hub->devices.
25611 (grub_usb_root_hub): Allocate hub->devices.
25612 (detach_device): New function.
25613 (poll_nonroot_hub): Fill children and detach devices.
25614 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
25615 actual arguments. All users updated.
25616 (grub_usb_bulk_read_extended): New function.
25617 * bus/usb/serial/common.c: New file.
25618 * bus/usb/serial/ftdi.c: Likewise.
25619 * bus/usb/serial/pl2303.c: Likewise.
25620 * commands/terminal.c (handle_command): Support wildcard.
25621 * commands/usbtest.c: Output "Unknown" instead of empty string.
25622 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
25623 (usbserial_common_mod_SOURCES): New variable.
25624 (usbserial_common_mod_CFLAGS): Likewise.
25625 (usbserial_common_mod_LDFLAGS): Likewise.
25626 (pkglib_MODULES): Add usbserial_pl2303.mod.
25627 (usbserial_pl2303_mod_SOURCES): New variable.
25628 (usbserial_pl2303_mod_CFLAGS): Likewise.
25629 (usbserial_pl2303_mod_LDFLAGS): Likewise.
25630 (pkglib_MODULES): Add usbserial_ftdi.mod.
25631 (usbserial_ftdi_mod_SOURCES): New variable.
25632 (usbserial_ftdi_mod_CFLAGS): Likewise.
25633 (usbserial_ftdi_mod_LDFLAGS): Likewise.
25634 (pkglib_MODULES): Add serial.mod.
25635 (serial_mod_SOURCES): New variable.
25636 (serial_mod_CFLAGS): Likewise.
25637 (serial_mod_LDFLAGS): Likewise.
25638 * conf/i386-pc.rmk: Likewise.
25639 * conf/mips-yeeloong.rmk: Likewise.
25640 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
25641 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
25642 * disk/usbms.c (first_available_slot): New variable.
25643 (grub_usbms_attach): Don't reuse free slots due to potential cache
25644 problems.
25645 * include/grub/serial.h: Moved to ..
25646 * include/grub/ns8250.h: ...this.
25647 * include/grub/serial.h: New file.
25648 * include/grub/term.h (grub_term_poll_usb): New variable.
25649 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
25650 readkey. All users updated.
25651 (grub_terminfo_output_state): Pass term to put.
25652 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
25653 (grub_usb_controller_dev): Add timeout and actual arguments to
25654 transfer. All users updated.
25655 (grub_usb_interface): New field detach_data.
25656 (grub_usb_device): New fields children and nports.
25657 (grub_usb_ep_type_t): New type.
25658 (grub_usb_get_ep_type): New function.
25659 (grub_usb_bulk_read_extended): Likewise.
25660 * include/grub/usbdesc.h (grub_usb_desc): New type.
25661 * include/grub/usbserial.h: New file.
25662 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
25663 * kern/term.c (grub_term_poll_usb): New variable.
25664 (grub_getkey): Call grub_term_poll_usb if set.
25665 (grub_checkkey): Likewise.
25666 (grub_getkeystatus): Likewise.
25667 * term/serial.c: Moved controller-specific parts to ...
25668 * term/ns8250.c: ... here.
25669 * term/serial.c: Mostly rewritten.
25670 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
25671 according to spec.
25672
25673 2010-08-20 Robert Millan <rmh@gnu.org>
25674
25675 Make kFreeBSD code more generic to support ext2fs as root, ufs as
25676 a separate module and maybe other interesting combinations.
25677
25678 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
25679 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
25680 (kfreebsd_entry): Add generic filesystem module load routine.
25681 Map GRUB `ext2' to kFreeBSD `ext2fs'.
25682
25683 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25684
25685 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
25686 "numcenter" (I misunderstood the purpose of this entry).
25687 * docs/grub.texi (sendkey): Likewise.
25688
25689 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25690
25691 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
25692 status flag options; simply omitting the option is equivalent and
25693 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
25694 (keysym_table): Rename "num5numlock" to "numlock".
25695 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
25696 can uniformly say that only the last of multiple `sendkey'
25697 invocations has any effect.
25698 * docs/grub.texi (sendkey): New section.
25699
25700 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
25701
25702 * commands/i386/pc/sendkey.c (options): Fix three typos.
25703
25704 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
25705
25706 Implement sendkey support.
25707
25708 * commands/i386/pc/sendkey.c: New file.
25709 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
25710 (sendkey_mod_SOURCES): New variable.
25711 (sendkey_mod_CFLAGS): Likewise.
25712 (sendkey_mod_LDFLAGS): Likewise.
25713
25714 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25715
25716 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
25717 fix warnings from Autoconf.
25718
25719 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25720
25721 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
25722 to avoid false positives with some assemblers that output things
25723 like "someprefix_func" as part of their output.
25724
25725 2010-08-15 Robert Millan <rmh@gnu.org>
25726
25727 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
25728 errors.
25729 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
25730 grub_get_libzfs_handle() errors.
25731
25732 2010-08-14 Robert Millan <rmh@gnu.org>
25733
25734 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
25735 filesystem is not ZFS.
25736
25737 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25738
25739 Fix for misspelled color names defaulting to black/black (bug
25740 reported by Doug Nazar)
25741
25742 * include/grub/normal.h (grub_parse_color_name_pair): Add return
25743 status to prototype.
25744 * normal/color.c (grub_parse_color_name_pair): Return failure
25745 status.
25746 (grub_env_write_color_normal): Ignore bad color names.
25747 (grub_env_write_color_highlight): Likewise.
25748 * normal/main.c (GRUB_MOD_INIT): Set default color names.
25749
25750 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25751
25752 "shift" command support to GRUB script.
25753
25754 * include/grub/script_sh.h (grub_script_shift): New prototype.
25755 * script/execute.c (grub_script_shift): New function.
25756 * script/main.c (grub_script_init): Register shift command.
25757 (grub_script_fini): Unregister shift command.
25758 * util/grub-script-check.c (grub_script_cmd_shift): New function.
25759
25760 * tests/grub_script_shift.in: New testcase.
25761 * conf/tests.rmk: Rules for new testcase.
25762
25763 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25764
25765 "continue" command support to GRUB script.
25766
25767 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
25768 (grub_script_break): Continue support.
25769 * script/main.c (grub_script_init): Register continue command.
25770 (grub_script_fini): Unregister continue command.
25771
25772 * tests/grub_script_continue.in: New testcase.
25773 * conf/tests.rmk: Rules for new testcase.
25774
25775 2010-08-12 BVK Chaitanya <bvk@dbook>
25776
25777 "break" command support to GRUB script.
25778
25779 * conf/common.rmk: Rule updates to grub-script-check.
25780 * include/grub/misc.h (grub_min): New function.
25781 * include/grub/script_sh.h (grub_script_init): New prototype.
25782 (grub_script_fini): New prototype.
25783 (grub_script_break): New prototype.
25784 * script/main.c (grub_script_init): New function.
25785 (grub_script_fini): New function.
25786 * script/execute.c (grub_script_break): New function.
25787 * normal/main.c: Calls to grub_script_{init,fini}.
25788 * util/grub-script-check.c (grub_script_break): New function.
25789
25790 * tests/grub_script_break.in: New testcase.
25791 * conf/tests.rmk: Rules for new test case.
25792
25793 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25794
25795 Function parameters support to GRUB script.
25796
25797 * script/yylex.l (VARIABLE): Regular expression update.
25798 * script/function.c (grub_script_function_call): Moved ...
25799 * script/execute.c (grub_script_function_call): ... to here.
25800 (grub_script_execute_arglist_to_argv): Removed.
25801 (grub_script_arglist_to_argv): New function.
25802 * script/argv.c: New file.
25803 (grub_script_argv_free): New function.
25804 (grub_script_argv_next): Likewise.
25805 (grub_script_argv_append): Likewise.
25806 (grub_script_argv_split_append): Likewise.
25807 * include/grub/script_sh.h (grub_script_argv): New struct.
25808 (grub_script_argv_free): New function.
25809 (grub_script_argv_next): Likewise.
25810 (grub_script_argv_append): Likewise.
25811 (grub_script_argv_split_append): Likewise.
25812
25813 * conf/common.rmk (normal.mod): New source script/argv.c.
25814
25815 * tests/grub_script_echo1.in: More tests.
25816 * tests/grub_script_vars1.in: Likewise.
25817 * tests/grub_script_functions.in: New test case.
25818 * conf/tests.rmk: Rules for new testcase.
25819
25820 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25821
25822 Remove grub_script_cmdblock struct.
25823
25824 * include/grub/script_sh.h: Remove grub_script_cmdblock.
25825 * script/parser.y: Likewise.
25826 * script/execute.c: Rename cmdblock suffix to cmdlist.
25827 * script/script.c: Likewise.
25828 * util/grub-script-check.c: Likewise.
25829
25830 2010-08-11 Yves Blusseau <blusseau@zetam.org>
25831
25832 * .bzrignore: add grub-macho2img
25833
25834 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
25835
25836 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
25837
25838 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
25839
25840 Remove the dump of sm712 initialisation sequence.
25841
25842 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
25843 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
25844 (GRUB_VGA_IO_MISC_WRITE): Likewise.
25845 (GRUB_VGA_CR_*): Added many registers.
25846 (GRUB_VGA_SR_*): Likewise.
25847 (GRUB_VGA_GR_*): Likewise.
25848 (grub_vga_write_arx): New function.
25849 (grub_video_hw_config): New struct.
25850 (grub_vga_set_geometry): New function.
25851 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
25852 GRUB_PCI_CLASS_SUBCLASS_VGA.
25853 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
25854 * video/sm712.c (grub_sm712_write_reg): New function
25855 (grub_sm712_read_reg): Likewise.
25856 (grub_sm712_sr_write): Likewise.
25857 (grub_sm712_gr_write): Likewise.
25858 (grub_sm712_cr_write): Likewise.
25859 (grub_sm712_write_arx): Likewise.
25860 (grub_sm712_cr_shadow_write): Likewise.
25861 (grub_sm712_write_dda_lookup): Likewise.
25862 (grub_video_sm712_setup): Initialise the video rather then
25863 blindly replay the dump.
25864 (main) [TEST]: Add a routine to be able to compile as standalone for
25865 tests.
25866 * video/sm712_init.c (sm712_init): Removed.
25867 (sm712_sr_seq1): New array.
25868 (sm712_sr_seq2): Likewise.
25869
25870 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
25871
25872 * include/grub/vga.h: Add missing grub/pci.h include.
25873
25874 2010-08-10 Yves Blusseau <blusseau@zetam.org>
25875
25876 * util/grub-macho2img.c (main): fix typo
25877
25878 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
25879
25880 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
25881 (grub_vga_gr_read): Likewise.
25882 (grub_vga_cr_write): Likewise.
25883 (grub_vga_cr_read): Likewise.
25884 (grub_vga_sr_write): Likewise.
25885 (grub_vga_sr_read): Likewise.
25886 (grub_vga_palette_read): Likewise.
25887 (grub_vga_palette_write): Likewise.
25888 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
25889 (grub_sm712_sr_read): New function.
25890 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
25891 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
25892
25893 2010-08-09 Robert Millan <rmh@gnu.org>
25894
25895 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
25896 out unused variables on non-ZFS build.
25897
25898 2010-08-08 Robert Millan <rmh@gnu.org>
25899
25900 Fix path generation for sub-filesystems in ZFS.
25901
25902 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
25903 missing slash.
25904
25905 2010-08-08 Robert Millan <rmh@gnu.org>
25906
25907 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
25908
25909 2010-08-08 Robert Millan <rmh@gnu.org>
25910
25911 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
25912 exist, issue a proper error message (rely on `ls' for translated
25913 strings).
25914
25915 2010-08-08 Robert Millan <rmh@gnu.org>
25916
25917 Fix grub-probe invocation.
25918
25919 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
25920
25921 2010-08-04 Robert Millan <rmh@gnu.org>
25922
25923 * configure.ac: Remove checks for getfsstat() and getmntany().
25924 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
25925 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
25926 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
25927 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
25928 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
25929 function.
25930 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
25931 via find_mount_point_from_dir() and getfsstat() / getmntany().
25932
25933 2010-08-04 Robert Millan <rmh@gnu.org>
25934
25935 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
25936 (grub_find_zpool_from_mount_point): Merge into ...
25937 (grub_find_zpool_from_dir): ... this.
25938 * kern/emu/misc.c: Likewise.
25939
25940 * kern/emu/misc.c
25941 (grub_make_system_path_relative_to_its_root): Replace
25942 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
25943 with grub_find_zpool_from_dir().
25944 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
25945
25946 2010-08-04 Robert Millan <rmh@gnu.org>
25947
25948 Support OpenSolaris in ZFS device resolution.
25949
25950 * configure.ac: Check for getmntany().
25951 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
25952 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
25953 support.
25954
25955 2010-08-03 Robert Millan <rmh@gnu.org>
25956
25957 Fix grub-emu build.
25958
25959 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
25960 * include/grub/emu/misc.h: ... here.
25961
25962 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
25963 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
25964
25965 * util/misc.c: Remove `<grub/util/libzfs.h>'.
25966 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
25967 (grub_get_libzfs_handle): Move to ...
25968 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
25969 (grub_get_libzfs_handle): ... here.
25970
25971 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
25972
25973 * script/execute.c (grub_script_execute_cmdline): Check for NULL
25974 as command name case.
25975
25976 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
25977
25978 * disk/raid.c (insert_array): Select unique numbers for named arrays
25979 as well, for use as keys in the disk cache.
25980
25981 2010-08-01 Robert Millan <rmh@gnu.org>
25982
25983 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
25984 kFreeBSD device name, except on ZFS where the filesystem label is
25985 used.
25986 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
25987 `/boot/zfs/zpool.cache'.
25988 Set mountfrom kernel variable using ${kfreebsd_device}.
25989
25990 2010-08-01 Robert Millan <rmh@gnu.org>
25991
25992 Make it even harder to use uninitialized `libzfs_handle' (and
25993 make the interface a bit simpler).
25994
25995 * include/grub/util/misc.h (grub_util_init_libzfs)
25996 (libzfs_handle): Remove.
25997 (grub_get_libzfs_handle): New prototype.
25998
25999 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
26000 attribute.
26001 (grub_util_init_libzfs): Remove.
26002 (grub_get_libzfs_handle): New function.
26003
26004 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
26005 grub_get_libzfs_handle() to obtain a libzfs handle instead of
26006 accessing `libzfs_handle' directly.
26007
26008 2010-08-01 Robert Millan <rmh@gnu.org>
26009
26010 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26011 (grub_find_zpool_from_mount_point): New function prototypes.
26012
26013 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26014 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26015
26016 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26017 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26018 `static' attribute.
26019
26020 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26021 finding zpool from mount point into ...
26022 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26023
26024 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26025 requested path is part of a ZFS pool, use
26026 grub_find_zpool_from_mount_point() to detect its filesystem name,
26027 and generate a path with `/fsname@path' syntax.
26028
26029 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26030
26031 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
26032 (void) rather than () so that this is a proper prototype.
26033
26034 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26035
26036 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
26037
26038 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26039
26040 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
26041 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
26042
26043 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26044
26045 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
26046
26047 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26048
26049 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
26050
26051 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26052
26053 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
26054 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
26055 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
26056 disable gfxpayload.
26057 (Shell-like scripting): Add real content.
26058 (Serial terminal): Suggest `terminal_input serial; terminal_output
26059 serial' rather than putting the two commands on separate lines,
26060 since console input will be inoperative after the first command.
26061 (menuentry): Document --class, --users, and --hotkey options.
26062 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
26063 Vladimir Serbinenko).
26064
26065 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26066 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26067
26068 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
26069
26070 2010-08-01 Robert Millan <rmh@gnu.org>
26071
26072 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26073 (grub_find_zpool_from_mount_point): New function prototypes.
26074
26075 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26076 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26077
26078 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26079 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26080 `static' attribute.
26081
26082 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26083 finding zpool from mount point into ...
26084 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26085
26086 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26087 requested path is part of a ZFS pool, use
26088 grub_find_zpool_from_mount_point() to detect its filesystem name,
26089 and generate a path with `/fsname@path' syntax.
26090
26091 2010-08-01 Robert Millan <rmh@gnu.org>
26092
26093 Prevent accidental use of uninitialized libzfs_handle.
26094
26095 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
26096 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
26097 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
26098
26099 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26100
26101 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
26102 util/grub.d/10_linux.in). Fixes Debian bug #591093.
26103
26104 2010-08-01 Robert Millan <rmh@gnu.org>
26105
26106 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
26107
26108 2010-07-31 Robert Millan <rmh@gnu.org>
26109
26110 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
26111
26112 2010-07-31 Robert Millan <rmh@gnu.org>
26113
26114 * kern/emu/misc.c: Add missing license header.
26115
26116 2010-07-31 Robert Millan <rmh@gnu.org>
26117
26118 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
26119
26120 * include/grub/util/libnvpair.h: Include `<config.h>'.
26121 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
26122 declaring libnvpair prototypes ourselves.
26123 * include/grub/util/libzfs.h: Include `<config.h>'.
26124 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
26125 declaring libzfs prototypes ourselves.
26126
26127 (libzfs_handle): Moved to ...
26128 * include/grub/util/misc.h (libzfs_handle): ... here.
26129 Include `<grub/util/libzfs.h>'.
26130
26131 2010-07-30 Robert Millan <rmh@gnu.org>
26132
26133 * include/grub/emu/misc.h: Add missing license header.
26134
26135 2010-07-30 Robert Millan <rmh@gnu.org>
26136
26137 Enable `grub-probe -t device' resolution on ZFS.
26138
26139 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
26140 * include/grub/util/libnvpair.h: New file.
26141 * include/grub/util/libzfs.h: New file.
26142
26143 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
26144 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
26145 `<grub/util/libnvpair.h>'.
26146 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
26147
26148 (find_mount_point_from_dir): New static function.
26149 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
26150 function.
26151 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
26152 find_root_device_from_libzfs() before ressorting to find_root_device().
26153
26154 * include/grub/util/misc.h (grub_util_init_libzfs): New function
26155 prototype.
26156 * util/misc.c: Include `<grub/util/libzfs.h>'.
26157 (grub_util_init_libzfs): New function.
26158 [HAVE_LIBZFS] (libzfs_handle): New global variable.
26159 [HAVE_LIBZFS] (fini_libzfs): New static function.
26160 (grub_util_init_libzfs): New function.
26161 * util/grub-probe.c (main): Call grub_util_init_libzfs().
26162
26163 2010-07-30 Robert Millan <rmh@gnu.org>
26164
26165 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
26166 (xmalloc, xrealloc, xstrdup, xasprintf): Add
26167 `warn_unused_result' attribute.
26168 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
26169 (grub_xasprintf, grub_xvasprintf): Likewise.
26170 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
26171
26172 2010-07-29 Robert Millan <rmh@gnu.org>
26173
26174 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
26175 (probe): Handle `PRINT_FS_LABEL'.
26176 (main): Handle `-t fs_label'.
26177
26178 2010-07-29 Robert Millan <rmh@gnu.org>
26179
26180 * configure.ac: Remove grub-mkisofs checks.
26181
26182 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
26183
26184 * util/ieee1275/grub-install.in: Don't use empty grub_device.
26185 Reported by: Lennart Sorensen.
26186
26187 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26188
26189 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
26190 prior to terminal_input/terminal_output separation. It's been over 1.5
26191 years and those versions weren't widely deployed.
26192
26193 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
26194
26195 * disk/raid.c (insert_array): Don't count named arrays when looking
26196 for unused array numbers.
26197 Reported and tested by: Michael Guntsche.
26198
26199 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26200
26201 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
26202 implementation of this so that grub-emu links again, with a note
26203 that this should support hotplugging in the future.
26204
26205 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26206
26207 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
26208
26209 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26210
26211 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
26212 handle on failure.
26213 (grub_loopback_close): Remove empty function.
26214 (grub_loopback_dev): Remove close method.
26215
26216 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26217
26218 Disable EFI cursor when the EFI console becomes inactive.
26219
26220 * term/efi/console.c (grub_efi_console_init): New function.
26221 (grub_efi_console_fini): New function.
26222 (grub_console_term_output): Register init and fini methods.
26223
26224 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26225
26226 * tests/util/grub-shell-tester.in: Remove bashism and declare as
26227 sh script.
26228
26229 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26230
26231 * disk/loopback.c (grub_loopback): Replace filename with file.
26232 (delete_loopback): Handle new semantics.
26233 (grub_cmd_loopback): Likewise.
26234 (grub_loopback_iterate): Likewise.
26235 (grub_loopback_close): Likewise.
26236
26237 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26238
26239 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
26240 with -p "".
26241 Reported by: Tito Keitel.
26242
26243 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26244
26245 * docs/grub.texi (Naming convention): Document new naming convention.
26246
26247 2010-07-20 Vadim Solomin <vadic052@gmail.com>
26248 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26249
26250 Generate device.map in something closer to the old ordering.
26251
26252 * util/deviceiter.c (struct device): New declaration.
26253 (compare_file_names): Rename to ...
26254 (compare_devices): ... this. Sort by kernel name in preference to
26255 the stable by-id name, but keep the latter as a fallback comparison.
26256 Update header comment.
26257 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
26258 of `struct device' rather than of plain file names.
26259
26260 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
26261
26262 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
26263 on i386.
26264
26265 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26266
26267 * commands/acpi.c (setup_common_tables): Use sizeof instead of
26268 hardcoding size.
26269 (setv1table): Likewise.
26270
26271 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26272
26273 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
26274 removing the homehost if present.
26275 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
26276 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
26277 removing the homehost if present.
26278 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
26279 if possible.
26280 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
26281
26282 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
26283 parameter. Set its pointer target to 0.
26284 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
26285 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
26286 `data_offset' value from the superblock for 1.x metadata.
26287 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
26288 data on the device.
26289 (insert_array): Record the start sector of data on the device.
26290 (grub_raid_register): Pass start_sector parameters to
26291 grub_raid_list->detect and insert_array.
26292 * include/grub/raid.h (struct grub_raid_array): Add start_sector
26293 member.
26294 (struct grub_raid): Add start_sector parameter to `detect'.
26295
26296 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
26297 __attribute__ ((packed)), leaving a comment.
26298 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
26299 (grub_mdraid_detect_09): ... here and ...
26300 (grub_mdraid_detect_1x): ... here.
26301
26302 2010-07-20 Peter Henn <peter.henn@web.de>
26303
26304 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
26305 chunk size and disk size, which are already given as sector counts
26306 as distinct from the 0.90 units. Fetch the correct device number
26307 from the role table instead of using the table index.
26308
26309 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
26310
26311 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
26312 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
26313 (WriteMostly1): New macro.
26314 Set array->name to NULL for metadata format 0.90. Add support for
26315 metadata 1.x. Fix some comments.
26316 * disk/raid.c (): Add support for name based RAID arrays. Fix a
26317 few comments.
26318 * util/getroot.c (grub_util_get_grub_dev): Add support for
26319 /dev/md/name style devices.
26320
26321 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26322
26323 * .bzrignore: Ignore 20_linux_xen.
26324
26325 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
26326
26327 * util/import_unicode.py: Remove unnecessary imports.
26328
26329 2010-07-17 Aleš Nesrsta <starous@volny.cz>
26330
26331 Hotplugging and USB hub support.
26332
26333 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
26334 (grub_ohci): Likewise.
26335 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
26336 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
26337 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
26338 (GRUB_OHCI_CTRL_EDS): Likewise.
26339 (GRUB_OHCI_BULK_EDS): Likewise.
26340 (GRUB_OHCI_TDS): Likewise.
26341 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
26342 (grub_ohci_ed_phys2virt): New function.
26343 (grub_ohci_virt_to_phys): Likewise.
26344 (grub_ohci_td_phys2virt): Likewise.
26345 (grub_ohci_td_virt2phys): Likewise.
26346 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
26347 attachment.
26348 (grub_ohci_find_ed): New function.
26349 (grub_ohci_alloc_td): Likewise.
26350 (grub_ohci_free_td): Likewise.
26351 (grub_ohci_free_tds): Likewise.
26352 (grub_ohci_transfer): Use previously allocated memory.
26353 (grub_ohci_portstatus): Reset status changed bit.
26354 (grub_ohci_detect_dev): Supply status changed.
26355 (grub_ohci_fini_hw): Free memory.
26356 (grub_ohci_restore_hw): Reallocate memory.
26357 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
26358 Reset status change.
26359 (grub_uhci_detect_dev): Supply status_change.
26360 * bus/usb/usb.c (attach_hooks): New var.
26361 (grub_usb_device_attach): New function.
26362 (grub_usb_register_attach_hook_class): Likewise.
26363 (grub_usb_unregister_attach_hook_class): Likewise.
26364 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
26365 (grub_usb_add_hub): Reset connection changed bit.
26366 (attach_root_port): New function.
26367 (grub_usb_root_hub): Likewise.
26368 (poll_nonroot_hub): Likewise.
26369 (grub_usb_poll_devices): Likewise.
26370 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
26371 * disk/usbms.c (grub_usbms_open): Use device hooks.
26372 (grub_usbms_iterate) :Poll devices.
26373 (grub_usbms_finddevs): Split into ...
26374 (grub_usbms_attach): ... this ...
26375 (grub_usbms_attach): ... and this.
26376 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
26377 in detect_dev.
26378 (grub_usb_interface): New fields attached and detach_hook.
26379 (grub_usb_attach_hook_class): New type.
26380 (grub_usb_attach_desc): New struct.
26381 (grub_usb_register_attach_hook_class): New function.
26382 (grub_usb_unregister_attach_hook_class): Likewise.
26383 (grub_usb_poll_devices): Likewise.
26384 (grub_usb_device_attach): Likewise.
26385 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
26386 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
26387
26388 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26389
26390 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
26391 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
26392 delta determination style. Works with most NetBSD partitions too.
26393
26394 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26395
26396 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
26397 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
26398
26399 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26400
26401 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
26402
26403 2010-07-14 Anton Blanchard <anton@samba.org>
26404
26405 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
26406 ET_DYN files.
26407
26408 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26409
26410 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
26411
26412 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26413
26414 * kern/partition.c (grub_partition_check_containment): New function to
26415 check that a partition is physically contained in a parent. Since
26416 offsets are relative (and non-negative), this reduces to checking that
26417 the partition ends before its parent.
26418 (grub_partition_map_probe): Discard out-of-range sub-partitions.
26419 (grub_partition_iterate): Likewise.
26420 * include/grub/partition.h (grub_partition_map): Slightly more detailed
26421 comments.
26422 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
26423 partitions that start before their parent, and add debug printfs.
26424
26425 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26426
26427 * Makefile.in (.SUFFIX): Spell correctly, as ...
26428 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
26429 bare module name without `.mod', e.g. `test') tried to invoke a
26430 Modula-2 compiler.
26431
26432 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26433
26434 * README: Point to the Info manual.
26435
26436 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
26437
26438 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
26439 2nd superblock position from partition size.
26440
26441 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
26442
26443 * Makefile.in (MAINTAINER_CLEANFILES): Remove
26444 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
26445 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
26446 outputs.
26447
26448 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26449
26450 Restructure SCSI .id handling.
26451 Reported and tested by: Aleš Nesrsta.
26452
26453 * disk/ata.c (grub_atapi_close): Removed. All users updated.
26454 (grub_atapi_dev): Changed .name to "ata". New field .id.
26455 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
26456 (grub_usbms_dev): New field .id.
26457 * disk/scsi.c (grub_scsi_iterate): Generate name.
26458 (grub_scsi_open): Parse name.
26459 * include/grub/scsi.h (grub_make_scsi_id): New function.
26460 (grub_scsi_dev): Change iterate and open to number instead of naming
26461 busses. All users updated.
26462 (grub_scsi): Remove name. Add .bus.
26463
26464 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26465
26466 * commands/help.c (grub_cmd_help): Fix a typo.
26467
26468 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26469
26470 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
26471 Reported and tested by: Colin Watson.
26472
26473 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26474
26475 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
26476 in this context.
26477
26478 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
26479
26480 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
26481
26482 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
26483
26484 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
26485 indentation.
26486
26487 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26488
26489 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
26490 and disk/raid6_recover.c.
26491 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
26492 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
26493
26494 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26495
26496 * term/gfxterm.c (repaint_schedulded): Rename to ...
26497 (repaint_scheduled): ... this. Update all callers.
26498 (repaint_was_schedulded): Rename to ...
26499 (repaint_was_scheduled): ... this. Update all callers.
26500
26501 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26502
26503 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
26504 which we expect to be handled by upper layers.
26505
26506 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
26507
26508 * bus/usb/usbhub.c: #include time.h header.
26509
26510 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26511
26512 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
26513 entry_name also for entries without stat blocks (e.g. ".."); fixes
26514 corruption of the first entry in a directory.
26515
26516 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26517
26518 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
26519 after setting gfxterm as the active terminal. GRUB_BACKGROUND
26520 doesn't work otherwise.
26521
26522 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26523
26524 * docs/grub.texi (Features): Update list of supported file systems.
26525 (GNU/Linux): Update for GRUB 2.
26526 (Serial terminal): Remove mention of --disable-serial, which was a
26527 GRUB Legacy configure option. Update instructions to use
26528 `terminal_input' and `terminal_output' rather than `terminal'.
26529 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
26530 configuration' and `Installing GRUB using grub-install'.
26531 (Menu entry editor): Update for GRUB 2.
26532 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
26533 Document new -a, -u, and -v options.
26534 (initrd): New section.
26535 (initrd16): New section.
26536 (linux): New section.
26537 (linux16): New section.
26538 (search): The `var' argument to `--set' is optional.
26539 (GRUB only offers a rescue shell): Go into a little more detail on
26540 drive ordering.
26541
26542 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26543
26544 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
26545
26546 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26547
26548 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
26549 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
26550
26551 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26552
26553 * util/i386/pc/grub-setup.c (setup): Rename prefix to
26554 install_prefix, in line with install_dos_part and install_bsd_part.
26555 Add new prefix variable, which is copied to install_prefix after
26556 comparing core.img in memory with the one read from disk in the
26557 no-embedding case, and use that rather than overwriting
26558 install_prefix immediately when installing to a partition.
26559 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
26560 Bicakci.
26561
26562 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26563
26564 * configure.ac: Avoid == in test command, it's not portable.
26565 * util/grub.d/30_os-prober.in: Likewise.
26566
26567 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
26568
26569 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
26570
26571 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26572
26573 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
26574 multiple (top-level) partmaps.
26575
26576 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26577
26578 * util/i386/efi/grub-install.in: Don't use empty grub_device.
26579 Reported by: Tino Keitel.
26580
26581 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26582
26583 Bidi and diacritics support.
26584
26585 * Makefile.in (widthspec.bin): New target.
26586 (widthspec.h): Likewise.
26587 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
26588 * autogen.sh: Generate unidata.c.
26589 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
26590 * commands/ls.c (grub_ls_list_devices): Likewise.
26591 (grub_ls_list_files): Likewise.
26592 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
26593 (grub_mini_cmd_lsmod): Likewise.
26594 * commands/read.c: Likewise.
26595 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
26596 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
26597 * lib/arg.c (grub_arg_show_help): Likewise.
26598 * lib/crypto.c (grub_password_get): Likewise.
26599 * normal/auth.c (grub_username_get): Likewise.
26600 * normal/misc.c (grub_normal_print_device_info): Likewise.
26601 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
26602 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
26603 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
26604 (normal/charset.c_DEPENDENCIES): New variable.
26605 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
26606 (pkglib_MODULES): Remove charset.mod.
26607 (charset_mod_SOURCES): Removed.
26608 (charset_mod_CFLAGS): Likewise.
26609 (charset_mod_LDFLAGS): Likewise.
26610 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
26611 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
26612 and term/tparm.c.
26613 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26614 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26615 (kernel_img_HEADERS): Add terminfo.h.
26616 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
26617 Fill ->font. Reverse ascii bitmaps.
26618 (grub_font_get_xheight): New function.
26619 * font/font.c (grub_font_get_string_width): Moved from here ...
26620 * gfxmenu/font.c (grub_font_get_string_width): ... here.
26621 * font/font.c (grub_font_draw_string): Moved from here ...
26622 * gfxmenu/font.c (grub_font_draw_string): ... here.
26623 * font/font.c (grub_font_dup_glyph): New function.
26624 (grub_font_blit_glyph): Likewise.
26625 (grub_font_blit_glyph_mirror): Likewise.
26626 (blit_comb): Likewise.
26627 (grub_font_construct_dry_run): Likewise.
26628 (grub_font_get_constructed_device_width): Likewise.
26629 (grub_font_construct_glyph): Likewise.
26630 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
26631 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
26632 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
26633 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
26634 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
26635 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
26636 (grub_font_get_xheight): New proto.
26637 (grub_font_get_constructed_device_width): Likewise.
26638 (grub_font_construct_glyph): Likewise.
26639 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
26640 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
26641 * include/grub/font.h (grub_font_draw_string): Moved from here ...
26642 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
26643 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
26644 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
26645 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
26646 (grub_console_getcharwidth): Likewise.
26647 * include/grub/misc.h (grub_xputs): New proto.
26648 (grub_puts): Inlined.
26649 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
26650 (grub_normal_get_line_counter): Removed.
26651 (grub_install_newline_hook): Likewise.
26652 (grub_normal_get_char_counter): New proto.
26653 (grub_normal_reset_more): Likewise.
26654 (grub_xputs_normal): Likewise.
26655 * include/grub/powerpc/ieee1275/console.h: Removed.
26656 * include/grub/sparc64/ieee1275/console.h: Likewise.
26657 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
26658 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
26659 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
26660 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
26661 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
26662 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
26663 (grub_term_input): Pass reference to self. All users updated.
26664 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
26665 Pass reference to self. New fields normal_color, highlight_color and
26666 data. All users updated.
26667 (grub_putchar): Removed.
26668 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
26669 (grub_unicode_estimate_width): New function.
26670 (grub_term_getcharwidth): Add defaults.
26671 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
26672 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
26673 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
26674 (grub_cls): Remove EXPORT_FUNC.
26675 (grub_setcolorstate): Inline.
26676 (grub_newline_hook): Removed.
26677 * include/grub/terminfo.h: Rewritten. All users updated.
26678 * include/grub/unicode.h: New file.
26679 * include/grub/video.h (grub_video_signed_rect): New type.
26680 * kern/emu/console.c (grub_console_highlight_color): Removed.
26681 (grub_console_normal_color): Likewise.
26682 (grub_console_standard_color): Made static.
26683 (grub_ncurses_putchar): Remove mapping.
26684 (grub_ncurses_getcharwidth): Removed.
26685 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26686 (grub_ncurses_setcolor): Removed.
26687 (grub_ncurses_getcolor): Likewise.
26688 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
26689 (grub_console_putchar): ... this.
26690 (grub_console_putchar): Handle argument difference.
26691 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
26692 console_init_early and console_init_lately.
26693 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
26694 * kern/misc.c (grub_puts): Removed.
26695 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
26696 (grub_vsnprintf_real): Remove str = NULL support.
26697 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
26698 * normal/charset.c (grub_utf8_to_ucs4): ... here.
26699 * kern/term.c (grub_putcode): Renamed to ...
26700 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
26701 (grub_putchar): Removed.
26702 (grub_xputs_dumb): New function.
26703 (grub_xputs): New variable.
26704 * lib/charset.c: Move from here ...
26705 * normal/charset.c: ... to here.
26706 (grub_ucs4_to_utf8): New function.
26707 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
26708 (join_types): New variable.
26709 (unpack_join): New function.
26710 (bidi_types): New variable.
26711 (unpack_bidi): New function.
26712 (get_bidi_type): Likewise.
26713 (get_join_type): Likewise.
26714 (is_mirrored): Likewise.
26715 (grub_unicode_get_comb_type): Likewise.
26716 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
26717 (is_type_after): Likewise.
26718 (grub_unicode_aglomerate_comb): Likewise.
26719 (bidi_line_wrap): Likewise.
26720 (grub_bidi_line_logical_to_visual): Likewise.
26721 (grub_bidi_logical_to_visual): Likewise.
26722 (grub_unicode_mirror_code): Likewise.
26723 (grub_unicode_shape_code): Likewise.
26724 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
26725 Don't use grub_putchar.
26726 * normal/main.c (grub_normal_init_page): Use grub_putcode.
26727 (grub_normal_reader_init): Likewise.
26728 (grub_xputs_saved): New variable.
26729 (GRUB_MOD_INIT): Set grub_xputs.
26730 (GRUB_MOD_FINI): Restore grub_xputs.
26731 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
26732 (menu_init): Avoid printing gfxmenu error.
26733 (show_menu): Use grub_normal_get_char_counter.
26734 * normal/menu_entry.c (update_screen): Fix out-of-array.
26735 (complete): Avoid NULL dereferencing.
26736 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
26737 * normal/menu_text.c (print_spaces): Removed.
26738 (grub_print_ucs4): Likewise.
26739 (grub_print_message_indented): Use grub_print_ucs4.
26740 (print_message): Use grub_putcode.
26741 (print_entry): Hanlde diacritics.
26742 * normal/term.c (term_state): New type.
26743 (grub_more_lines): Removed.
26744 (term_states): New variable.
26745 (grub_normal_line_counter): Renamed to ..
26746 (grub_normal_char_counter): ...this. All users updated.
26747 (grub_normal_get_line_counter): Renamed to ...
26748 (grub_normal_get_char_counter): ... this.
26749 (grub_normal_reset_more): New function.
26750 (process_newline): Removed.
26751 (print_more): New function.
26752 (grub_install_newline_hook): Removed.
26753 (map_code): New function.
26754 (grub_puts_terminal): Use grub_print_ucs4.
26755 (putglyph): New function.
26756 (putcode_real): Likewise.
26757 (grub_putcode): Use putcode_real.
26758 (get_maxwidth): New function.
26759 (get_startwidth): Likewise.
26760 (print_ucs4_terminal): Likewise.
26761 (find_term_state): Likewise.
26762 (put_glyphs_terminal): Likewise.
26763 (print_backlog): Likewise.
26764 (print_ucs4_real): Likewise.
26765 (grub_print_ucs4): Likewise.
26766 (grub_xputs_normal): Likewise.
26767 * term/efi/console.c (grub_console_putchar): Output diacritics.
26768 (grub_console_getcharwidth): Removed.
26769 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26770 * term/gfxterm.c (clear_char): Free chars.
26771 (scroll_up): Avoid leaking memory.
26772 (grub_gfxterm_putchar): Support diacritics.
26773 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26774 * term/i386/pc/console.c (grub_console_term_output): Declare as
26775 GRUB_TERM_CODE_TYPE_VGA.
26776 * term/i386/pc/vga.c (grub_vga_term): Declare as
26777 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
26778 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
26779 GRUB_TERM_CODE_TYPE_VGA.
26780 * term/i386/vga_common.c (map_char): Removed.
26781 (grub_console_putchar): Likewise.
26782 (grub_console_getcharwidth): Likewise.
26783 * term/ieee1275/ofconsole.c: Simplify using terminfo.
26784 (colors): Reordered to match terminfo.
26785 (grub_ofconsole_normal_color): Removed.
26786 (grub_ofconsole_writeesc): Likewise.
26787 (grub_ofconsole_highlight_color): Likewise.
26788 (grub_ofconsole_getcharwidth): Likewise.
26789 (grub_ofconsole_setcolorstate): Likewise.
26790 (grub_ofconsole_setcolor): Likewise.
26791 (grub_ofconsole_getcolor): Likewise.
26792 (grub_ofconsole_readkey): Renamed to ...
26793 (readkey): ... this. Remove escape sequence handling. Return -1 on no
26794 key.
26795 (grub_ofconsole_checkkey): Removed.
26796 (grub_ofconsole_getkey): Likewise.
26797 (grub_ofconsole_getxy): Likewise.
26798 (grub_ofconsole_gotoxy): Likewise.
26799 (grub_ofconsole_cls): Likewise.
26800 (grub_ofconsole_refresh): Likewise.
26801 (grub_ofconsole_terminfo_input): New struct.
26802 (grub_ofconsole_terminfo_output): Likewise.
26803 (grub_ofconsole_term_input): Use terminfo.
26804 (grub_ofconsole_term_output): Likewise.
26805 (grub_console_init): Split into ...
26806 (grub_console_init_early): ...this and ...
26807 (grub_console_init_lately): ...this. Use terminfo.
26808 (grub_ofconsole_putchar): Renamed to ...
26809 (put): ... this. Remove mapping.
26810 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26811 * term/serial.c: Simplify using terminfo.
26812 (xpos): Removed.
26813 (ypos): Likewise.
26814 (keep_track): Likewise.
26815 (registered): Likewise.
26816 (input_buf): Likewise.
26817 (npending): Likewise.
26818 (serial_translate_key_sequence): Likewise.
26819 (fill_input_buf): Likewise.
26820 (grub_serial_checkkey): Likewise.
26821 (grub_serial_getkey): Likewise.
26822 (grub_serial_getxy): Likewise.
26823 (grub_serial_gotoxy): Likewise.
26824 (grub_serial_putchar): Likewise.
26825 (grub_serial_cls): Likewise.
26826 (grub_serial_setcolorstate): Likewise.
26827 (grub_serial_setcursor): Likewise.
26828 (serial_hw_init): Use serial_hw_fetch.
26829 (grub_serial_terminfo_input): New variable.
26830 (grub_serial_terminfo_output): Likewise.
26831 (grub_serial_term_input): Use terminfo.
26832 (grub_serial_term_output): Likewise.
26833 * term/terminfo.c (putstr): Use put.
26834 (grub_terminfo_all_free): New function
26835 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
26836 (grub_terminfo_output_register): New function.
26837 (grub_terminfo_output_unregister): Likewise.
26838 (grub_terminfo_getxy): Likewise.
26839 (grub_terminfo_readkey): Likewise.
26840 (grub_terminfo_checkkey): Likewise.
26841 (grub_terminfo_getkey): Likewise.
26842 (grub_terminfo_input_init): Likewise.
26843 (print_terminfo): Likewise.
26844 (grub_cmd_terminfo): Handle encoding.
26845 (grub_terminfo_gotoxy): Track position.
26846 (grub_terminfo_cls): Likewise.
26847 (grub_terminfo_putchar): Likewise.
26848 (grub_terminfo_setcolorstate): Handle colors
26849 (grub_terminfo_cursor_on): This ...
26850 (grub_terminfo_cursor_off): ... and this merged into ...
26851 (grub_terminfo_setcursor): ... this.
26852 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
26853 * unicode/ArabicShaping.txt: New file (imported from Unicode).
26854 * unicode/BidiMirroring.txt: Likewise.
26855 * unicode/UnicodeData.txt: Likewise.
26856 * unicode/COPYING: Likewise.
26857 * util/grub-editenv.c (grub_putchar): Removed.
26858 (grub_xputs_real): New function.
26859 (grub_xputs): New variable.
26860 * util/grub-fstest.c (grub_putchar): Removed.
26861 (grub_xputs_real): New function.
26862 (grub_xputs): New variable.
26863 * util/grub-mkdevicemap.c (grub_putchar): Removed.
26864 (grub_xputs_real): New function.
26865 (grub_xputs): New variable.
26866 * util/grub-probe.c (grub_putchar): Removed.
26867 (grub_xputs_real): New function.
26868 (grub_xputs): New variable.
26869 * util/grub-script-check.c (grub_putchar): Removed.
26870 (grub_xputs_real): New function.
26871 (grub_xputs): New variable.
26872 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
26873 (grub_xputs_real): New function.
26874 (grub_xputs): New variable.
26875 * util/import_unicode.py: New file.
26876 * util/grub-mkfont.c (ft_errmsgs): New array.
26877 (grub_glyph_info): Make bitmap a pointer.
26878 (file_formats): New type WIDTH_SPEC.
26879 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
26880 (options): Add width-spec.
26881 (help): Likewise.
26882 (add_char): Renamed to ...
26883 (add_glyph): ... this.
26884 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
26885 (glyph_replace): New type.
26886 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
26887 (add_char): New function.
26888 (add_subst): Likewise.
26889 (process_cursive): Likewise.
26890 (add_font): Handle GSUB.
26891 (write_font_width_spec): New function.
26892 (main): Sort glyphs.
26893 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
26894 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
26895 * kern/term.c (grub_cls): Moved from here...
26896 * normal/term.c (grub_cls): ... here.
26897
26898 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26899
26900 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
26901 suitable for using within the format argument of printf when
26902 converting grub_size_t.
26903 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
26904 "x" to convert grub_size_t arguments.
26905
26906 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26907
26908 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
26909 too long captions.
26910 (list_get_minimal_size): Take selection box into account.
26911
26912 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26913
26914 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
26915 NULL font.
26916
26917 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26918
26919 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
26920 devices when iterating over /dev/disk/by-id; they will be handled
26921 later if appropriate, which they aren't always (e.g. LVM).
26922
26923 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26924
26925 * include/grub/misc.h (grub_reboot): Declare as noreturn.
26926 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
26927 fails.
26928 (grub_halt): Likewise.
26929 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
26930 reset-all fails.
26931 (grub_halt): Don't return, even if all of shut-down, power-off, and
26932 poweroff fail.
26933
26934 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26935
26936 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
26937 arguments, not three.
26938
26939 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26940
26941 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
26942 * util/grub.d/10_linux.in: Use it to check for LVM, so that
26943 LVM-on-RAID is handled correctly.
26944
26945 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26946
26947 * docs/grub.texi (Changes from GRUB Legacy): New section.
26948 (Future): Fix typo.
26949
26950 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26951
26952 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
26953 grub.d/README accidentally ends up executable for one reason or
26954 another. Ignore it.
26955
26956 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26957
26958 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
26959 (gpt_partition_map_iterate): Support non-512B sectors.
26960
26961 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26962
26963 * kern/efi/init.c (grub_efi_init): Disable watchdog.
26964 Tested by: Seth Goldberg.
26965
26966 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26967
26968 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
26969 Properly align mbi.
26970 Reported by: Seth Goldberg.
26971
26972 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
26973
26974 * util/grub-mkrescue.in: Avoid module duplication.
26975
26976 2010-07-01 Sean Finney <seanius@seanius.net>
26977
26978 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
26979
26980 2010-07-01 Sean Finney <seanius@seanius.net>
26981
26982 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
26983
26984 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
26985
26986 * disk/lvm.c (grub_lvm_checkvalue): New function.
26987 (grub_lvm_check_flag): Likewise.
26988
26989 2010-07-01 Robert Millan <rmh@gnu.org>
26990
26991 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
26992 Support 'p' as partition separator on kernel of FreeBSD (used
26993 with GPT labels).
26994 (grub_util_biosdisk_get_grub_dev): Likewise.
26995
26996 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
26997
26998 Yeeloong firmware port.
26999
27000 * boot/mips/yeeloong/fwstart.S: New file.
27001 * bus/cs5536.c (gpiodump): New const.
27002 (set_io_space): New function.
27003 (set_iod): Likewise.
27004 (set_p2d): Likewise.
27005 (grub_cs5536_init_geode): Likewise.
27006 * commands/mips/yeeloong/lsspd.c: New file.
27007 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
27008 (serial_mod_SOURCES): New variable.
27009 (serial_mod_CFLAGS): Likewise.
27010 (serial_mod_LDFLAGS): Likewise.
27011 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
27012 term/terminfo.c and term/tparm.c.
27013 (pkglib_IMAGES): Add fwstart.img.
27014 (fwstart_img_SOURCES): New variable.
27015 (fwstart_img_CFLAGS): Likewise.
27016 (fwstart_img_ASFLAGS): Likewise.
27017 (fwstart_img_LDFLAGS): Likewise.
27018 (fwstart_img_FORMAT): Likewise.
27019 (pkglib_MODULES): Add lsspd.mod.
27020 (lsspd_mod_SOURCES): New variable.
27021 (lsspd_mod_CFLAGS): Likewise.
27022 (lsspd_mod_LDFLAGS): Likewise.
27023 (pkglib_MODULES): Add halt.mod.
27024 (halt_mod_SOURCES): New variable.
27025 (halt_mod_CFLAGS): Likewise.
27026 (halt_mod_LDFLAGS): Likewise.
27027 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
27028 (serial_mod_SOURCES): Removed.
27029 (serial_mod_CFLAGS): Likewise.
27030 (serial_mod_LDFLAGS): Likewise.
27031 * disk/ata.c (check_device): New function.
27032 (grub_ata_device_initialize): Use check_device.
27033 (grub_ata_iterate): Recheck devices.
27034 (grub_ata_open): Likewise.
27035 (grub_atapi_iterate): Likewise.
27036 (grub_atapi_open): Likewise.
27037 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
27038 (GRUB_ATA_CH1_PORT1): Likewise.
27039 (GRUB_ATA_CH0_PORT2): Likewise.
27040 (GRUB_ATA_CH1_PORT2): Likewise.
27041 * include/grub/mips/loongson.h: New file.
27042 * include/grub/mips/yeeloong/ec.h: Likewise.
27043 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
27044 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
27045 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
27046 * include/grub/misc.h (grub_halt): Declare as noreturn.
27047 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
27048 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
27049 (UART_ENABLE_FIFO_TRIGGER1): New definition.
27050 (UART_ENABLE_DTRRTS): Likewise.
27051 (UART_ENABLE_MODEM): Removed.
27052 (UART_ENABLE_OUT2): New const.
27053 * include/grub/term.h (grub_term_register_input_active): New function.
27054 (grub_term_register_output_active): Likewise.
27055 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
27056 argument.
27057 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
27058 (init_pci): New function.
27059 (grub_machine_init): Execute platform init when firmware. Init serial.
27060 (grub_halt): Implement.
27061 (grub_exit): Likewise.
27062 (grub_reboot): Likewise.
27063 * term/serial.c (serial_hw_init): Update macros.
27064 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
27065 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
27066 (image_targets): New target mipsel-yeeloong-flash.
27067 (generate_image): Support IMAGE_YEELOONG_FLASH.
27068 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
27069 (grub_video_sm712_setup): Init card.
27070 (grub_video_sm712_set_palette): Removed.
27071 * video/sm712_init.c: New file.
27072
27073 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
27074
27075 * Makefile.in (install-local): Temporarily prepend $(builddir) to
27076 PATH when running help2man and then run it on the unadorned
27077 executable names, rather than passing $(builddir)/* paths to
27078 help2man. This avoids the build directory ending up in generated
27079 manual pages.
27080
27081 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27082
27083 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
27084 to avoid accidents when debugging with 'sh -x'.
27085 * util/grub-mkrescue.in: Likewise.
27086 * util/grub.d/00_header.in: Likewise.
27087 * util/grub.d/10_hurd.in: Likewise.
27088 * util/grub.d/10_kfreebsd.in: Likewise.
27089 * util/grub.d/10_linux.in: Likewise.
27090 * util/grub.d/10_netbsd.in: Likewise.
27091 * util/grub.d/10_windows.in: Likewise.
27092 * util/grub.d/20_linux_xen.in: Likewise.
27093 * util/grub.d/30_os-prober.in: Likewise.
27094 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27095
27096 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27097
27098 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
27099 last character in the buffer.
27100 Reported by: Vladimir Serbinenko.
27101
27102 2010-06-29 Robert Millan <rmh@gnu.org>
27103
27104 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
27105 (Command-line and menu entry commands): Document `badram' command.
27106
27107 2010-06-28 Robert Millan <rmh@gnu.org>
27108
27109 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
27110 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
27111 command using ${GRUB_BADRAM} as parameter.
27112
27113 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27114
27115 * docs/grub.texi (Device map): New section.
27116 (Themes): New section (stub).
27117 * Makefile.in (docs/grub.info): The info documentation now builds
27118 without errors. Make sure it stays that way.
27119
27120 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27121
27122 Use normal parser for menu entries.
27123 Reported by: Thomas Frauendorfer
27124
27125 * include/grub/parser.h (grub_parser_execute): Don't export.
27126 * normal/menu.c (grub_menu_execute_entry_real): New function.
27127 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
27128
27129 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27130
27131 * docs/grub.texi (Embedded configuration): New section (replacing
27132 old "Preset Menu" stub).
27133 (Images): New section.
27134 (configfile): Note that any menu entries defined in `file' are shown
27135 immediately.
27136
27137 2010-06-28 Josh Triplett <josh@joshtriplett.org>
27138
27139 * mmap/i386/pc/mmap_helper.S: Set CF on return.
27140
27141 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27142
27143 * util/grub-install.in: Add --debug-image= option.
27144
27145 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27146
27147 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
27148 possible on Linux.
27149
27150 * util/deviceiter.c (check_device): Rename to ...
27151 (check_device_readable_unique): ... this. Update all callers.
27152 Maintain and check a list of which devices (by canonicalized name)
27153 have already been seen.
27154 (clear_seen_devices): New function.
27155 (compare_file_names) [__linux__]: New function.
27156 (grub_util_iterate_devices): Clear the list of seen devices on exit
27157 and (just in case) on entry.
27158 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
27159 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
27160 seen-devices list, superseded by general code in check_device.
27161
27162 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27163
27164 * commands/cat.c (options): New variable.
27165 (grub_cmd_cat): Parse options. If the --dos option is given, print
27166 DOS-style "\r\n" line endings as simple newlines (Debian bug
27167 #586358).
27168 (GRUB_MOD_INIT): Use extcmd.
27169 (GRUB_MOD_FINI): Likewise.
27170 * docs/grub.texi (cat): Document --dos.
27171
27172 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27173
27174 XEN with Linux grub-mkconfig support.
27175
27176 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
27177 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
27178 GRUB_CMDLINE_XEN_DEFAULT.
27179 * util/grub.d/20_linux_xen.in: New file.
27180
27181 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27182
27183 Initialise VGA video on qemu ourselves.
27184
27185 * boot/i386/qemu/boot.S: Don't call 0xc000.
27186 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
27187 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
27188 (kernel_img_HEADERS): Add pci.h.
27189 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
27190 * configure.ac: Force unifont on qemu and yeeloong.
27191 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
27192 (grub_vga_palette_write): Use correct register.
27193 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
27194 Call grub_qemu_init_cirrus.
27195 * kern/i386/qemu/init.c: New file.
27196 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
27197
27198 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
27199
27200 2010-06-26 Pavel Roskin <proski@gnu.org>
27201
27202 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
27203 13.
27204
27205 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27206
27207 * docs/grub.texi (Simple configuration): Explain that
27208 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
27209 set to `true' to disable their respective recovery entries, not
27210 merely set.
27211
27212 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27213
27214 Make the `source' command slightly faster.
27215
27216 * normal/main.c (grub_normal_execute): Don't re-read list files when
27217 nested.
27218
27219 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27220
27221 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
27222 field position and mask size to red fields from mode_info, not
27223 green.
27224 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
27225 Remove redundant tag->common.framebuffer_type assignment.
27226 Reported by: Seth Goldberg.
27227
27228 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27229
27230 Sync up other versions of the Linux loader with Robert Millan's
27231 change of 2010-01-09, "Make loader output a bit more user-friendly".
27232
27233 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
27234 grub_dprintf().
27235 (grub_cmd_linux): Likewise.
27236 (grub_cmd_initrd): Likewise.
27237 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
27238 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
27239
27240 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
27241
27242 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
27243 larger than MEMORY_MAP_SIZE.
27244
27245 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
27246
27247 Fix parallel build.
27248
27249 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
27250 dependency.
27251 * script/parser.y: #include grub_script.tab.h header.
27252
27253 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27254
27255 Support >3GiB and <16MiB RAM in i386-qemu.
27256
27257 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
27258 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
27259 (grub_lower_mem): Removed.
27260 (grub_upper_mem): Likewise.
27261 (mem_size): Made static.
27262 (above_4g): New variable.
27263 (grub_machine_mmap_init): Detect small mem_size and above_4g.
27264 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
27265 support.
27266
27267 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27268
27269 Cirrus 5446 and Bochs video cards support.
27270
27271 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
27272 video_bochs.mod
27273 (video_cirrus_mod_SOURCES): New variable.
27274 (video_cirrus_mod_CFLAGS): Likewise.
27275 (video_cirrus_mod_LDFLAGS): Likewise.
27276 (video_bochs_mod_SOURCES): Likewise.
27277 (video_bochs_mod_CFLAGS): Likewise.
27278 (video_bochs_mod_LDFLAGS): Likewise.
27279 * include/grub/vga.h: New file.
27280 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
27281 (grub_video_fb_set_page_t): New type.
27282 (grub_video_fb_setup): New prototype.
27283 (grub_video_fb_swap_buffers): Likewise.
27284 (grub_video_fb_get_info_and_fini): Likewise.
27285 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
27286 (CRTC_DATA_PORT): Likewise.
27287 (CRTC_CURSOR): Likewise.
27288 (CRTC_CURSOR_ADDR_HIGH): Likewise.
27289 (CRTC_CURSOR_ADDR_LOW): Likewise.
27290 (CRTC_CURSOR_DISABLE): Likewise.
27291 (update_cursor): Use grub_vga_cr_write.
27292 (grub_vga_text_setcursor): Likewise.
27293 * video/bochs.c: New file.
27294 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
27295 (palette): Likewise.
27296 (palette_size): Likewise.
27297 (framebuffer): New variable.
27298 (grub_video_fb_init): Use 'framebuffer'.
27299 (grub_video_fb_fini): Likewise.
27300 (grub_video_fb_get_info): Likewise.
27301 (grub_video_fb_get_palette): Likewise.
27302 (grub_video_fb_set_palette): Likewise.
27303 (grub_video_fb_set_viewport): Likewise.
27304 (grub_video_fb_get_viewport): Likewise.
27305 (grub_video_fb_map_color): Likewise.
27306 (grub_video_fb_map_rgb): Likewise.
27307 (grub_video_fb_map_rgba): Likewise.
27308 (grub_video_fb_unmap_color): Likewise.
27309 (grub_video_fb_unmap_color_int): Likewise.
27310 (grub_video_fb_fill_rect): Likewise.
27311 (grub_video_fb_blit_bitmap): Likewise.
27312 (grub_video_fb_blit_render_target): Likewise.
27313 (grub_video_fb_scroll): Likewise.
27314 (grub_video_fb_create_render_target): Likewise.
27315 (grub_video_fb_doublebuf_blit_init): Likewise.
27316 (grub_video_fb_set_active_render_target): Handle doublebuffering.
27317 (doublebuf_pageflipping_update_screen): New function.
27318 (doublebuf_pageflipping_init): Likewise.
27319 (grub_video_fb_setup): Likewise.
27320 (grub_video_fb_swap_buffers): Likewise.
27321 (grub_video_fb_get_info_and_fini): Likewise.
27322 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
27323 All users updated.
27324 (doublebuf_pageflipping_commit): Restructured into ...
27325 (doublebuf_pageflipping_set_page): ... this.
27326 (doublebuf_pageflipping_update_screen): Removed.
27327 (doublebuf_pageflipping_init): Likewise.
27328 (double_buffering_init): Likewise.
27329 (grub_video_vbe_setup): Use grub_video_fb_setup.
27330 (grub_video_vbe_swap_buffers): Removed.
27331 (grub_video_vbe_set_active_render_target): Likewise.
27332 (grub_video_vbe_get_active_render_target): Likewise.
27333 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
27334 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
27335 grub_video_fb_set_active_render_target and
27336 grub_video_fb_get_active_render_target.
27337 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
27338 (SEQUENCER_DATA_PORT): Likewise.
27339 (MAP_MASK_REGISTER): Likewise.
27340 (CRTC_ADDR_PORT): Likewise.
27341 (CRTC_DATA_PORT): Likewise.
27342 (START_ADDR_HIGH_REGISTER): Likewise.
27343 (START_ADDR_LOW_REGISTER): Likewise.
27344 (GRAPHICS_ADDR_PORT): Likewise.
27345 (GRAPHICS_DATA_PORT): Likewise.
27346 (READ_MAP_REGISTER): Likewise.
27347 (INPUT_STATUS1_REGISTER): Likewise.
27348 (INPUT_STATUS1_VERTR_BIT): Likewise.
27349 (get_map_mask): Use grub_vga_sr_read.
27350 (set_map_mask): Use grub_vga_sr_write.
27351 (set_read_map): Use grub_vga_gr_write.
27352 (set_start_address): Use grub_vga_cr_write.
27353 * video/sm712.c (framebuffer): Remove leftover fields.
27354
27355 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
27356
27357 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
27358 setting GRUB_VIDEO_BACKEND. Make it available as a user override
27359 instead. Replace the gfxterm backend check with a check that
27360 ${GRUB_PREFIX}/video.lst is non-empty.
27361 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
27362 again.
27363 (load_video): New generated function. Call it before loading
27364 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
27365 * util/grub.d/10_linux.in (linux_entry): Call load_video.
27366 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
27367 * docs/grub.texi (Simple configuration): Document
27368 GRUB_VIDEO_BACKEND.
27369
27370 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27371
27372 Use video functions in linux and xnu loaders.
27373
27374 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
27375 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
27376 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
27377 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
27378 loader/i386/pc/linux.c.
27379 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
27380 (find_line_len): Removed.
27381 (find_framebuf): Likewise.
27382 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
27383 * loader/i386/efi/xnu.c: Removed.
27384 * loader/i386/pc/xnu.c: Moved from here...
27385 * loader/i386/xnu.c: ...here.
27386
27387 Enable priorities in video drivers.
27388
27389 * include/grub/video.h (grub_video_adapter_prio_t): New type.
27390 (grub_video_adapter): New field prio.
27391 (grub_video_register): Respect prio when inserting.
27392 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
27393 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
27394 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
27395 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
27396 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
27397 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
27398 * video/sm712.c (grub_video_sm712_adapter): Likewise.
27399
27400 Fix SDL driver ID.
27401
27402 * include/grub/video.h (grub_video_driver_id_t): New value
27403 GRUB_VIDEO_DRIVER_SDL.
27404 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
27405
27406 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27407
27408 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
27409 argument to printf.
27410 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27411
27412 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27413
27414 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
27415 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27416
27417 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27418
27419 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
27420 directly, and recommend grub-install instead.
27421 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27422
27423 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27424
27425 Fix i386-pc prefix handling with nested partitions (Debian bug
27426 #585068). Note that the case where the core image is booted using
27427 multiboot and relocated from its original location still requires
27428 more work.
27429
27430 * kern/i386/pc/init.c (make_install_device): If the prefix starts
27431 with "(,", fill the boot drive in between those two characters, but
27432 expect that a full partition specification including partition map
27433 names will follow.
27434 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
27435 specified, write a prefix without the drive name but including a
27436 full partition specification.
27437
27438 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
27439
27440 * util/grub-mkconfig.in: Ignore non-option arguments, for
27441 compatibility with older versions (before 2010-06-12) which did the
27442 same. In particular, this makes it easier to ship an update-grub
27443 wrapper which is compatible with that used with GRUB Legacy (Debian
27444 bug #586056).
27445
27446 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27447
27448 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
27449 for manual page generation.
27450
27451 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27452
27453 * po/POTFILES: Remove leftover commands/handler.c.
27454
27455 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27456
27457 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
27458 left this script non-functional.
27459
27460 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27461
27462 * docs/man/grub-emu.h2m: New file.
27463
27464 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
27465
27466 * docs/grub.texi (Commands): Document reduced command set in rescue
27467 mode.
27468 (cpuid): New section.
27469
27470 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
27471
27472 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
27473 new partition naming style.
27474 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
27475
27476 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
27477
27478 Add "-o grub.iso" like cmdline options support.
27479
27480 * util/grub-install.in: Improve cmdline option parsing.
27481 * util/grub-mkconfig.in: Likewise.
27482 * util/grub-mkrescue.in: Likewise.
27483 * util/grub-reboot.in: Likewise.
27484 * util/grub-set-default.in: Likewise.
27485 * util/i386/efi/grub-install.in: Likewise.
27486 * util/ieee1275/grub-install.in: Likewise.
27487 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27488
27489 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27490
27491 * .bzrignore: Ignore 41_custom.
27492
27493 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27494
27495 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
27496
27497 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27498
27499 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
27500 prototype declarations.
27501
27502 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
27503 generating fs, partmap, and video lists.
27504 * include/grub/fs.h (grub_fs_register): Omit prototype if
27505 GRUB_LST_GENERATOR is defined.
27506 * include/grub/partition.h (grub_partition_map_register): Likewise.
27507 * include/grub/video.h (grub_video_register): Likewise.
27508
27509 2010-06-12 Javier Martín <lordhabbit@gmail.com>
27510
27511 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
27512
27513 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27514
27515 * util/grub-mkrescue.in: Support --xorriso argument.
27516
27517 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27518
27519 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
27520 Suggested by: Thomas Schmitt.
27521
27522 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27523
27524 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
27525 Suggested by: Thomas Schmitt.
27526
27527 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27528
27529 custom.cfg support.
27530
27531 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
27532 * util/grub.d/41_custom.in: New file.
27533
27534 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27535
27536 * util/grub-mkrescue.in (make_image): Remove sh module, which has
27537 been merged back into normal.
27538
27539 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27540
27541 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
27542 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
27543
27544 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27545
27546 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
27547 when generating manual pages.
27548 * docs/man/grub-bin2h.h2m: New file.
27549 * docs/man/grub-editenv.h2m: New file.
27550 * docs/man/grub-fstest.h2m: New file.
27551 * docs/man/grub-install.h2m: New file.
27552 * docs/man/grub-macho2img.h2m: New file.
27553 * docs/man/grub-mkconfig.h2m: New file.
27554 * docs/man/grub-mkdevicemap.h2m: New file.
27555 * docs/man/grub-mkfont.h2m: New file.
27556 * docs/man/grub-mkimage.h2m: New file.
27557 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
27558 * docs/man/grub-mkrelpath.h2m: New file.
27559 * docs/man/grub-mkrescue.h2m: New file.
27560 * docs/man/grub-ofpathname.h2m: New file.
27561 * docs/man/grub-pe2elf.h2m: New file.
27562 * docs/man/grub-probe.h2m: New file.
27563 * docs/man/grub-reboot.h2m: New file.
27564 * docs/man/grub-script-check.h2m: New file.
27565 * docs/man/grub-set-default.h2m: New file.
27566 * docs/man/grub-setup.h2m: New file.
27567
27568 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
27569
27570 Use FOR_* macros instead of *_iterate whenever possible.
27571
27572 * commands/handler.c: Removed.
27573 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
27574 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
27575 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27576 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
27577 (grub_probe_SOURCES): Remove kern/parser.c.
27578 (util/grub-script-check.c_DEPENDENCIES): Removed.
27579 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
27580 and grub_script_check_init.c.
27581 (grub_script_check_init.lst): Removed.
27582 (grub_script_check_init.h): Likewise.
27583 (grub_script_check_init.c): Likewise.
27584 (pkglib_MODULES): Remove handler.mod and sh.mod.
27585 (handler_mod_SOURCES): Removed.
27586 (handler_mod_CFLAGS): Likewise.
27587 (handler_mod_LDFLAGS): Likewise.
27588 (normal_mod_SOURCES): Remove normal/handler.c.
27589 Add script/main.c, script/script.c, script/execute.c,
27590 script/function.c, script/lexer.c, grub_script.tab.c
27591 and grub_script.yy.c.
27592 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27593 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27594 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
27595 (grub_setup_SOURCES): Remove kern/parser.c.
27596 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27597 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
27598 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
27599 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27600 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27601 (grub_setup_SOURCES): Remove kern/parser.c.
27602 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27603 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
27604 * include/grub/command.h (grub_command_iterate): Removed.
27605 (FOR_COMMANDS): New macro.
27606 * include/grub/dl.h (grub_dl): New member next.
27607 (grub_dl_iterate): Removed.
27608 (grub_dl_head): New variable declaration.
27609 (FOR_DL_MODULES): New macro.
27610 * include/grub/fs.h: Include list.h.
27611 (grub_fs): Make next first element.
27612 (grub_fs_list): New variable declaration.
27613 (grub_fs_register): Make inline.
27614 (grub_fs_unregister): Likewise.
27615 (grub_fs_iterate): Removed.
27616 (FOR_FILESYSTEMS): New macro.
27617 * include/grub/handler.h: Removed.
27618 * include/grub/list.h (grub_list_hook_t): Removed.
27619 (grub_list_test_t): Likewise.
27620 (grub_list_pop): Likewise.
27621 (grub_list_iterate): Likewise.
27622 (grub_list_insert): Likewise.
27623 (FOR_LIST_ELEMENTS): New macro.
27624 * include/grub/parser.h (grub_parser_class): Removed.
27625 (grub_parser_register): Likewise.
27626 (grub_parser_unregister): Likewise.
27627 (grub_parser_get_current): Likewise.
27628 (grub_parser_set_current): Likewise.
27629 (grub_register_rescue_parser): Likewise.
27630 (grub_rescue_parse_line): New function.
27631 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
27632 * include/grub/script_sh.h (grub_script_function_list): New variable
27633 declaration.
27634 (FOR_SCRIPT_FUNCTIONS): New macro.
27635 (grub_script_function_iterate): Removed.
27636 (grub_normal_parse_line): New prototype.
27637 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
27638 (FOR_DISABLED_TERM_INPUTS): Likewise.
27639 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
27640 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
27641 * include/grub/video.h (grub_video_adapter): Move 'next' to first
27642 element.
27643 (grub_video_register): Inline.
27644 (grub_video_unregister): Likewise.
27645 (grub_video_adapter_list): New variable declaration.
27646 (grub_video_iterate): Removed.
27647 (FOR_VIDEO_ADAPTERS): New macro.
27648 * kern/dl.c (grub_dl_list): Removed. All users updated.
27649 (grub_dl_iterate): Removed.
27650 * kern/fs.c (grub_fs_list): Make global.
27651 (grub_fs_register): Removed.
27652 (grub_fs_unregister): Likewise.
27653 (grub_fs_iterate): Likewise.
27654 * kern/handler.c: Removed.
27655 * kern/list.c (grub_list_pop): Removed.
27656 (grub_list_iterate): Likewise.
27657 (grub_list_insert): Likewise.
27658 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
27659 (grub_prio_list_insert): Don't use grub_list_insert.
27660 * kern/main.c (grub_register_rescue_parser): Don't call
27661 grub_register_rescue_parser.
27662 * kern/parser.c (grub_parser_class): Removed.
27663 (grub_parser_execute): Use grub_rescue_parse_line.
27664 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
27665 (grub_rescue_parser): Removed.
27666 (grub_register_rescue_parser): Likewise.
27667 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
27668 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
27669 (grub_auth_check_authentication): Likewise.
27670 * normal/completion.c (iterate_command): Removed.
27671 (grub_normal_do_completion): Use FOR_COMMANDS.
27672 * normal/handler.c: Removed.
27673 * normal/main.c (read_config_file): Remove parser changing.
27674 (grub_normal_execute): Don't call read_handler_list.
27675 (grub_normal_read_line_real): Statically allocate prompt.
27676 (grub_cmdline_run): Use grub_normal_parse_line.
27677 (GRUB_MOD_FINI): Don't call free_handler_list.
27678 * normal/menu_entry.c (run): Likewise.
27679 * script/function.c (grub_script_function_list): Make global.
27680 (grub_script_function_iterate): Removed.
27681 * script/main.c (grub_normal_parse_line): Make global.
27682 (grub_sh_parser): Removed.
27683 (GRUB_MOD_INIT): Likewise.
27684 (GRUB_MOD_FINI): Likewise.
27685 * tests/lib/functional_test.c (grub_functional_test): Use
27686 FOR_LIST_ELEMENTS.
27687 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
27688 (grub_test_run): Use FOR_LIST_ELEMENTS.
27689 * tests/lib/unit_test.c (main): Likewise.
27690 * util/deviceiter.c (grub_util_iterate_devices): Don't use
27691 grub_list_pop.
27692 * util/grub-fstest.c (grub_term_input_class): Removed.
27693 (grub_term_output_class): Likewise.
27694 * util/grub-probe.c: Likewise.
27695 * util/i386/pc/grub-setup.c: Likewise.
27696 * util/sparc64/ieee1275/grub-setup.c: Likewise.
27697 * util/grub-script-check.c (main): Don't call grub_init_all and
27698 grub_fini_all.
27699 * video/video.c (grub_video_adapter_list): Make global.
27700 (grub_video_register): Removed.
27701 (grub_video_unregister): Likewise.
27702 (grub_video_iterate): Likewise.
27703
27704 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
27705
27706 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
27707 reported by Henrique Ferreiro.
27708
27709 2010-06-09 Robert Millan <rmh@gnu.org>
27710
27711 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
27712 ones, when both are available.
27713
27714 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27715
27716 Make --version uniform and avoid hard-coded program name.
27717
27718 * util/grub-mkimage.c (main): Use `program_name' instead of
27719 hard-coded string.
27720 * util/i386/pc/grub-setup.c (main): Likewise.
27721 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
27722 * util/grub-install.in: Save the basename of $0 in $self, and use the
27723 latter in informational messages. Use the same format for --version
27724 as the binary programs.
27725 * util/grub-mkconfig.in: Likewise.
27726 * util/grub-mkrescue.in: Likewise.
27727 * util/grub-reboot.in: Likewise.
27728 * util/grub-set-default.in: Likewise.
27729 * util/i386/efi/grub-install.in: Likewise.
27730 * util/ieee1275/grub-install.in: Likewise.
27731 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27732
27733 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27734
27735 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
27736 embedding area. Use <= instead of == when checking for non-emptiness.
27737
27738 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27739
27740 * configure.ac: Add `.' to the directories searched for unifont.
27741
27742 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27743
27744 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
27745 grub_script.yy.h.
27746
27747 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27748
27749 * docs/grub.texi (History): Expand to cover GRUB 2.
27750 (Serial terminal): Refer to `terminal_input' and `terminal_output'
27751 commands, not `terminal'.
27752 (serial): Likewise.
27753 (terminal_input): New section.
27754 (terminal_output): New section.
27755 (uppermem): New section (stub).
27756 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
27757
27758 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27759
27760 * docs/grub.texi (Security): Menu entries are unrestricted by
27761 default, not restricted to superusers as I had previously thought.
27762 Reword to account for this.
27763
27764 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27765
27766 * kern/emu/misc.c (device_mapper_null_log): New function.
27767 (grub_device_mapper_supported): New function.
27768 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
27769 prototype.
27770 * kern/emu/hostdisk.c (find_partition_start): Check whether
27771 device-mapper is supported before trying to use it.
27772 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
27773
27774 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27775
27776 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
27777 (File name syntax): Likewise.
27778 (help): --all is no longer supported in GRUB 2. Be more precise
27779 about pattern matching.
27780
27781 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27782
27783 * normal/completion.c (grub_normal_do_completion): When completing
27784 arguments to "set" and the current word contains an equals sign,
27785 skip to after the equals sign before starting completion.
27786
27787 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27788
27789 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
27790
27791 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27792
27793 * docs/grub.texi (Network): New section.
27794 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
27795 `(nd)' as in GRUB Legacy.
27796 (pxe_unload): New section.
27797
27798 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27799
27800 * docs/grub.texi (Troubleshooting): `echo' is not usually available
27801 in the rescue shell, so recommend using `set' instead. Thanks,
27802 Jordan Uggla.
27803
27804 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27805
27806 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
27807 (password): New section.
27808 (password_pbkdf2): New section.
27809 (search): New section.
27810 (Security): New section.
27811 (Troubleshooting): New section, currently very incomplete.
27812 (Invoking grub-mkpasswd-pbkdf2): New section.
27813 (Internals): New section, currently very incomplete.
27814
27815 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27816
27817 * util/grub.d/00_header.in: Add some more quoting (of
27818 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
27819 work again.
27820 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
27821
27822 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27823
27824 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
27825 to `count', fixing variable shadowing that broke the -c option.
27826
27827 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
27828
27829 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
27830 in case they contain spaces.
27831
27832 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
27833
27834 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
27835 "part_" to partmap module names, in line with grub-install.
27836 Reported by: Jindřich Makovička (Debian bug #584426).
27837
27838 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
27839
27840 * util/grub-mkimage.c: Make target-related error messages slightly
27841 more helpful; -O talks about "format". Explicitly point to the use
27842 of -O if no target is specified.
27843 Reported by: Didier Raboud (Debian bug #584415).
27844
27845 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
27846
27847 * INSTALL: Document several build requirements for optional features
27848 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
27849
27850 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
27851
27852 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
27853 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
27854 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
27855
27856 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27857
27858 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
27859 Thanks to Jordan Uggla for spotting this.
27860
27861 2010-06-02 Aleš Nesrsta <starous@volny.cz>
27862
27863 Finally make USB usable.
27864
27865 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
27866 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
27867 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
27868 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
27869 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
27870 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
27871 (GRUB_OHCI_FSMPS): Likewise.
27872 (GRUB_OHCI_PERIODIC_START): Likewise.
27873 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
27874 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
27875 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
27876 (GRUB_OHCI_SET_PORT_RESET): Likewise.
27877 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
27878 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
27879 (grub_ohci_transaction): Likewise.
27880 (grub_ohci_transfer): Improve condition detection algorithms.
27881 Handle toggle property. Program the transactions correctly.
27882 Improve error handling. Various important fixups.
27883 (grub_ohci_portstatus): Put register writes in right order.
27884 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
27885 (grub_uhci_transfer): Don't show "failed" message on success.
27886 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
27887 array.
27888 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
27889 determine its size.
27890 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
27891 before initialization is completed. Use IN direction for empty
27892 transfers. Use last_trans and compute toggle.
27893 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
27894 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
27895 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
27896 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
27897 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
27898 (grub_usb_device): Increase toggle to 256.
27899 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
27900 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
27901 GRUB_USBMS_SUBCLASS_SFF8070.
27902 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
27903 (grub_scsi_inquiry): New member page and alloc_length.
27904 (grub_scsi_request_sense): New structure.
27905 (grub_scsi_request_sense_data): Likewise.
27906 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
27907 control.
27908 * disk/scsi.c (grub_scsi_request_sense): New function.
27909 (grub_scsi_test_unit_ready): Likewise.
27910 (grub_scsi_inquiry): Fill new fields.
27911 (grub_scsi_read_capacity): Likewise.
27912 (grub_scsi_read10): Add request sense at the end.
27913 (grub_scsi_read12): Likewise.
27914 (grub_scsi_write10): Likewise.
27915 (grub_scsi_write12): Likewise.
27916 (grub_scsi_open): Add Test Unit Ready.
27917 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
27918 Support additional subclasses. Con't clear halt yet. Activate the
27919 proper config. Calculate LUNs correctly.
27920 (grub_usbms_transfer): Various important fixups.
27921
27922 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
27923
27924 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
27925 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
27926 (grub_ohci_fini_hw): New function.
27927 (grub_ohci_restore_hw): Likewise.
27928 (GRUB_MOD_INIT(ohci)): Register preboot hook.
27929 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
27930 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
27931
27932 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
27933
27934 Dedicated DMA allocations.
27935
27936 * bus/pci.c (grub_memalign_dma32): New function
27937 (grub_dma_free): Likewise.
27938 (grub_dma_get_virt): Likewise.
27939 (grub_dma_get_phys): Likewise.
27940 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
27941 (grub_ohci_pci_iter): Use dma32_alloc.
27942 (grub_ohci_transfer): Likewise.
27943 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
27944 (grub_usb_bulk_readwrite): Likewise.
27945 * include/grub/pci.h: Add declarations.
27946
27947 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
27948
27949 CS5536 support.
27950
27951 * bus/cs5536.c: New file.
27952 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
27953 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
27954 (cs5536_mod_SOURCES): New variable.
27955 (cs5536_mod_CFLAGS): Likewise.
27956 (cs5536_mod_LDFLAGS): Likewise.
27957 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
27958 machine/pci.h.
27959 (kernel_img_SOURCES): Add bus/cs5536.c.
27960 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
27961 usb_keyboard.mod.
27962 (usb_mod_SOURCES): New variable.
27963 (usb_mod_CFLAGS): New variable.
27964 (usb_mod_LDFLAGS): New variable.
27965 (usbtest_mod_SOURCES): New variable.
27966 (usbtest_mod_CFLAGS): New variable.
27967 (usbtest_mod_LDFLAGS): New variable.
27968 (ohci_mod_SOURCES): New variable.
27969 (ohci_mod_CFLAGS): New variable.
27970 (ohci_mod_LDFLAGS): New variable.
27971 (usbms_mod_SOURCES): New variable.
27972 (usbms_mod_CFLAGS): New variable.
27973 (usbms_mod_LDFLAGS): New variable.
27974 (usb_keyboard_mod_SOURCES): New variable.
27975 (usb_keyboard_mod_CFLAGS): New variable.
27976 (usb_keyboard_mod_LDFLAGS): New variable.
27977 * include/grub/smbus.h: New file.
27978 * include/grub/cs5536.h: New file.
27979
27980 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27981
27982 * util/grub.d/00_header.in: Add safety check to make sure that
27983 ${locale_dir} exists before trying to probe it.
27984
27985 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27986
27987 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
27988 per the GNU Coding Standards; this is now too obscure to be worth
27989 documenting.
27990 (QNX): Likewise.
27991 (chainloader): Remove cross-reference to `SCO UnixWare'.
27992
27993 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27994
27995 * docs/grub.texi (Chain-loading): New section.
27996 (DOS/Windows): New section, borrowed from GRUB Legacy with details
27997 adjusted for GRUB 2.
27998 (SCO UnixWare): Likewise.
27999 (QNX): Likewise.
28000 (chainloader): Add reference to `Block list syntax'.
28001 (drivemap): New section.
28002 (parttool): New section.
28003
28004 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28005
28006 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
28007 the grub shell'.
28008 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
28009 (Installing GRUB using grub-install): Remove reference to the grub
28010 shell; mention `grub-mkimage' and `grub-setup' instead.
28011 (Invoking grub-install): Likewise.
28012 (Interface): Add reference to `Menu entry editor'.
28013 (serial): Remove `--device' option.
28014
28015 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28016
28017 * docs/grub.texi (Configuration): New section, documenting
28018 configuration file generation using grub-mkconfig. I've left a slot
28019 for documenting the full shell scripting format but have not yet
28020 started on writing that up.
28021 (Invoking grub-mkconfig): New section.
28022
28023 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28024
28025 * docs/grub.texi (direntry): Remove grub-terminfo reference.
28026 (GNU GRUB manual): Likewise.
28027 (General commands): Update description of `terminfo' for GRUB 2.
28028
28029 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28030
28031 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
28032 (GRUB_MOD_INIT): Fix capitalisation.
28033 * docs/grub.texi (Command-line and menu entry commands): Document
28034 gettext and gptsync commands.
28035
28036 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28037
28038 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
28039 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
28040
28041 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
28042
28043 Add btrfs probing support, currently only in the single-device case.
28044
28045 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
28046 function.
28047 (grub_guess_root_device): Call find_root_device_from_mountinfo
28048 before looking in /dev.
28049
28050 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28051
28052 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
28053 GRUB_DISK_SIZE_UNKNOWN.
28054 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
28055
28056 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
28057
28058 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
28059 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
28060 corrupted or not synced properly.
28061
28062 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28063
28064 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
28065 Reported by: Seth Goldberg.
28066
28067 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28068
28069 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
28070 addition of dest.
28071 Reported by: Seth Goldberg.
28072
28073 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28074
28075 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
28076 Reported by: Seth Goldberg.
28077
28078 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28079
28080 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
28081 64-bit address as signed on MIPS.
28082
28083 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28084
28085 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
28086 to the empty string.
28087
28088 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
28089
28090 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
28091
28092 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
28093 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
28094 * kern/misc.c (__enable_execute_stack): Disable on
28095 GRUB_MACHINE_EMU.
28096
28097 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28098
28099 Make grub-probe work with symbolic links under /dev/mapper as well
28100 as with real block devices. The Linux world seems to be (at best)
28101 in transition here, and GRUB shouldn't get caught in the middle.
28102
28103 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
28104 /dev/mapper.
28105
28106 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28107
28108 * util/grub-script-check.c (main): Ensure defined behaviour on empty
28109 input files (in which case exit zero).
28110
28111 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28112
28113 * kern/emu/misc.c (canonicalize_file_name): realpath can still
28114 return NULL for various reasons even if it has a maximum-length
28115 buffer: for example, there might be a symlink loop, or the path
28116 might exceed PATH_MAX. If this happens, return NULL.
28117
28118 2010-05-27 Robert Millan <rmh@gnu.org>
28119
28120 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
28121 partmap module to handle cross-partmap setups.
28122 Reported by Orestes Mas. Gràcies!
28123
28124 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28125
28126 * util/grub-mkrescue.in: Initialise override_dir rather than
28127 assuming that it's unset or empty in the environment.
28128
28129 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
28130
28131 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
28132 variable index into p_index to suppress a warning with -Wshadow.
28133
28134 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
28135
28136 * INSTALL: Added flex >= 2.5.35 requirement.
28137
28138 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28139
28140 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
28141
28142 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28143
28144 cmostest support.
28145
28146 * commands/i386/cmostest.c: New file.
28147 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
28148 (cmostest_mod_SOURCES): New variable.
28149 (cmostest_mod_CFLAGS): Likewise.
28150 (cmostest_mod_LDFLAGS): Likewise.
28151 * conf/i386-pc.rmk: Likewise.
28152 * docs/grub.texi (Vendor power-on keys): New section.
28153 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
28154 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
28155 and GRUB_BUTTON_CMOS_ADDRESS.
28156 * util/grub.d/00_header.in: Handle powering-on by separate button.
28157
28158 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28159
28160 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
28161 Removed drawing_scrollbar argument. All users updated
28162 Fixes #29792.
28163 Reported by Jo Shields
28164
28165 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28166
28167 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
28168 buffer since gfxterm handles double repaint.
28169
28170 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28171
28172 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
28173 * term/gfxterm.c (real_scroll): Likewise.
28174
28175 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28176
28177 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
28178 before calling BIOS.
28179
28180 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28181
28182 * include/grub/i18n.h: Always enable grub_gettext.
28183
28184 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28185
28186 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
28187 partition naming style.
28188
28189 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
28190
28191 * util/grub-mkconfig.in: Fix handling of -o so that it works when
28192 not the first option.
28193
28194 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28195
28196 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
28197
28198 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28199
28200 * util/misc.c: Move inclusion of <limits.h> to ...
28201 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
28202
28203 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
28204
28205 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
28206 Fix merge error in NetBSD code.
28207 (find_partition_start) [__NetBSD__]: Likewise.
28208
28209 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
28210
28211 Fix grub-mkrescue usage unit testing.
28212
28213 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
28214
28215 2010-05-18 Christian Franke <franke@computer.org>
28216
28217 * util/grub.d/10_windows.in: Use path names instead of
28218 drive letters to prevent warning from Cygwin 1.7.
28219 Add drivemap command to menuentry if needed.
28220
28221 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
28222
28223 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
28224 gnumach and gnumach.gz.
28225
28226 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28227
28228 * include/grub/i18n.h (gettext): Inline instead of using #define.
28229 (grub_gettext): Likewise.
28230 (_): Likewise.
28231
28232 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28233
28234 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
28235 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
28236 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
28237 (main): Add a slash after pkglibdirroot.
28238
28239 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28240
28241 * util/grub-install.in: Add missing "in" keyword.
28242
28243 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28244
28245 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
28246 Reported by: Seth Goldberg.
28247
28248 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28249
28250 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
28251
28252 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28253
28254 * configure.ac: Check for Linux device-mapper support.
28255
28256 * util/hostdisk.c (device_is_mapped): New function.
28257 (find_partition_start): New function, partly broken out from
28258 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
28259 device-mapper support added.
28260 (linux_find_partition): Use find_partition_start.
28261 (convert_system_partition_to_system_disk): Add `st' argument.
28262 Support Linux /dev/mapper/* devices if device-mapper support is
28263 available; only DM-RAID devices are understood at present.
28264 (find_system_device): Add `st' argument. Pass it to
28265 convert_system_partition_to_system_disk.
28266 (grub_util_biosdisk_get_grub_dev): Pass stat result to
28267 find_system_device and convert_system_partition_to_system_disk. Use
28268 find_partition_start.
28269
28270 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
28271 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
28272 * util/deviceiter.c [__linux__]: Define MINOR.
28273 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
28274 * util/mkdevicemap.c (grub_putchar): New function.
28275 (grub_getkey): New function.
28276 (grub_refresh): New function.
28277 (main): Set debug=all if -v -v is used.
28278
28279 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28280
28281 Fix build with non-GNU libcs.
28282
28283 * util/misc.c (canonicalize_file_name): Move to ...
28284 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
28285 grub_make_system_path_relative_to_its_root.
28286
28287 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28288
28289 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
28290 we handle finding grub-mkimage. Default to finding grub-mkimage in
28291 ${bindir} with program_transform_name applied, and provide a
28292 --grub-mkimage option to override this.
28293
28294 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28295
28296 Remove grub-mkisofs.
28297
28298 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
28299 (grub_mkisofs_SOURCES): Removed.
28300 (grub_mkisofs_CFLAGS): Removed.
28301 * util/mkisofs/defaults.h: Removed.
28302 * util/mkisofs/eltorito.c: Likewise.
28303 * util/mkisofs/exclude.h: Likewise.
28304 * util/mkisofs/hash.c: Likewise.
28305 * util/mkisofs/include/: Likewise.
28306 * util/mkisofs/include/fctldefs.h: Likewise.
28307 * util/mkisofs/include/mconfig.h: Likewise.
28308 * util/mkisofs/include/prototyp.h: Likewise.
28309 * util/mkisofs/include/statdefs.h: Likewise.
28310 * util/mkisofs/iso9660.h: Likewise.
28311 * util/mkisofs/joliet.c: Likewise.
28312 * util/mkisofs/match.c: Likewise.
28313 * util/mkisofs/match.h: Likewise.
28314 * util/mkisofs/mkisofs.c: Likewise.
28315 * util/mkisofs/mkisofs.h: Likewise.
28316 * util/mkisofs/msdos_partition.h: Likewise.
28317 * util/mkisofs/multi.c: Likewise.
28318 * util/mkisofs/name.c: Likewise.
28319 * util/mkisofs/rock.c: Likewise.
28320 * util/mkisofs/tree.c: Likewise.
28321 * util/mkisofs/write.c: Likewise.
28322
28323 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28324
28325 Unify grub-mkimage accross platforms.
28326
28327 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
28328 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
28329 (grub_mkelfimage_SOURCES): Removed.
28330 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
28331 (util/grub-mkimage.c_DEPENDENCIES): .. this.
28332 (bin_UTILITIES): Add grub-mkimage.
28333 (grub_mkimage_SOURCES): New variable.
28334 (kernel_img_HEADERS): Remove machine/kernel.h.
28335 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
28336 (pkglib_PROGRAMS): Add kernel.img.
28337 (kernel_img_HEADERS): Add machine/kernel.h.
28338 (kernel_img_FORMAT): Removed.
28339 (bin_UTILITIES): Remove grub-mkimage.
28340 (grub_mkimage_SOURCES): Removed.
28341 (grub_mkimage_CFLAGS): Likewise.
28342 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28343 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
28344 (pkglib_PROGRAMS): Add kernel.img.
28345 (bin_UTILITIES): Remove grub-mkimage.
28346 (grub_mkimage_SOURCES): Removed.
28347 (grub_mkimage_CFLAGS): Likewise.
28348 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28349 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
28350 (pkglib_PROGRAMS): Add kernel.img.
28351 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
28352 (pkglib_PROGRAMS): Add kernel.img.
28353 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
28354 (grub_mkimage_SOURCES): Removed.
28355 (grub_mkimage_CFLAGS): Likewise.
28356 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28357 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
28358 (pkglib_PROGRAMS): Add kernel.img.
28359 (bin_UTILITIES): Remove grub-mkimage.
28360 (grub_mkimage_SOURCES): Removed.
28361 (grub_mkimage_CFLAGS): Likewise.
28362 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28363 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
28364 (grub_mkimage_SOURCES): Removed.
28365 (grub_mkimage_CFLAGS): Likewise.
28366 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28367 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
28368 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
28369 (grub_pe32_optional_header): ... this.
28370 (grub_pe64_optional_header): ... and this. All users updated.
28371 (GRUB_PE32_PE32_MAGIC): Split into ..
28372 (GRUB_PE32_PE32_MAGIC): .. this.
28373 (GRUB_PE32_PE64_MAGIC): .. and this.
28374 (GRUB_PE32_SIGNATURE_SIZE): New definition.
28375 * include/grub/elf.h (PT_GNU_STACK): New definition.
28376 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
28377 * include/grub/i386/efi/kernel.h: Likewise.
28378 * include/grub/i386/kernel.h: Likewise.
28379 * include/grub/i386/pc/kernel.h: Likewise.
28380 * include/grub/i386/qemu/boot.h: Likewise.
28381 * include/grub/mips/kernel.h: Likewise.
28382 * include/grub/mips/qemu-mips/kernel.h: Likewise.
28383 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
28384 * include/grub/powerpc/kernel.h: Likewise.
28385 * include/grub/sparc64/ieee1275/boot.h: Likewise.
28386 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
28387 * include/grub/sparc64/kernel.h: Likewise.
28388 * include/grub/x86_64/efi/kernel.h: Likewise.
28389 * include/grub/x86_64/kernel.h: Likewise.
28390 * include/grub/offsets.h: New file.
28391 * include/grub/kernel.h (grub_module_info): Split into ...
28392 (grub_module_info32): ... this.
28393 (grub_module_info64): ... and this.
28394 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
28395 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
28396 (grub_boot_blocklist): Moved from here ...
28397 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
28398 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
28399 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
28400 * include/grub/types.h (grub_target_to_host16): Removed.
28401 (grub_target_to_host32): Likewise.
28402 (grub_target_to_host64): Likewise.
28403 (grub_host_to_target16): Likewise.
28404 (grub_host_to_target32): Likewise.
28405 (grub_host_to_target64): Likewise.
28406 (grub_host_to_target_addr): Likewise.
28407
28408 Support grub-mkrescue for efi, coreboot and qemu.
28409
28410 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
28411 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
28412 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
28413 * util/grub-mkrawimage.c: Moved from here ...
28414 * util/grub-mkimage.c: ... here. All users updated.
28415 (ALIGN_ADDR): Use image_target.
28416 (TARGET_NO_FIELD): New const.
28417 (image_target_desc): New type.
28418 (image_targets): New array.
28419 (grub_target_to_host64): Use image_target.
28420 (grub_target_to_host32): Likewise.
28421 (grub_target_to_host16): Likewise.
28422 (grub_host_to_target64): Likewise.
28423 (grub_host_to_target32): Likewise.
28424 (grub_host_to_target16): Likewise.
28425 (grub_host_to_target_addr): Likewise.
28426 (generate_image): Handle multiimage.
28427 (main): Require -O parameter. All users updated.
28428 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
28429 util/efi/grub-mkimage.c
28430 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
28431 New option --rom-directory.
28432 Use xorriso.
28433 * util/i386/efi/grub-mkimage.c: Removed.
28434 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
28435 (grub_target_to_host32): Likewise.
28436 (grub_target_to_host64): Likewise.
28437 (grub_host_to_target16): Likewise.
28438 (grub_host_to_target32): Likewise.
28439 (grub_host_to_target64): Likewise.
28440 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
28441 (grub_target_to_host32): Likewise.
28442 (grub_target_to_host64): Likewise.
28443 (grub_host_to_target16): Likewise.
28444 (grub_host_to_target32): Likewise.
28445 (grub_host_to_target64): Likewise.
28446
28447 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
28448
28449 Source tree is reorganized for emu build.
28450
28451 * include/grub/util/console.h: Move from here...
28452 * include/grub/emu/console.h: ...to here.
28453 * include/grub/util/getroot.h: Move from here...
28454 * include/grub/emu/getroot.h: ...to here.
28455 * include/grub/util/hostdisk.h: Move from here...
28456 * include/grub/emu/hostdisk.h: ...to here.
28457 * util/console.c: Move from here...
28458 * kern/emu/console.c: ...to here.
28459 * util/getroot.c: Move from here...
28460 * kern/emu/getroot.c: ...to here.
28461 * util/grub-emu.c: Move from here...
28462 * kern/emu/main.c: ...to here.
28463 * util/hostdisk.c: Move from here...
28464 * kern/emu/hostdisk.c: ...to here.
28465 * util/hostfs.c: Move from here...
28466 * kern/emu/hostfs.c: ...to here.
28467 * util/mm.c: Move from here...
28468 * kern/emu/mm.c: ...to here.
28469 * util/pci.c: Move from here...
28470 * bus/emu/pci.c: ...to here.
28471 * util/sdl.c: Move from here...
28472 * video/emu/sdl.c: ...to here.
28473 * util/time.c: Move from here...
28474 * kern/emu/time.c: ...to here.
28475 * util/usb.c: Move from here...
28476 * bus/usb/emu/usb.c: ...to here.
28477
28478 * include/grub/emu/misc.h: New header for grub-emu functions.
28479 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
28480
28481 * conf/any-emu.rmk: Rule updates for above renames.
28482 * conf/common.rmk: Likewise.
28483 * conf/i386-pc.rmk: Likewise.
28484 * conf/i386-qemu.rmk: Likewise.
28485 * conf/mips.rmk: Likewise.
28486 * conf/sparc64-ieee1275.rmk: Likewise.
28487 * conf/x86-efi.rmk: Likewise.
28488
28489 * disk/lvm.h: #include updates for above renames.
28490 * util/grub-mkrelpath.c: Likewise.
28491 * util/grub-probe.c: Likewise.
28492 * util/i386/pc/grub-setup.c: Likewise.
28493 * util/sparc64/ieee1275/grub-setup.c: Likewise.
28494 * kern/emu/console.c: Likewise.
28495 * kern/emu/getroot.c: Likewise.
28496 * kern/emu/hostdisk.c: Likewise.
28497 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
28498
28499 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
28500 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
28501 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
28502 * util/misc.c: Remove grub-emu functions.
28503
28504 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
28505
28506 Fix gfxmenu crash.
28507 Reported by: Thorsten Grützmacher.
28508
28509 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
28510 timeout hook.
28511 (circprog_set_property): Register and unregister timeout hook.
28512 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
28513 (label_destroy): Free template. and unregister hook.
28514 (label_set_state): New function.
28515 (label_set_property): Handle templates and hooks.
28516 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
28517 timeout hook.
28518 (progress_bar_set_property): Register and unregister timeout hook.
28519 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
28520 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
28521 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
28522 (update_timeout_visit): Removed.
28523 (update_timeouts): New function.
28524 (redraw_timeouts): Likewise.
28525 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
28526 (grub_gfxmenu_clear_timeout): Likewise.
28527 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
28528 (grub_gfxmenu_timeout_notify): Likewise.
28529 (grub_gfxmenu_timeout_notifications): New external variable.
28530 (grub_gfxmenu_timeout_register): New function.
28531 (grub_gfxmenu_timeout_unregister): Likewise.
28532
28533 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
28534
28535 Transform (broken) vga terminal into (working) vga video driver.
28536
28537 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
28538 video/i386/pc/vga.c.
28539 * include/grub/video.h (grub_video_driver_id):
28540 Add GRUB_VIDEO_DRIVER_VGA.
28541 * term/i386/pc/vga.c: Renamed to ...
28542 * video/i386/pc/vga.c: ...this
28543 (DEBUG_VGA): Removed.
28544 (CHAR_WIDTH): Likewise.
28545 (CHAR_HEIGHT): Likewise.
28546 (TEXT_WIDTH): Likewise.
28547 (TEXT_HEIGHT): Likewise.
28548 (DEFAULT_FG_COLOR): Likewise.
28549 (DEFAULT_BG_COLOR): Likewise.
28550 (colored_char): Likewise.
28551 (xpos): Likewise.
28552 (ypos): Likewise.
28553 (cursor_state): Likewise.
28554 (fg_color): Likewise.
28555 (bg_color): Likewise.
28556 (text_buf): Likewise.
28557 (page): Likewise.
28558 (font): Likewise.
28559 (framebuffer): New variable.
28560 (set_read_map): Disabled.
28561 (setup): New variable.
28562 (is_target): Likewise.
28563 (grub_vga_mod_init): Likewise.
28564 (grub_vga_mod_fini): Likewise.
28565 (check_vga_mem): Likewise.
28566 (write_char): Likewise.
28567 (write_cursor): Likewise.
28568 (scroll_up): Likewise.
28569 (grub_vga_putchar): Likewise.
28570 (grub_vga_getcharwidth): Likewise.
28571 (grub_vga_getwh): Likewise.
28572 (grub_vga_getxy): Likewise.
28573 (grub_vga_gotoxy): Likewise.
28574 (grub_vga_cls): Likewise.
28575 (grub_vga_setcolorstate): Likewise.
28576 (grub_vga_setcursor): Likewise.
28577 (grub_video_vga_init): New function.
28578 (grub_video_vga_setup): Likewise.
28579 (grub_video_vga_fini): Likewise.
28580 (update_target): Likewise.
28581 (grub_video_vga_blit_bitmap): Likewise.
28582 (grub_video_vga_blit_render_target): Likewise.
28583 (grub_video_vga_set_active_render_target): Likewise.
28584 (grub_video_vga_get_active_render_target): Likewise.
28585 (grub_video_vga_swap_buffers): Likewise.
28586 (grub_video_vga_set_palette): Likewise.
28587 (grub_video_vga_get_info_and_fini): Likewise.
28588 (grub_vga_term): Removed.
28589 (grub_video_vga_adapter): New variable.
28590 (GRUB_MOD_INIT): Register a video driver instead of terminal.
28591 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
28592
28593 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28594
28595 * video/readers/jpeg.c: Indented.
28596
28597 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28598
28599 Various jpeg cleanups.
28600
28601 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
28602 (grub_jpeg_decode_quan_table): Use sizeof.
28603 (grub_jpeg_decode_du): Use ARRAY_SIZE.
28604
28605 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
28606
28607 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
28608 tables. Ignore non-last ac bit.
28609 (grub_jpeg_decode_quan_table): Likewise.
28610
28611 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28612
28613 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
28614 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
28615 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
28616 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
28617 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
28618 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
28619
28620 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28621
28622 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
28623 error.
28624
28625 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28626
28627 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
28628
28629 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28630
28631 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
28632 condition.
28633
28634 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28635
28636 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
28637 part.
28638
28639 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28640
28641 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
28642 pointers.
28643
28644 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28645
28646 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
28647
28648 2010-05-01 Christian Franke <franke@computer.org>
28649
28650 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
28651 Remove broken Cygwin path conversion.
28652 * util/misc.c: [__CYGWIN__] Add include and define.
28653 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
28654 for Cygwin 1.7.
28655 (make_system_path_relative_to_its_root): Simplify loop, replace early
28656 return by break.
28657 [__CYGWIN__] Add conversion to win32 path.
28658 Include "/" case in trailing slash removal.
28659
28660 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28661
28662 * kern/main.c (grub_load_config): Fix copy-pasted comment.
28663 Reported by: Seth Goldberg
28664
28665 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28666
28667 * commands/help.c (grub_cmd_help): Fix a typo.
28668 Reported by: Seth Goldberg
28669
28670 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28671
28672 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
28673 name and add N_.
28674 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
28675 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
28676 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
28677 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
28678 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
28679 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
28680 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
28681 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
28682 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
28683 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
28684 * normal/context.c (GRUB_MOD_INIT): Likewise.
28685 * normal/main.c (GRUB_MOD_INIT): Likewise.
28686 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
28687 * term/serial.c (GRUB_MOD_INIT): Likewise.
28688 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
28689
28690 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28691
28692 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
28693 extra == 0.
28694
28695 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28696
28697 * commands/iorw.c: New file.
28698 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
28699 (iorw_mod_SOURCES): New variable.
28700 (iorw_mod_CFLAGS): Likewise.
28701 (iorw_mod_LDFLAGS): Likewise.
28702
28703 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28704
28705 Hotkey support
28706
28707 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
28708 * normal/main.c (hotkey_aliases): New variable.
28709 (grub_normal_add_menu_entry): Parse "--hotkey".
28710 * normal/menu_text.c (run_menu): Handle hotkeys.
28711
28712 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28713
28714 * kern/i386/coreboot/init.c (grub_machine_init): Call
28715 grub_machine_mmap_init on qemu.
28716
28717 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28718
28719 * boot/i386/qemu/boot.S: Add a missing .code16.
28720
28721 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28722
28723 Use LBIO on coreboot.
28724
28725 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
28726 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
28727 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
28728 New declaration.
28729 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
28730 grub_machine_mmap_init on coreboot.
28731 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
28732 GRUB_LINUXBIOS_MEMBER_LINK.
28733 (grub_machine_mmap_iterate): Fix declaration.
28734 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
28735
28736 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28737
28738 Split coreboot and multiboot ports.
28739
28740 * conf/i386-multiboot.rmk: New file.
28741 * configure.ac: Add multiboot port.
28742 * include/grub/i386/multiboot/boot.h: New file.
28743 * include/grub/i386/multiboot/console.h: Likewise.
28744 * include/grub/i386/multiboot/init.h: Likewise.
28745 * include/grub/i386/multiboot/kernel.h: Likewise.
28746 * include/grub/i386/multiboot/loader.h: Likewise.
28747 * include/grub/i386/multiboot/memory.h: Likewise.
28748 * include/grub/i386/multiboot/serial.h: Likewise.
28749 * include/grub/i386/multiboot/time.h: Likewise.
28750 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
28751 * loader/multiboot.c: Likewise.
28752 * loader/multiboot_mbi2.c: Likewise.
28753 * util/grub-mkrescue.in: Generate multiboot rescue.
28754
28755 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28756
28757 * kern/parser.c (grub_parser_execute): Cope with read-only config.
28758
28759 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28760
28761 Merge handling of input and output terminals. Fix a hang.
28762
28763 * commands/terminal.c (abstract_terminal): New struct.
28764 (handle_command): New function. Based on grub_cmd_terminal_input.
28765 (grub_cmd_terminal_input): Use handle_command.
28766 (grub_cmd_terminal_output): Use handle_command.
28767
28768 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
28769
28770 Fix comment handling.
28771
28772 * tests/grub_script_comments.in: New testcase.
28773 * conf/tests.rmk: Rules for new testcase.
28774 * script/yylex.l: Updated flex rules.
28775
28776 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
28777
28778 * docs/grub.texi (play): Document that zero pitches produce rests.
28779 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
28780 if argc is 1.
28781
28782 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
28783
28784 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
28785 autogen issues.
28786
28787 2010-04-26 Christian Franke <franke@computer.org>
28788
28789 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
28790 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
28791 (grub_get_prefix): Remove function.
28792 * util/grub-emu.c (main): Replace grub_get_prefix () call by
28793 make_system_path_relative_to_its_root ().
28794 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
28795
28796 2010-04-24 Christian Franke <franke@computer.org>
28797
28798 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
28799 (kernel_img_LDFLAGS): Remove -static-libgcc.
28800
28801 2010-04-24 Christian Franke <franke@computer.org>
28802
28803 * configure.ac: Do not CHECK_BSS_START_SYMBOL
28804 and CHECK_END_SYMBOL if grub-emu is built.
28805 Unset TARGET_OBJ2ELF if grub-emu is built
28806 without module support.
28807
28808 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
28809
28810 Nilfs2 support.
28811
28812 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
28813 (grub_fstest_SOURCES): Likewise.
28814 (pkglib_MODULES): Add nilfs2.mod.
28815 (nilfs2_mod_SOURCES): New variable.
28816 (nilfs2_mod_CFLAGS): Likewise.
28817 (nilfs2_mod_LDFLAGS): Likewise.
28818 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
28819 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
28820 * fs/nilfs2.c: New file.
28821
28822 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
28823
28824 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
28825 is not supported.
28826
28827 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
28828
28829 Add grub-mkconfig support for NetBSD.
28830
28831 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
28832 * util/grub-mkconfig.in: export new NetBSD specific variables.
28833 * po/POTFILES-shell: added 10_netbsd.in.
28834 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
28835
28836 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
28837
28838 Fix emu build with grub-emu-pci and grub-emu-modules.
28839
28840 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
28841 functions.
28842 * include/grub/libpciaccess.h: New file.
28843 * conf/any-emu.rmk: Update kernel headers for emu build.
28844
28845 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
28846
28847 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
28848
28849 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
28850
28851 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
28852
28853 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
28854
28855 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
28856 Retrieve chosen/bootpath if bootpath isn't hardcoded.
28857 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
28858 util/ieee1275/ofpath.c.
28859 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
28860 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
28861 * include/grub/sparc64/ieee1275/boot.h
28862 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
28863 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
28864 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
28865 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
28866 const char *.
28867 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
28868 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
28869 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
28870 install.
28871
28872 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
28873
28874 * util/grub-mkconfig.in: Corrected two == equality tests.
28875 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
28876 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
28877 expect a number appended to it.
28878 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
28879 expects a number appended to it.
28880
28881 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
28882
28883 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
28884
28885 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
28886
28887 * util/hostdisk.c (make_device_name): Change to new partition naming.
28888
28889 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
28890
28891 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
28892
28893 2010-04-17 Christian Franke <franke@computer.org>
28894
28895 * Makefile.in: Add missing localedir setting.
28896
28897 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
28898
28899 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
28900 mistake in r2156. Noticed by Anthony Fok.
28901
28902 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
28903 @localedir@.
28904 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
28905
28906 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
28907
28908 Fix a spurious, uninitialized variable warning.
28909
28910 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
28911 Initialize variable, shdr.
28912 (grub_freebsd_load_elfmodule): Likewise.
28913 (grub_freebsd_load_elf_meta): Likewise.
28914
28915 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
28916
28917 Fix for escaped dollar in double quoted strings.
28918
28919 * script/yylex.l: Updated flex rules.
28920 * conf/tests.rmk: Rule for new testcase.
28921 * tests/grub_script_dollar.in: New testcase.
28922
28923 2010-04-13 Carles Pina i Estany <carles@pina.cat>
28924 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
28925
28926 Enclose all translated strings in grub.cfg in single quotes, and
28927 escape them appropriately (Ubuntu bug #552921).
28928
28929 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
28930 * util/grub.d/10_hurd.in: Use it.
28931 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
28932 * util/grub.d/10_linux.in (linux_entry): Likewise.
28933
28934 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
28935
28936 Fix cygwin compilation.
28937
28938 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
28939 * include/grub/misc.h (__register_frame_info)
28940 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
28941 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
28942 * kern/misc.c (__register_frame_info)
28943 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
28944 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
28945
28946 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
28947
28948 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
28949
28950 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
28951
28952 Unify libgcc processing.
28953
28954 * Makefile.in (kernel_img_LDFLAGS): New variable.
28955 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
28956 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
28957 overwriting.
28958 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
28959 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
28960 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
28961 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
28962 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
28963 overwriting. Remove -lgcc and -static-libgcc
28964 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
28965 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
28966 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
28967 (kernel_img_LDFLAGS): Append instead of overwriting.
28968 Remove -lgcc and -static-libgcc
28969 * conf/sparc64-ieee1275.rmk: Likewise.
28970 * include/grub/powerpc/libgcc.h: Move to ...
28971 * include/grub/libgcc.h: .. this.
28972 * include/grub/libgcc.h: Don't export most of the function on x86.
28973 (__bswapsi2): New export.
28974 (__bswapdi2): Likewise.
28975 * include/grub/mips/libgcc.h: Removed.
28976 * include/grub/sparc64/libgcc.h: Likewise.
28977
28978 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
28979
28980 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
28981 disk_info_msg (conflicts with gettexting into languages with cases).
28982
28983 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
28984
28985 Add grub-probe support for NetBSD.
28986
28987 * util/getroot.c (find_root_device): Convert block device to
28988 character device on NetBSD.
28989 * util/probe.c (probe): Require character device on NetBSD.
28990 * util/hostdisk.c: NetBSD specific headers.
28991 (configure_device_driver): new function to tune device driver
28992 parameters (currently only for NetBSD floppy driver).
28993 (grub_util_biosdisk_open): NetBSD specific code (get disk size
28994 via disklabel ioctl).
28995 (open_device): call configure_device_driver on NetBSD.
28996 (convert_system_partition_to_system_disk): NetBSD specific code.
28997 (device_is_wholedisk): Likewise.
28998 (grub_util_biosdisk_get_grub_dev): Likewise.
28999 (make_device_name): Fixed a typo in bsd_part_str.
29000 * configure.ac: check for opendisk() and getrawpartition() on
29001 NetBSD and set LIBUTIL.
29002 * Makefile.in: add LIBUTIL to LIBS.
29003
29004 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29005
29006 Documentation fix.
29007
29008 * util/grub-script-check.c: Better help message.
29009
29010 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29011
29012 Fix FreeBSD build.
29013
29014 * configure.ac: Flex version check.
29015 * conf/common.rmk: Add -Wno-error to sh.mod.
29016 * script/yylex.l: Remove all #pragma.
29017
29018 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29019
29020 * include/grub/util/misc.h (canonicalise_file_name): Add missing
29021 prototype.
29022 Reported by: Seth Goldberg.
29023
29024 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29025
29026 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
29027 Rename "module" to "module2".
29028 Reported by: Seth Goldberg.
29029
29030 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29031
29032 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
29033 EXPORT_FUNC.
29034 Reported by: Seth Goldberg.
29035
29036 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29037
29038 * lib/posix_wrap/locale.h: Add missing file.
29039 Reported by: Seth Goldberg.
29040
29041 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29042
29043 grub-emu module load support.
29044
29045 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
29046 NO_DYNAMIC_MODULES switched to this.
29047 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
29048 (CFLAGS): Likewise.
29049 * conf/any-emu.rmk: Generate symlist.
29050 (kernel_img_HEADERS): Add util/datetime.h.
29051 (kernel_img_HEADERS) [sdl]: Add sdl.h.
29052 (kernel_img_HEADERS) [libusb]: Add libusb.h.
29053 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
29054 kern/$(target_cpu)/cache.S.
29055 * configure.ac (grub-emu-modules): New option.
29056 * genmk.rb: Handle multiple source lists.
29057 * include/grub/sdl.h: New file.
29058 * include/grub/libusb.h: Likewise.
29059 * util/grub-emu.c (main): Hanle (host) root.
29060 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
29061 GRUB_ERR_UNKNOWN_DEVICE.
29062 * util/misc.c: Move mm functions to ...
29063 * util/mm.c: ... here. All users updated.
29064
29065 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29066
29067 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
29068 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
29069 missing files.
29070 (maintainer-clean): Remove libgcrypt-grub.
29071
29072 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29073
29074 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
29075
29076 2010-04-09 EFI Coder <eficoder@hotmail.com>
29077
29078 * normal/menu_text.c (print_message): Clean up the message and show
29079 the Fn information when on EFI
29080 * term/efi/console.c (grub_console_checkkey): Add F4 support.
29081
29082 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29083
29084 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
29085 All users updated.
29086 * normal/crypto.c (read_crypto_list): Likewise.
29087 * normal/dyncmd.c (read_command_list): Likewise.
29088 * normal/term.c (read_terminal_list): Likewise.
29089 * normal/main.c (read_lists): Use explicit prefix.
29090 (read_lists_hook): Use read_lists.
29091 (grub_normal_execute): Likewise.
29092
29093 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29094
29095 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
29096 Reported by: Thomas Schmitt.
29097 Add -no-emul-boot to grub-mkisofs parameters.
29098
29099 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29100
29101 * font/font.c: Indented.
29102
29103 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29104
29105 Elif support to GRUB script (by Deepak Vankadaru).
29106
29107 * tests/grub_script_if.in: New testcase.
29108 * conf/tests.rmk: Rule for new testcase.
29109 * script/parser.y: Grammar rules for elif.
29110
29111 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29112
29113 While and until loops support to GRUB script.
29114
29115 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
29116 (grub_script_create_cmdwhile): New function prototype.
29117 (grub_script_execute_cmdwhile): New function prototype.
29118 * script/execute.c (grub_script_execute_cmdwhile): New function.
29119 * script/parser.y (command): New commands.
29120 (whilecmd): New grammar rule.
29121 (untilcmd): New grammar rule.
29122 * script/script.c (grub_script_create_cmdwhile): New function.
29123 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
29124 function.
29125
29126 * tests/grub_script_while1.in: New testcase.
29127 * conf/tests.rmk: Rule for new testcase.
29128
29129 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29130
29131 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
29132 as *.jpg.
29133
29134 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
29135
29136 GRUB_BACKGROUND support.
29137
29138 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
29139 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
29140
29141 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29142
29143 Load fonts and modules for gfxmenu in grub-mkconfig.
29144 Idea by: Mario Vazquez
29145
29146 * util/grub.d/00_header.in: Load pf2 and image modules.
29147
29148 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29149
29150 grub-mkconfig multiple terminal support.
29151
29152 * util/grub-mkconfig.in: Handle multiple terminals correctly.
29153 * util/grub.d/00_header.in: Likewise.
29154
29155 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29156
29157 * Makefile.in: Specify files explicitly instead of using $< and $@ since
29158 we use cd $(srcdir).
29159
29160 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
29161
29162 * util/grub.d/10_linux.in: Only use the first word of
29163 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
29164 spaces in GRUB_DISTRIBUTOR.
29165 * util/grub.d/10_kfreebsd.in: Likewise.
29166 * util/grub.d/10_hurd.in: Likewise.
29167
29168 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
29169
29170 Fix unit testing framework for Qemu 0.12.
29171
29172 * tests/util/grub-shell.in: Remove -serial stdio option.
29173
29174 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
29175
29176 POSIX header file wrappers.
29177
29178 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
29179 equivalents.
29180 * lib/posix_wrap/ctype.h: Likewise.
29181 * lib/posix_wrap/errno.h: Likewise.
29182 * lib/posix_wrap/langinfo.h: Likewise.
29183 * lib/posix_wrap/limits.h: Likewise.
29184 * lib/posix_wrap/localcharset.h: Likewise.
29185 * lib/posix_wrap/stdint.h: Likewise.
29186 * lib/posix_wrap/stdio.h: Likewise.
29187 * lib/posix_wrap/stdlib.h: Likewise.
29188 * lib/posix_wrap/string.h: Likewise.
29189 * lib/posix_wrap/sys/types.h: Likewise.
29190 * lib/posix_wrap/unistd.h: Likewise.
29191 * lib/posix_wrap/wchar.h: Likewise.
29192 * lib/posix_wrap/wctype.h: Likewise.
29193 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
29194 (grub_script.yy.h): Likewise.
29195 * script/yylex.l: Remove POSIX emulation #defines.
29196 * Makefile.in (POSIX_CFLAGS): New variable.
29197 (GNULIB_UTIL_CFLAGS): Likewise.
29198
29199 Regexp support.
29200
29201 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
29202 (regexp_mod_SOURCES): New variable.
29203 (regexp_mod_CFLAGS): Likewise.
29204 (regexp_mod_LDFLAGS): Likewise.
29205 * commands/regexp.c: New file.
29206 * gnulib/regcomp.c: New file. Imported from gnulib.
29207 * gnulib/regex.c: Likewise.
29208 * gnulib/regex_internal.c: Likewise.
29209 * gnulib/regex_internal.h: Likewise.
29210 * gnulib/regexec.c: Likewise.
29211 * gnulib/regex.h: Likewise.
29212
29213 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29214
29215 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
29216 unsupported video mode types.
29217
29218 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29219
29220 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
29221
29222 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29223
29224 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
29225 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
29226
29227 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
29228
29229 Remove unused grub_vga_get_font.
29230
29231 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
29232 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
29233
29234 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29235
29236 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
29237 * include/grub/misc.h: Likewise.
29238
29239 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29240
29241 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
29242 for which failure is fatal.
29243
29244 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29245
29246 * util/grub-install.in: Use mkdir -p to create grub directory.
29247 * util/i386/efi/grub-install.in: Likewise.
29248 * util/ieee1275/grub-install.in: Likewise.
29249
29250 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29251
29252 * Makefile.in (LEX): new variable.
29253
29254 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29255
29256 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
29257 `=' and added double quotes on operands of this equality test.
29258
29259 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29260
29261 * Makefile.in (uninstall): Remove a leftover debug echo.
29262 Reported by: Grégoire Sutre
29263
29264 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29265
29266 MIPS multiboot2 support.
29267
29268 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
29269 (multiboot2_mod_SOURCES): New variable.
29270 (multiboot2_mod_CFLAGS): Likewise.
29271 (multiboot2_mod_LDFLAGS): Likewise.
29272 (multiboot2_mod_ASFLAGS): Likewise.
29273 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
29274 definition.
29275 (MULTIBOOT_ENTRY_REGISTER): Likewise.
29276 (MULTIBOOT_MBI_REGISTER): Likewise.
29277 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
29278 (MULTIBOOT_ELF32_MACHINE): Likewise.
29279 (MULTIBOOT_ELF64_MACHINE): Likewise.
29280 * include/grub/mips/multiboot.h: New file.
29281 * include/grub/video.h (grub_video_driver_id): New type
29282 GRUB_VIDEO_DRIVER_SM712.
29283 (grub_video_get_info_and_fini): Export.
29284 (grub_video_get_palette): Likewise.
29285 (grub_video_get_driver_id): Likewise.
29286 * include/multiboot2.h: Resynced with spec.
29287 * loader/i386/multiboot.c: Moved from here ...
29288 * loader/multiboot.c: ... here. All users updated.
29289 (grub_multiboot_boot): Use platform-specific macros.
29290 * loader/i386/multiboot_elfxx.c: Moved from here ...
29291 * loader/multiboot_elfxx.c: ... here. All users updated.
29292 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
29293 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
29294 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
29295
29296 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
29297
29298 Import gnulib argp module.
29299
29300 * gnulib/argp-ba.c: New file.
29301 * gnulib/argp-eexst.c: Likewise.
29302 * gnulib/argp-fmtstream.c: Likewise.
29303 * gnulib/argp-fmtstream.h: Likewise.
29304 * gnulib/argp-fs-xinl.c: Likewise.
29305 * gnulib/argp-help.c: Likewise.
29306 * gnulib/argp-namefrob.h: Likewise.
29307 * gnulib/argp-parse.c: Likewise.
29308 * gnulib/argp-pin.c: Likewise.
29309 * gnulib/argp-pv.c: Likewise.
29310 * gnulib/argp-pvh.c: Likewise.
29311 * gnulib/argp-version-etc.c: Likewise.
29312 * gnulib/argp-version-etc.h: Likewise.
29313 * gnulib/argp-xinl.c: Likewise.
29314 * gnulib/argp.h: Likewise.
29315
29316 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29317
29318 * kern/device.c (grub_device_iterate): Clear errors after failed
29319 opening device.
29320
29321 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29322
29323 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
29324 returned by firmware.
29325
29326 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
29327
29328 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
29329 compilation on coreboot and qemu
29330
29331 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29332
29333 * include/multiboot2.h: Resync with spec.
29334
29335 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29336
29337 Multiboot2 tag support
29338
29339 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
29340 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
29341 Remove loader/multiboot_loader.c.
29342 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
29343 (grub_multiboot2_real_boot): Likewise.
29344 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
29345 (grub_get_multiboot_mmap_count): New proto.
29346 (grub_fill_multiboot_mmap): Likewise.
29347 (grub_multiboot_set_video_mode): Likewise.
29348 (grub_multiboot_set_console): Likewise.
29349 (grub_multiboot_load): Likewise.
29350 (grub_multiboot_load_elf): Likewise.
29351 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
29352 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
29353 * include/multiboot.h: Resynced with specification.
29354 * include/multiboot2.h: Resynced with specification.
29355 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
29356 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
29357 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
29358 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
29359 users updated.
29360 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
29361 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
29362 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
29363 Removed.
29364 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
29365 Moved from here...
29366 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
29367 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
29368 Moved from here...
29369 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
29370 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
29371 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
29372 All users updated.
29373 * loader/i386/multiboot_mbi2.c: New file.
29374
29375 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29376
29377 Resync with gnulib.
29378
29379 * Makefile.in (GNULIB_CFLAGS): New variable.
29380 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
29381 (grub_script_check_CFLAGS): New variable.
29382 * gnulib/alloca.h: Resync with gnulib.
29383 * gnulib/error.c: Likewise.
29384 * gnulib/error.h: Likewise.
29385 * gnulib/fnmatch.c: Likewise.
29386 * gnulib/fnmatch_loop.c: Likewise.
29387 * gnulib/getdelim.c: Likewise.
29388 * gnulib/getline.c: Likewise.
29389 * gnulib/getopt.c: Likewise.
29390 * gnulib/getopt1.c: Likewise.
29391 * gnulib/getopt_int.h: Likewise.
29392 * gnulib/gettext.h: Likewise.
29393 * gnulib/progname.c: Likewise.
29394 * gnulib/progname.h: Likewise.
29395
29396 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
29397
29398 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
29399 which is the case with --disabled-nls.
29400
29401 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
29402 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
29403 * util/misc.c: Likewise.
29404 * util/mkisofs/mkisofs.c: Likewise.
29405 * util/mkisofs/mkisofs.h: Likewise.
29406
29407 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29408
29409 Simplify Apple CC support.
29410
29411 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
29412 Add 0 byte at the end not to have a symbol with empty target.
29413 * mmap/i386/pc/mmap_helper.S: Likewise.
29414 * genmk.rb: Ignore errors 2030 and 2050.
29415 * kern/i386/pc/startup.S: Use LOCAL when possible.
29416
29417 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
29418
29419 Testcase and the fix for final semicolon on cmdline.
29420
29421 * tests/grub_script_final_semicolon.in: New testcase.
29422 * conf/tests.rmk: Rules for the new testcase.
29423 * script/parser.y: Grammar fix.
29424
29425 2010-03-26 BVK Chaitanya <bvk@localhost>
29426
29427 Blank lines testcase for GRUB script.
29428
29429 * tests/grub_script_blanklines.in: New testcase.
29430 * conf/tests.rmk: Rules for the new testcase.
29431
29432 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29433
29434 Don't use __FILE__.
29435
29436 * genmk.rb: Add -DGRUB_FILE to all C targets.
29437 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
29438 * include/grub/list.h: Likewise.
29439 * include/grub/misc.h: Likewise.
29440 * include/grub/mm.h: Likewise.
29441 * include/grub/test.h: Likewise.
29442 * kern/mm.c: Likewise.
29443 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
29444
29445 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29446
29447 Sunpc partitions support.
29448
29449 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
29450 (grub_fstest_SOURCES): Likewise.
29451 (pkglib_MODULES): Add part_sunpc.mod.
29452 (part_sunpc_mod_SOURCES): New variable.
29453 (part_sunpc_mod_CFLAGS): Likewise.
29454 (part_sunpc_mod_LDFLAGS): Likewise.
29455 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
29456 * partmap/sunpc.c: New file.
29457
29458 2010-03-26 BVK Chaitanya <bvk@localhost>
29459
29460 For loop support to GRUB script.
29461
29462 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
29463 (grub_script_create_cmdfor): New function prototype.
29464 (grub_script_execute_cmdfor): New function prototype.
29465 * script/execute.c (grub_script_execute_cmdfor): New function.
29466 * script/parser.y (command): New for command.
29467 (forcmd): New grammar rule.
29468 * script/script.c (grub_script_create_cmdfor): New function.
29469 * util/grub-script-check.c (grub_script_execute_cmdfor): New
29470 function.
29471 * tests/grub_script_for1.in: New testcase.
29472 * conf/tests.rmk: Rules for new testcase.
29473
29474 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29475
29476 Nested partitions
29477
29478 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
29479 'partition' is NULL, grub_partition_get_start already does that.
29480 * commands/loadenv.c (check_blocklists): Likewise.
29481 (write_blocklists): Likewise.
29482 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
29483 (grub_fstest_SOURCES): Likewise.
29484 (pkglib_MODULES): Add part_bsd.mod.
29485 (part_bsd_mod_SOURCES): New variable.
29486 (part_bsd_mod_CFLAGS): Likewise.
29487 (part_bsd_mod_LDFLAGS): Likewise.
29488 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
29489 (grub_emu_SOURCES): Likewise.
29490 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29491 * include/grub/bsdlabel.h: New file.
29492 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
29493 'get_name'.
29494 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
29495 (grub_partition_map_list): New variable.
29496 (grub_partition_map_register): Inline.
29497 (grub_partition_map_unregister): Likewise.
29498 (FOR_PARTITION_MAPS): New macro.
29499 (grub_partition_map_iterate): Removed.
29500 (grub_partition_get_start): Handle nested partitions.
29501 * include/grub/msdos_partition.h: Remove bsd-related entries.
29502 (grub_pc_partition): Remove.
29503 * kern/disk.c (grub_disk_close): Free partition data.
29504 (grub_disk_adjust_range): Handle nested partitions.
29505 * kern/partition.c (grub_partition_map_probe): New function.
29506 (grub_partition_probe): Parse name to number, handle subpartitions.
29507 (get_partmap): New function.
29508 (grub_partition_iterate): Handle subpartitions.
29509 (grub_partition_get_name): Likewise.
29510 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
29511 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
29512 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
29513 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
29514 Set 'number'.
29515 (acorn_partition_map_probe): Remove.
29516 (acorn_partition_map_get_name): Likewise.
29517 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
29518 Set 'number'.
29519 Set 'index' to 0 since there can be only one partition entry per sector.
29520 (amiga_partition_map_probe): Remove.
29521 (amiga_partition_map_get_name): Likewise.
29522 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
29523 Set 'number'.
29524 Set 'offset' and 'index' to real positions of partitions.
29525 (apple_partition_map_probe): Remove.
29526 (apple_partition_map_get_name): Likewise.
29527 * partmap/bsdlabel.c: New file.
29528 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
29529 Set 'number'.
29530 Allocate 'data' so it can be correctly freed.
29531 Set 'index' to offset inside sector.
29532 (gpt_partition_map_probe): Remove.
29533 (gpt_partition_map_get_name): Likewise.
29534 * partmap/msdos.c (grub_partition_parse): Remove.
29535 (pc_partition_map_iterate): Don't force raw access.
29536 Set 'number'.
29537 Make 'ext_offset' a local variable.
29538 (pc_partition_map_probe): Remove.
29539 (pc_partition_map_get_name): Remove.
29540 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
29541 Set 'number'.
29542 (sun_partition_map_probe): Remove.
29543 (sun_partition_map_get_name): Likewise.
29544 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
29545 (grub_pcpart_type): Likewise.
29546 * util/hostdisk.c (open_device): Handle new numbering scheme.
29547 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
29548 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
29549 * util/grub-probe.c (probe_partmap): Handle nested paritions.
29550 * util/grub-install.in: Insert all subpartition modules.
29551 * util/ieee1275/grub-install.in: Likewise.
29552
29553 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
29554
29555 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
29556 grammar.
29557
29558 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
29559
29560 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
29561
29562 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
29563
29564 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
29565 match where 'make install' puts them.
29566 * util/i386/efi/grub-install.in: Likewise.
29567
29568 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
29569
29570 * .bzrignore: Add gentrigtables, grub-script-check,
29571 grub_script_check_init.c, grub_script_check_init.h, and
29572 trigtables.c.
29573
29574 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
29575
29576 * kern/parser.c: Indented.
29577
29578 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29579
29580 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
29581
29582 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29583
29584 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
29585 alpha_mask_size == 0 case.
29586
29587 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
29588
29589 GRUB shell lexer and parser improvements.
29590
29591 * conf/any-emu.rmk: Build rule updates.
29592 * conf/common.rmk: Likewise.
29593 * conf/i386-coreboot.rmk: Likewise.
29594 * conf/i386-efi.rmk: Likewise.
29595 * conf/i386-ieee1275.rmk: Likewise.
29596 * conf/i386-pc.rmk: Likewise.
29597 * conf/powerpc-ieee1275.rmk: Likewise.
29598 * conf/x86_64-efi.rmk: Likewise.
29599
29600 * configure.ac: Configure check for flex.
29601
29602 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
29603 types.
29604 (grub_lexer_param): Struct member updates.
29605 (grub_parser_param): Likewise.
29606 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
29607 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
29608 (grub_script_lexer_init): Prototype update.
29609 (grub_script_lexer_record_start): Likewise.
29610 (grub_script_lexer_record_stop): Likewise.
29611 (grub_script_lexer_yywrap): New function prototype.
29612 (grub_script_lexer_fini): Likewise.
29613 (grub_script_execute_argument_to_string): Removed by...
29614 (grub_script_execute_argument_to_argv): ...better version.
29615
29616 * script/execute.c (ROUND_UPTO): New macro.
29617 (grub_script_execute_cmdline): Out of memory fixes.
29618 (grub_script_execute_menuentry): Likewise.
29619 (grub_script_execute_argument_to_string): Removed. Update all
29620 users by...
29621 (grub_script_execute_argument_to_argv): ...better version.
29622 * script/function.c (grub_script_function_create): Use
29623 grub_script_execute_argument_to_argv instead of
29624 grub_script_execute_argument_to_string.
29625
29626 * script/lexer.c (check_varstate): Removed.
29627 (check_textstate): Removed.
29628 (grub_script_lexer_record_start): Likewise.
29629 (grub_script_lexer_record_stop): Likewise.
29630 (recordchar): Replaced with...
29631 (grub_script_lexer_record): ...new function.
29632 (nextchar): Removed.
29633 (grub_script_lexer_init): Rewritten.
29634 (grub_script_yylex): Rewritten.
29635 (append_newline): New function.
29636 (grub_script_lexer_yywrap): New function.
29637 (grub_script_lexer_fini): New function.
29638 (grub_script_yyerror): Sets error flag.
29639
29640 * script/yylex.l: New file.
29641 (grub_lexer_yyfree): Wrapper for flex yyffre.
29642 (grub_lexer_yyalloc): Likewise.
29643 (grub_lexer_yyrealloc): Likewise.
29644 * script/parser.y: Refactored.
29645
29646 * script/script.c (grub_script_arg_add): Out of memory fixes.
29647 (grub_script_add_arglist): Likewise.
29648 (grub_script_create_cmdline): Likewise.
29649 (grub_script_create_cmdmenu): Likewise.
29650 (grub_script_add_cmd): Likewise.
29651 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
29652 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
29653 unnecessary code.
29654
29655 * tests/grub_script_echo1.in: New testcase.
29656 * tests/grub_script_vars1.in: New testcase.
29657 * tests/grub_script_echo_keywords.in: New testcase.
29658
29659 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29660
29661 Remove some redundancy in build system.
29662
29663 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
29664 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
29665 (TARGET_LDFLAGS): Add -nostdlib.
29666 (TARGET_IMG_LDFLAGS): Likewise.
29667 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
29668 anything since mmap isn't available.
29669 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
29670 Add util/time.c.
29671 (pkglib_MODULES): Remove reboot.mod.
29672 (reboot_mod_SOURCES): Removed.
29673 (reboot_mod_CFLAGS): Likewise.
29674 (reboot_mod_LDFLAGS): Likewise.
29675 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
29676 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
29677 (DEFSYMFILES): Add kernel_syms.lst.
29678 (kernel_img_HEADERS): Add common headers.
29679 (symlist.c): New target.
29680 (kernel_syms.lst): Likewise.
29681 (pkglib_MODULES): Add memdisk.mod.
29682 (memdisk_mod_SOURCES): New variable.
29683 (memdisk_mod_CFLAGS): Likewise.
29684 (memdisk_mod_LDFLAGS): Likewise.
29685 (pkglib_MODULES): Add reboot.mod.
29686 (reboot_mod_SOURCES): New variable.
29687 (reboot_mod_CFLAGS): Likewise.
29688 (reboot_mod_LDFLAGS): Likewise.
29689 (pkglib_MODULES): Add date.mod.
29690 (date_mod_SOURCES): New variable.
29691 (date_mod_CFLAGS): Likewise.
29692 (date_mod_LDFLAGS): Likewise.
29693 (pkglib_MODULES): Add datehook.mod.
29694 (datehook_mod_SOURCES): New variable.
29695 (datehook_mod_CFLAGS): Likewise.
29696 (datehook_mod_LDFLAGS): Likewise.
29697 (pkglib_MODULES): Add lsmmap.mod.
29698 (lsmmap_mod_SOURCES): New variable.
29699 (lsmmap_mod_CFLAGS): Likewise.
29700 (lsmmap_mod_LDFLAGS): Likewise.
29701 (pkglib_MODULES): Add boot.mod.
29702 (boot_mod_SOURCES): New variable.
29703 (boot_mod_CFLAGS): Likewise.
29704 (boot_mod_LDFLAGS): Likewise.
29705 * conf/i386-coreboot.rmk: Removed redundant parts.
29706 * conf/i386-ieee1275.rmk: Likewise.
29707 * conf/i386-pc.rmk: Likewise.
29708 * conf/mips-yeeloong.rmk: Likewise.
29709 * conf/mips.rmk: Likewise.
29710 * conf/powerpc-ieee1275.rmk: Likewise.
29711 * conf/sparc64-ieee1275.rmk: Likewise.
29712 * conf/x86_64-efi.rmk: Likewise.
29713 * conf/i386-coreboot.rmk: Moved qemu parts ..
29714 * conf/i386-qemu.rmk: ... here
29715 * conf/i386-efi.rmk: Moved common parts to...
29716 * conf/x86-efi.rmk: ... here.
29717 * conf/i386.rmk: Added modules common to all x86 variants.
29718 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
29719 * disk/memdisk.c: Remove grub/machine/kernel.h.
29720 * gensymlist.sh.in: Include symbol.h.
29721 * hook/datehook.c: Correct module name.
29722 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
29723 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
29724 * include/grub/i386/efi/serial.h: New file.
29725 * include/grub/x86_64/efi/serial.h: Likewise.
29726 * util/time.c: Likewise.
29727 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
29728
29729 2010-03-14 Colin King <colin.king@ubuntu.com>
29730 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29731
29732 Shrink the pre-partition-table part of boot.img by eight bytes.
29733
29734 * boot/i386/pc/boot.S (ERR): New macro.
29735 (chs_mode): Use ERR.
29736 (geometry_error): Likewise.
29737 (hd_probe_error): Remove. This is only used once, so we wrwite
29738 it inline instead.
29739 (read_error): Instead of printing read_error_string, just set up
29740 %si and fall through to ...
29741 (error_message): ... this new function, also used by ERR.
29742
29743 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29744
29745 Speed up consecutive hostdisk operations on the same device.
29746
29747 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
29748 (grub_util_biosdisk_open): Initialise disk->data.
29749 (struct linux_partition_cache): New structure.
29750 (linux_find_partition): Cache partition start positions; these are
29751 expensive to compute on every read and write.
29752 (open_device): Cache open file descriptor in disk->data, so that we
29753 don't have to reopen it and flush the buffer cache for consecutive
29754 operations on the same device.
29755 (grub_util_biosdisk_close): New function.
29756 (grub_util_biosdisk_dev): Set `close' member.
29757
29758 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
29759 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
29760 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
29761 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
29762 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
29763
29764 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29765
29766 Compile parts of grub-emu as modules.
29767
29768 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
29769 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
29770 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
29771 (all-local): Add $(GRUB_EMU).
29772 (install-local): Install $(GRUB_EMU).
29773 (uninstall): Uninstall $(GRUB_EMU).
29774 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
29775 * kern/dl.c: Likewise.
29776 * commands/sleep.c: Not include machine/time.h.
29777 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
29778 (COMMON_CFLAGS): Likewise.
29779 (sbin_UTILITIES): Remove grub-emu.
29780 (grub_emu_SOURCES): Removed.
29781 (kernel_img_RELOCATABLE): New variable.
29782 (pkglib_PROGRAMS): Add kernel.img.
29783 (kernel_img_SOURCES): New variable
29784 (kernel_img_CFLAGS): Likewise.
29785 (kernel_img_LDFLAGS): Likewise.
29786 (TARGET_NO_STRIP): Likewise.
29787 (TARGET_NO_DYNAMIC_MODULES): Likewise.
29788 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
29789 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
29790 (grub-emu): New target.
29791 (GRUB_EMU): New variable.
29792 * configure.ac: Whitelist -emu as possible x86_64 architecture.
29793 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
29794 * loader/xnu.c: Likewise.
29795 * include/grub/pci.h: Likewise.
29796 * genemuinit.sh: New file.
29797 * genemuinitheader.sh: Likewise.
29798 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
29799 Support TARGET_NO_DYNAMIC_MODULES.
29800 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
29801 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
29802 * disk/loopback.c: Likewise.
29803 * font/font_cmd.c: Likewise.
29804 * partmap/acorn.c: Likewise.
29805 * partmap/amiga.c: Likewise.
29806 * partmap/apple.c: Likewise.
29807 * partmap/gpt.c: Likewise.
29808 * partmap/msdos.c: Likewise.
29809 * partmap/sun.c: Likewise.
29810 * parttool/msdospart.c: Likewise.
29811 * term/gfxterm.c: Likewise.
29812 * video/bitmap.c: Likewise.
29813 * video/readers/jpeg.c: Likewise.
29814 * video/readers/png.c: Likewise.
29815 * video/readers/tga.c: Likewise.
29816 * video/video.c: Likewise.
29817 * util/grub-emu.c (read_command_list): Removed.
29818 (main): Don't call util_init_nls.
29819 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
29820 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
29821
29822 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29823
29824 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
29825 date.mod, datehook.mod.
29826 (datetime_mod_SOURCES): New variable.
29827 (datetime_mod_CFLAGS): Likewise.
29828 (datetime_mod_LDFLAGS): Likewise.
29829 (date_mod_SOURCES): Likewise.
29830 (date_mod_CFLAGS): Likewise.
29831 (date_mod_LDFLAGS): Likewise.
29832 (datehook_mod_SOURCES): Likewise.
29833 (datehook_mod_CFLAGS): Likewise.
29834 (datehook_mod_LDFLAGS): Likewise.
29835 * conf/sparc64-ieee1275.rmk: Likewise.
29836 * lib/ieee1275/datetime.c: New file.
29837
29838 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29839
29840 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
29841 (ieee1275_fb_mod_SOURCES): New variable.
29842 (ieee1275_fb_mod_CFLAGS): Likewise.
29843 (ieee1275_fb_mod_LDFLAGS): Likewise.
29844 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
29845 New proto.
29846 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
29847 (HEAP_MAX_ADDR): Likewise.
29848 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
29849 type.
29850 Correct stop condition.
29851 (grub_ieee1275_devices_iterate): New function.
29852 * video/ieee1275.c: New file.
29853
29854 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29855
29856 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
29857
29858 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
29859 as scratch.
29860 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
29861 SCRATCH_PAD_DISKBOOT as scratch.
29862 (bootit): Pass Openfirmware pointer in %o4.
29863 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
29864 of 0x200000.
29865 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
29866 with util/grub-mkrawimage.c.
29867 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
29868 * include/grub/aout.h (AOUT_MID_SUN): New definition.
29869 (grub_aout_get_type) [GRUB_UTIL]: Removed.
29870 (grub_aout_load) [GRUB_UTIL]: Likewise.
29871 * include/grub/kernel.h (grub_modules_get_end): New proto.
29872 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
29873 (SCRATCH_PAD_BOOT): New definition.
29874 (SCRATCH_PAD_DISKBOOT): Likewise.
29875 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
29876 * include/grub/sparc64/ieee1275/ieee1275.h
29877 (grub_ieee1275_original_stack): New variable
29878 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
29879 New definition
29880 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
29881 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
29882 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
29883 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
29884 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
29885 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
29886 (grub_platform_image_format_t): New type.
29887 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
29888 * kern/main.c (grub_modules_get_end)
29889 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
29890 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
29891 (codestart): Switch stacks.
29892 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
29893 variable.
29894 (grub_heap_init): Use grub_modules_get_end.
29895 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
29896 stack.
29897 * util/grub-mkrawimage.c (generate_image): Support sparc64.
29898 (main): Likewise.
29899 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
29900
29901 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
29902
29903 * util/grub-mkrescue.in: Base ISO UUID on UTC.
29904
29905 2010-03-08 Matt Kraai <kraai@ftbfs.org>
29906
29907 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
29908 bug #559005).
29909
29910 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
29911
29912 * genmoddep.awk: Output all missing symbols and not only first.
29913
29914 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29915
29916 * NEWS: Put the date of 1.98 release.
29917
29918 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29919
29920 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
29921 ft2build.h.
29922
29923 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29924
29925 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
29926 completition in the middle of string.
29927
29928 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29929
29930 * util/grub-mkrescue.in: Use mktemp with explicit template.
29931
29932 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29933
29934 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
29935
29936 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29937
29938 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
29939 right pointer.
29940
29941 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
29942
29943 Fix FreeBSD compilation.
29944
29945 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
29946 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
29947
29948 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
29949
29950 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
29951
29952 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29953
29954 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
29955
29956 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29957
29958 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
29959
29960 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
29961
29962 Support relative image path in theme file.
29963
29964 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
29965 (image_set_property): Handle theme_dir and relative path.
29966
29967 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29968
29969 * configure.ac: Alias amd64 to x86_64.
29970
29971 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29972
29973 * NEWS: mention multiboot on EFI.
29974
29975 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29976
29977 * kern/main.c (grub_load_modules): Handle errors from init functions of
29978 embeded modules.
29979
29980 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29981
29982 * normal/autofs.c (autoload_fs_module): Handle errors.
29983
29984 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29985
29986 Disable linux.mod on qemu-mips since it's not functional and leads
29987 to compilation failure.
29988
29989 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
29990 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
29991 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
29992 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
29993 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
29994 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
29995 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
29996 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
29997 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
29998 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
29999 Reported by: BVK Chaitanya
30000
30001 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
30002
30003 * INSTALL: Add gettext as a dependency and add qemu to a new section
30004 "Prerequisites for make-check".
30005
30006 2010-03-04 Christian Franke <franke@computer.org>
30007
30008 * util/grub-pe2elf.c: Add missing include "progname.h".
30009
30010 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30011
30012 * normal/crypto.c (read_crypto_list): Fix a typo.
30013 Reported by: Seth Goldberg.
30014
30015 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30016
30017 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
30018 Reported by: Seth Goldberg.
30019
30020 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30021
30022 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
30023 ascii.bitmaps.
30024
30025 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30026
30027 * genmk.rb: Remove terminal*.lst in make clean.
30028 Reported by: Seth Goldberg.
30029
30030 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30031
30032 * util/i386/efi/grub-install.in: Copy gettext files.
30033
30034 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30035
30036 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
30037
30038 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30039
30040 Wait for user entry basing on presence of output rather than on errors.
30041
30042 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
30043 (grub_install_newline_hook): Likewise.
30044 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
30045 * normal/menu.c (show_menu): Check line_counter to determine presence
30046 of output.
30047 * normal/term.c (grub_normal_line_counter): New variable.
30048 (grub_normal_get_line_counter): New function.
30049 (grub_install_newline_hook): Likewise.
30050
30051 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30052
30053 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
30054
30055 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30056
30057 * configure.ac: Update version to 1.98.
30058
30059 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
30060
30061 * util/grub.d/10_linux.in (linux_entry): Don't default to
30062 gfxpayload=keep if Linux doesn't support video handover.
30063
30064 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
30065
30066 Don't compile video modules on yeeloong since video subsystem is part
30067 of kernel.
30068
30069 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
30070 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
30071 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
30072 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
30073 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
30074 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
30075 * include/grub/bitmap_scale.h: Likewise.
30076 * include/grub/bufio.h: Likewise.
30077 * include/grub/font.h: Likewise.
30078 * include/grub/gfxterm.h: Likewise.
30079 * include/grub/video.h: Likewise.
30080 * include/grub/vbe.h: Don't include video_fb.h.
30081 * video/i386/pc/vbe.c: Include video_fb.h.
30082 * commands/i386/pc/vbetest.c: Include video.h.
30083
30084 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
30085
30086 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
30087 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
30088 default entry if GRUB_SAVEDEFAULT=true. This allows using
30089 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
30090 saving a new default on every boot.
30091
30092 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30093
30094 * normal/crypto.c (read_crypto_list): Fix a memory leak.
30095 * normal/term.c (read_terminal_list): Likewise.
30096 * normal/main.c (grub_normal_init_page): Likewise.
30097 (grub_normal_read_line_real): Likewise.
30098
30099 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30100
30101 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
30102 memory leak.
30103 Reported by: Seth Goldberg.
30104
30105 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
30106
30107 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
30108 duplicate declaration of `start'.
30109
30110 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30111
30112 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
30113 filename.
30114 Reported by: Georgy Buranov
30115
30116 2010-02-20 Carles Pina i Estany <carles@pina.cat>
30117
30118 * util/grub-mkrawimage.c (usage): Change string formatting to
30119 improve gettext.
30120
30121 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
30122
30123 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
30124 backspace keys.
30125
30126 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30127
30128 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
30129 Reported by: Michael Suchanek.
30130
30131 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
30132
30133 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
30134 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
30135
30136 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
30137
30138 Remove any reference to non-free fonts.
30139
30140 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
30141 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
30142 uses non-free components.
30143 * font/font.c (grub_font_get_name): Remove example name.
30144 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
30145 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
30146 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
30147 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
30148
30149 2010-02-16 Georgy Buranov <gburanov@gmail.com>
30150
30151 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
30152
30153 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30154
30155 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
30156 Double divisor.
30157 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
30158 features.
30159 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
30160
30161 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30162
30163 * gensymlist.sh.in: Use TARGET_CC instead of CC.
30164
30165 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30166
30167 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
30168 * docs/grub.texi (Command-line and menu entry commands): Document play
30169 command.
30170
30171 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30172
30173 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
30174 parse arguments as inline tempo and notes. Move code for playing notes
30175 to...
30176 (play): ... new function.
30177
30178 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30179
30180 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
30181 grub_uint16_t instead of short.
30182 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
30183 disk from little endian to cpu endianness.
30184
30185 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
30186
30187 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
30188 GRUB_TICKS_PER_SECOND instead of 120.
30189
30190 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30191
30192 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
30193 escape sequence after \e.
30194
30195 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30196
30197 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
30198 non-ASCII characters.
30199
30200 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30201
30202 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
30203 set root in single quotes to prevent \, from being unescaped.
30204
30205 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30206
30207 Prevent unknown commands from stopping menuentry execution.
30208
30209 * script/execute.c (grub_script_execute_cmdline): Print error after
30210 unknown command.
30211
30212 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30213
30214 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
30215 Reported by: Pavel Pisa.
30216
30217 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30218
30219 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
30220
30221 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30222
30223 Merge grub_ieee1275_map_physical into grub_map and rename to
30224 grub_ieee1275_map
30225
30226 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
30227 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
30228 Remove.
30229 * kern/ieee1275/openfw.c (grub_map): Rename to ...
30230 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
30231 necessary.
30232 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
30233
30234 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30235
30236 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
30237 opening and not after.
30238
30239 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30240
30241 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
30242 constants.
30243
30244 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30245
30246 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
30247 (alloc_phys): Use ALIGN_UP instead of align_addr.
30248
30249 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30250
30251 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
30252
30253 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30254
30255 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
30256
30257 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30258
30259 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
30260 verbose dprintf.
30261
30262 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30263
30264 Fix over-4GiB seek on sparc64.
30265
30266 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
30267 Replace pos_i and pos_lo with pos. All users updated.
30268 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30269 New constant.
30270 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30271 Likewise.
30272 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
30273 and pos_lo.
30274
30275 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30276
30277 * util/grub-mkrawimage.c (main): Call set_program_name.
30278
30279 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30280
30281 Properly align 64-bit targets.
30282
30283 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
30284 (generate_image): Use ALIGN_ADDR.
30285
30286 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30287
30288 Properly create cross-endian images.
30289
30290 * include/grub/types.h (grub_host_to_target_addr): New macro
30291 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
30292
30293 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30294
30295 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
30296
30297 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30298
30299 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
30300
30301 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
30302 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
30303 (grub_linux_boot): Divide by 64K when on VESA.
30304
30305 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30306
30307 Support GRUB_GFXPAYLOAD_LINUX.
30308
30309 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
30310 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
30311
30312 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30313
30314 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
30315 to show messages instead of discarding them.
30316 Process errors after executing command and not before. Keep old method
30317 too as precaution.
30318
30319 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
30320
30321 * configure.ac: Check for ft2build.h.
30322
30323 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30324
30325 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
30326
30327 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30328
30329 * genkernsyms.sh.in: Use TARGET_CC.
30330
30331 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
30332
30333 * NEWS: Update.
30334
30335 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30336
30337 * include/grub/multiboot2.h: Remove leftover file.
30338 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
30339 * include/grub/partition.h [GRUB_UTIL]: Likewise.
30340
30341 2010-02-07 Yves Blusseau <blusseau@zetam.org>
30342
30343 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
30344
30345 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30346
30347 Fix warnings in grub-emu when compiling with maximum warning options.
30348
30349 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
30350 (grub_arch_modules_addr): Return 0 and not NULL.
30351 * util/misc.c (ENABLE_RELOCATABLE): New definition.
30352 (xstrdup): Use newstr instead of dup.
30353 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
30354 of disk to dsk to avoid shadowing.
30355 (find_free_slot): Fix prototype.
30356 * util/getroot.c (grub_util_is_dmraid): Make static.
30357 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
30358 Add missing prototype.
30359 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
30360
30361 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30362
30363 * loader/i386/linux.c (grub_linux_setup_video): Handle error
30364 appropriately.
30365
30366 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30367
30368 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
30369 code out.
30370
30371 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30372
30373 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
30374 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
30375 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
30376 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
30377 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
30378 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
30379
30380 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30381
30382 * include/grub/err.h (grub_err_printf): Don't export.
30383
30384 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30385
30386 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
30387
30388 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30389
30390 * include/grub/i18n.h (grub_gettext_dummy): Removed.
30391 * kern/misc.c (grub_gettext_dummy): Make static.
30392
30393 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30394
30395 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
30396 by non-valid ones.
30397 * kern/term.c (grub_putchar): Likewise.
30398
30399 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30400
30401 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
30402 buggy hook call and memory leak.
30403
30404 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30405
30406 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
30407
30408 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30409
30410 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
30411
30412 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30413
30414 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
30415 modevar.
30416 Return grub_errno on allocation error.
30417
30418 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30419
30420 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
30421
30422 2010-02-06 Yves Blusseau <blusseau@zetam.org>
30423
30424 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
30425 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
30426
30427 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30428
30429 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
30430 non-pxe disk.
30431 (grub_pxefs_open): Likewise.
30432
30433 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30434
30435 * util/grub.d/10_hurd.in: Add --class information to menuentries.
30436 * util/grub.d/10_kfreebsd.in: Likewise.
30437 * util/grub.d/10_linux.in: Likewise.
30438
30439 2010-02-06 Colin D Bennett <colin@gibibit.com>
30440
30441 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
30442 (gfxmenu_mod_SOURCES): New variable.
30443 (gfxmenu_mod_CFLAGS): Likewise.
30444 (gfxmenu_mod_LDFLAGS): Likewise.
30445 * include/grub/term.h (grub_term_set_current_output): Declare
30446 argument as const.
30447 * docs/gfxmenu-theme-example.txt: New file.
30448 * gfxmenu/gfxmenu.c: Likewise.
30449 * gfxmenu/gui_box.c: Likewise.
30450 * gfxmenu/gui_canvas.c: Likewise.
30451 * gfxmenu/gui_circular_progress.c: Likewise.
30452 * gfxmenu/gui_image.c: Likewise.
30453 * gfxmenu/gui_label.c: Likewise.
30454 * gfxmenu/gui_list.c: Likewise.
30455 * gfxmenu/gui_progress_bar.c: Likewise.
30456 * gfxmenu/gui_string_util.c: Likewise.
30457 * gfxmenu/gui_util.c: Likewise.
30458 * gfxmenu/icon_manager.c: Likewise.
30459 * gfxmenu/model.c: Likewise.
30460 * gfxmenu/named_colors.c: Likewise.
30461 * gfxmenu/theme_loader.c: Likewise.
30462 * gfxmenu/view.c: Likewise.
30463 * gfxmenu/widget-box.c: Likewise.
30464 * include/grub/gfxmenu_model.h: Likewise.
30465 * include/grub/gfxmenu_view.h: Likewise.
30466 * include/grub/gfxwidgets.h: Likewise.
30467 * include/grub/gui.h: Likewise.
30468 * include/grub/gui_string_util.h: Likewise.
30469 * include/grub/icon_manager.h: Likewise.
30470
30471 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30472
30473 Agglomerate scrolling in gfxterm.
30474
30475 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
30476 (grub_virtual_screen_setup): Initialise 'total_screen'.
30477 (write_char): Split to ...
30478 (paint_char): ... this ...
30479 (write_char): ... and this.
30480 (paint_char): Handle delayed scrolling.
30481 (draw_cursor): Likewise.
30482 (scroll_up): Split to ...
30483 (real_scroll): ... this ...
30484 (scroll_up): ... and this.
30485 (real_scroll): Handle multi-line scroll and draw below-the-bottom
30486 characters.
30487 (grub_gfxterm_refresh): Call real_scroll.
30488
30489 2010-02-06 Colin D Bennett <colin@gibibit.com>
30490
30491 * include/grub/misc.h (grub_iscntrl): New inline function.
30492 (grub_isalnum): Likewise.
30493 (grub_strtol): Likewise.
30494
30495 2010-02-06 Colin D Bennett <colin@gibibit.com>
30496
30497 * normal/menu_text.c (get_entry_number): Move from here ...
30498 * normal/menu.c (get_entry_number): ... moved here.
30499 * include/grub/menu.h (grub_menu_get_default_entry_index):
30500 New prototype.
30501 * normal/menu.c (grub_menu_get_default_entry_index): New function.
30502 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
30503 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
30504 (grub_menu_viewer_should_return): Likewise.
30505 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
30506 * normal/menu_text.c (run_menu): Enable menu switching.
30507 * normal/menu_viewer.c (should_return): New variable.
30508 (menu_viewer_changed): Likewise.
30509 (grub_menu_viewer_show_menu): Handle menu viewer changes.
30510 (grub_menu_viewer_should_return): New function.
30511 (menuviewer_write_hook): Likewise.
30512 (grub_menu_viewer_init): Likewise.
30513
30514 2010-02-06 Colin D Bennet <colin@gibibit.com>
30515 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30516
30517 Support for gfxterm in a window.
30518
30519 * include/grub/gfxterm.h: New file.
30520 * include/grub/video.h (struct grub_video_rect): New declaration.
30521 (grub_video_rect_t): Likewise.
30522 * term/gfxterm.c (struct grub_gfxterm_window): New type.
30523 (refcount): New variable.
30524 (render_target): Likewise.
30525 (window): Likewise.
30526 (repaint_callback): Likewise.
30527 (grub_virtual_screen_setup): Use 'render_target'.
30528 (init_window): New function.
30529 (grub_gfxterm_init_window): Likewise.
30530 (grub_gfxterm_init): Check reference counter.
30531 Use init_window.
30532 (destroy_window): New function.
30533 (grub_gfxterm_destroy_window): Likewise.
30534 (grub_gfxterm_fini): Check reference counter.
30535 Use destroy_window.
30536 (redraw_screen_rect): Restore viewport.
30537 Use 'render_target' and 'window'.
30538 Call 'repaint_callback'.
30539 (write_char): Use 'render_target'.
30540 (draw_cursor): Likewise.
30541 (scroll_up): Restore viewport.
30542 Use 'render_target' and 'window'.
30543 Call 'repaint_callback'.
30544 (grub_gfxterm_cls): Likewise.
30545 (grub_gfxterm_refresh): Use 'window'.
30546 (grub_gfxterm_set_repaint_callback): New function.
30547 (grub_gfxterm_background_image_cmd): Use 'window'.
30548 (grub_gfxterm_get_term): New function.
30549 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
30550
30551 2010-02-06 Colin D Bennett <colin@gibibit.com>
30552
30553 Bitmap scaling support.
30554
30555 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
30556 (bitmap_scale_mod_SOURCES): New variable.
30557 (bitmap_scale_mod_CFLAGS): Likewise.
30558 (bitmap_scale_mod_LDFLAGS): Likewise.
30559 * include/grub/bitmap_scale.h: New file.
30560 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
30561 (background_image_cmd_options): New variable.
30562 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
30563 (cmd): Rename and change type to ...
30564 (background_image_cmd_handle): ... this. All users updated.
30565 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
30566 * video/bitmap_scale.c: New file.
30567
30568 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30569
30570 SDL support.
30571
30572 * Makefile.in (LIBSDL): New variable.
30573 (enable_grub_emu_sdl): Likewise.
30574 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
30575 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
30576 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
30577 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
30578 * util/sdl.c: New file.
30579
30580 2010-02-06 Colin D Bennett <colin@gibibit.com>
30581 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30582
30583 Double buffering support.
30584
30585 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
30586 * include/grub/video.h: Update comment.
30587 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
30588 New type.
30589 (grub_video_fb_doublebuf_blit_init): New prototype.
30590 * term/gfxterm.c (scroll_up): Support double buffering.
30591 (grub_gfxterm_refresh): Likewise.
30592 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
30593 (grub_video_fb_doublebuf_blit_init): Likewise.
30594 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
30595 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
30596 'displayed_page', 'render_page' and 'update_screen'.
30597 (grub_video_vbe_fini): Free offscreen buffer.
30598 (doublebuf_pageflipping_commit): New function.
30599 (doublebuf_pageflipping_update_screen): Likewise.
30600 (doublebuf_pageflipping_init): Likewise.
30601 (double_buffering_init): Likewise.
30602 (grub_video_vbe_setup): Enable doublebuffering.
30603 (grub_video_vbe_swap_buffers): Implement.
30604 (grub_video_vbe_set_active_render_target): Handle double buffering.
30605 (grub_video_vbe_get_active_render_target): Likewise.
30606 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
30607 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
30608 (grub_video_vbe_enable_double_buffering): Likewise.
30609 (grub_video_vbe_swap_buffers): Use update_screen.
30610 (grub_video_set_mode): Use double buffering.
30611
30612 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30613
30614 * maintainance/gentrigtables.py: Remove.
30615 * lib/trig.c: Likewise.
30616
30617 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
30618
30619 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
30620 `trigtables.c'.
30621 (trigtables.c): New rule.
30622 (gentrigtables): Likewise.
30623 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
30624
30625 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30626
30627 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
30628 integer constants.
30629
30630 2010-02-06 Colin D Bennet <colin@gibibit.com>
30631
30632 Trigonometry support.
30633
30634 * include/grub/trig.h: New file.
30635 * lib/trig.c: Likewise.
30636 * maintainance/gentrigtables.py: Likewise.
30637 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
30638 (trig_mod_SOURCES): New variable.
30639 (trig_mod_CFLAGS): Likewise.
30640 (trig_mod_LDFLAGS): Likewise.
30641
30642 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30643
30644 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
30645 disk devices.
30646
30647 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30648
30649 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
30650 error.
30651
30652 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30653
30654 * util/hostdisk.c (open_device): Don't use partition device when reading
30655 before the partition.
30656 (grub_util_biosdisk_read): Don't read from partition and before the
30657 partition in single operation.
30658 (grub_util_biosdisk_write): Don't write to partition and before the
30659 partition in single operation.
30660
30661 2010-02-03 Torsten Landschoff <torsten@debian.org>
30662
30663 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30664 last sectors.
30665
30666 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30667
30668 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
30669 CDROM reads.
30670 (grub_biosdisk_write): Refuse to write to CDROM.
30671
30672 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30673
30674 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
30675
30676 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30677
30678 * font/font.c (find_glyph): Check that bmp_idx is available before
30679 using it.
30680 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
30681 with (font == NULL).
30682
30683 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
30684
30685 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
30686
30687 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
30688
30689 * include/grub/script_sh.h (sourcecode): Add const qualifier.
30690 * util/grub-script-check.c (getline): Fix empty lines case.
30691
30692 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
30693
30694 * Makefile.in (check): Exit with fail status when one of the tests
30695 fails.
30696 * tests/example_functional_test.c (example_test): Fix reversed assert.
30697 * tests/example_unit_test.c (example_test): Likewise.
30698
30699 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
30700
30701 * util/grub.d/10_linux.in: This script does not use any of the
30702 contents of gettext.sh, only the external command `gettext', so stop
30703 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
30704 the same prefix as GRUB.)
30705 * util/grub.d/10_kfreebsd.in: Likewise.
30706
30707 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30708
30709 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
30710 of the line.
30711
30712 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30713
30714 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30715 last sectors.
30716
30717 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30718
30719 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
30720 having a 4KiB and not 32KiB buffer size.
30721
30722 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30723
30724 * util/hostfs.c: Include `<errno.h>'.
30725 (grub_hostfs_read): Handle errors from fseeko() and fread().
30726
30727 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30728
30729 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
30730 loop when using read hooks on files whose size isn't sector-aligned.
30731
30732 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30733
30734 Remove unused parameter.
30735
30736 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
30737 (grub_iso9660_open): Remove initialization of `data->length'.
30738
30739 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30740
30741 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
30742 memleak conditions.
30743
30744 2010-01-27 Carles Pina i Estany <carles@pina.cat>
30745
30746 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
30747 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
30748
30749 2010-01-26 Carles Pina i Estany <carles@pina.cat>
30750
30751 * util/bin2h.c (usage): Fix warning (space after backslash).
30752
30753 2010-01-26 Carles Pina i Estany <carles@pina.cat>
30754
30755 * font/font.c: Include `grub/fontformat.h.
30756 Remove font file format constants.
30757 (grub_font_load): Use the new macros.
30758 * include/grub/fontformat.h: New file.
30759 * util/grub-mkfont.c: Include `grub/fontformat.c'.
30760 (write_font_pf2): Use the new macros.
30761
30762 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30763
30764 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
30765 does.
30766
30767 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30768
30769 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
30770
30771 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
30772 (_start): Macroify `0x7F'.
30773
30774 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
30775 (make_install_device): Use "(pxe)" as fallback prefix when booting
30776 via PXE.
30777
30778 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
30779
30780 * configure.ac: Reset LIBS after check for libgcc symbols.
30781
30782 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
30783
30784 * util/hostdisk.c (open_device): Add trailing newline to debug
30785 message.
30786
30787 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
30788
30789 * configure.ac: Check for `limits.h'.
30790 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
30791
30792 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
30793
30794 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
30795 capitalize error strings.
30796
30797 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
30798
30799 * util/grub.d/10_hurd.in: Add a recovery mode.
30800
30801 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
30802
30803 * configure.ac: Check for libgcc symbols with -nostdlib.
30804
30805 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
30806
30807 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
30808
30809 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30810
30811 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
30812 stack since heap may be unavailable at that point.
30813 (grub_ofconsole_gotoxy): Likewise.
30814
30815 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30816
30817 * configure.ac: Check for _restgpr_14_x.
30818 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
30819 and _savegpr_* prototypes.
30820
30821 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
30822
30823 Use generic grub_reboot() for i386-efi.
30824
30825 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
30826 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
30827 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
30828
30829 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30830
30831 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
30832 presence of "prefix" variable as it breaks when normal.mod is
30833 embedded.
30834
30835 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30836
30837 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
30838 stack since heap is unavailable at that point.
30839
30840 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30841
30842 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
30843 (grub_freebsd_bootinfo): Rewritten.
30844 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
30845
30846 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30847
30848 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
30849
30850 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
30851
30852 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
30853 domain now.
30854
30855 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
30856
30857 * util/misc.c (make_system_path_relative_to_its_root): Change the work
30858 around for handling "/" to the correct fix. Fix a memory leak. Use
30859 xstrdup instead of strdup.
30860
30861 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30862
30863 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
30864
30865 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30866
30867 Optimise glyph lookup by Basic Multilingual Plane lookup array.
30868
30869 * font/font.c (struct grub_font): New member 'bmp_idx'.
30870 (font_init): Initialise 'bmp_idx'.
30871 (load_font_index): Fill 'bmp_idx'.
30872 (find_glyph): Make inline. Use bmp_idx for BMP characters.
30873
30874 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30875
30876 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
30877 unnecessary calls.
30878
30879 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30880
30881 Move context handling out of the kernel.
30882
30883 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
30884 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
30885 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
30886 * conf/i386-efi.rmk: Likewise.
30887 * conf/i386-ieee1275.rmk: Likewise.
30888 * conf/i386-pc.rmk: Likewise.
30889 * conf/powerpc-ieee1275.rmk: Likewise.
30890 * conf/sparc64-ieee1275.rmk: Likewise.
30891 * conf/x86_64-efi.rmk: Likewise.
30892 * include/grub/env.h: Include grub/menu.h.
30893 (grub_env_var_type): Removed.
30894 (grub_env_var): Replaced field 'type' with 'global'.
30895 (grub_env_find): New prototype.
30896 (grub_env_context_open): Remove EXPORT_FUNC.
30897 (grub_env_context_close): Likewise.
30898 (grub_env_export): Likewise.
30899 (grub_env_set_data_slot): Removed.
30900 (grub_env_get_data_slot): Likewise.
30901 (grub_env_unset_data_slot): Likewise.
30902 (grub_env_unset_menu): New prototype.
30903 (grub_env_set_menu): Likewise.
30904 (grub_env_get_menu): Likewise.
30905 * include/grub/env_private.h: New file.
30906 * include/grub/normal.h (grub_context_init): New prototype.
30907 (grub_context_fini): Likewise.
30908 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
30909 * normal/context.c (grub_cmd_export): ... to here.
30910 * kern/env.c: Include env_private.h.
30911 (HASHSZ): Moved to include/grub/env_private.h.
30912 (grub_env_context): Likewise.
30913 (grub_env_sorted_var): Likewise.
30914 (current_context): Renamed from this ...
30915 (grub_current_context): ...to this. 'static' removed. All users updated.
30916 (grub_env_find): Removed 'static'.
30917 (grub_env_context_open): Moved to normal/context.c.
30918 (grub_env_context_close): Likewise.
30919 (grub_env_export): Likewise.
30920 (mangle_data_slot_name): Removed.
30921 (grub_env_set_data_slot): Likewise.
30922 (grub_env_get_data_slot): Likewise.
30923 (grub_env_unset_data_slot): Likewise.
30924 * kern/main.c (grub_set_root_dev): Don't export root.
30925 It will be done later.
30926 (grub_main): Don't export prefix.
30927 It will be done later.
30928 * normal/context.c: New file.
30929 * normal/main.c (free_menu): Use grub_env_unset_menu.
30930 (grub_normal_add_menu_entry): Use grub_env_get_menu.
30931 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
30932 (GRUB_MOD_INIT(normal)): Call grub_context_init.
30933 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
30934
30935 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30936
30937 setpci support.
30938
30939 * commands/setpci.c: New file.
30940 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
30941 (setpci_mod_SOURCES): New variable.
30942 (setpci_mod_CFLAGS): Likewise.
30943 (setpci_mod_LDFLAGS): Likewise.
30944
30945 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30946
30947 Byte-addressable PCI configuration space.
30948
30949 * bus/pci.c (grub_pci_make_address): Use byte address instead of
30950 dword address.
30951 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
30952 GRUB_PCI_REG_CACHELINE.
30953 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
30954 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
30955 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
30956 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
30957 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
30958 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
30959 grub_pci_make_address.
30960 (lock_rom_area): Likewise.
30961 * commands/lspci.c (grub_lspci_iter): Use macroses
30962 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
30963 of grub_pci_make_address.
30964 * disk/ata.c (grub_ata_pciinit): Likewise.
30965 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
30966 (GRUB_PCI_REG_VENDOR): Likewise.
30967 (GRUB_PCI_REG_DEVICE): Likewise.
30968 (GRUB_PCI_REG_COMMAND): Likewise.
30969 (GRUB_PCI_REG_STATUS): Likewise.
30970 (GRUB_PCI_REG_REVISION): Likewise.
30971 (GRUB_PCI_REG_CLASS): Likewise.
30972 (GRUB_PCI_REG_CACHELINE): Likewise.
30973 (GRUB_PCI_REG_LAT_TIMER): Likewise.
30974 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
30975 (GRUB_PCI_REG_BIST): Likewise.
30976 (GRUB_PCI_REG_ADDRESSES): Likewise.
30977 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30978 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30979 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30980 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30981 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30982 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30983 (GRUB_PCI_REG_CIS_POINTER): Likewise.
30984 (GRUB_PCI_REG_SUBVENDOR): Likewise.
30985 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
30986 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
30987 (GRUB_PCI_REG_CAP_POINTER): Likewise.
30988 (GRUB_PCI_REG_IRQ_LINE): Likewise.
30989 (GRUB_PCI_REG_IRQ_PIN): Likewise.
30990 (GRUB_PCI_REG_MIN_GNT): Likewise.
30991 (GRUB_PCI_REG_MAX_LAT): Likewise.
30992 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
30993 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
30994 * video/efi_uga.c (find_framebuf): Likewise.
30995 * video/sm712.c (grub_video_sm712_setup): Likewise.
30996 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
30997 space.
30998
30999 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31000
31001 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
31002 can be reliably determined to be supported.
31003
31004 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31005
31006 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
31007 that VESA is supported.
31008 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
31009 supported.
31010
31011 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31012
31013 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
31014
31015 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31016
31017 * util/misc.c (make_system_path_relative_to_its_root): Work around
31018 special-casing of "/", as previous incarnation of this routine did.
31019
31020 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31021
31022 Fix any-emu compilation.
31023
31024 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
31025 * grub_bin2h_SOURCES: New variable.
31026
31027 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31028
31029 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
31030
31031 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31032
31033 * util/grub.d/00_header.in: Fix handling of locale_dir.
31034
31035 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31036
31037 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
31038 as possible unifont location (Gentoo).
31039 Reported by: Alexander Brüning
31040
31041 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31042
31043 Don't try to generate lists for kernel.img.
31044
31045 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
31046 (pkglib_MODULES): Remove kernel.img.
31047 (kernel_img_EXPORTS): Removed.
31048 (kernel_img_RELOCATABLE): New variable.
31049 * conf/x86_64-efi.rmk: Likewise.
31050 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
31051
31052 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31053
31054 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
31055 grub_xasprintf or grub_snprintf.
31056 (grub_vsprintf): Likewise.
31057 (grub_snprintf): New proto.
31058 (grub_vsnprintf): Likewise.
31059 (grub_xasprintf): Likewise.
31060 (grub_xvasprintf): Likewise.
31061 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
31062 (grub_sprintf): Removed.
31063 (grub_vsnprintf): New function.
31064 (grub_snprintf): Likewise.
31065 (grub_xvasprintf): Likewise.
31066 (grub_xasprintf): Likewise.
31067 (grub_vsprintf): Renamed to ...
31068 (grub_vsnprintf_real): ...this. New argument max_len.
31069
31070 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
31071
31072 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
31073 fix grub-script-check warning.
31074
31075 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31076
31077 * include/grub/font.h (grub_font_load): Fix prototype.
31078
31079 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31080
31081 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
31082
31083 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31084
31085 * include/grub/x86_64/at_keyboard.h: New file.
31086
31087 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31088
31089 * loader/mips/linux.c: Include missing grub/i18n.h.
31090
31091 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31092
31093 * normal/menu.c (notify_execution_failure): Clarify error message.
31094
31095 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31096
31097 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
31098 return value (and revert all return statements). Update users.
31099
31100 2010-01-20 Dan Merillat <debian@dan.merillat.org>
31101
31102 * kern/device.c (grub_device_iterate): Allocate new part_ent
31103 structure based on sizeof (*p) rather than sizeof (p->next), to
31104 account for structure padding.
31105
31106 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
31107 disk is NULL, which might happen for LVM physical volumes with no
31108 LVM signature.
31109
31110 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31111
31112 * loader/mips/linux.c (grub_cmd_initrd)
31113 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
31114
31115 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31116
31117 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
31118 (grub_video_video_init, grub_video_bitmap_init)
31119 (grub_font_manager_init, grub_term_gfxterm_init)
31120 (grub_at_keyboard_init): New extern declarations.
31121 (grub_machine_init): Initialize gfxterm and at_keyboard.
31122
31123 * kern/main.c (grub_main): Revert grub_printf delay kludge.
31124
31125 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
31126 `gfxterm.mod' into core image.
31127
31128 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31129 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31130 (kernel_img_FORMAT): Copy to ...
31131
31132 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31133 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31134 (kernel_img_FORMAT): ... here, and ...
31135
31136 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31137 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31138 (kernel_img_FORMAT): ... here.
31139
31140 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
31141 and input (at_keyboard) terminals in kernel.
31142 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
31143
31144 (pkglib_MODULES): Remove `pci.mod'.
31145 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
31146 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
31147 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
31148 (at_keyboard_mod_LDFLAGS): Remove variables.
31149
31150 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
31151
31152 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
31153
31154 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
31155
31156 * include/grub/mips/libgcc.h: Only export symbols for functions
31157 that libgcc provides.
31158
31159 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
31160
31161 MIPS support.
31162
31163 * bus/bonito.c: New file.
31164 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
31165 GRUB_PCI_NUM_DEVICES.
31166 * term/i386/pc/serial.c: Move to ...
31167 * term/serial.c: ... here. All users updated.
31168 * util/i386/pc/grub-mkimage.c: Move to ...
31169 * util/grub-mkrawimage.c: ... here. All users updated.
31170 * term/i386/pc/at_keyboard.c: Move to ...
31171 * term/at_keyboard.c: ... here. All users updated.
31172 * conf/mips-qemu-mips.rmk: New file.
31173 * conf/mips-yeeloong.rmk: Likewise.
31174 * conf/mips.rmk: Likewise.
31175 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
31176 mipsel-qemu-mips.
31177 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
31178 to port addresses.
31179 (grub_ata_pciinit): Support CS5536.
31180 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
31181 * font/font_cmd.c (loadfont_command): Open file before passing it to
31182 grub_font_load.
31183 (pseudo_file_read): New function.
31184 (pseudo_file_close): Likewise.
31185 (pseudo_fs): New structure.
31186 (load_font_module): New function.
31187 (GRUB_MOD_INIT(font_manager)): Load embedded font.
31188 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
31189 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
31190 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
31191 * include/grub/i386/at_keyboard.h: Split into ...
31192 * include/grub/at_keyboard.h: ... this ...
31193 * include/grub/i386/at_keyboard.h: ... and this.
31194 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
31195 New prototype.
31196 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
31197 updated.
31198 (grub_elf64_size): Likewise.
31199 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
31200 filename.
31201 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
31202 * include/grub/i386/coreboot/serial.h: Rewritten.
31203 * include/grub/i386/ieee1275/serial.h: Include
31204 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
31205 * include/grub/i386/pc/serial.h: Moved from here ...
31206 * include/grub/serial.h: ... to here. All users updated.
31207 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
31208 (GRUB_PCI_NUM_BUS): Likewise.
31209 (GRUB_PCI_NUM_DEVICES): Likewise.
31210 (grub_pci_device_map_range): Add missing volatile keyword.
31211 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
31212 * include/grub/mips/at_keyboard.h: New file.
31213 * include/grub/mips/cache.h: Likewise.
31214 * include/grub/mips/io.h: Likewise.
31215 * include/grub/mips/kernel.h: Likewise.
31216 * include/grub/mips/libgcc.h: Likewise.
31217 * include/grub/mips/pci.h: Likewise.
31218 * include/grub/mips/qemu-mips/boot.h: Likewise.
31219 * include/grub/mips/qemu-mips/kernel.h: Likewise.
31220 * include/grub/mips/qemu-mips/loader.h: Likewise.
31221 * include/grub/mips/qemu-mips/memory.h: Likewise.
31222 * include/grub/mips/qemu-mips/serial.h: Likewise.
31223 * include/grub/mips/qemu-mips/time.h: Likewise.
31224 * include/grub/mips/relocator.h: Likewise.
31225 * include/grub/mips/time.h: Likewise.
31226 * include/grub/mips/types.h: Likewise.
31227 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
31228 * include/grub/mips/yeeloong/boot.h: Likewise.
31229 * include/grub/mips/yeeloong/kernel.h: Likewise.
31230 * include/grub/mips/yeeloong/loader.h: Likewise.
31231 * include/grub/mips/yeeloong/memory.h: Likewise.
31232 * include/grub/mips/yeeloong/pci.h: Likewise.
31233 * include/grub/mips/yeeloong/serial.h: Likewise.
31234 * include/grub/mips/yeeloong/time.h: Likewise.
31235 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
31236 * kern/elf.c (grub_elf32_size): New parameter. All users
31237 updated.
31238 (grub_elf64_size): Likewise.
31239 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
31240 Load modules before saying "Welcome to GRUB!".
31241 Call grub_refresh after saying "Welcome to GRUB!".
31242 * kern/mips/cache.S: New file.
31243 * kern/mips/cache_flush.S: Likewise.
31244 * kern/mips/dl.c: Likewise.
31245 * kern/mips/init.c: Likewise.
31246 * kern/mips/qemu-mips/init.c: Likewise.
31247 * kern/mips/startup.S: Likewise.
31248 * kern/mips/yeeloong/init.c: Likewise.
31249 * kern/term.c (grub_putcode): Handle NULL terminal.
31250 (grub_getcharwidth): Likewise.
31251 (grub_getkey): Likewise.
31252 (grub_checkkey): Likewise.
31253 (grub_getkeystatus): Likewise.
31254 (grub_getxy): Likewise.
31255 (grub_getwh): Likewise.
31256 (grub_gotoxy): Likewise.
31257 (grub_cls): Likewise.
31258 (grub_setcolorstate): Likewise.
31259 (grub_setcolor): Likewise.
31260 (grub_getcolor): Likewise.
31261 (grub_refresh): Likewise.
31262 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
31263 (write_jump): Add hatch nop.
31264 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
31265 * lib/mips/setjmp.S: New file.
31266 * loader/mips/linux.c: Likewise.
31267 * term/i386/pc/at_keyboard.c: Move from here ...
31268 * term/at_keyboard.c: ... to here.
31269 * term/i386/pc/serial.c: Moved from here ...
31270 * term/serial.c: ... to here. All users updated.
31271 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
31272 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
31273 (serial_translate_key_sequence): Avoid deadlock.
31274 (grub_serial_getkey): Handle backspace.
31275 (grub_serial_putchar): Fix newline handling.
31276 * util/i386/pc/grub-mkimage.c: Move from here ...
31277 * util/grub-mkrawimage.c: ... to here. All users updated.
31278 (generate_image): New parameters 'font_path' and 'format'.
31279 Support embedding font.
31280 Use grub_host_to_target* instead of grub_cpu_to_le*.
31281 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
31282 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
31283 (options): New option "--font".
31284 (usage): Likewise.
31285 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
31286 (main): Handle "--font".
31287 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
31288 (grub_virtual_screen_setup): Set bg_color_display.
31289 (redraw_screen_rect): Use bg_color_display instead of incorrect
31290 bg_color.
31291 (grub_gfxterm_cls): Likewise.
31292 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
31293 Support embedding config file.
31294 (add_segments): Likewise.
31295 (options): New option "--config".
31296 (main): Handle "--config".
31297 * video/sm712.c: New file.
31298
31299 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31300
31301 Fix parallel builds.
31302
31303 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
31304 font.c depend on ascii.h).
31305
31306 2010-01-12 Carles Pina i Estany <carles@pina.cat>
31307
31308 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
31309
31310 2010-01-11 Carles Pina i Estany <carles@pina.cat>
31311
31312 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
31313 By default: disabled.
31314 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
31315 parameter.
31316
31317 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31318
31319 * font/font.c: Update copyright years.
31320 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
31321
31322 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31323
31324 * font/font.c: Include `ascii.h'.
31325 (ASCII_BITMAP_SIZE): New macro.
31326 (ascii_font_glyph): Define.
31327 (ascii_glyph_lookup): New function.
31328 (grub_font_get_string_width): Change comment. If glyph not found, use
31329 ascii_glyph_lookup.
31330 (grub_font_get_glyph_with_fallback): If glyph not available returns
31331 ascii_glyph_lookup.
31332 * util/grub-mkfont.c (file_formats): New enum.
31333 (options): Add `ascii-bitmaps' new option.
31334 (usage): Add `asii-bitmaps' new option.
31335 (write_font_ascii_bitmap): New function.
31336 (write_font): Rename to ...
31337 (write_font_p2): ... this. Remove print_glyphs call.
31338 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
31339 used. Call print_glyphs.
31340 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
31341
31342 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31343
31344 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
31345 (grub_bin2h_SOURCES): New variable.
31346 * util/bin2h.c: New file.
31347
31348 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31349
31350 * include/multiboot.h: Resynced with spec.
31351 * include/multiboot2.h: Likewise.
31352 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
31353 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
31354
31355 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31356
31357 * include/grub/term.h (grub_term_register_input,
31358 grub_term_register_output): Check return of terminal init()
31359 routines, and abort if errors are raised.
31360
31361 * commands/terminal.c: Update copyright year.
31362
31363 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31364
31365 * commands/terminal.c (grub_cmd_terminal_input)
31366 (grub_cmd_terminal_output): Check return of terminal init()
31367 routines, and abort if errors are raised.
31368
31369 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31370
31371 * include/grub/i386/bsd.h: Fix include pathes.
31372
31373 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31374
31375 Add missing *BSD copyright headers.
31376
31377 * include/grub/aout.h: Add BSD licence.
31378 * include/grub/i386/bsd.h: Parts under different licences moved to ...
31379 * include/grub/i386/freebsd_linker.h: ... here,
31380 * include/grub/i386/freebsd_reboot.h: ... here,
31381 * include/grub/i386/netbsd_bootinfo.h: ... here,
31382 * include/grub/i386/netbsd_reboot.h: ... here,
31383 * include/grub/i386/openbsd_bootarg.h: ... here,
31384 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
31385 licence to each file.
31386
31387 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31388
31389 * acinclude.m4: Remove `nop' assembly instruction; it's not
31390 implemented by all architectures.
31391
31392 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31393
31394 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
31395 ELILO. This is no longer necessary.
31396
31397 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
31398
31399 Added new tool, grub-scrit-check to verify grub.cfg syntax.
31400
31401 * util/grub-script-check.c: grub-script-check tool.
31402 * conf/common.rmk: Make rules for grub-script-check.
31403
31404 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31405
31406 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
31407 spotting it back in 2008. Shame on me for forgetting he did.
31408
31409 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
31410
31411 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31412
31413 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
31414 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
31415 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
31416 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
31417 (GRUB_VIDEO_TYPE_EFI): Rename to ...
31418 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
31419
31420 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
31421
31422 * include/grub/test.h: Add license header.
31423 * tests/example_functional_test.c: Likewise.
31424 * tests/example_unit_test.c: Likewise.
31425 * tests/lib/functional_test.c: Likewise.
31426 * tests/lib/test.c: Likewise.
31427 * tests/lib/unit_test.c: Likewise.
31428
31429 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
31430
31431 Use flag-based instead of hook-based video mode selection and "auto"
31432 keyword.
31433
31434 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
31435 (grub_video_set_mode): Changed prototype. All users updated.
31436 (grub_video_check_mode_flag): New inline function.
31437 * video/video.c (parse_modespec): New function.
31438 (grub_video_set_mode): Parse flags and keywords.
31439
31440 2010-01-17 Carles Pina i Estany <carles@pina.cat>
31441
31442 * util/misc.c (grub_util_info): Fix the order of the parameters in a
31443 fprintf call.
31444
31445 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
31446
31447 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
31448
31449 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31450
31451 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
31452 string.
31453 * util/grub-emu.c (usage): Likewise.
31454 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
31455 * util/i386/efi/grub-mkimage.c (usage): Likewise.
31456 * util/i386/pc/grub-mkimage.c (usage): Likewise.
31457 * util/i386/pc/grub-setup.c (usage): Likewise.
31458
31459 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31460
31461 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
31462 the message.
31463 (grub_util_info): Likewise.
31464 (grub_util_error): Likewise.
31465 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
31466 and/or new lines in `grub_util_warna', `grub_util_info',
31467 `grub_util_error' calls.
31468 * util/getroot.c: Likewise.
31469 * util/grub-editenv.c: Likewise.
31470 * util/grub-emu.c: Likewise.
31471 * util/grub-fstest.c: Likewise.
31472 * util/grub-mkdevicemap.c: Likewise.
31473 * util/grub-mkfont.c: Likewise.
31474 * util/grub-mkpasswd-pbkdf2.c: Likewise.
31475 * util/grub-mkrelpath.c: Likewise.
31476 * util/grub-pe2elf.c: Likewise.
31477 * util/grub-probe.c: Likewise.
31478 * util/hostdisk.c: Likewise.
31479 * util/i386/efi/grub-mkimage.c: Likewise.
31480 * util/i386/pc/grub-mkimage.c: Likewise.
31481 * util/i386/pc/grub-setup.c: Likewise.
31482 * util/ieee1275/ofpath.c: Likewise.
31483 * util/mkisofs/eltorito.c: Likewise.
31484 * util/mkisofs/rock.c: Likewise.
31485 * util/mkisofs/write.c: Likewise.
31486 * util/raid.c: Likewise.
31487 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
31488 * util/sparc64/ieee1275/grub-setup.c: Likewise.
31489
31490 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31491
31492 Enable multiboot on non-pc.
31493
31494 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
31495 multiboot.mod and multiboot2.mod to ...
31496 * conf/i386.rmk (pkglib_MODULES): ... here.
31497 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
31498 Moved to ...
31499 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
31500 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
31501 Moved to ...
31502 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
31503 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
31504 Moved to ...
31505 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
31506 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
31507 Moved to ...
31508 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
31509 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
31510 relocator.mod.
31511 (ata_mod_SOURCES): Removed.
31512 (ata_mod_CFLAGS): Likewise.
31513 (ata_mod_LDFLAGS): Likewise.
31514 (relocator_mod_SOURCES): Removed.
31515 (relocator_mod_CFLAGS): Likewise.
31516 (relocator_mod_ASFLAGS): Likewise.
31517 (relocator_mod_LDFLAGS): Likewise.
31518 Include i386.mk.
31519 * include/grub/x86_64/multiboot.h: New file.
31520 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
31521 Terminate EFI.
31522
31523 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31524
31525 Video multiboot support.
31526
31527 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
31528 New prototype.
31529 * include/multiboot.h: Resynced with multiboot specification.
31530 * include/multiboot2.h: Likewise.
31531 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
31532 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
31533 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
31534 (HAS_VGA_TEXT): Likewise.
31535 (accepts_video): New variable.
31536 (grub_multiboot_set_accepts_video): New function.
31537 (grub_multiboot_get_mbi_size): Account for video structures.
31538 (set_video_mode): New function.
31539 (retrieve_video_parameters): Likewise.
31540 (grub_multiboot_make_mbi): Fill video fields.
31541
31542 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31543
31544 Video driver ids.
31545
31546 * include/grub/video.h (grub_video_driver_id): New type.
31547 (grub_video_adapter): New member 'id'. All users updated.
31548 (grub_video_get_driver_id): New proto.
31549 * video/video.c (grub_video_get_driver_id): New function.
31550
31551 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31552
31553 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
31554 `var=val'.
31555
31556 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31557
31558 * normal/cmdline.c (print_completion): Gettextizze.
31559
31560 2001-01-14 Carles Pina i Estany <carles@pina.cat>
31561
31562 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
31563
31564 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31565
31566 * gettext/gettext.c (grub_gettext_translate): Push and pop
31567 grub_errno.
31568 (grub_gettext_delete_list): Change comment style.
31569 * kern/err.c (grub_error): Gettextizze.
31570 (grub_fatal): Gettextizze.
31571
31572 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31573
31574 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
31575 (grub_linux16_real_boot): ... this.
31576 * kern/i386/loader.S: Likewise.
31577 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
31578 (grub_linux16_boot): New function. Switches to text mode and calls
31579 grub_linux16_real_boot().
31580
31581 * loader/i386/bsd.c: Include `<grub/video.h>'.
31582 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
31583 text mode before calling grub_unix_real_boot().
31584
31585 * loader/i386/multiboot.c: Include `<grub/video.h>'.
31586 (grub_multiboot_boot): Switch to text mode before calling
31587 grub_relocator32_boot().
31588
31589 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
31590 (grub_chainloader_boot): Switch to text mode before calling
31591 grub_chainloader_real_boot().
31592
31593 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31594 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31595
31596 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
31597 non-empty value.
31598
31599 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31600 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31601
31602 * util/grub.d/00_header.in: Define a "savedefault" function for use
31603 in menu entries.
31604 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
31605
31606 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31607 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31608
31609 * util/grub-mkconfig_lib.in (save_default_entry): Only set
31610 saved_entry if boot_once is unset.
31611 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
31612 previous saved entry (i.e. grub-reboot).
31613
31614 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31615
31616 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
31617
31618 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31619
31620 * util/grub.d/00_header.in: Use `set var=val' rather than plain
31621 `var=val'.
31622 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
31623
31624 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31625
31626 * util/grub-reboot.in: Fix --version output.
31627 * util/grub-set-default.in: Likewise.
31628
31629 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31630
31631 * util/grub.d/00_header.in: Silently ignore zero-sized environment
31632 blocks.
31633
31634 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31635
31636 * util/grub.d/00_header.in: Quote the value assigned to `default',
31637 in case it contains spaces.
31638
31639 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31640
31641 * util/grub.d/30_os-prober.in: Fix merge error that moved a
31642 `save_default_entry' call from the macosx case to the linux case.
31643
31644 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
31645 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
31646
31647 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
31648 in `chosen' environment variable.
31649 * normal/menu_text.c (get_entry_number): Check if the variable
31650 matches the title of a menu entry.
31651 (run_menu): Pass menu to get_entry_number.
31652
31653 * util/grub-reboot.in: New file.
31654 * util/grub-set-default.in: New file.
31655 * conf/common.rmk (grub-reboot): New utility.
31656 (grub-set-default): New utility.
31657
31658 * util/grub-mkconfig_lib.in (save_default_entry): New function.
31659 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
31660 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
31661 move it to `saved_entry' for the next boot. Load environment on
31662 initialisation.
31663 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
31664 * util/grub.d/10_hurd.in: Likewise.
31665 * util/grub.d/10_linux.in (linux_entry): Likewise.
31666 * util/grub.d/10_windows.in: Likewise.
31667 * util/grub.d/30_os-prober.in: Likewise.
31668
31669 * util/grub-install.in: Create environment block.
31670 * util/i386/efi/grub-install.in: Likewise.
31671 * util/ieee1275/grub-install.in: Likewise.
31672 * util/sparc64/ieee1275/grub-install.in: Likewise.
31673
31674 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
31675
31676 Unit testing framework for GRUB.
31677
31678 * Makefile.in: Test framework build rules for 'make check'.
31679 * conf/tests.rmk: Build rules for individual tests and framework.
31680
31681 * include/grub/test.h: Header file for whitebox tests.
31682 * tests/lib/functional_test.c: Framework support for whitebox
31683 functional tests.
31684 * tests/lib/test.c: Common whitebox testing code for unit and
31685 functional tests.
31686 * tests/lib/unit_test.c: Framework support for whitebox unit
31687 tests.
31688
31689 * tests/util/grub-shell-tester.in: Support utility for grub-script
31690 tests.
31691 * tests/util/grub-shell.in: Utility to execute grub-script
31692 commands in a Qemu instance.
31693
31694 * tests/example_functional_test.c: Example whitebox functional
31695 test.
31696 * tests/example_grub_script_test.in: Example grub-script test.
31697 * tests/example_scripted_test.in: Example scripted test.
31698 * tests/example_unit_test.c: Example whitebox unit test.
31699
31700 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
31701
31702 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
31703 Add loader/i386/multiboot_mbi.c.
31704 (multiboot2_mod_SOURCES): Likewise.
31705 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
31706 (multiboot2_mod_SOURCES): Likewise.
31707 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
31708 (grub_multiboot_make_mbi): Likewise.
31709 (grub_multiboot_free_mbi): Likewise.
31710 (grub_multiboot_init_mbi): Likewise.
31711 (grub_multiboot_add_module): Likewise.
31712 (grub_multiboot_set_bootdev): Likewise.
31713 * loader/i386/multiboot.c (mbi): Removed.
31714 (mbi_dest): Likewise.
31715 (alloc_mbi): New variable.
31716 (grub_multiboot_payload_size): Removed. All users updated.
31717 (grub_multiboot_pure_size): New variable.
31718 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
31719 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
31720 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
31721 (grub_fill_multiboot_mmap): Likewise.
31722 (grub_multiboot_get_bootdev): Likewise.
31723 (grub_multiboot): Use multiboot_mbi functions.
31724 * loader/i386/multiboot_mbi.c: New file.
31725
31726 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31727
31728 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
31729 it would result in module crash.
31730
31731 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31732
31733 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
31734 (grub_ofconsole_getwh): Split to ...
31735 (grub_ofconsole_getwh): ... this.
31736 (grub_ofconsole_dimensions): ...and this.
31737 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
31738
31739 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
31740
31741 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
31742
31743 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31744
31745 * loader/i386/pc/multiboot2.c: Removed stalled file.
31746
31747 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31748
31749 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
31750 Reported by: Grégoire Sutre
31751
31752 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
31753
31754 * util/misc.c (canonicalize_file_name): New function.
31755 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
31756 instead of realpath().
31757
31758 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
31759
31760 * util/grub-install.in (usage): Clarify meaning of --root-directory,
31761 and make it clearer that it's optional. Based on confusion
31762 witnessed on IRC.
31763
31764 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31765
31766 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
31767 in premature implicit newline.
31768
31769 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31770
31771 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
31772 which resulted in garbled command line at the end of screen.
31773
31774 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31775
31776 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
31777 initialization with similar approach as with other Linux loaders.
31778
31779 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31780
31781 Fix i386-ieee1275 build.
31782
31783 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
31784 and grub_term_height() for video_{width,height} initialization.
31785
31786 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31787
31788 Fix grub-emu build.
31789
31790 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
31791
31792 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
31793 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
31794
31795 Support for multiple terminals.
31796
31797 * Makefile.in (pkglib_DATA): terminal.lst.
31798 (terminal.lst): New target.
31799 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
31800 (GRUB_MOD_INIT(handler)): Likewise.
31801 (GRUB_MOD_FINI(handler)): Likewise.
31802 * commands/help.c (grub_cmd_help): Handle multiple terminals.
31803 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
31804 * commands/sleep.c (do_print): Use grub_term_restore_pos.
31805 (grub_cmd_sleep): Use grub_term_save_pos.
31806 * commands/terminal.c: New file.
31807 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
31808 commands/terminal.c and lib/charset.c.
31809 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
31810 (pkglib_MODULES): Add terminal.mod.
31811 (terminal_mod_SOURCES): New variable.
31812 (terminal_mod_CFLAGS): Likewise.
31813 (terminal_mod_LDFLAGS): Likewise.
31814 * genhandlerlist.sh: Don't handle terminals.
31815 * genmk.rb: Generate terminal-*.lst.
31816 * genterminallist.sh: New file.
31817 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
31818 (grub_is_valid_utf8): Likewise.
31819 (grub_utf8_to_ucs4_alloc): Likewise.
31820 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
31821 (grub_menu_register_viewer): Changed argument.
31822 (grub_menu_try_text): New proto.
31823 (grub_gfxmenu_try_hook): New declaration.
31824 * include/grub/normal.h (grub_normal_exit_level): New declaration.
31825 (grub_menu_init_page): Additional argument term.
31826 (grub_normal_init_page): Likewise.
31827 (grub_cmdline_get): Arguments simplified.
31828 (grub_utf8_to_ucs4_alloc): Removed.
31829 (grub_print_ucs4): Additional argument term.
31830 (grub_getstringwidth): Likewise.
31831 (grub_print_message_indented): Likewise.
31832 (grub_menu_text_register_instances): New proto.
31833 (grub_show_menu): Likewise.
31834 (read_terminal_list): Likewise.
31835 (grub_set_more): Likewise.
31836 * include/grub/parser.h: Include handler.h.
31837 * include/grub/reader.h: Rewritten.
31838 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
31839 (GRUB_TERM_WIDTH): Changed to function.
31840 (GRUB_TERM_HEIGHT): Likewise.
31841 (GRUB_TERM_BORDER_WIDTH): Likewise.
31842 (GRUB_TERM_BORDER_HEIGHT): Likewise.
31843 (GRUB_TERM_NUM_ENTRIES): Likewise.
31844 (GRUB_TERM_ENTRY_WIDTH): Likewise.
31845 (GRUB_TERM_CURSOR_X): Likewise.
31846 (grub_term_input_class): Likewise.
31847 (grub_term_output_class): Likewise.
31848 (grub_term_outputs_disabled): New declaration.
31849 (grub_term_inputs_disabled): Likewise.
31850 (grub_term_outputs): Likewise.
31851 (grub_term_inputs): Likewise.
31852 (grub_term_register_input): Rewritten.
31853 (grub_term_register_output): Likewise.
31854 (grub_term_unregister_input): Likewise.
31855 (grub_term_unregister_output): Likewise.
31856 (FOR_ACTIVE_TERM_INPUTS): New macro.
31857 (FOR_DISABLED_TERM_INPUTS): Likewise.
31858 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
31859 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
31860 * include/grub/terminfo.h: Add oterm argument to all protypes.
31861 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
31862 Use grub_rescue_run.
31863 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
31864 All users updated.
31865 * kern/reader.c: Removed. All users updated.
31866 * kern/rescue_reader.c (grub_rescue_init): Removed.
31867 (grub_rescue_reader): Likewise.
31868 (grub_register_rescue_reader): Likewise.
31869 (grub_rescue_run): New function based on kern/reader.c.
31870 * kern/term.c: Adapted for multiterm.
31871 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
31872 (grub_is_valid_utf8): Likewise.
31873 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
31874 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
31875 right terminal.
31876 * loader/i386/linux.c (grub_linux_boot): Likewise.
31877 * normal/auth.c (grub_username_get): New function.
31878 (grub_auth_check_authentication): Use grub_username_get.
31879 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
31880 * normal/color.c: Adapt for multiterm.
31881 * normal/main.c (read_config_file): Don't use grub_reader_loop.
31882 (grub_normal_init_page): Additional argument term.
31883 (read_lists): Call read_terminal_lists.
31884 (grub_enter_normal_mode): Call grub_cmdline_run.
31885 Handle grub_normal_exit_level.
31886 (grub_cmd_normal): Make reentrant.
31887 (grub_cmd_normal_exit): New function.
31888 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
31889 * normal/menu.c: Adapt for multiterm.
31890 * normal/menu_entry.c: Likewise.
31891 * normal/menu_text.c: Likewise.
31892 * normal/menu_viewer.c: Removed. All users updated.
31893 * normal/term.c: New file.
31894 * util/console.c: Change order of includes to workaround a bug in
31895 ncurses headers.
31896 * term/terminfo.c: New argument oterm on all exported functions.
31897 All users updated.
31898 * util/grub-editenv.c (grub_term_input_class): Removed.
31899 (grub_term_output_class): Likewise.
31900
31901 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
31902
31903 Make loader output a bit more user-friendly.
31904
31905 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
31906 is being loaded. Likewise for the Hurd.
31907
31908 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
31909 that kernel of FreeBSD ${version} is being loaded.
31910
31911 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
31912 grub_dprintf().
31913 (grub_cmd_initrd): Likewise.
31914 * util/grub.d/10_linux.in (linux_entry): Print message indicating
31915 that Linux ${version} is being loaded. Likewise for initrd.
31916
31917 2010-01-09 Carles Pina i Estany <carles@pina.cat>
31918
31919 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
31920
31921 2010-01-08 Carles Pina i Estany <carles@pina.cat>
31922
31923 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
31924 (GRUB_MOD_INIT): Gettextizze.
31925 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
31926 (GRUB_MOD_INIT): Gettextizze.
31927 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
31928 (grub_cmd_linux): Capitalise Linux.
31929 (GRUB_MOD_INIT): Gettextizze.
31930 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
31931 (grub_cmd_linux): Capitalise Linux.
31932 (GRUB_MOD_INIT): Gettextizze.
31933 * loader/i386/linux.c: Include `<grub/i18n.h>'.
31934 (grub_cmd_linux): Capitalise Linux.
31935 (GRUB_MOD_INIT): Gettextizze.
31936 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
31937 (GRUB_MOD_INIT): Gettextizze.
31938 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
31939 (grub_cmd_linux): Capitalise Linux.
31940 (GRUB_MOD_INIT): Gettextizze.
31941 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
31942 (grub_cpu_xnu_init): Gettextizze.
31943 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
31944 (GRUB_MOD_INIT): Gettextizze.
31945 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
31946 (GRUB_MOD_INIT): Gettextizze.
31947 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
31948 (grub_linux_load64): Capitalise Linux.
31949 (GRUB_MOD_INIT): Gettextizze.
31950 * loader/xnu.c: Include `<grub/i18n.h>'.
31951 (GRUB_MOD_INIT): Gettextizze.
31952 * po/POTFILES: Add `loader/efi/appleloader.c',
31953 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
31954 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
31955 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
31956 `loader/i386/xnu.c', `loader/multiboot_loader.c',
31957 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
31958 and `loader/xnu.c'.
31959
31960 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
31961
31962 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
31963
31964 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
31965
31966 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
31967 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
31968 * util/mkisofs/mkisofs.c (main): Readjust --version output.
31969
31970 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
31971
31972 Reset Multiboot 2 support. New loader implements the draft in
31973 /branches/multiboot2 and shares as much code as possible with the
31974 production Multiboot 1 implementation.
31975
31976 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
31977 * loader/multiboot2.c: Likewise.
31978 * loader/i386/multiboot_helper.S: Likewise.
31979 * include/multiboot2.h: Replace with latest version from the draft
31980 in /branches/multiboot2.
31981
31982 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
31983 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
31984 and `loader/multiboot2.c'.
31985 (pkglib_MODULES): Add `multiboot2.mod'.
31986 (multiboot2_mod_SOURCES): New variable.
31987 (multiboot2_mod_LDFLAGS): Likewise.
31988 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
31989
31990 * conf/i386-pc.rmk: Likewise.
31991
31992 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
31993 (multiboot_mod_SOURCES): Remove variable.
31994 (multiboot_mod_LDFLAGS): Likewise.
31995 (multiboot_mod_CFLAGS): Likewise.
31996
31997 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
31998 `<multiboot2.h>' instead of `<multiboot.h>'.
31999 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
32000 (MULTIBOOT_HEADER_MAGIC): New macros.
32001
32002 * loader/multiboot_loader.c (module_version_status): Remove variable.
32003 (find_multi_boot2_header): Remove function.
32004 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
32005 logic. Always check for the Multiboot version we're compiling for.
32006 (grub_cmd_module_loader): Likewise.
32007 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
32008 command instead of `multiboot'.
32009
32010 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32011
32012 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
32013 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
32014 all users.
32015
32016 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32017 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32018
32019 Fix breakage introduced with previous commit.
32020
32021 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
32022 commands.
32023 * normal/handler.c (read_handler_list): Revert part of previous commit
32024 affecting this file.
32025 * normal/main.c (read_lists): Move read_handler_list() call back to ...
32026 (grub_normal_execute): ... here.
32027
32028 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32029
32030 Merge prefix-redefinition-fix branch.
32031
32032 * normal/autofs.c (read_fs_list): Make function capable of being
32033 run multiple times, gracefuly replacing the previous data
32034 structures.
32035 * normal/dyncmd.c (read_command_list): Likewise.
32036 * normal/handler.c (read_handler_list): Likewise.
32037 * normal/main.c (read_lists): New function. Calls all the
32038 list reading functions.
32039 (grub_normal_execute): Use read_lists() instead of calling all
32040 list reading functions explicitly. Register read_lists() as a
32041 variable hook attached to ${prefix}.
32042
32043 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32044
32045 Merge crypto branch.
32046
32047 * Makefile.in (pkglib_DATA): Add crypto.lst.
32048 (crypto.lst): New target.
32049 * commands/hashsum.c: New file.
32050 * commands/password.c (check_password): Use grub_crypto_memcmp.
32051 * commands/password_pbkdf2.c: New file.
32052 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
32053 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
32054 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
32055 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
32056 -I$(srcdir)/lib/libgcrypt_wrap.
32057 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
32058 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
32059 password_pbkdf2.mod.
32060 (crypto_mod_SOURCES): New variable.
32061 (crypto_mod_CFLAGS): Likewise.
32062 (crypto_mod_LDFLAGS): Likewise.
32063 (hashsum_mod_SOURCES): New variable.
32064 (hashsum_mod_CFLAGS): Likewise.
32065 (hashsum_mod_LDFLAGS): Likewise.
32066 (pbkdf2_mod_SOURCES): New variable.
32067 (pbkdf2_mod_CFLAGS): Likewise.
32068 (pbkdf2_mod_LDFLAGS): Likewise.
32069 (password_pbkdf2_mod_SOURCES): New variable.
32070 (password_pbkdf2_mod_CFLAGS): Likewise.
32071 (password_pbkdf2_mod_LDFLAGS): Likewise.
32072 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
32073 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
32074 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
32075 Include conf/gcry.rmk.
32076 * include/grub/auth.h: Rewritten.
32077 * include/grub/crypto.h: New file.
32078 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
32079 * include/grub/normal.h (read_crypto_list): New prototype.
32080 * lib/crypto.c: New file.
32081 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
32082 * lib/pbkdf2.c: Likewise.
32083 * normal/auth.c (grub_auth_strcmp): Removed.
32084 (grub_iswordseparator): Likewise.
32085 (grub_auth_strword): Likewise.
32086 (is_authenticated): Use grub_strword.
32087 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
32088 and grub_strword. Pass entered password to authentication callback.
32089 * normal/crypto.c: New file.
32090 * normal/main.c: Call read_crypto_list.
32091 * util/grub-mkpasswd-pbkdf2.c: New file.
32092 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
32093
32094 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
32095
32096 Fix descent and ascent calculation.
32097
32098 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
32099 (options): New option "asce".
32100 (usage): Likewise.
32101 (add_char): Ignore invalid glyphs for descent calculation.
32102 Calculate ascent from actual content.
32103 (print_glyphs): Use 'asce'.
32104 (write_font): Likewise. Allow ascent override.
32105 (main): Handle "asce" option.
32106
32107 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32108
32109 * kern/err.c: Include `<grub/i18n.h>'.
32110 (grub_print_error): Add full stop. Gettextizze.
32111 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
32112 (grub_bsd_load_elf): Capitalise ELF.
32113 (grub_cmd_freebsd_loadenv): Add `s' in error string.
32114 (grub_cmd_freebsd_module): Likewise.
32115 (grub_cmd_freebsd_module_elf): Likewise.
32116 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
32117
32118 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32119
32120 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
32121 * commands/search_file.c (HELP_MESSAGE): New macro.
32122 * commands/search_label.c (HELP_MESSAGE): Likewise.
32123 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
32124 * po/POTFILES: Add `commands/search_file.c',
32125 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
32126 `commands/search.c'.
32127
32128 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32129
32130 * config.rpath: Update from Gnulib.
32131
32132 2010-01-05 Yves Blusseau <blusseau@zetam.org>
32133
32134 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
32135
32136 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
32137
32138 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
32139
32140 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32141
32142 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
32143 arguments to fread so that we get a return value in bytes, rather
32144 than something that will normally be rounded down to 0.
32145 Adjust error handling to avoid producing garbage when size_t is not
32146 the same size as long long.
32147
32148 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32149
32150 * util/mkisofs/write.c (padblock_write): Check return value of
32151 fread.
32152
32153 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32154
32155 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
32156 floppy images now.
32157
32158 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
32159
32160 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32161
32162 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
32163 instead of manual alignment.
32164 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
32165 verbose). Avoid attempts to read past end of the device
32166 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
32167 but GRUB_DISK_CACHE_SIZE may exceed that).
32168
32169 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32170
32171 * commands/crc.c (grub_cmd_crc): Abort on read errors.
32172 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
32173 it to upper layer.
32174
32175 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32176
32177 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
32178 New constant.
32179 (grub_efi_piwg_device_path): New structure
32180 (grub_efi_piwg_device_path_t): New type.
32181 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
32182 (devpath_1): Transform to a structure. All users updated.
32183 (devpath_2): Likewise.
32184 (devpath_3): Likewise.
32185 (devpath_4): Likewise.
32186 (devpath_5): Likewise.
32187
32188 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32189
32190 * loader/efi/appleloader.c: Restored. Update all users.
32191
32192 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32193
32194 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
32195
32196 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
32197 (struct boot_blocklist): Move from here ...
32198 * include/grub/i386/pc/boot.h [ASM_FILE]
32199 (struct grub_boot_blocklist): ... to here. Update all users.
32200 (setup): Only initialize `start' member of `first_block'
32201 structure. Add assert() calls to verify the other members.
32202
32203 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
32204 (generate_image): Fix broken blocklist length initialization.
32205 Add assert() call to verify blocklist `segment' field.
32206
32207 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32208
32209 * loader/efi/appleloader.c: Remove. Update all users.
32210
32211 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32212
32213 * boot/i386/pc/boot.S: Update copyright year.
32214 * boot/i386/pc/cdboot.S: Likewise.
32215 * boot/i386/pc/diskboot.S: Likewise.
32216 * boot/i386/pc/lnxboot.S: Likewise.
32217 * boot/i386/pc/pxeboot.S: Likewise.
32218 * bus/pci.c: Likewise.
32219 * commands/cmp.c: Likewise.
32220 * commands/help.c: Likewise.
32221 * commands/hexdump.c: Likewise.
32222 * commands/i386/pc/halt.c: Likewise.
32223 * commands/i386/pc/play.c: Likewise.
32224 * commands/i386/pc/vbeinfo.c: Likewise.
32225 * commands/ls.c: Likewise.
32226 * commands/test.c: Likewise.
32227 * disk/dmraid_nvidia.c: Likewise.
32228 * disk/i386/pc/biosdisk.c: Likewise.
32229 * disk/ieee1275/nand.c: Likewise.
32230 * disk/ieee1275/ofdisk.c: Likewise.
32231 * disk/lvm.c: Likewise.
32232 * disk/raid.c: Likewise.
32233 * disk/raid6_recover.c: Likewise.
32234 * disk/scsi.c: Likewise.
32235 * fs/affs.c: Likewise.
32236 * fs/cpio.c: Likewise.
32237 * fs/ext2.c: Likewise.
32238 * fs/hfs.c: Likewise.
32239 * fs/iso9660.c: Likewise.
32240 * fs/ntfs.c: Likewise.
32241 * fs/sfs.c: Likewise.
32242 * fs/udf.c: Likewise.
32243 * fs/ufs.c: Likewise.
32244 * fs/xfs.c: Likewise.
32245 * gencmdlist.sh: Likewise.
32246 * genmk.rb: Likewise.
32247 * include/grub/disk.h: Likewise.
32248 * include/grub/efi/api.h: Likewise.
32249 * include/grub/efi/efi.h: Likewise.
32250 * include/grub/efi/pe32.h: Likewise.
32251 * include/grub/elf.h: Likewise.
32252 * include/grub/fs.h: Likewise.
32253 * include/grub/i386/at_keyboard.h: Likewise.
32254 * include/grub/i386/pc/memory.h: Likewise.
32255 * include/grub/i386/pc/vbe.h: Likewise.
32256 * include/grub/i386/pci.h: Likewise.
32257 * include/grub/i386/tsc.h: Likewise.
32258 * include/grub/ieee1275/ieee1275.h: Likewise.
32259 * include/grub/ntfs.h: Likewise.
32260 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
32261 * include/grub/sparc64/libgcc.h: Likewise.
32262 * include/grub/symbol.h: Likewise.
32263 * include/grub/types.h: Likewise.
32264 * include/multiboot2.h: Likewise.
32265 * io/gzio.c: Likewise.
32266 * kern/device.c: Likewise.
32267 * kern/disk.c: Likewise.
32268 * kern/efi/efi.c: Likewise.
32269 * kern/efi/mm.c: Likewise.
32270 * kern/elf.c: Likewise.
32271 * kern/file.c: Likewise.
32272 * kern/i386/dl.c: Likewise.
32273 * kern/i386/pc/init.c: Likewise.
32274 * kern/i386/pc/startup.S: Likewise.
32275 * kern/ieee1275/ieee1275.c: Likewise.
32276 * kern/ieee1275/init.c: Likewise.
32277 * kern/main.c: Likewise.
32278 * kern/mm.c: Likewise.
32279 * kern/powerpc/dl.c: Likewise.
32280 * kern/sparc64/dl.c: Likewise.
32281 * kern/x86_64/dl.c: Likewise.
32282 * lib/hexdump.c: Likewise.
32283 * loader/efi/appleloader.c: Likewise.
32284 * loader/i386/ieee1275/linux.c: Likewise.
32285 * loader/i386/pc/chainloader.c: Likewise.
32286 * loader/i386/pc/linux.c: Likewise.
32287 * loader/i386/pc/multiboot2.c: Likewise.
32288 * loader/ieee1275/multiboot2.c: Likewise.
32289 * loader/multiboot2.c: Likewise.
32290 * loader/multiboot_loader.c: Likewise.
32291 * loader/powerpc/ieee1275/linux.c: Likewise.
32292 * normal/completion.c: Likewise.
32293 * normal/menu_entry.c: Likewise.
32294 * partmap/apple.c: Likewise.
32295 * util/grub.d/10_hurd.in: Likewise.
32296 * util/hostfs.c: Likewise.
32297 * video/readers/png.c: Likewise.
32298
32299 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
32300
32301 * include/grub/misc.h (GNUC_PREREQ): New macro.
32302 (ATTRIBUTE_ERROR): New macro.
32303 * include/grub/list.h (grub_bad_type_cast_real): Use
32304 ATTRIBUTE_ERROR.
32305
32306 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32307
32308 * normal/menu_text.c (print_message): Change messages.
32309
32310 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32311
32312 * normal/menu_entry.c (store_completion): Gettextizze.
32313
32314 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32315
32316 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
32317
32318 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32319
32320 * po/POTFILES: Sort correctly.
32321
32322 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32323
32324 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
32325 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
32326 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
32327 full stop.
32328 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
32329 summary. Gettextizze the strings.
32330 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
32331 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
32332 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
32333 full stop.
32334 (GRUB_MOD_INIT): Remove command name from summary.
32335 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
32336 summary.
32337 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
32338 * term/i386/pc/serial.c (options): Add full stops.
32339 (GRUB_MOD_INIT): Remove command name from the summary.
32340
32341 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32342
32343 * commands/acpi.c: Gettextizze help strings and/or options. Include
32344 `grub/i18n.h' if needed.
32345 * commands/blocklist.c: Likewise.
32346 * commands/boot.c: Likewise.
32347 * commands/cat.c: Likewise.
32348 * commands/cmp.c: Likewise.
32349 * commands/configfile.c: Likewise.
32350 * commands/crc.c: Likewise.
32351 * commands/date.c: Likewise.
32352 * commands/echo.c: Likewise.
32353 * commands/efi/fixvideo.c: Likewise.
32354 * commands/efi/loadbios.c: Likewise.
32355 * commands/gptsync.c: Likewise.
32356 * commands/halt.c: Likewise.
32357 * commands/handler.c: Likewise.
32358 * commands/hdparm.c: Likewise.
32359 * commands/hexdump.c: Likewise.
32360 * commands/i386/cpuid.c: Likewise.
32361 * commands/i386/pc/drivemap.c: Likewise.
32362 * commands/i386/pc/halt.c: Likewise.
32363 * commands/i386/pc/pxecmd.c: Likewise.
32364 * commands/i386/pc/vbeinfo.c: Likewise.
32365 * commands/i386/pc/vbetest.c: Likewise.
32366 * commands/ieee1275/suspend.c: Likewise.
32367 * commands/keystatus.c: Likewise.
32368 * commands/loadenv.c: Likewise.
32369 * commands/ls.c: Likewise.
32370 * commands/lsmmap.c: Likewise.
32371 * commands/lspci.c: Likewise.
32372 * commands/memrw.c: Likewise.
32373 * commands/minicmd.c: Likewise.
32374 * commands/parttool.c: Likewise.
32375 * commands/password.c: Likewise.
32376 * commands/probe.c: Likewise.
32377 * commands/read.c: Likewise.
32378 * commands/reboot.c: Likewise.
32379 * commands/search.c: Likewise.
32380 * commands/sleep.c: Likewise.
32381 * commands/test.c: Likewise.
32382 * commands/true.c: Likewise.
32383 * commands/usbtest.c: Likewise.
32384 * commands/videotest.c: Likewise.
32385 * commands/xnu_uuid.c: Likewise.
32386 * disk/loopback.c: Likewise.
32387 * hello/hello.c: Likewise.
32388 * loader/i386/bsd.c: Likewise.
32389 * term/i386/pc/serial.c: Likewise.
32390 * po/POTFILES: Add new files.
32391
32392 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
32393
32394 * term/i386/pc/at_keyboard.c
32395 (keyboard_controller_wait_untill_ready): Rename to ...
32396 (keyboard_controller_wait_until_ready): ... this. Update all users.
32397
32398 2010-01-01 Carles Pina i Estany <carles@pina.cat>
32399
32400 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
32401 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
32402 string using string width.
32403 * normal/menu_text.c (grub_print_message_indented): Use
32404 grub_print_spaces and not print_spaces.
32405 (print_timeout): Likewise.
32406 (print_spaces): Move to...
32407 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
32408
32409 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
32410
32411 Import from Gnulib.
32412
32413 * gnulib/getdelim.c: New file.
32414 * gnulib/getline.c: Likewise.
32415
32416 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
32417
32418 * include/grub/list.h (grub_assert_fail): Removed.
32419 (grub_bad_type_cast_real): New function.
32420 (grub_bad_type_cast): New macro.
32421 (GRUB_AS_LIST): Use grub_bad_type_cast.
32422 (GRUB_AS_LIST_P): Likewise.
32423 (GRUB_AS_NAMED_LIST): Likewise.
32424 (GRUB_AS_NAMED_LIST_P): Likewise.
32425 (GRUB_AS_PRIO_LIST): Likewise.
32426 (GRUB_AS_PRIO_LIST_P): Likewise.
32427 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
32428
32429 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
32430
32431 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
32432 Fix syntax error.
32433
32434 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
32435
32436 * configure.ac: Check for TARGET_CFLAGS initialization before we
32437 initialize it ourselves (sigh).
32438 Move a few modifications to TARGET_CFLAGS to be unconditional
32439 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
32440 eh_frame)
32441
32442 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
32443 * term/i386/pc/at_keyboard.c
32444 (keyboard_controller_wait_untill_ready): Likewise.
32445 (keyboard_controller_led): Rename `led_status' paramter to avoid
32446 name conflict.
32447
32448 2009-12-28 Carles Pina i Estany <carles@pina.cat>
32449
32450 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
32451 quotes.
32452
32453 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32454
32455 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
32456
32457 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32458
32459 * normal/menu_text.c (grub_print_message_indented): Prevent
32460 past-the-end-of-array dereference.
32461
32462 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32463
32464 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
32465 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
32466
32467 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32468
32469 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
32470 * normal/main.c (grub_normal_read_line): Remove a space from the
32471 default prompt.
32472
32473 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32474
32475 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
32476 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32477 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32478 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32479 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32480 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32481 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32482
32483 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32484
32485 * video/readers/jpeg.c (cmd): Declare.
32486 (grub_cmd_jpegtest): Use `grub_command_t' type.
32487 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32488 Assign to `cmd'.
32489 (GRUB_MOD_FINI): Use `cmd' to unregister.
32490 * video/readers/png.c (cmd): Declare.
32491 (grub_cmd_pngtest): Use `grub_command_t' type.
32492 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32493 Assign to `cmd'.
32494 (GRUB_MOD_FINI): Use `cmd' to unregister.
32495 * video/readers/tga.c (cmd): Declare.
32496 (grub_cmd_tgatest): Use `grub_command_t' type.
32497 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32498 Assign to `cmd'.
32499 (GRUB_MOD_FINI): Use `cmd' to unregister.
32500
32501 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32502
32503 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
32504 stops.
32505 * kern/corecmd.c (grub_register_core_commands): Likewise.
32506 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
32507 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32508 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
32509 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32510 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32511 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
32512 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32513 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
32514 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32515 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32516 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32517 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32518 * normal/handler.c (insert_handler): Likewise.
32519 * normal/main.c (GRUB_MOD_INIT): Likewise.
32520 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
32521
32522 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32523
32524 * commands/help.c (grub_cmd_help): Print the command name before the
32525 summary.
32526 (GRUB_MOD_INIT): Remove command name from the summary.
32527 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
32528 string as summary.
32529 * lib/arg.c (find_long): Print the command name before the summary.
32530 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
32531 summary.
32532 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
32533 * commands/cat.c (GRUB_MOD_INIT): Likewise.
32534 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
32535 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
32536 * commands/crc.c (GRUB_MOD_INIT): Likewise.
32537 * commands/date.c (GRUB_MOD_INIT): Likewise.
32538 * commands/echo.c (GRUB_MOD_INIT): Likewise.
32539 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
32540 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
32541 * commands/handler.c (GRUB_MOD_INIT): Likewise.
32542 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
32543 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
32544 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
32545 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
32546 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
32547 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
32548 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
32549 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
32550 * commands/ls.c (GRUB_MOD_INIT): Likewise.
32551 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
32552 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
32553 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
32554 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
32555 * commands/password.c (GRUB_MOD_INIT): Likewise.
32556 * commands/probe.c (GRUB_MOD_INIT): Likewise.
32557 * commands/read.c (GRUB_MOD_INIT): Likewise.
32558 * commands/search.c (GRUB_MOD_INIT): Likewise.
32559 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
32560 * commands/test.c (GRUB_MOD_INIT): Likewise.
32561 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
32562 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
32563 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
32564 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
32565 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
32566 * lib/arg.c (GRUB_MOD_INIT): Likewise.
32567 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
32568 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32569 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32570 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32571 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
32572 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
32573 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
32574 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
32575
32576 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32577
32578 Use search command for preliminar UUID search.
32579
32580 * commands/search.c: Split into ...
32581 * commands/search_wrap.c: ...this
32582 * commands/search.c: ...and this.
32583 * commands/search_file.c: New file.
32584 * commands/search_label.c: New file.
32585 * commands/search_uuid.c: New file.
32586 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
32587 Add commands/search_wrap.c, commands/search_file.c,
32588 commands/search_label.c and commands/search_uuid.c.
32589 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
32590 (search_mod_SOURCES): Set to commands/search_wrap.c.
32591 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
32592 search_label.mod.
32593 (search_fs_file_mod_SOURCES): New variable.
32594 (search_fs_file_mod_CFLAGS): Likewise.
32595 (search_fs_file_mod_LDFLAGS): Likewise.
32596 (search_label_mod_SOURCES): Likewise.
32597 (search_label_mod_CFLAGS): Likewise.
32598 (search_label_mod_LDFLAGS): Likewise.
32599 (search_fs_uuid_mod_SOURCES): New variable.
32600 (search_fs_uuid_mod_CFLAGS): Likewise.
32601 (search_fs_uuid_mod_LDFLAGS): Likewise.
32602 (fs_file_mod_SOURCES): Removed.
32603 (fs_file_mod_CFLAGS): Likewise.
32604 (fs_file_mod_LDFLAGS): Likewise.
32605 (fs_uuid_mod_SOURCES): Removed.
32606 (fs_uuid_mod_CFLAGS): Likewise.
32607 (fs_uuid_mod_LDFLAGS): Likewise.
32608 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
32609 Set to util/grub-install.in.
32610 * disk/fs_file.c: Removed.
32611 * disk/fs_uuid.c: Likewise.
32612 * include/grub/search.h: New file.
32613 * util/grub-install.in: Handle sparc64.
32614 Create and use load.cfg.
32615 * util/sparc64/ieee1275/grub-install.in: Removed.
32616
32617 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32618
32619 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
32620 Ignore return status if CF is cleared.
32621 (grub_biosdisk_get_diskinfo_standard): Likewise.
32622
32623 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32624
32625 * term/i386/pc/at_keyboard.c
32626 (keyboard_controller_wait_untill_ready): New function.
32627 (grub_keyboard_controller_write, grub_keyboard_controller_read)
32628 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
32629 for keyboard polling, rather than duplicate the same loop. This
32630 saves a few bytes in code size.
32631
32632 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32633
32634 Support for (pxe[:server[:gateway]]) syntax and
32635 use environment variable for PXE.
32636
32637 * commands/i386/pc/pxecmd.c (options): Removed.
32638 (print_ip): Removed.
32639 (grub_cmd_pxe): Removed
32640 (grub_cmd_pxe_unload): New function.
32641 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
32642 (grub_pxe_your_ip): Made static.
32643 (grub_pxe_default_server_ip): Likewise.
32644 (grub_pxe_default_gateway_ip): Likewise.
32645 (grub_pxe_blksize): Likewise.
32646 (parse_ip): New function.
32647 (grub_pxe_open): Support server and gateway specification.
32648 (grub_pxe_close): Free disk->data.
32649 (grub_pxefs_open): Use disk->data.
32650 (grub_pxefs_read): Likewise.
32651 (grub_env_write_readonly): New function.
32652 (set_mac_env): Likewise.
32653 (set_env_limn_ro): Likewise.
32654 (parse_dhcp_vendor): Likewise.
32655 (grub_pxe_detect): Set the environment variables.
32656 (set_ip_env): New function.
32657 (write_ip_env): Likewise.
32658 (grub_env_write_pxe_default_server): Likewise.
32659 (grub_env_write_pxe_default_gateway): Likewise.
32660 (grub_env_write_pxe_blocksize): Likewise.
32661 (GRUB_MOD_INIT(pxe)): Set environment variables.
32662 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
32663 (grub_pxe_mac_addr_t): ... this. All users updated.
32664 (grub_pxe_your_ip): Removed.
32665 (grub_pxe_server_ip): Likewise.
32666 (grub_pxe_gateway_ip): Likewise.
32667 (grub_pxe_blksize): Likewise.
32668
32669 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32670
32671 * commands/help.c: Include `<grub/i18n.h>'.
32672 (grub_cmd_help): Gettextizze.
32673 (GRUB_MOD_INIT): Likewise.
32674 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
32675 (GRUB_MOD_INIT): Gettextizze.
32676 * commands/search.c: Include `<grub/i18n.h>'.
32677 (options): Gettextizze.
32678 (GRUB_MOD_INIT): Gettextizze.
32679 * lib/arg.c: Include `<grub/i18n.h>'.
32680 (help_options): Gettextizze.
32681 (find_long): Likewise.
32682 (grub_arg_show_help): Likewise.
32683 * normal/dyncmd.c: Include `<grub/i18n.h>'.
32684 (read_command_list): Gettextizze.
32685 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
32686 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
32687
32688 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32689
32690 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
32691 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
32692 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
32693 (led_status): New variable.
32694 (keyboard_controller_led): New function.
32695 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
32696 update led status for caps lock, num lock and scroll lock.
32697
32698 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
32699
32700 * util/hostdisk.c (open_device): Fix a comment.
32701
32702 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32703
32704 * util/grub-install.in (host_os): New variable.
32705 * util/i386/efi/grub-install.in (host_os): Likewise.
32706
32707 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32708
32709 * util/mkisofs/write.c (padblock_write): Abort when given an
32710 excedingly large embed image, instead of silently truncating it.
32711
32712 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32713
32714 * include/multiboot.h: Indentation fixes.
32715
32716 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32717
32718 * include/multiboot.h (struct multiboot_aout_symbol_table)
32719 (struct multiboot_elf_section_header_table): New structure
32720 declarations (stolen from GRUB Legacy).
32721 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
32722 table information.
32723
32724 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
32725 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
32726 type aliases.
32727
32728 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32729
32730 * include/multiboot.h: Make comments src2texi-friendly.
32731
32732 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32733
32734 For consistency with [multiboot]/docs/boot.S.
32735
32736 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
32737 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
32738 (MULTIBOOT_MAGIC2): Rename from this ...
32739 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
32740
32741 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32742
32743 * include/multiboot.h: Remove `<grub/types.h>'.
32744 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
32745 types. Update all users.
32746
32747 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32748
32749 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
32750 `couldn't' and `can not' by `cannot'.
32751 * commands/i386/pc/drivemap.c: Likewise.
32752 * disk/ata.c: Likewise.
32753 * disk/ieee1275/nand.c: Likewise.
32754 * fs/affs.c: Likewise.
32755 * fs/fat.c: Likewise.
32756 * fs/hfs.c: Likewise.
32757 * fs/hfsplus.c: Likewise.
32758 * fs/iso9660.c: Likewise.
32759 * fs/jfs.c: Likewise.
32760 * fs/minix.c: Likewise.
32761 * fs/reiserfs.c: Likewise.
32762 * fs/sfs.c: Likewise.
32763 * fs/udf.c: Likewise.
32764 * fs/ufs.c: Likewise.
32765 * fs/xfs.c: Likewise.
32766 * loader/powerpc/ieee1275/linux.c: Likewise.
32767 * loader/sparc64/ieee1275/linux.c: Likewise.
32768 * util/grub-probe.c: Likewise.
32769 * util/misc.c: Likewise.
32770
32771 2009-12-24 Carles Pina i Estany <carles@pina.cat>
32772
32773 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
32774 grub_errno calls.
32775 * commands/acpi.c: Likewise.
32776 * commands/blocklist.c: Likewise.
32777 * commands/efi/loadbios.c: Likewise.
32778 * commands/i386/pc/drivemap.c: Likewise.
32779 * commands/loadenv.c: Likewise.
32780 * commands/memrw.c: Likewise.
32781 * commands/password.c: Likewise.
32782 * commands/videotest.c: Likewise.
32783 * disk/ata.c: Likewise.
32784 * disk/ata_pthru.c: Likewise.
32785 * disk/dmraid_nvidia.c: Likewise.
32786 * disk/ieee1275/nand.c: Likewise.
32787 * disk/ieee1275/ofdisk.c: Likewise.
32788 * disk/loopback.c: Likewise.
32789 * disk/lvm.c: Likewise.
32790 * disk/mdraid_linux.c: Likewise.
32791 * disk/raid.c: Likewise.
32792 * disk/raid6_recover.c: Likewise.
32793 * disk/scsi.c: Likewise.
32794 * efiemu/main.c: Likewise.
32795 * efiemu/mm.c: Likewise.
32796 * efiemu/pnvram.c: Likewise.
32797 * efiemu/symbols.c: Likewise.
32798 * font/font.c: Likewise.
32799 * fs/cpio.c: Likewise.
32800 * fs/hfsplus.c: Likewise.
32801 * fs/iso9660.c: Likewise.
32802 * fs/jfs.c: Likewise.
32803 * fs/minix.c: Likewise.
32804 * fs/ntfs.c: Likewise.
32805 * fs/ntfscomp.c: Likewise.
32806 * fs/reiserfs.c: Likewise.
32807 * fs/ufs.c: Likewise.
32808 * fs/xfs.c: Likewise.
32809 * gettext/gettext.c: Likewise.
32810 * include/grub/auth.h: Likewise.
32811 * kern/elf.c: Likewise.
32812 * kern/file.c: Likewise.
32813 * kern/ieee1275/init.c: Likewise.
32814 * kern/ieee1275/mmap.c: Likewise.
32815 * kern/ieee1275/openfw.c: Likewise.
32816 * kern/powerpc/dl.c: Likewise.
32817 * kern/sparc64/dl.c: Likewise.
32818 * lib/arg.c: Likewise.
32819 * loader/i386/bsd.c: Likewise.
32820 * loader/i386/bsdXX.c: Likewise.
32821 * loader/i386/efi/linux.c: Likewise.
32822 * loader/i386/efi/xnu.c: Likewise.
32823 * loader/i386/ieee1275/linux.c: Likewise.
32824 * loader/i386/linux.c: Likewise.
32825 * loader/i386/multiboot.c: Likewise.
32826 * loader/i386/pc/linux.c: Likewise.
32827 * loader/i386/pc/multiboot2.c: Likewise.
32828 * loader/i386/xnu.c: Likewise.
32829 * loader/ieee1275/multiboot2.c: Likewise.
32830 * loader/macho.c: Likewise.
32831 * loader/machoXX.c: Likewise.
32832 * loader/multiboot2.c: Likewise.
32833 * loader/multiboot_loader.c: Likewise.
32834 * loader/powerpc/ieee1275/linux.c: Likewise.
32835 * loader/sparc64/ieee1275/linux.c: Likewise.
32836 * loader/xnu.c: Likewise.
32837 * loader/xnu_resume.c: Likewise.
32838 * mmap/i386/pc/mmap.c: Likewise.
32839 * normal/menu_viewer.c: Likewise.
32840 * partmap/acorn.c: Likewise.
32841 * partmap/amiga.c: Likewise.
32842 * partmap/apple.c: Likewise.
32843 * script/lexer.c: Likewise.
32844 * term/gfxterm.c: Likewise.
32845 * term/i386/pc/serial.c: Likewise.
32846 * term/i386/pc/vga.c: Likewise.
32847 * term/ieee1275/ofconsole.c: Likewise.
32848 * term/terminfo.c: Likewise.
32849 * video/bitmap.c: Likewise.
32850 * video/efi_gop.c: Likewise.
32851 * video/efi_uga.c: Likewise.
32852 * video/fb/video_fb.c: Likewise.
32853 * video/i386/pc/vbe.c: Likewise.
32854 * video/readers/tga.c: Likewise.
32855 * video/video.c: Likewise.
32856
32857 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
32858
32859 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
32860 * commands/lspci.c: Likewise.
32861 * commands/probe.c: Likewise.
32862 * commands/xnu_uuid.c: Likewise.
32863 * conf/i386-coreboot.rmk: Likewise.
32864 * conf/i386-efi.rmk: Likewise.
32865 * conf/i386-ieee1275.rmk: Likewise.
32866 * conf/i386-pc.rmk: Likewise.
32867 * conf/powerpc-ieee1275.rmk: Likewise.
32868 * conf/sparc64-ieee1275.rmk: Likewise.
32869 * conf/x86_64-efi.rmk: Likewise.
32870 * fs/i386/pc/pxe.c: Likewise.
32871 * gettext/gettext.c: Likewise.
32872 * include/grub/efi/graphics_output.h: Likewise.
32873 * include/grub/i386/pc/memory.h: Likewise.
32874 * kern/env.c: Likewise.
32875 * kern/i386/qemu/startup.S: Likewise.
32876 * lib/i386/pc/biosnum.c: Likewise.
32877 * lib/i386/relocator.c: Likewise.
32878 * lib/i386/relocator_asm.S: Likewise.
32879 * lib/relocator.c: Likewise.
32880 * loader/i386/bsd.c: Likewise.
32881 * loader/i386/multiboot.c: Likewise.
32882 * loader/i386/pc/chainloader.c: Likewise.
32883 * loader/i386/xnu.c: Likewise.
32884 * loader/xnu.c: Likewise.
32885 * normal/main.c: Likewise.
32886 * normal/menu_text.c: Likewise.
32887 * util/getroot.c: Likewise.
32888 * util/grub-mkconfig_lib.in: Likewise.
32889 * util/grub.d/00_header.in: Likewise.
32890 * util/i386/pc/grub-mkimage.c: Likewise.
32891 * util/mkisofs/eltorito.c: Likewise.
32892 * util/mkisofs/exclude.h: Likewise.
32893 * util/mkisofs/hash.c: Likewise.
32894 * util/mkisofs/iso9660.h: Likewise.
32895 * util/mkisofs/joliet.c: Likewise.
32896 * util/mkisofs/mkisofs.c: Likewise.
32897 * util/mkisofs/mkisofs.h: Likewise.
32898 * util/mkisofs/multi.c: Likewise.
32899 * util/mkisofs/name.c: Likewise.
32900 * util/mkisofs/rock.c: Likewise.
32901 * util/mkisofs/tree.c: Likewise.
32902 * util/mkisofs/write.c: Likewise.
32903 * video/efi_gop.c: Likewise.
32904
32905 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
32906
32907 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
32908 size counting.
32909
32910 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32911
32912 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
32913 * genmk.rb (class SCRIPT): Modify the target file instead of source.
32914
32915 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
32916
32917 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
32918 (GRUB_MOD_INIT(memrw)): Update help line.
32919
32920 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
32921
32922 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
32923 Use grub_extcmd_t. All users updated.
32924 (options): New variable.
32925 (grub_cmd_read): Restructure for readability. Support "-v" option.
32926 (grub_cmd_write): Restructure for readability.
32927
32928 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32929
32930 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
32931
32932 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32933
32934 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
32935 with the actual contents of the correspondending make variable.
32936 * util/grub-mkrescue.in (pkglib_DATA): New variable.
32937 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
32938 specifying `*.lst' and `efiemu??.o'
32939
32940 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32941
32942 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
32943 after function name.
32944 Noticed by Rene Engelhard <rene@debian.org>.
32945
32946 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
32947
32948 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
32949 (options): New variable.
32950 (iospace): Likewise.
32951 (grub_lspci_iter): List IO spaces if "-i" was given.
32952 (grub_cmd_lspci): Parse options.
32953 (GRUB_MOD_INIT(lspci)): Use extcmd.
32954 (GRUB_MOD_FINI(lspci)): Likewise.
32955
32956 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32957
32958 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
32959 `function' keyword.
32960 Patch by Tony Mancill <tmancill@debian.org>.
32961
32962 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
32963
32964 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
32965 (grub_uhci_portstatus): Likewise.
32966 (grub_uhci_portstatus): Add necessary delay.
32967 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
32968
32969 2009-12-21 Carles Pina i Estany <carles@pina.cat>
32970
32971 * commands/acpi.c (options): Fix capitalizations and/or full stops.
32972 (GRUB_MOD_INIT): Likewise.
32973 * commands/boot.c (GRUB_MOD_INIT): Likewise.
32974 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
32975 * commands/echo.c (options): Fix capitalizations and/or full stops.
32976 * commands/efi/loadbios.c (enable_rom_area): Likewise.
32977 (enable_rom_area): Likewise.
32978 (GRUB_MOD_INIT): Likewise.
32979 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
32980 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
32981 * commands/handler.c (GRUB_MOD_INIT): Likewise.
32982 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
32983 * commands/hexdump.c (options): Likewise.
32984 * commands/i386/cpuid.c (options): Likewise.
32985 (GRUB_MOD_INIT): Likewise.
32986 * commands/i386/pc/drivemap.c (options): Likewise.
32987 (GRUB_MOD_INIT): Likewise.
32988 * commands/i386/pc/halt (options): Likewise.
32989 (GRUB_MOD_INIT): Likewise.
32990 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
32991 * commands/i386/pc/pxecmd.c (options): Likewise.
32992 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
32993 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
32994 * commands/keystatus.c (options): Likewise.
32995 (GRUB_MOD_INIT): Likewise.
32996 * commands/loadenv.c (options): Likewise.
32997 * commands/ls.c (options): Likewise.
32998 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
32999 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
33000 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
33001 * commands/parttool.c (helpmsg): Likewise.
33002 * commands/probe.c (options): Likewise.
33003 * commands/read.c (GRUB_MOD_INIT): Likewise.
33004 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
33005 * commands/search.c (options): Likewise.
33006 * commands/sleep.c (options): Likewise.
33007 * commands/test.c (GRUB_MOD_INIT): Likewise.
33008 * commands/true.c (GRUB_MOD_INIT): Likewise.
33009 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
33010 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
33011 * lib/arg.c (help_options): Likewise.
33012 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
33013 `$(XGETTEXT)'.
33014 * po/POTFILES: Add `commands/loadenv.c'.
33015
33016 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
33017
33018 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
33019 instead of specifying them explicit.
33020
33021 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33022
33023 * NEWS: Add grub-probe support for GNU/Hurd.
33024
33025 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33026
33027 * NEWS: gettext was added after 1.97.
33028
33029 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33030
33031 * util/mkisofs/msdos_partition.h: New file (based on
33032 include/grub/msdos_partition.h).
33033 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
33034 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
33035 (ld_options, main): Recognize --protective-msdos-label.
33036 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
33037 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
33038 (padblock_write): If `use_protective_msdos_label' is set, patch a
33039 protective DOS-style label in the output image.
33040
33041 * util/grub-mkrescue.in: Use --protective-msdos-label.
33042
33043 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33044
33045 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
33046 boot.
33047
33048 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33049
33050 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
33051 variables.
33052 (ld_options, main): Recognize `--embedded-boot'.
33053 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
33054 declarations.
33055 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
33056 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
33057 (padblock_write): Likewise. Rewrite to support embedded boot image.
33058
33059 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
33060 for BIOS-based disk boot instead of only ElTorito.
33061
33062 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33063
33064 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
33065 build (not needed for bootstrap).
33066
33067 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33068
33069 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
33070 from i386-pc build (not needed for bootstrap).
33071 Rewrite a pair of strings.
33072
33073 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33074
33075 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
33076
33077 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
33078
33079 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
33080
33081 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33082
33083 * kern/env.c (grub_env_context_open): Mark exported variable for
33084 reexport.
33085
33086 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33087
33088 * kern/env.c (grub_env_export): Create nonexistent variables before
33089 exporting.
33090
33091 2009-12-20 Carles Pina i Estany <carles@pina.cat>
33092
33093 * include/grub/auth.h: Include `<grub/i18n.h>'.
33094 (GRUB_GET_PASSWORD): Gettextizze string.
33095 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
33096 menu_text.c.
33097 (grub_utf8_to_ucs4_alloc): Fix indentation.
33098 (grub_print_ucs4): Likewise.
33099 (grub_getstringwidth): Likewise.
33100 (print_message_indented): New declaration.
33101 * normal/auth.c: Include `<grub/i18n.h>'.
33102 (grub_auth_check_authentication): Gettexttize string.
33103 * normal/cmdline.c: Include `<grub/i18n.h>'.
33104 (grub_cmdline_get): Gettextizze.
33105 * normal/color.c: Include `<grub/i18n.h>'.
33106 (grub_parse_color_name_pair): Gettexttize strings.
33107 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
33108 string (use `print_message_indented').
33109 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
33110 `include/grub/normal.h'.
33111 (print_message_indented): Renamed to ...
33112 (grub_print_message_indented): ... this. Remove `static' qualifer (now
33113 used in normal/main.c).
33114 (print_message): Use `grub_print_message_indented' instead of
33115 `print_message_indented'.
33116 (print_timeout): Likewise.
33117 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
33118 (grub_normal_print_device_info): Gettexttize strings.
33119 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
33120
33121 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33122
33123 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
33124 of arguments. Return number of tokens and not arguments. All users
33125 updated.
33126
33127 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33128
33129 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
33130 non-MSDOS paritions.
33131
33132 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
33133
33134 * include/grub/types.h (UNUSED): Removed since it conflicts with
33135 NetBSD headers. All users changed to direct __attribute__ ((unused)).
33136 Reported by Grégoire Sutre.
33137
33138 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33139
33140 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
33141 (grub_print_ucs4_alloc): Likewise.
33142 (grub_getstringwidth): Likewise.
33143 * normal/main.c (grub_normal_init_page): Gettextize version string.
33144 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
33145 (getstringwidth): Renamed to ...
33146 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
33147 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
33148 (grub_print_ucs4): Remove `static' qualifer (now used in
33149 normal/main.c).
33150 * po/POTFILES: Add normal/main.c.
33151
33152 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33153
33154 * normal/menu_text.c (STANDARD_MARGIN): New macro.
33155 (print_message_indented): Add `margin_left' and `margin_right'
33156 parameters.
33157 (print_message): Update `print_message_indented' calls. Adds '\n' to the
33158 strings.
33159 (print_timeout): Use `print_message_indented' to print the message.
33160 Deletes `second_stage' parameter.
33161 (run_menu): Update `print_timeout' calls.
33162
33163 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33164
33165 Fix console palette on OpenFirmware.
33166
33167 * term/ieee1275/ofconsole.c (MAX): Removed.
33168 (colors): Redone based on VGA palette.
33169 (grub_ofconsole_setcolor): Discard brightness bit since only 8
33170 colors are supported.
33171 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
33172
33173 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33174
33175 Fix potential EfiEmu double prepare.
33176
33177 * efiemu/main.c (prepared): New variable
33178 (grub_efiemu_unload): Set prepare to '0'.
33179 (grub_efiemu_prepare): Return if already prepared. Set prepared.
33180
33181 set_virtual_address_map support.
33182
33183 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
33184 prototype.
33185 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
33186 prototype.
33187 (grub_efiemu_crc32): Likewise.
33188 (grub_efiemu_crc64): Likewise.
33189 (grub_efiemu_set_virtual_address_map): Likewise.
33190 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
33191 New definition.
33192 (grub_autoefi_set_virtual_address_map): Likewise.
33193 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
33194 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
33195 Restructure flow to accomodate it.
33196 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
33197 (grub_efiemu_crc): Recompute CRC32.
33198 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
33199 (efiemu_ptv_relocated): ... this. Made global. All users updated.
33200 * efiemu/symbols.c (relocated_handle): New variable.
33201 (grub_efiemu_free_syms): Free relocated_handle.
33202 (grub_efiemu_alloc_syms): Allocate relocated_handle.
33203 (grub_efiemu_write_sym_markers): New function.
33204 (grub_efiemu_set_virtual_address_map): Likewise.
33205
33206 Newer XNU parameters.
33207
33208 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
33209 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
33210 (grub_xnu_fill_devicetree): New prototype.
33211 (grub_xnu_heap_real_start): New variable.
33212 * loader/xnu.c (get_name_ptr): New function.
33213 (grub_xnu_load_driver): Fill namelen and name.
33214
33215 64-bit xnu support.
33216
33217 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
33218 and 'loader/macho64.c'.
33219 * conf/i386-pc.rmk: Likewise.
33220 * conf/x86_64-efi.rmk: Likewise.
33221 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
33222 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
33223 * include/grub/macho.h (grub_macho_segment64): New structure.
33224 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
33225 (grub_macho_size32): ... to this.
33226 (grub_macho32_get_entry_point): Renamed from ...
33227 (grub_macho_get_entry_point32): ... to this.
33228 (grub_macho_contains_macho64): New prototype.
33229 (grub_macho_size64): Likewise.
33230 (grub_macho_get_entry_point64): Likewise.
33231 (grub_macho32_load): Renamed from ...
33232 (grub_macho_load32): ... to this.
33233 (grub_macho32_filesize): Renamed from ...
33234 (grub_macho_filesize32): ... to this.
33235 (grub_macho32_readfile): Renamed from ...
33236 (grub_macho_readfile32): ... to this.
33237 (grub_macho_filesize64): New prototype.
33238 (grub_macho_readfile64): Likewise.
33239 (grub_macho_parse32): Likewise.
33240 (grub_macho_parse64): Likewise.
33241 * loader/macho.c: Split into ...
33242 * loader/machoXX.c: ... and this. Replace 32 with XX.
33243 * loader/macho32.c: New file.
33244 * loader/macho64.c: Likewise.
33245 * loader/xnu.c (grub_xnu_is_64bit): New variable.
33246 (grub_cmd_xnu_kernel): Make 32-bit only.
33247 (grub_cmd_xnu_kernel64): New function.
33248 (grub_xnu_load_driver): Support Mach-O 64.
33249 (grub_cmd_xnu_mkext): Likewise.
33250 * util/grub.d/30_os-prober.in (osx_entry): New function.
33251 Generate entries for 64-bit boot too.
33252
33253 Eliminate ad-hoc tree format in XNU and EfiEmu.
33254
33255 * efiemu/main.c (grub_efiemu_prepare): Update comment.
33256 * efiemu/pnvram.c: Rewritten to use environment variables.
33257 All users updated.
33258
33259 Inline utf16_to_utf8.
33260
33261 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
33262 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
33263 All users updated.
33264 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
33265
33266 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
33267 * commands/usbtest.c (grub_usb_get_string): ... move here.
33268 (usb_print_str): Fix error handling.
33269 * include/grub/usb.h (grub_usb_get_string): Remove.
33270
33271 UTF-8 to UTF-16 transformation.
33272
33273 * conf/common.rmk (pkglib_MODULES): Add charset.mod
33274 (charset_mod_SOURCES): New variable.
33275 (charset_mod_CFLAGS): Likewise.
33276 (charset_mod_LDFLAGS): Likewise.
33277 * include/grub/utf.h: New file.
33278 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
33279
33280 Support for device properties.
33281
33282 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
33283 (grub_xnu_devprop_device_header): Likewise.
33284 (grub_xnu_devprop_device_descriptor): Likewise.
33285 (grub_xnu_devprop_add_device): New prototype.
33286 (grub_xnu_devprop_remove_device): Likewise.
33287 (grub_xnu_devprop_remove_property): Likewise.
33288 (grub_xnu_devprop_add_property_utf8): Likewise.
33289 (grub_xnu_devprop_add_property_utf16): Likewise.
33290 (grub_cpu_xnu_init): Likewise.
33291 (grub_cpu_xnu_fini): Likewise.
33292 (grub_cpu_xnu_unload): Likewise.
33293 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
33294 (property_descriptor): Likewise.
33295 (devices): New variable.
33296 (grub_xnu_devprop_remove_property): New function.
33297 (grub_xnu_devprop_add_device): Likewise.
33298 (grub_xnu_devprop_remove_device): Likewise.
33299 (grub_xnu_devprop_add_property): Likewise.
33300 (grub_xnu_devprop_add_property_utf8): Likewise.
33301 (grub_xnu_devprop_add_property_utf16): Likewise.
33302 (hextoval): Likewise.
33303 (grub_cpu_xnu_fill_devprop): Likewise.
33304 (grub_cmd_devprop_load): Likewise.
33305 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
33306 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
33307 (cmd_devprop_load): New variable.
33308 (grub_cpu_xnu_init): New function.
33309 (grub_cpu_xnu_fini): Likewise.
33310 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
33311 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
33312 (grub_cmd_xnu_devtree): Likewise.
33313 (hextoval): New function.
33314 (unescape): Likewise.
33315 (grub_xnu_fill_devicetree): Likewise.
33316
33317 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
33318 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
33319
33320 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33321
33322 Workaround for broken ATI VBE.
33323
33324 * video/i386/pc/vbe.c (last_set_mode): New variable.
33325 (grub_vbe_set_video_mode): Set 'last_set_mode'.
33326 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
33327 (grub_video_vbe_setup): Don't check for reserved flag.
33328
33329 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
33330
33331 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
33332 the `find' command.
33333
33334 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
33335
33336 UUID support for HFS.
33337
33338 * fs/hfs.c (grub_hfs_uuid): New function.
33339 (grub_hfs_fs): New value .uuid.
33340 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
33341
33342 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
33343
33344 Fix a segfault with parsing unknown long options.
33345
33346 * util/grub-mkrelpath.c (options): Zero terminate it.
33347
33348 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33349
33350 * include/grub/misc.h (grub_puts): New declaration.
33351 (grub_puts_): Likewise.
33352 * kern/misc.c (grub_puts): New definition.
33353 (grub_puts_): Likewise.
33354
33355 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33356
33357 * util/grub-probe.c (probe): Improve error message.
33358
33359 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33360
33361 * loader/i386/multiboot_elfxx.c
33362 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
33363 initialization.
33364
33365 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33366
33367 Relocator framework
33368
33369 * loader/i386/xnu_helper.S: Removed. All users updated.
33370 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
33371 (relocator_mod_SOURCES): New variable.
33372 (relocator_mod_CFLAGS): Likewise.
33373 (relocator_mod_LDFLAGS): Likewise.
33374 (relocator_mod_ASFLAGS): Likewise.
33375 * conf/x86_64.rmk: Likewise.
33376 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
33377 (grub_multiboot_payload_entry_offset): Likewise.
33378 (grub_multiboot_forward_relocator): Likewise.
33379 (grub_multiboot_forward_relocator_end): Likewise.
33380 (grub_multiboot_backward_relocator): Likewise.
33381 (grub_multiboot_backward_relocator_end): Likewise.
33382 (grub_multiboot_payload_eip): New variable.
33383 (grub_multiboot_payload_orig): Likewise.
33384 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
33385 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
33386 * include/grub/i386/memory.h
33387 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
33388 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
33389 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
33390 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
33391 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
33392 * include/grub/i386/relocator.h: New file.
33393 * include/grub/x86_64/relocator.h: Likewise.
33394 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
33395 (XNU_RELOCATOR): New macro.
33396 (grub_xnu_launcher_start): Remove.
33397 (grub_xnu_launcher_end): Likewise.
33398 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
33399 (grub_xnu_heap_real_start): Remove.
33400 (grub_xnu_heap_start): Change to void *. All users updated.
33401 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
33402 * lib/i386/relocator.c: New file.
33403 * lib/i386/relocator_asm.S: Likewise.
33404 * lib/i386/relocator_backward.S: Likewise.
33405 * lib/mips/relocator.c: Likewise.
33406 * lib/mips/relocator_asm.S: Likewise.
33407 * lib/relocator.c: Likewise.
33408 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
33409 (entry): Removed.
33410 (playground): Likewise.
33411 (grub_multiboot_payload_orig): New variable.
33412 (grub_multiboot_payload_dest): Likewise.
33413 (grub_multiboot_payload_size): Likewise.
33414 (grub_multiboot_payload_eip): Likewise.
33415 (grub_multiboot_payload_esp): Likewise.
33416 (grub_multiboot_boot): Use grub_relocator32_boot.
33417 (grub_multiboot_unload): Free relocators.
33418 (grub_multiboot): Setup stack. Use relocators.
33419 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
33420 (grub_multiboot_load_elfXX): Use relocators.
33421 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
33422 (grub_multiboot_payload_size): Likewise.
33423 (grub_multiboot_payload_dest): Likewise.
33424 (grub_multiboot_payload_entry_offset): Likewise.
33425 (grub_multiboot_forward_relocator): Likewise.
33426 (grub_multiboot_backward_relocator): Likewise.
33427 (grub_multiboot_real_boot): Likewise.
33428 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
33429 (grub_xnu_entry_point): Likewise.
33430 (grub_xnu_arg1): Likewise.
33431 (grub_xnu_stack): Likewise.
33432 (grub_xnu_launch): Removed.
33433 (grub_xnu_boot_resume): New function.
33434 (grub_xnu_boot): Use relocators.
33435 * loader/i386/xnu_helper.S: Removed.
33436 * loader/xnu.c (grub_xnu_heap_start): New variable.
33437 (grub_xnu_heap_size): Likewise.
33438 (grub_xnu_heap_malloc): Use relocators.
33439 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
33440
33441 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33442
33443 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
33444 anything.
33445
33446 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33447
33448 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
33449 GRUB_ERR_NONE before calling grub_env_set.
33450
33451 2009-12-12 Robert Millan <rmh@aybabtu.com>
33452
33453 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
33454 * genmk.rb (video): New variable.
33455 (CLEANFILES, VIDEOFILES): Add #{video}.
33456 (#{video}): New target rule.
33457 * genvideolist.sh: New file.
33458 * Makefile.in (pkglib_DATA): Add video.lst.
33459 (video.lst): New target rule.
33460 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
33461 `video.lst'.
33462 * util/grub.d/30_os-prober.in: Replace `vbe' with
33463 ${GRUB_VIDEO_BACKEND}.
33464
33465 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
33466
33467 * THANKS: Add David Miller.
33468
33469 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
33470
33471 libpciaccess support.
33472
33473 * Makefile.in (LIBPCIACCESS): New variable.
33474 (enable_grub_emu_pci): Likewise.
33475 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
33476 util/pci.c and commands/lspci.c.
33477 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
33478 * configure.ac (grub-emu-pci): New option.
33479 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
33480 (grub_pci_device_unmap_range): Likewise.
33481 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
33482 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
33483 (grub_pci_address_t) [!GRUB_UTIL]: New type.
33484 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
33485 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
33486 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
33487 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
33488 * include/grub/pciutils.h: New file.
33489 * util/pci.c: Likewise.
33490
33491 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
33492
33493 * util/misc.c: Don't include <errno.h> twice.
33494
33495 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
33496
33497 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
33498 name in an error message.
33499 (grub_biosdisk_rw): Likewise.
33500
33501 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33502
33503 Eliminate NTFS 4Gib barrier.
33504
33505 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
33506 (read_run_data): Likewise.
33507 (grub_ntfs_read_run_list): Likewise.
33508 (grub_ntfs_read_block): Likewise.
33509 (grub_ntfs_iterate_dir): Likewise.
33510 (read_mft): Likewise.
33511 (read_data): Likewise.
33512 Use COM_LOG_LEN.
33513 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
33514 to avoid 64-bit division
33515 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
33516 (grub_ntfs_rlst): Use grub_disk_addr_t.
33517
33518 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33519
33520 Eliminate grub-fstest 4Gib barrier.
33521
33522 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
33523 (read_file): Fix error reporting.
33524
33525 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33526
33527 Eliminate hexdump 4Gib barrier.
33528
33529 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
33530 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
33531
33532 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33533
33534 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
33535 Fixes amarsh bug.
33536
33537 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
33538
33539 Remove miscellaneous files in distclean target.
33540
33541 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
33542
33543 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
33544
33545 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
33546 if they're already set. This resolves the conflict between my
33547 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
33548 fixing the --grub-probe option again.
33549 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
33550 change on 2009-10-06, so that we now once again source
33551 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
33552
33553 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
33554
33555 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
33556 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
33557 `util/devicemap.c'.
33558
33559 2009-12-08 Carles Pina i Estany <carles@pina.cat>
33560
33561 * include/grub/misc.h (grub_printf_): New declaration.
33562 * kern/misc.c (grub_printf_): New definition.
33563 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
33564 instead of `grub_printf' and `_'.
33565 * normal/menu_entry.c (store_completion): Likewise.
33566 (run): Likewise.
33567 (grub_menu_entry_run): Likewise.
33568 * normal/menu_text.c (grub_wait_after_message): Likewise.
33569 (notify_booting): Likewise.
33570 (notify_fallback): Likewise.
33571 (notify_execution_failure): Likewise.
33572
33573 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
33574
33575 * configure.ac: Check for vasprintf.
33576 * util/misc.c (asprintf): Move allocation from here ...
33577 (vasprintf): ... to here. New function.
33578 (xasprintf): New function.
33579 * include/grub/util/misc.h (vasprintf, xasprintf): Add
33580 prototypes.
33581 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
33582 * util/grub-mkfont.c (write_font): Likewise.
33583 * util/grub-probe.c (probe): Likewise.
33584 * util/hostdisk.c (make_device_name): Likewise.
33585
33586 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
33587
33588 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
33589 anything even prefixed with 'cdrom' as a cdrom.
33590
33591 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
33592
33593 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
33594 mount points.
33595
33596 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33597
33598 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
33599 grub_gettext_msg_list.
33600 (grub_gettext_gettranslation_from_position): Return const char *
33601 and not char *.
33602 (grub_gettext_translate): Add the translated strings into a list,
33603 returns from the list if existing there.
33604 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
33605 (grub_gettext_delete_list): Delete the list.
33606 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
33607 lang environment variable is changed.
33608 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
33609
33610 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33611
33612 Rename kernel.mod to kernel.img.
33613
33614 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
33615 (kernel_mod_EXPORTS): Rename to ...
33616 (kernel_img_EXPORTS): ... this.
33617 (kernel_mod_SOURCES): Rename to ...
33618 (kernel_img_SOURCES): ... this.
33619 (kernel_mod_HEADERS): Rename to ...
33620 (kernel_img_HEADERS): ... this. All users updated.
33621 (kernel_mod_CFLAGS): Rename to ...
33622 (kernel_img_CFLAGS): ... this.
33623 (kernel_mod_ASFLAGS): Rename to ...
33624 (kernel_img_ASFLAGS): ... this.
33625 (kernel_mod_LDFLAGS): Rename to ...
33626 (kernel_img_LDFLAGS): ... this.
33627 * conf/x86_64-efi.rmk: Likewise.
33628 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
33629 (read_kernel_image): ... this. All users updated.
33630 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
33631
33632 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33633
33634 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
33635 (print_spaces): New function.
33636 (grub_print_ucs4): New function.
33637 (getstringwidth): New function.
33638 (print_message_indented): New function.
33639 (print_message): Gettexttize strings using print_message_indented.
33640 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
33641 width.
33642 (get_entry_number): Gettextize and uses dynamic terminal width.
33643 (notify_booting, notify_fallback, notify_execution_failure):
33644 Gettextize.
33645 * normal/menu_entry.c (store_completion): Cleanup the gettextized
33646 string.
33647 (run): Likewise.
33648 (grub_menu_entry_run): Likewise.
33649 * PO/POTFILES: Add normal/menu_entry.c.
33650
33651 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33652
33653 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
33654
33655 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33656
33657 * util/grub-install.in: Install gettext .mo files.
33658 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
33659
33660 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33661
33662 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
33663 grub_dprintf.
33664
33665 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
33666
33667 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
33668 non-firmware-dependant one in realmode.S takes precedence.
33669
33670 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
33671
33672 * commands/halt.c: Replace misc arch-specific headers with
33673 `<grub/misc.h>'.
33674 * commands/reboot.c: Likewise.
33675 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
33676 `<grub/misc.h>'.
33677 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
33678 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
33679 (kernel_img_SOURCES): ... to here.
33680
33681 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
33682 * include/grub/i386/pc/init.h: Likewise.
33683 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
33684 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
33685
33686 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
33687
33688 * include/grub/i386/halt.h: Remove.
33689 * include/grub/i386/reboot.h: Likewise.
33690
33691 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
33692
33693 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
33694
33695 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
33696 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
33697 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
33698 "progname.h"
33699 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
33700 * util/sparc64/ieee1275/grub-setup.c: Likewise.
33701 (usage): Add missing comma in printf.
33702
33703 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
33704
33705 Use the same reboot approach on i386 coreboot and qemu as we do on
33706 BIOS.
33707
33708 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
33709 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
33710 * kern/i386/reboot.c: Remove.
33711 * include/grub/i386/reboot.h (grub_reboot): Export function.
33712 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
33713 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
33714 0xf000:0xfff0 instead of 0xffff:0x0000.
33715 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
33716 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
33717
33718 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
33719
33720 Fix $srcdir != $objdir build.
33721
33722 * Makefile.in (po/%.po): Rewrite as ...
33723 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
33724
33725 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
33726
33727 Fix GNU/Hurd grub-install crash.
33728 * util/grub-probe.c (probe): Try to access `path' only when it is not
33729 NULL.
33730
33731 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33732
33733 Correct module naming.
33734
33735 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33736 (GRUB_MOD_INIT(efi_uga)): ... to this
33737 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33738 (GRUB_MOD_FINI(efi_uga)): ... to this
33739 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33740 (GRUB_MOD_INIT(efi_gop)): ... to this
33741 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33742 (GRUB_MOD_FINI(efi_gop)): ... to this
33743
33744 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
33745
33746 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
33747 translatable.
33748 (usage): Translate `arg' strings using gettext().
33749 Thanks to Jordi Mallach for the suggestion.
33750
33751 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33752
33753 GOP support. Based on patch from Bean
33754 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
33755
33756 * video/efi_gop.c: New file.
33757 * include/grub/efi/graphics_output.h: Likewise.
33758 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
33759 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
33760 variables.
33761 * conf/x86_64-efi.rmk: Likewise.
33762
33763 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33764
33765 Rename efi_fb to efi_uga.
33766
33767 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33768 'efi_uga.mod'.
33769 (efi_fb_mod_SOURCES): Rename this ...
33770 (efi_uga_mod_SOURCES): ... to this.
33771 (efi_fb_mod_CFLAGS): Rename this ...
33772 (efi_uga_mod_CFLAGS): ... to this.
33773 (efi_fb_mod_LDFLAGS): Rename this ...
33774 (efi_uga_mod_LDFLAGS): ... to this.
33775 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33776 'efi_uga.mod'.
33777 (efi_fb_mod_SOURCES): Rename this ...
33778 (efi_uga_mod_SOURCES): ... to this.
33779 (efi_fb_mod_CFLAGS): Rename this ...
33780 (efi_uga_mod_CFLAGS): ... to this.
33781 (efi_fb_mod_LDFLAGS): Rename this ...
33782 (efi_uga_mod_LDFLAGS): ... to this.
33783 * video/efi_fb.c: Move this ...
33784 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
33785
33786 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33787
33788 * po/README: New file. Explain our PO file workflow.
33789
33790 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33791
33792 * po/ChangeLog: Remove. Move relevant entries back to ...
33793 * ChangeLog: ... here.
33794 * po/ca.po: Remove (now handled by TLP).
33795 * po/id.po: Likewise.
33796 * po/zh_CN.po: Likewise.
33797 * Makefile.in (LINGUAS): Initialize in a way that supports
33798 empty set.
33799
33800 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33801
33802 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
33803 reliing on po/LINGUAS.
33804 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
33805 (po/%.po): ... this.
33806
33807 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33808
33809 * util/i386/efi/grub-mkimage.c: Include "progname.h".
33810 (main): Use `program_name' instead of nonexistent `progname'.
33811
33812 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33813
33814 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
33815 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
33816
33817 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
33818
33819 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
33820 commit.
33821 * conf/i386-efi.rmk: Likewise.
33822 * conf/i386-ieee1275.rmk: Likewise.
33823 * conf/powerpc-ieee1275.rmk: Likewise.
33824 * conf/sparc64-ieee1275.rmk: Likewise.
33825 * conf/x86_64-efi.rmk: Likewise.
33826
33827 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33828
33829 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
33830
33831 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33832
33833 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
33834
33835 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
33836
33837 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
33838 (grub_mkdevicemap_SOURCES): New variable.
33839 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
33840 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
33841 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
33842 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
33843 (grub_mkdevicemap_SOURCES): Remove.
33844 * conf/i386-efi.rmk: Likewise.
33845 * conf/i386-ieee1275.rmk: Likewise.
33846 * conf/i386-pc.rmk: Likewise.
33847 * conf/powerpc-ieee1275.rmk: Likewise.
33848 * conf/sparc64-ieee1275.rmk: Likewise.
33849 * conf/x86_64-efi.rmk: Likewise.
33850 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
33851 (usage): Fix strings to use `program_name'.
33852 (main): Initialize gettext.
33853 * util/grub-editenv.c: Likewise.
33854 * util/grub-emu.c: Likewise.
33855 * util/grub-fstest.c: Likewise.
33856 * util/grub-mkdevicemap.c: Likewise.
33857 * util/grub-mkfont.c: Likewise.
33858 * util/grub-mkrelpath.c: Likewise.
33859 * util/grub-pe2elf.c: Likewise.
33860 * util/grub-probe.c: Likewise.
33861 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
33862 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
33863 * util/sparc64/ieee1275/grub-setup.c: Likewise.
33864
33865 * util/misc.c: Include `"progname.h"'.
33866 (progname): Remove variable.
33867 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
33868
33869 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
33870
33871 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
33872 printf and print a newline after the menuentry header line.
33873 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
33874
33875 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
33876
33877 autoconf >= 2.60 support $(localedir).
33878
33879 * INSTALL: Note that autoconf 2.60 is required.
33880 * configure.ac (AC_PREREQ): Bump to 2.60.
33881 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
33882 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
33883
33884 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
33885
33886 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
33887 aclocal is run.
33888
33889 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
33890
33891 * normal/main.c (grub_normal_read_line): Fix off-by-one
33892 buffer overflow.
33893
33894 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
33895
33896 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
33897 "parser.grub" in grub_command_execute() call.
33898
33899 2009-11-24 Carles Pina i Estany <carles@pina.cat>
33900
33901 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
33902 * conf/i386-efi.rmk: Likewise.
33903 * conf/i386-ieee1275.rmk: Likewise.
33904 * conf/i386-pc.rmk: Likewise.
33905 * conf/powerpc-ieee1275.rmk: Likewise.
33906 * conf/sparc64-ieee1275.rmk: Likewise.
33907 * conf/x86_64-efi.rmk: Likewise.
33908 * gettext/gettex.c: Include <grub/i18n.h>.
33909 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
33910 here ...
33911 * include/grub/i18n.h: ... to here
33912 * include/grub/i18n.h: ... to here.
33913 * kern/misc.c: Include <grub/i18n.h>
33914 (grub_gettext_dummy): Move above user.
33915
33916 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33917
33918 * util/Makefile.in (install-local): Convert a `for' into a normal
33919 shell expansion.
33920
33921 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
33922
33923 * autogen.sh: Add automake call.
33924 * config.guess: Remove.
33925 * config.sub: Likewise.
33926 * install-sh: Likewise.
33927
33928 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33929
33930 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
33931
33932 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33933
33934 * util/Makefile.in (install-local): Convert a make `$(foreach)'
33935 function to a normal shell `for'.
33936
33937 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33938
33939 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
33940
33941 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33942
33943 * util/grub-mkrelpath.c: New file.
33944 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
33945 (grub_mkrelpath_SOURCES): New variable.
33946 * include/grub/util/misc.h: New function prototype.
33947 * util/misc.c (make_system_path_relative_to_its_root): New function.
33948
33949 * util/grub-mkconfig_lib.in (bindir): New variable.
33950 (grub_mkrelpath): Likewise.
33951 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
33952
33953 * util/probe.c (probe): Make the file path relative to its root.
33954 Change a info message to use the GRUB path. Enable again the
33955 check if we can read the file with GRUB facilities.
33956
33957 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
33958 to its root.
33959
33960 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33961
33962 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
33963 platform.
33964
33965 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33966
33967 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
33968 strncmp().
33969
33970 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33971
33972 * util/getroot.c (grub_util_is_dmraid): New function.
33973 (grub_util_get_dev_abstraction): Treat dmraid and multipath
33974 devices as normal ones, not as LVM.
33975
33976 2009-11-23 Carles Pina i Estany <carles@pina.cat>
33977
33978 * conf/common.rmk: Add grub-gettext_lib target and updates
33979 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
33980 LDFLAGS.
33981 * gettext/gettext.c: New file. (Reads mo files).
33982 * include/grub/file.h (grub_file_pread): New prototype.
33983 * include/grub/i18n.h (_): New prototype.
33984 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
33985 prototypes.
33986 * kern/misc.c (grub_gettext_dummy): New function.
33987 * normal/menu_text.c: Include <grub/i18n.h>.
33988 * normal/menu_text.c (print_timeout): Gettexttize string.
33989 * normal/menu_text.c (print_message): Gettexttize string.
33990 * po/POTFILES: Add `normal/menu_text.c'.
33991 * po/ca.po: Add new translations.
33992 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
33993 gettext module and defines locale_dir and lang in grub.cfg.
33994 * NEWS: Add gettext support.
33995
33996 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
33997
33998 * util/hostdisk.c: Include `<grub/i18n.h>'.
33999 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
34000 (make_device_name): Rewrite using asprintf.
34001 (convert_system_partition_to_system_disk): Replace 0 with NULL.
34002 (find_system_device): If a device is not found, generate one just
34003 by reusing the OS path name.
34004 (read_device_map): Make it permissible for device.map not to exist.
34005
34006 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34007
34008 * script/sh/execute.c: Move from here ...
34009 * script/execute.c: ... to here. Update all users.
34010 * script/sh/function.c: Move from here ...
34011 * script/function.c: ... to here. Update all users.
34012 * script/sh/lexer.c: Move from here ...
34013 * script/lexer.c: ... to here. Update all users.
34014 * script/sh/main.c: Move from here ...
34015 * script/main.c: ... to here. Update all users.
34016 * script/sh/parser.y: Move from here ...
34017 * script/parser.y: ... to here. Update all users.
34018 * script/sh/script.c: Move from here ...
34019 * script/script.c: ... to here. Update all users.
34020
34021 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34022
34023 * configure.ac: Detect all `emu' platforms. Define
34024 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
34025 --enable-grub-emu logic. Disable include/grub/machine
34026 symlink on `emu' platforms.
34027
34028 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
34029 * gensymlist.sh.in: Likewise.
34030
34031 * include/grub/i386/coreboot/machine.h: Remove file.
34032 * include/grub/i386/efi/machine.h: Likewise.
34033 * include/grub/i386/ieee1275/machine.h: Likewise.
34034 * include/grub/i386/pc/machine.h: Likewise.
34035 * include/grub/i386/qemu/machine.h: Likewise.
34036 * include/grub/powerpc/ieee1275/machine.h: Likewise.
34037 * include/grub/sparc64/ieee1275/machine.h: Likewise.
34038 * include/grub/x86_64/efi/machine.h: Likewise.
34039
34040 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
34041 * commands/halt.c: Likewise.
34042 * commands/reboot.c: Likewise.
34043 * include/grub/autoefi.h: Likewise.
34044 * include/grub/i386/at_keyboard.h: Likewise.
34045 * include/grub/i386/kernel.h: Likewise.
34046 * include/grub/i386/loader.h: Likewise.
34047 * include/grub/i386/pc/memory.h: Likewise.
34048 * kern/dl.c: Likewise.
34049 * kern/i386/coreboot/init.c: Likewise.
34050 * loader/i386/bsd.c: Likewise.
34051 * loader/i386/linux.c: Likewise.
34052 * loader/multiboot_loader.c: Likewise.
34053 * term/i386/pc/serial.c: Likewise.
34054 * term/usb_keyboard.c: Likewise.
34055
34056 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
34057 `<grub/machine/machine.h>'
34058 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
34059 * util/misc.c: Remove `<grub/machine/machine.h>' and
34060 `<grub/machine/time.h>'.
34061
34062 * Makefile.in (enable_grub_emu): Remove variable.
34063 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
34064
34065 * conf/any-emu.rmk: New file.
34066 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
34067 (grub_emu_init.c): Move from here ...
34068 * conf/any-emu.rmk: ... to here.
34069
34070 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
34071 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
34072 * conf/any-emu.rmk: ... to here.
34073
34074 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34075
34076 * include/grub/parser.h (grub_parser_register): Document need
34077 of `name' parameter.
34078 * normal/main.c (grub_normal_read_line): Simplify prompt string.
34079 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
34080 "sh" to "grub".
34081
34082 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34083
34084 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
34085 `$(XGETTEXT)'.
34086 * include/grub/i18n.h (N_): New macro.
34087 * util/mkisofs/mkisofs.h: Likewise.
34088 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
34089 around N_().
34090 (usage): Use gettext() to translate help strings when printing them.
34091
34092 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34093
34094 Based on patch from Bean
34095 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
34096
34097 * video/efi_fb.c: New file.
34098 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
34099 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
34100 variables.
34101 * conf/x86_64-efi.rmk: Likewise.
34102
34103 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
34104
34105 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
34106 * util/i386/pc/grub-setup.c: Likewise.
34107
34108 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
34109
34110 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
34111 <hurd/fs.h>
34112 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
34113 file_get_storage_info to implement grub_guess_root_device.
34114
34115 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34116
34117 * Makefile.in (target): Use make's builtin $(shell) function
34118 instead of calling directly $(SHELL) to create the locale directories,
34119 inside the $(foreach) function.
34120
34121 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34122
34123 * util/grub-mkrescue.in: Print an error and usage if output option
34124 has not been given.
34125
34126 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34127
34128 Patch from Loïc Minier <loic.minier@ubuntu.com>.
34129 * util/grub.d/30_os-prober.in: Cope with Linux entries where
34130 root and /boot are on different devices.
34131
34132 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34133
34134 Fix build for srcdir != objdir.
34135
34136 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
34137 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
34138 $(srcdir).
34139 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
34140 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
34141 reference for input.
34142
34143 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34144
34145 * util/grub-mkrescue.in: Use source directory direcly (without copiing
34146 or hardlinking it). Remove -J option, Joliet is not compatible with
34147 multiple source directories.
34148
34149 2009-11-21 Carles Pina i Estany <carles@pina.cat>
34150 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34151
34152 * util/grub-mkrescue.in: Recognize `--override-directory' option.
34153 (process_input_dir): New function. Process an arbitrary input
34154 directory.
34155 Misc adjustments to support both "override mode" and system-wide mode.
34156
34157 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34158
34159 * configure.ac (UNIFONT_BDF): Rename to ...
34160 (FONT_SOURCE): ... this. Update all users.
34161
34162 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34163
34164 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
34165 to the list of unifont files to look for.
34166
34167 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34168
34169 Patch from Joe Auricchio <jauricchio@gmail.com>
34170 * commands/minicmd.c (grub_mini_cmd_clear): New function.
34171 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
34172 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
34173
34174 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34175
34176 * Makefile.in (install-local): Add a missing backslash.
34177
34178 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34179
34180 * include/grub/x86_64/io.h: New file.
34181
34182 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34183
34184 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
34185 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
34186 Include `"progname.h"'.
34187 (main): Initialize gettext.
34188 * util/i386/pc/grub-setup.c: Gettexttize.
34189 * util/i386/pc/grub-mkimage.c: Likewise.
34190
34191 * Makefile.in (po/*.po): Redefine as ...
34192 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
34193
34194 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
34195
34196 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34197
34198 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
34199 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
34200 (program_name): Remove.
34201 (main): Initialize gettext support.
34202 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
34203 Include `<libintl.h>'.
34204 (_): New macro.
34205
34206 * util/mkisofs/eltorito.c: Gettexttize.
34207 * util/mkisofs/joliet.c: Likewise.
34208 * util/mkisofs/mkisofs.c: Likewise.
34209 * util/mkisofs/multi.c: Likewise.
34210 * util/mkisofs/rock.c: Likewise.
34211 * util/mkisofs/tree.c: Likewise.
34212 * util/mkisofs/write.c: Likewise.
34213
34214 * po/POTFILES: Update with new files.
34215
34216 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34217
34218 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
34219 * util/mkisofs/iso9660.h: Likewise.
34220 * util/mkisofs/joliet.c: Likewise.
34221 * util/mkisofs/mkisofs.c: Likewise.
34222 * util/mkisofs/mkisofs.h: Likewise.
34223 * util/mkisofs/rock.c: Likewise.
34224 * util/mkisofs/tree.c: Likewise.
34225 * util/mkisofs/write.c: Likewise.
34226
34227 * util/mkisofs/eltorito.c (rcsid): Remove.
34228 * util/mkisofs/hash.c: Likewise.
34229 * util/mkisofs/joliet.c: Likewise.
34230 * util/mkisofs/name.c: Likewise.
34231 * util/mkisofs/rock.c: Likewise.
34232 * util/mkisofs/tree.c: Likewise.
34233 * util/mkisofs/write.c: Likewise.
34234
34235 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34236
34237 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
34238 instead of static allocation.
34239 * util/mkisofs/match.h: Likewise.
34240
34241 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34242
34243 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
34244 and `util/grub.d/10_linux.in'.
34245 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
34246 translatable Shell files.
34247
34248 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34249
34250 * Makefile.in ($(srcdir)/aclocal.m4): New target.
34251
34252 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34253
34254 * INSTALL: Document Automake is needed for bootstrap.
34255 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
34256 * util/grub.d/10_kfreebsd.in (bindir): New variable.
34257 Add gettext initialization.
34258 (kfreebsd_entry): Make menuentry output translatable.
34259
34260 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34261
34262 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
34263 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
34264 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
34265 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
34266 (LINGUAS): Auto-generate using `po/LINGUAS'.
34267 * po/LINGUAS: New file.
34268
34269 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34270
34271 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
34272 other things).
34273 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
34274 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
34275 bindtextdomain() calls for gettext initialization.
34276
34277 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34278
34279 * gnulib/progname.c: New file (imported from Gnulib).
34280 * gnulib/progname.h: Likewise.
34281 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34282 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
34283 (usage): Replace `progname' with `program_name'.
34284 (main): Use set_program_name() for program name initialization.
34285
34286 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34287
34288 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
34289 from here ...
34290 * Makefile.in (CPPFLAGS): ... to here.
34291
34292 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34293
34294 * aclocal.m4: Move from here ...
34295 * acinclude.m4: ... to here.
34296 * autogen.sh: Add call to `aclocal'.
34297 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
34298
34299 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34300
34301 * Makefile.in (CLEANFILES): Add `po/*.mo'.
34302 (LINGUAS): New variable.
34303 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
34304 (install-local): Install MO files.
34305 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
34306 * include/grub/i18n.h: New file.
34307 * po/POTFILES: New file.
34308 * po/ca.po: New file.
34309 * util/grub.d/10_linux.in (bindir): New variable.
34310 Add gettext initialization.
34311 (linux_entry): Make menuentry output translatable.
34312 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
34313 (usage): Make --help output translatable.
34314 (main): Initialize gettext.
34315
34316 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34317
34318 * import_gcry.py: New file (written by Vladimir with minor
34319 adjustments).
34320 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
34321 ciphers.
34322 * INSTALL: Document that Python is required for bootstrap.
34323
34324 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34325
34326 Import ciphers from libgcrypt 1.4.4.
34327
34328 * lib/libgcrypt/cipher/ChangeLog
34329 * lib/libgcrypt/cipher/ac.c
34330 * lib/libgcrypt/cipher/arcfour.c
34331 * lib/libgcrypt/cipher/bithelp.h
34332 * lib/libgcrypt/cipher/blowfish.c
34333 * lib/libgcrypt/cipher/camellia-glue.c
34334 * lib/libgcrypt/cipher/camellia.c
34335 * lib/libgcrypt/cipher/camellia.h
34336 * lib/libgcrypt/cipher/cast5.c
34337 * lib/libgcrypt/cipher/cipher.c
34338 * lib/libgcrypt/cipher/crc.c
34339 * lib/libgcrypt/cipher/des.c
34340 * lib/libgcrypt/cipher/dsa.c
34341 * lib/libgcrypt/cipher/ecc.c
34342 * lib/libgcrypt/cipher/elgamal.c
34343 * lib/libgcrypt/cipher/hash-common.c
34344 * lib/libgcrypt/cipher/hash-common.h
34345 * lib/libgcrypt/cipher/hmac-tests.c
34346 * lib/libgcrypt/cipher/md.c
34347 * lib/libgcrypt/cipher/md4.c
34348 * lib/libgcrypt/cipher/md5.c
34349 * lib/libgcrypt/cipher/primegen.c
34350 * lib/libgcrypt/cipher/pubkey.c
34351 * lib/libgcrypt/cipher/rfc2268.c
34352 * lib/libgcrypt/cipher/rijndael-tables.h
34353 * lib/libgcrypt/cipher/rijndael.c
34354 * lib/libgcrypt/cipher/rmd.h
34355 * lib/libgcrypt/cipher/rmd160.c
34356 * lib/libgcrypt/cipher/rsa.c
34357 * lib/libgcrypt/cipher/seed.c
34358 * lib/libgcrypt/cipher/serpent.c
34359 * lib/libgcrypt/cipher/sha1.c
34360 * lib/libgcrypt/cipher/sha256.c
34361 * lib/libgcrypt/cipher/sha512.c
34362 * lib/libgcrypt/cipher/tiger.c
34363 * lib/libgcrypt/cipher/twofish.c
34364 * lib/libgcrypt/cipher/whirlpool.c
34365
34366 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34367
34368 Fix build for systems without error().
34369
34370 * gnulib/error.c: New file (imported from Gnulib).
34371 * gnulib/error.h: Likewise.
34372 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
34373 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
34374 (this variable is now used by error()).
34375
34376 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34377
34378 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
34379 instead of relying that char is signed.
34380
34381 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
34382
34383 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
34384 blocksize different from specified.
34385 (grub_pxefs_read): Likewise.
34386
34387 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34388
34389 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
34390
34391 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
34392 (grub_ata_readwrite): Likewise. Update 2 format strings.
34393 (grub_atapi_read): Likewise.
34394
34395 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
34396 * conf/i386.rmk (pkglib_MODULES): ... to here ...
34397 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
34398 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
34399 (ata_mod_LDFLAGS): Move from here ...
34400 * conf/i386.rmk: ... to here ...
34401 * conf/x86_64-efi.rmk: ... and here.
34402 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
34403 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
34404
34405 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34406
34407 Relicense multiboot.h, with RMS' blessing.
34408
34409 * include/multiboot.h: Change to X11 license.
34410
34411 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
34412
34413 Support --version in grub-mkisofs.
34414
34415 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
34416 (OPTION_VERSION): New macro.
34417 (ld_options): Recognize --version.
34418 (usage): Move `program_name' from here ...
34419 (program_name): ... to here. Add `static' qualifier.
34420 (main): Recognize `OPTION_VERSION'.
34421
34422 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
34423
34424 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
34425 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
34426
34427 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34428
34429 Fix help2man generation for mkisofs.
34430
34431 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
34432 (usage): Send output to stdout (rather than stderr).
34433
34434 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34435
34436 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
34437 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34438 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
34439 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34440 (bin_SCRIPTS): Add `grub-mkfloppy'.
34441 (grub_mkfloppy_SOURCES): New variable.
34442
34443 * util/grub-mkrescue.in: New file.
34444 * util/i386/pc/grub-mkfloppy.in: New file.
34445
34446 * util/i386/coreboot/grub-mkrescue.in: Remove.
34447 * util/i386/pc/grub-mkrescue.in: Remove.
34448
34449 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34450
34451 * include/grub/multiboot.h (struct grub_multiboot_header): Move
34452 from here ...
34453 * include/multiboot.h (struct multiboot_header): ... to here. Update
34454 all users.
34455 * include/grub/multiboot.h (struct grub_multiboot_info): Move
34456 from here ...
34457 * include/multiboot.h (struct multiboot_info): ... to here. Update
34458 all users.
34459 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
34460 from here ...
34461 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
34462 Update all users.
34463 * include/grub/multiboot.h (struct grub_mod_list): Move
34464 from here ...
34465 * include/multiboot.h (struct multiboot_mod_list): ... to here.
34466 Update all users.
34467
34468 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34469
34470 * include/multiboot2.h (multiboot_word): Rename from this ...
34471 (multiboot2_word): ... to this. Update all users.
34472 (multiboot_header): Rename from this ...
34473 (multiboot2_header): ... to this. Update all users.
34474 (multiboot_tag_header): Rename from this ...
34475 (multiboot2_tag_header): ... to this. Update all users.
34476 (multiboot_tag_start): Rename from this ...
34477 (multiboot2_tag_start): ... to this. Update all users.
34478 (multiboot_tag_name): Rename from this ...
34479 (multiboot2_tag_name): ... to this. Update all users.
34480 (multiboot_tag_module): Rename from this ...
34481 (multiboot2_tag_module): ... to this. Update all users.
34482 (multiboot_tag_memory): Rename from this ...
34483 (multiboot2_tag_memory): ... to this. Update all users.
34484 (multiboot_tag_unused): Rename from this ...
34485 (multiboot2_tag_unused): ... to this. Update all users.
34486 (multiboot_tag_end): Rename from this ...
34487 (multiboot2_tag_end): ... to this. Update all users.
34488
34489 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34490
34491 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
34492 this platform we should support Multiboot1 first.
34493
34494 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
34495 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
34496 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
34497
34498 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34499
34500 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
34501 of write calls (converting them to fwrite() if they aren't already).
34502 (get_torito_desc): Likewise.
34503 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
34504
34505 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34506
34507 * util/i386/pc/grub-install.in: Move from here ...
34508 * util/grub-install.in: ... to here. Update all users.
34509
34510 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
34511
34512 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
34513
34514 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34515
34516 Support for El Torito without floppy emulation.
34517
34518 * util/mkisofs/eltorito.c: Include `<errno.h>'.
34519 (init_boot_catalog): Improve error handling.
34520 (get_torito_desc): Don't use floppy emulation unless requested by
34521 user. Patch boot information table when requested via
34522 `-boot-info-table'.
34523 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
34524 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
34525 (use_boot_info_table): New variables.
34526 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
34527 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
34528 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
34529 `--eltorito-emul-floppy'.
34530 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
34531 and `OPTION_ELTORITO_EMUL_FLOPPY'.
34532 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
34533 (use_boot_info_table, get_731): New prototypes.
34534 * util/mkisofs/write.c (get_731): New function.
34535
34536 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
34537
34538 Fix the generation of the man page.
34539
34540 * util/pc/i386/grub-install.in: Source
34541 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
34542
34543 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34544
34545 Large file support for grub-mkisofs.
34546
34547 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
34548 * util/mkisofs/mkisofs.c (next_extent, last_extent)
34549 (session_start): Upgrade type to `uint64_t'. Update all users.
34550 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
34551 (struct directory_entry): Upgrade type of `starting_block' and
34552 `size' to `uint64_t'. Update all users.
34553 (struct deferred): Remove unused structure.
34554 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
34555 Update all users.
34556 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
34557 file is larger than `UINT32_MAX'.
34558 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
34559 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
34560 return value.
34561 (struct deferred_write): Upgrade type of `extent' and `size' to
34562 `uint64_t'. Update all users.
34563 (last_extent_written): Upgrade type to `uint64_t'. Update all
34564 users.
34565 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
34566 Update all users. Upgrade type of `remain' to `int64_t' and
34567 `use' to `size_t'. Use error() to handle fread() errors.
34568 (write_files): Rely on write_one_file() rather than calling
34569 xfwrite() directly.
34570
34571 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
34572
34573 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
34574
34575 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34576
34577 * util/mkisofs/fnmatch.c: Remove.
34578 * util/mkisofs/getopt1.c: Likewise.
34579 * util/mkisofs/getopt.c: Likewise.
34580 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
34581 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
34582 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
34583 `gnulib/getopt1.c' and `gnulib/getopt.c'.
34584 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
34585
34586 * configure.ac: Detect `mingw32msvc' host_os.
34587 Check for lstat(), getuid() and getgid().
34588
34589 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
34590 instances of `u_char' with `uint8_t'.
34591
34592 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
34593 [!HAVE_GETUID] (getuid): New function (stub).
34594 [!HAVE_GETGID] (getgid): Likewise.
34595 [!HAVE_LSTAT] (lstat): Likewise.
34596 [!S_IROTH] (S_IROTH): New macro (dummy).
34597 [!S_IRGRP] (S_IRGRP): Likewise.
34598
34599 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34600
34601 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
34602 conditional expression).
34603
34604 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34605
34606 Import from Gnulib.
34607
34608 * gnulib/fnmatch.c: New file.
34609 * gnulib/fnmatch.h: Likewise.
34610 * gnulib/fnmatch_loop.c: Likewise.
34611 * gnulib/getopt.c: Likewise.
34612 * gnulib/getopt.h: Likewise.
34613 * gnulib/getopt1.c: Likewise.
34614 * gnulib/getopt_int.h: Likewise.
34615 * gnulib/gettext.h: Likewise.
34616
34617 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34618
34619 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
34620 * normal/handler.c (read_handler_list): Likewise.
34621
34622 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34623
34624 Misc cleanup.
34625
34626 * kern/command.c (grub_register_command_prio): Use
34627 grub_zalloc() instead of explicitly zeroing data.
34628 * kern/list.c: Include `<grub/mm.h>'.
34629 (grub_named_list_find): Replace `0' with `NULL'.
34630 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
34631 (fs_module_list): Change type to `grub_named_list_t'. Update all
34632 users.
34633 * normal/dyncmd.c (read_command_list): Add space between function
34634 call and parenthesis.
34635 * normal/handler.c (read_handler_list): Likewise.
34636
34637 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34638
34639 * normal/auth.c (punishment_delay): Moved from here ...
34640 (grub_auth_strcmp): ... to here (inside function).
34641
34642 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34643
34644 * include/grub/list.h (struct grub_named_list): Remove `const'
34645 qualifier from `name'.
34646 (struct grub_prio_list): Likewise.
34647
34648 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34649
34650 * normal/auth.c: Include `<grub/time.h>'.
34651 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
34652
34653 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34654
34655 * normal/auth.c (punishment_delay): New variable.
34656 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
34657 (grub_auth_check_authentication): Punish failed login attempts with
34658 an incremental (2^N) delay.
34659
34660 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34661
34662 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
34663 path with $(srcdir).
34664
34665 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34666
34667 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
34668
34669 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34670
34671 * util/i386/coreboot/grub-mkrescue.in: New file.
34672 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
34673 variables.
34674
34675 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
34676 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
34677 * configure.ac: Add header and function checks to satisfy grub-mkisofs
34678 requirements.
34679 * util/mkisofs/defaults.h: New file.
34680 * util/mkisofs/eltorito.c: Likewise.
34681 * util/mkisofs/exclude.h: Likewise.
34682 * util/mkisofs/fnmatch.c: Likewise.
34683 * util/mkisofs/getopt.c: Likewise.
34684 * util/mkisofs/getopt1.c: Likewise.
34685 * util/mkisofs/hash.c: Likewise.
34686 * util/mkisofs/include/fctldefs.h: Likewise.
34687 * util/mkisofs/include/mconfig.h: Likewise.
34688 * util/mkisofs/include/prototyp.h: Likewise.
34689 * util/mkisofs/include/statdefs.h: Likewise.
34690 * util/mkisofs/iso9660.h: Likewise.
34691 * util/mkisofs/joliet.c: Likewise.
34692 * util/mkisofs/match.c: Likewise.
34693 * util/mkisofs/match.h: Likewise.
34694 * util/mkisofs/mkisofs.c: Likewise.
34695 * util/mkisofs/mkisofs.h: Likewise.
34696 * util/mkisofs/multi.c: Likewise.
34697 * util/mkisofs/name.c: Likewise.
34698 * util/mkisofs/rock.c: Likewise.
34699 * util/mkisofs/tree.c: Likewise.
34700 * util/mkisofs/write.c: Likewise.
34701
34702 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34703
34704 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
34705 being insecure.
34706
34707 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34708
34709 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
34710 `grub-mkimage' (and use $0 when possible).
34711
34712 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34713
34714 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
34715 error message for excessively large memory map.
34716
34717 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34718
34719 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
34720 executable bit.
34721
34722 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34723
34724 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
34725 message for coreboot users.
34726
34727 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
34728
34729 Fix build with GNU gold.
34730
34731 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
34732 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
34733 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
34734 link addresses.
34735 * aclocal.m4: Likewise.
34736
34737 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
34738
34739 * configure.ac (AC_PREREQ): Bump to 2.59d.
34740 * INSTALL: Make it more clear when Autoconf and Ruby are
34741 needed and when to run `./autogen.sh'.
34742
34743 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
34744
34745 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
34746 OSes.
34747
34748 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34749
34750 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
34751
34752 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34753
34754 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
34755 giving it to GNU Mach.
34756
34757 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34758
34759 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
34760 GNU partition number to get internal GRUB partition number.
34761
34762 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34763
34764 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
34765 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
34766
34767 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
34768
34769 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
34770 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
34771 case.
34772
34773 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
34774
34775 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
34776
34777 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34778
34779 Fix build problem.
34780
34781 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
34782 `-isystem=$(srcdir)/include'.
34783
34784 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34785
34786 * util/i386/pc/grub-install.in: Remove hint that device.map should be
34787 checked (grub-install doesn't currently rely on it).
34788
34789 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
34790
34791 Revert SVN r2660.
34792
34793 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
34794 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
34795 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
34796 * conf/i386-ieee1275.rmk: Likewise.
34797 * conf/i386-pc.rmk: Likewise.
34798 * conf/powerpc-ieee1275.rmk: Likewise.
34799 * conf/sparc64-ieee1275.rmk: Likewise.
34800 * conf/x86_64-efi.rmk: Likewise.
34801
34802 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34803
34804 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
34805
34806 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34807
34808 * include/grub/misc.h: Stop checking for APPLE_CC.
34809
34810 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34811
34812 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
34813 doesn't cause an infinite call loop.
34814
34815 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
34816
34817 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
34818 strings.
34819
34820 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34821
34822 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
34823 variable.
34824 * Makefile.in: Likewise.
34825
34826 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34827
34828 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
34829
34830 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34831
34832 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
34833
34834 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34835
34836 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
34837
34838 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34839
34840 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
34841 from here ...
34842 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
34843
34844 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34845
34846 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
34847 in $(MAKEINFO) invocation. This makes it clear in output that
34848 errors are being ignored.
34849
34850 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34851
34852 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
34853 from here ...
34854 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
34855 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
34856 * conf/i386-ieee1275.rmk: Likewise.
34857 * conf/i386-pc.rmk: Likewise.
34858 * conf/powerpc-ieee1275.rmk: Likewise.
34859 * conf/sparc64-ieee1275.rmk: Likewise.
34860 * conf/x86_64-efi.rmk: Likewise.
34861
34862 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
34863
34864 * util/grub-editenv.c (main): If only a command is given, use
34865 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
34866 (usage): FILENAME is now optional and has a default.
34867
34868 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
34869
34870 Improve grub-mkconfig performance when there are several menu
34871 entries on a single filesystem.
34872
34873 * util/grub.d/10_linux.in (linux_entry): Cache the output of
34874 prepare_grub_to_access_device.
34875 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
34876 * util/grub.d/30_os-prober.in: Likewise.
34877
34878 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34879
34880 * util/grub.d/10_freebsd.in: Remove.
34881 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
34882 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
34883
34884 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34885
34886 * docs/grub.cfg: Fix example usage of *BSD loaders.
34887
34888 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34889
34890 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
34891 grub_util_error() call.
34892
34893 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34894
34895 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
34896 `reserved_first_sector' member.
34897 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
34898 `reserved_first_sector' to 1.
34899 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
34900 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
34901 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
34902 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
34903 filesystems which begin at first sector.
34904 (options): New option --skip-fs-probe.
34905 (main): Handle --skip-fs-probe and pass it to setup().
34906
34907 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34908
34909 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
34910 (memset): Fix function prototype.
34911
34912 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34913 2009-10-25 Vasily Averin <vvs@parallels.com>
34914
34915 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
34916 `dirent.direntlen == 0'.
34917
34918 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34919
34920 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
34921 `cpio'.
34922 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
34923
34924 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34925
34926 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
34927 `__trampoline_setup' and `__ucmpdi2'.
34928 * include/grub/powerpc/libgcc.h: Only export symbols for functions
34929 that libgcc provides.
34930
34931 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34932
34933 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
34934 * include/grub/sparc64/libgcc.h (memset): Likewise.
34935 * include/grub/misc.h (memset, memcmp): New function prototypes.
34936
34937 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34938
34939 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
34940 `cpio'.
34941 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
34942
34943 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34944
34945 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
34946 * docs/grub.cfg: Compensate for recent change in multiboot
34947 loader (since 2009-08-14 it won't pass filename to payload).
34948 * util/grub.d/10_hurd.in: Likewise.
34949
34950 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
34951
34952 * config.guess: Update to latest version from config git
34953 repository.
34954 * config.sub: Likewise.
34955
34956 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
34957
34958 Fix build on sparc64.
34959
34960 * configure.ac: Perform checks for libgcc symbols before
34961 adding `-nostdlib' to LDFLAGS.
34962
34963 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
34964
34965 Let user specify OpenBSD root device.
34966
34967 * loader/i386/bsd.c (openbsd_root): New variable.
34968 (openbsd_opts): New option 'root'.
34969 (OPENBSD_ROOT_ARG): New macro.
34970 (grub_openbsd_boot): Use 'openbsd_root'.
34971 (grub_cmd_openbsd): Fill 'openbsd_root'.
34972
34973 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
34974
34975 * NEWS: Misc adjustments.
34976
34977 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
34978
34979 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
34980
34981 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
34982
34983 * configure.ac: Bump version to 1.97.
34984
34985 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
34986
34987 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
34988 -mno-3dnow on x86 architectures. Some toolchains enable these
34989 features by default, but they rely on registers that aren't enabled
34990 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
34991
34992 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
34993
34994 Make entry text a bit more readable.
34995
34996 * util/grub.d/10_linux.in: Add `with' before `Linux'.
34997
34998 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
34999
35000 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
35001
35002 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35003
35004 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
35005 operations.
35006
35007 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35008
35009 * configure.ac: Add missing dollar.
35010
35011 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35012
35013 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
35014
35015 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
35016 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
35017 exports.
35018 * include/grub/sparc64/libgcc.h: Likewise. Use
35019 preprocessor conditionals.
35020
35021 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35022
35023 * conf/common.rmk (grub-dumpbios): Remove rule.
35024 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
35025 * util/grub-dumpbios.in: Remove file.
35026
35027 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35028
35029 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
35030 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
35031
35032 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
35033 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
35034 users.
35035
35036 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
35037 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
35038 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
35039 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
35040 users.
35041
35042 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
35043
35044 * term/tparm.c: Switch to GPLv3.
35045
35046 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35047
35048 * include/grub/i386/cpuid.h: Add header protection.
35049
35050 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35051
35052 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
35053
35054 * include/grub/i386/cpuid.h: New file.
35055 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
35056 (has_longmode): Rename to ...
35057 (grub_cpuid_has_longmode): ... this. Update all users. Remove
35058 `static' attribute.
35059 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
35060 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
35061 on a CPU that doesn't implement AMD64 instruction set.
35062
35063 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35064
35065 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
35066 that version.texi is rebuilt on version number changes.
35067
35068 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35069
35070 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
35071 Fixes bug #27602.
35072
35073 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35074
35075 * util/i386/pc/grub-install.in: Source
35076 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
35077 that the --grub-probe option will work.
35078 * util/sparc64/ieee1275/grub-install.in: Likewise.
35079
35080 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
35081
35082 * configure.ac: Bump version to 1.97~beta4.
35083
35084 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
35085
35086 Resync grub-mkdevicemap in x86_64-efi.
35087
35088 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
35089 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
35090 `util/devicemap.c'.
35091
35092 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
35093
35094 * util/grub-editenv.c (create_envblk_file): Write new block with a
35095 .new suffix and then rename it into place, to ensure atomic
35096 creation.
35097
35098 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
35099
35100 Do not automatically install headers.
35101
35102 * Makefile.in (include_DATA): Remove. Update all users.
35103
35104 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
35105
35106 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
35107 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
35108
35109 * util/osdetect.lua: Remove.
35110 * script/lua/lauxlib.c: Likewise.
35111 * script/lua/ldebug.c: Likewise.
35112 * script/lua/grub_main.c: Likewise.
35113 * script/lua/lauxlib.h: Likewise.
35114 * script/lua/ldebug.h: Likewise.
35115 * script/lua/ltablib.c: Likewise.
35116 * script/lua/liolib.c: Likewise.
35117 * script/lua/lstrlib.c: Likewise.
35118 * script/lua/lualib.h: Likewise.
35119 * script/lua/ldo.c: Likewise.
35120 * script/lua/ldump.c: Likewise.
35121 * script/lua/ldo.h: Likewise.
35122 * script/lua/loslib.c: Likewise.
35123 * script/lua/lundump.c: Likewise.
35124 * script/lua/grub_lib.c: Likewise.
35125 * script/lua/ldblib.c: Likewise.
35126 * script/lua/lundump.h: Likewise.
35127 * script/lua/lmem.c: Likewise.
35128 * script/lua/grub_lib.h: Likewise.
35129 * script/lua/lmathlib.c: Likewise.
35130 * script/lua/lstate.c: Likewise.
35131 * script/lua/ltm.c: Likewise.
35132 * script/lua/lvm.c: Likewise.
35133 * script/lua/lmem.h: Likewise.
35134 * script/lua/lstate.h: Likewise.
35135 * script/lua/ltm.h: Likewise.
35136 * script/lua/ltable.c: Likewise.
35137 * script/lua/lvm.h: Likewise.
35138 * script/lua/llex.c: Likewise.
35139 * script/lua/lgc.c: Likewise.
35140 * script/lua/grub_lua.h: Likewise.
35141 * script/lua/loadlib.c: Likewise.
35142 * script/lua/lfunc.c: Likewise.
35143 * script/lua/lopcodes.c: Likewise.
35144 * script/lua/lparser.c: Likewise.
35145 * script/lua/ltable.h: Likewise.
35146 * script/lua/llex.h: Likewise.
35147 * script/lua/lgc.h: Likewise.
35148 * script/lua/lfunc.h: Likewise.
35149 * script/lua/lbaselib.c: Likewise.
35150 * script/lua/lopcodes.h: Likewise.
35151 * script/lua/lparser.h: Likewise.
35152 * script/lua/lzio.c: Likewise.
35153 * script/lua/linit.c: Likewise.
35154 * script/lua/lobject.c: Likewise.
35155 * script/lua/llimits.h: Likewise.
35156 * script/lua/lstring.c: Likewise.
35157 * script/lua/lzio.h: Likewise.
35158 * script/lua/lapi.c: Likewise.
35159 * script/lua/lcode.c: Likewise.
35160 * script/lua/lua.h: Likewise.
35161 * script/lua/lobject.h: Likewise.
35162 * script/lua/lstring.h: Likewise.
35163 * script/lua/lapi.h: Likewise.
35164 * script/lua/lcode.h: Likewise.
35165 * script/lua/luaconf.h: Likewise.
35166
35167 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
35168
35169 * docs/grub.texi (Command-line and menu entry commands): Document
35170 date and echo commands.
35171
35172 2009-09-24 Pavel Roskin <proski@gnu.org>
35173
35174 * include/grub/kernel.h (struct grub_module_header): Remove
35175 `grub_module_header_types'. Make `type' unsigned. Make `size'
35176 32-bit on all platforms.
35177 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
35178 8-bit field. Use grub_host_to_target32() for `size'.
35179 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
35180 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
35181 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
35182
35183 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35184
35185 Fix "lost keypress" bug in at_keyboard.
35186
35187 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
35188 Checks for readyness of input buffer (without flushing it).
35189 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
35190 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
35191
35192 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35193
35194 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
35195 size check within GRUB_MACHINE_PCBIOS section.
35196
35197 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35198
35199 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
35200 return value.
35201 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
35202 KEYBOARD_ISREADY check.
35203 (grub_at_keyboard_checkkey): Rename to ...
35204 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
35205 Remove gratuitous cast.
35206
35207 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
35208
35209 * configure.ac: Call AC_PROG_MKDIR_P.
35210 * Makefile.in (docs/stamp-vti): Create docs directory. Create
35211 version.texi in $(builddir) rather than $(srcdir).
35212 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
35213 to makeinfo's @include search path.
35214
35215 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35216
35217 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
35218
35219 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35220
35221 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
35222 for `*.dpkg-new'.
35223
35224 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
35225
35226 Build info documentation. Some code borrowed from Automake.
35227
35228 * configure.ac: Check for makeinfo.
35229 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
35230 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
35231 docs/version.texi.
35232 (MOSTLYCLEANFILES): Add vti.tmp.
35233 (docs/version.texi, docs/stamp-vti): Update automatically.
35234 (docs/grub.info): Build info documentation. Use --force and ignore
35235 errors for now.
35236 (all-local): Add $(INFOS).
35237 (install-local): Install info files.
35238 (uninstall): Uninstall info files.
35239 * docs/version.texi: Remove from revision control. This file is
35240 automatically generated on build now.
35241 * gendistlist.sh: Add `*.info'.
35242
35243 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35244
35245 * kern/term.c: Fix indentation.
35246
35247 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35248
35249 * util/hostdisk.c: Fix a comment.
35250
35251 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
35252
35253 Fix regression introduced in r2539.
35254
35255 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
35256 to 0xA1.
35257
35258 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
35259
35260 * util/grub.d/30_os-prober.in: Don't throw away stderr from
35261 os-prober. Under normal operation, it does not print anything to
35262 stderr; if it does, we need to debug it, and throwing away stderr
35263 makes that excessively difficult.
35264
35265 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
35266
35267 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
35268
35269 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35270
35271 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
35272 AC_LANG_PROGRAM from autoconf.
35273 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
35274 prototypes (fixes warning).
35275
35276 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
35277 `--disable-werror' was used.
35278
35279 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35280
35281 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
35282 uninitialized `lastaddr'.
35283
35284 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
35285
35286 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
35287
35288 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35289
35290 * commands/test.c (get_fileinfo): Return immediately if
35291 grub_fs_probe fails.
35292
35293 2009-09-14 José Martínez <xosemp@gmail.com>
35294
35295 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
35296
35297 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35298
35299 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
35300 output.
35301
35302 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
35303
35304 * configure.ac: Remove --enable-grub-pe2elf. Only build
35305 grub-pe2elf when needed by the build system itself.
35306 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
35307
35308 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35309
35310 * configure.ac: Bump version to 1.97~beta3.
35311 * docs/version.texi: Likewise.
35312
35313 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35314
35315 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
35316 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
35317 from here ...
35318 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
35319 (grub_linux_setup_video): ... to here (with some adjustments).
35320
35321 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35322
35323 Fix memory corruption issue (spotted by Colin Watson).
35324
35325 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
35326 causing returned size to be stored in an incorrect memory location.
35327 Fix use of uninitialized value when storing the returned size.
35328
35329 2009-09-12 Yves Blusseau <blusseau@zetam.org>
35330
35331 Change clean rules to properly remove files
35332
35333 * genmk.rb: add new clean rules
35334 * Makefile.in (clean): add the new targets
35335 (mostlyclean): likewise
35336
35337 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35338
35339 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
35340 to grub_uint64_t.
35341 * fs/ntfs.c (init_file): Understand 64-bit sizes for
35342 non-resident files.
35343
35344 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35345
35346 * configure.ac: Don't look for help2man when cross-compiling. Fixes
35347 part of bug #27349.
35348
35349 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35350
35351 * util/grub-mkconfig.in: Make the created config mode 400 and
35352 print a warning if it fails.
35353
35354 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
35355
35356 * util/grub.d/40_custom.in: Ask user to type custom entries below
35357 comment, rather than below 'exec tail' line.
35358
35359 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35360
35361 * util/grub.d/40_custom.in: Make sure that the explanatory text is
35362 visible in grub.cfg.
35363
35364 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35365
35366 * util/grub.d/40_custom.in: Make it a little clearer how to use this
35367 file.
35368
35369 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35370
35371 * docs/grub.cfg: Add an example menu entry for memtest86+.
35372
35373 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
35374
35375 * config.guess: Update to latest version from config git.
35376 * config.sub: Likewise.
35377
35378 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
35379
35380 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
35381 unknown-command case. Fixes bug #27320.
35382
35383 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
35384
35385 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
35386 `help' if the command exists.
35387
35388 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
35389
35390 * INSTALL: Require GCC 4.1.3 or later.
35391
35392 2009-09-06 Yves Blusseau <blusseau@zetam.org>
35393
35394 * Makefile.in (RMKFILES): add i386-qemu.rmk
35395 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
35396 $(srcdir)/stamp-h.in
35397
35398 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
35399
35400 * util/grub-probe.c (probe): Comment out buggy codepath, which
35401 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
35402 should be re-enabled after 1.97.
35403
35404 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
35405
35406 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
35407 find searches for.
35408
35409 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
35410
35411 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
35412 unnecessary calls to grub_error.
35413
35414 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
35415
35416 * NEWS: Mention `keystatus' and Unicode fonts.
35417
35418 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
35419
35420 * configure.ac: Bump version to 1.97~beta2.
35421 * docs/version.texi: Likewise.
35422
35423 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35424
35425 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
35426 containing unwind information in some cases where it previously did
35427 not. Use -fno-dwarf2-cfi-asm if available to restore the old
35428 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
35429 discussion.
35430
35431 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
35432
35433 Embedding loadenv module into grub-emu
35434
35435 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
35436 commands/loadenv.c
35437 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
35438 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
35439 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
35440 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
35441 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
35442 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
35443
35444 2009-09-03 Magnus Granberg <zorry@ume.nu>
35445
35446 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
35447 include -fPIE in the default specs.
35448 * configure.ac: Check if pie_possible is yes and add -fno-PIE
35449 to TARGET_CFLAGS.
35450
35451 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
35452
35453 * INSTALL: Note that GNU Bison 2.3 or later is required.
35454
35455 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35456
35457 * kern/i386/pc/startup.S: Fix typo.
35458
35459 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
35460
35461 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
35462 according to GCS.
35463
35464 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35465
35466 * docs/grub.texi (Naming convention): Describe one-based partition
35467 numbering.
35468 (Device syntax): Likewise.
35469 (File name syntax): Likewise.
35470 (Block list syntax): Likewise.
35471 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
35472 menu.lst.
35473 (File name syntax): Likewise.
35474 (Command-line and menu entry commands): Document acpi, blocklist,
35475 crc, export, insmod, keystatus, ls, set, and unset commands.
35476
35477 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35478
35479 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
35480 to avoid implying that only one of --shift, --ctrl, or --alt may be
35481 used.
35482
35483 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35484
35485 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
35486 rather than comparing against S_IFREG, which will almost never work.
35487
35488 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
35489
35490 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
35491 (write_blocklists): Likewise.
35492
35493 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
35494
35495 * script/lua/grub_lua.h (fputs): Supply a format string as the first
35496 argument to grub_printf.
35497
35498 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
35499
35500 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
35501 non GNU test.
35502
35503 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35504
35505 * kern/file.c (grub_file_read): Spelling fix
35506
35507 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35508
35509 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
35510 loading of headers in some cases.
35511
35512 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
35513
35514 * configure.ac: Bump version to 1.97~beta1.
35515 * docs/version.texi: Likewise.
35516
35517 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
35518
35519 * include/grub/i386/xnu.h: Add license header.
35520 include grub/err.h explicitly.
35521
35522 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35523
35524 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
35525 to `ufs' in the vfs.root.mountfrom kernel parameter.
35526
35527 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35528
35529 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
35530
35531 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
35532 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
35533
35534 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
35535 `ARRAY_SIZE' macro.
35536
35537 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35538
35539 * kern/file.c (grub_file_read): Check offset.
35540 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
35541 * fs/jfs.c (grub_jfs_read_file): Likewise.
35542 * fs/ntfs.c (grub_ntfs_read): Likewise.
35543 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
35544 * fs/minix.c (grub_minix_read_file): Correct offset check.
35545 * fs/ufs.c (grub_ufs_read_file): Likewise.
35546
35547 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35548
35549 * term/i386/pc/console.c (bios_data_area): Cast
35550 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
35551
35552 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35553
35554 1-bit optimised blitters.
35555
35556 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
35557 prototype.
35558 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35559 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35560 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35561 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35562 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35563 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35564 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
35565 function.
35566 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35567 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35568 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35569 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35570 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35571 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35572 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
35573 when possible.
35574 * video/video.c (grub_video_get_blit_format): Return
35575 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
35576
35577 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35578
35579 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
35580 the first argument to grub_printf.
35581
35582 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35583 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
35584
35585 Add `getkeystatus' terminal method. Add a new `keystatus' command
35586 to query it.
35587
35588 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
35589 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
35590 modifier key bitmasks.
35591 (struct grub_term_input): Add `getkeystatus' member.
35592 (grub_getkeystatus): Add prototype.
35593 * kern/term.c (grub_getkeystatus): New function.
35594
35595 * include/grub/i386/pc/memory.h
35596 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
35597 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
35598 Data Area layout.
35599 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
35600 (grub_console_term_input): Set `getkeystatus' member.
35601 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
35602 constants.
35603 (grub_usb_keyboard_getreport): Likewise.
35604 (grub_usb_keyboard_checkkey): Likewise.
35605 (grub_usb_keyboard_getkeystatus): New function.
35606 (grub_usb_keyboard_term): Set `getkeystatus' member.
35607
35608 * commands/keystatus.c: New file.
35609 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
35610 (keystatus_mod_SOURCES): New variable.
35611 (keystatus_mod_CFLAGS): Likewise.
35612 (keystatus_mod_LDFLAGS): Likewise.
35613 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
35614 commands/keystatus.c.
35615 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35616 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35617 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35618 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35619 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35620 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35621
35622 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35623
35624 Split befs.mod and afs.mod into *_be.mod and *.mod
35625
35626 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
35627 (grub_fstest_SOURCES): Likewise.
35628 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
35629 (afs_be_mod_SOURCES): New variable.
35630 (afs_be_mod_CFLAGS): Likewise.
35631 (afs_be_mod_LDFLAGS): Likewise.
35632 (befs_be_mod_SOURCES): Likewise.
35633 (befs_be_mod_CFLAGS): Likewise.
35634 (befs_be_mod_LDFLAGS): Likewise.
35635 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
35636 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35637 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35638 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
35639 (grub_emu_SOURCES): Likewise.
35640 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35641 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35642 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35643 * fs/afs_be.c: New file.
35644 * fs/befs_be.c: New file.
35645 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
35646 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
35647 (U16): Replaced with ...
35648 (grub_afs_to_cpu16): ...this. All users updated.
35649 (U32): Replaced with ...
35650 (grub_afs_to_cpu32): ...this. All users updated.
35651 (U64): Replaced with ...
35652 (grub_afs_to_cpu64): ...this. All users updated.
35653 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
35654 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
35655 (grub_afs_validate_sblock): Check only one endianness.
35656 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35657 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35658 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35659 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35660 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35661 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35662 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35663 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35664
35665 2009-08-26 Bean <bean123ch@gmail.com>
35666
35667 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
35668 64-bit number.
35669 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
35670 (grub_xfs_inode_block): Change return type to grub_uint64_t.
35671 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
35672
35673 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35674
35675 NetBSD memory map support.
35676
35677 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
35678 (grub_netbsd_btinfo_mmap_header): New structure.
35679 (grub_netbsd_btinfo_mmap_entry): Likewise.
35680 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
35681
35682 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35683
35684 Enable bsd.mod on coreboot.
35685
35686 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
35687 (bsd_mod_SOURCES): New variable.
35688 (bsd_mod_CFLAGS): Likewise.
35689 (bsd_mod_LDFLAGS): Likewise.
35690 (bsd_mod_ASFLAGS): Likewise.
35691 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
35692 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
35693
35694 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35695
35696 Cleanup NetBSD root support.
35697
35698 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
35699 grub_bsd_get_device.
35700 Fix typo.
35701
35702 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
35703
35704 * util/grub.d/00_header.in: Move check for the video backend of
35705 gfxterm from here ...
35706 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
35707 a suitable video backend.
35708
35709 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35710
35711 Fix breakage in grub-setup.
35712
35713 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
35714 "msdos_partition_map".
35715
35716 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35717
35718 Fix breakage in normal/auth.c.
35719
35720 * normal/auth.c (grub_iswordseparator): New function.
35721
35722 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35723
35724 Authentication support.
35725
35726 * commands/password.c: New file.
35727 * conf/common.rmk (pkglib_MODULES): Add password.mod.
35728 (password_mod_SOURCES): New variable.
35729 (password_mod_CFLAGS): Likewise.
35730 (password_mod_LDFLAGS): Likewise.
35731 (normal_mod_SOURCES): Add normal/auth.c.
35732 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
35733 normal/auth.c.
35734 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35735 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35736 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35737 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35738 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35739 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35740 * include/grub/auth.h: New file.
35741 * include/grub/err.h (grub_err_t): New enum value
35742 GRUB_ERR_ACCESS_DENIED.
35743 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
35744 'users'.
35745 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
35746 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
35747 users updated.
35748 * normal/auth.c: New file.
35749 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
35750 (grub_cmdline_run): Don't allow to go to command line without
35751 authentication.
35752 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
35753 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
35754 menuentry without superuser rights.
35755 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
35756 user isn't a superuser.
35757
35758 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35759
35760 Save space by inlining misc.c functions.
35761
35762 * kern/misc.c (grub_iswordseparator): Made static.
35763 * kern/misc.c (grub_strcat): Moved from here ...
35764 * include/grub/misc.h (grub_strcat): ... here. Inlined.
35765 * kern/misc.c (grub_strncat): Moved from here ...
35766 * include/grub/misc.h (grub_strncat): ... here. Inlined.
35767 * kern/misc.c (grub_strcasecmp): Moved from here ...
35768 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
35769 * kern/misc.c (grub_strncasecmp): Moved from here ...
35770 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
35771 * kern/misc.c (grub_isalpha): Moved from here ...
35772 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
35773 * kern/misc.c (grub_isdigit): Moved from here ...
35774 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
35775 * kern/misc.c (grub_isgraph): Moved from here ...
35776 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
35777 * kern/misc.c (grub_tolower): Moved from here ...
35778 * include/grub/misc.h (grub_tolower): ... here. Inlined.
35779
35780 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35781
35782 * script/sh/function.c (grub_script_function_find): Cut error message
35783 not to flood terminal.
35784 * script/sh/lexer.c (grub_script_yylex): Remove command line length
35785 limit.
35786 * script/sh/script.c (grub_script_arg_add): Duplicate string.
35787
35788 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
35789
35790 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
35791 `report' grub_uint8_t *.
35792 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
35793 Use a 50-millisecond timeout rather than just repeating
35794 grub_usb_keyboard_getreport 50 times.
35795 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
35796
35797 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35798
35799 Rename *_partition_map to part_*
35800
35801 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
35802 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
35803 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
35804 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
35805 All users updated.
35806 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
35807 All users updated.
35808 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
35809 * util/grub-probe.c (probe_partmap): Don't transform partition name
35810 to get module name.
35811
35812 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35813
35814 Fix OpenBSD and NetBSD support.
35815
35816 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
35817 memory address conflict.
35818 (OPENBSD_MMAP_ACPI): New definition.
35819 (OPENBSD_MMAP_NVS): Likewise.
35820 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
35821 and OPENBSD_MMAP_NVS.
35822 Add memory map terminator
35823 Explicit cast when calling grub_unix_real_boot.
35824 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
35825
35826 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35827
35828 Let user specify NetBSD root device.
35829
35830 * loader/i386/bsd.c (netbsd_root): New variable.
35831 (netbsd_opts): New option 'root'.
35832 (NETBSD_ROOT_ARG): New macro.
35833 (grub_netbsd_boot): Use 'netbsd_root'.
35834 (grub_bsd_unload): Free 'netbsd_root'.
35835 (grub_cmd_netbsd): Fill 'netbsd_root'.
35836
35837 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35838
35839 Support for 64-bit NetBSD.
35840
35841 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
35842 point when booting non-FreeBSD.
35843
35844 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35845
35846 Support --no-smp and --no-acpi for NetBSD.
35847
35848 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
35849 (NETBSD_AB_NOACPI): Likewise.
35850 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
35851 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
35852
35853 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
35854
35855 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
35856 errors.
35857 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
35858 errors. Call grub_error when needed.
35859
35860 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
35861
35862 * commands/search.c (search_fs): Try searching without autoload first.
35863 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
35864 filesystem module explicitly for faster booting.
35865
35866 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
35867
35868 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
35869
35870 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
35871
35872 * util/grub.d/30_os-prober.in: Disable os-prober if
35873 `GRUB_DISABLE_OS_PROBER' was set to true.
35874
35875 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
35876
35877 * partmap/pc.c: Rename to ...
35878 * partmap/msdos.c: ... this. Update all users.
35879 (grub_pc_partition_map): Rename to ...
35880 (grub_msdos_partition_map): ... this. Update all users.
35881
35882 * parttool/pcpart.c: Rename to ...
35883 * parttool/msdospart.c: ... this. Update all users.
35884
35885 * include/grub/pc_partition.h: Rename to ...
35886 * include/grub/msdos_partition.h: ... this. Update all users.
35887 (grub_pc_partition_bsd_entry): Rename to ...
35888 (grub_msdos_partition_bsd_entry): ... this. Update all users.
35889 (grub_pc_partition_disk_label): Rename to ...
35890 (grub_msdos_partition_disk_label): ... this. Update all users.
35891 (grub_pc_partition_entry): Rename to ...
35892 (grub_msdos_partition_entry): ... this. Update all users.
35893 (grub_pc_partition_mbr): Rename to ...
35894 (grub_msdos_partition_mbr): ... this. Update all users.
35895 (grub_pc_partition): Rename to ...
35896 (grub_msdos_partition): ... this. Update all users.
35897 (grub_pc_partition_is_empty): Rename to ...
35898 (grub_msdos_partition_is_empty): ... this. Update all users.
35899 (grub_pc_partition_is_extended): Rename to ...
35900 (grub_msdos_partition_is_extended): ... this. Update all users.
35901 (grub_pc_partition_is_bsd): Rename to ...
35902 (grub_msdos_partition_is_bsd): ... this. Update all users.
35903
35904 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
35905 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
35906 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
35907 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
35908 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
35909 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
35910 (gpt_mod_LDFLAGS): Rename to ...
35911 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
35912 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
35913 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
35914 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
35915 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
35916 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
35917 (part_gpt_mod_LDFLAGS): ... this.
35918 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
35919 `pcpart.mod' to `msdospart.mod'.
35920 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
35921 to ...
35922 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
35923 (msdospart_mod_LDFLAGS): ... this.
35924
35925 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
35926
35927 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
35928 (openbsd_opts): Likewise.
35929 (netbsd_opts): Likewise.
35930 (freebsd_flags): Added 0 terminator.
35931 (openbsd_flags): Likewise.
35932 (netbsd_flags): Likewise.
35933 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
35934 (grub_cmd_freebsd): Transformed into extended command.
35935 (grub_cmd_openbsd): Likewise.
35936 (grub_cmd_netbsd): Likewise.
35937 (cmd_freebsd): Changed type to grub_extcmd_t.
35938 (cmd_openbsd): Likewise.
35939 (cmd_netbsd): Likewise.
35940 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
35941 grub_cmd_openbsd as extended commands.
35942 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
35943 cmd_netbsd and cmd_openbsd
35944
35945 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
35946
35947 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
35948
35949 2009-08-21 Pavel Roskin <proski@gnu.org>
35950
35951 * Makefile.in (install-local): When checking if a file is in the
35952 build directory, use "test -e" to detect symlinks.
35953
35954 * Makefile.in (install-local): Remove all files in
35955 $(DESTDIR)$(pkglibdir) before installing new files there.
35956
35957 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
35958
35959 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
35960 grub-mkelfimage.
35961
35962 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
35963
35964 * util/grub-mkconfig.in: Don't use gfxterm by default if not
35965 explicitly specified by the user.
35966
35967 2009-08-18 Pavel Roskin <proski@gnu.org>
35968
35969 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
35970 grub_uint8_t pointer for data.
35971 * include/grub/fbutil.h (struct grub_video_fbblit_info):
35972 Likewise.
35973 * video/fb/fbutil.c: Remove unnecessary casts.
35974
35975 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
35976
35977 VBE cleanup.
35978
35979 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
35980 (grub_vbe_set_video_mode): Save active mode info
35981 only after setting the mode.
35982 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
35983 second argument.
35984
35985 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
35986
35987 Rename variables for clarity.
35988
35989 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
35990 (active_vbe_mode_info): ... this. All users updated.
35991 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
35992 All users updated.
35993 (initial_mode): Rename to ...
35994 (initial_vbe_mode): ... this. All users updated.
35995 (mode_in_use): Rename to ..
35996 (vbe_mode_in_use): ... this. All users updated.
35997 (mode_list): Rename to ..
35998 (vbe_mode_list): ... this. All users updated.
35999 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
36000 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
36001 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
36002 'mode_list_size' to 'vbe_mode_list_size'.
36003 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
36004 'best_mode_info' to 'best_vbe_mode_info' and
36005 'best_mode' to 'best_vbe_mode'
36006
36007 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36008
36009 Remove duplicate grub_video_fb_get_video_ptr.
36010
36011 * include/grub/fbutil.h (get_data_ptr): Rename to ...
36012 (grub_video_fb_get_video_ptr): ... this.
36013 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
36014 * video/fb/fbutil.c: Add comment about addressing.
36015 (get_data_ptr): Rename to ...
36016 (grub_video_fb_get_video_ptr): ... this. All users updated.
36017 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
36018
36019 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36020
36021 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
36022 grub_dprintf() that was just added.
36023
36024 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36025
36026 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
36027 (DEFAULT_VIDEO_MODE): Remove macros.
36028 (grub_linux_boot): Remove assumption that Linux has FB support,
36029 and use "text" as default video mode.
36030
36031 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
36032
36033 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
36034 grub_dprintf.
36035 * fs/fat.c (grub_fat_read_data): Likewise.
36036
36037 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36038
36039 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
36040 payload.
36041 (grub_module): Likewise.
36042
36043 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36044
36045 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
36046 mbi->cmdline but free playground.
36047
36048 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36049
36050 Handle group offset on UFS1.
36051
36052 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
36053 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
36054
36055 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36056
36057 Split ufs.mod into ufs1.mod and ufs2.mod.
36058
36059 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
36060 (grub_fstest_SOURCES): Likewise.
36061 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
36062 (ufs_mod_SOURCES): Remove.
36063 (ufs_mod_CFLAGS): Likewise.
36064 (ufs_mod_LDFLAGS): Likewise.
36065 (ufs1_mod_SOURCES): New variable.
36066 (ufs1_mod_CFLAGS): Likewise.
36067 (ufs1_mod_LDFLAGS): Likewise.
36068 (ufs2_mod_SOURCES): New variable.
36069 (ufs2_mod_CFLAGS): Likewise.
36070 (ufs2_mod_LDFLAGS): Likewise.
36071 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
36072 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36073 Likewise.
36074 (grub_emu_SOURCES): Likewise.
36075 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36076 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36077 (grub_setup_SOURCES): Likewise.
36078 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36079 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
36080 (grub_setup_SOURCES): Likewise.
36081 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36082 Likewise.
36083 * fs/ufs2.c: New file.
36084 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
36085
36086 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36087
36088 Framebuffer split.
36089
36090 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
36091 subsystem at the end.
36092 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
36093 (video_fb_mod_SOURCES): New variable.
36094 (video_fb_mod_CFLAGS): Likewise.
36095 (video_fb_mod_LDFLAGS): Likewise.
36096 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
36097 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
36098 * video/i386/pc/vbeblit.c: Moved from here ...
36099 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
36100 * video/i386/pc/vbefill.c: Moved from here ...
36101 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
36102 * video/i386/pc/vbeutil.c: Moved from here ...
36103 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
36104 * include/grub/i386/pc/vbeblit.h: Moved from here ...
36105 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
36106 * include/grub/i386/pc/vbefill.h: Moved from here ...
36107 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
36108 * include/grub/i386/pc/vbeutil.h: Moved from here ...
36109 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
36110 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
36111 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
36112 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
36113 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
36114 (grub_video_adapter): Added 'get_info_and_fini'.
36115 (grub_video_get_info_and_fini): New prototype.
36116 (grub_video_set_mode): make modestring const char *.
36117 * loader/i386/linux.c (grub_linux_setup_video): Use
36118 grub_video_get_info_and_fini.
36119 (grub_linux_boot): Move modesetting just before booting.
36120 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
36121 grub_video_get_info_and_fini.
36122 * video/i386/pc/vbe.c: Moved framebuffer part ...
36123 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
36124 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
36125 grub_video_fbstd_colors and grub_video_fb_set_palette.
36126 (grub_video_vbe_init): Clear 'framebuffer' variable and use
36127 grub_video_fb_init.
36128 (grub_video_vbe_fini): Use grub_video_fb_fini.
36129 (grub_video_vbe_setup): Use framebuffer.render_target instead of
36130 render_target and use grub_video_fb_set_active_render_target and
36131 grub_video_fb_set_palette.
36132 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
36133 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
36134 (grub_video_vbe_adapter): Use framebuffer.
36135 * video/video.c (grub_video_get_info_and_fini): New function.
36136 (grub_video_set_mode): Make modestring const char *.
36137 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
36138 values are already initialised.
36139
36140 2009-08-14 Pavel Roskin <proski@gnu.org>
36141
36142 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
36143 ABS and APPLE_CC.
36144 * boot/i386/pc/diskboot.S: Likewise.
36145 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
36146 sectors allow compilation on MacOSX.
36147 * conf/i386-pc.rmk: Enable unconditional compilation of
36148 lnxboot.img.
36149
36150 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
36151
36152 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
36153 * util/grub.d/00_header.in: Enter interruptible sleep if
36154 GRUB_HIDDEN_TIMEOUT is set.
36155
36156 2009-08-13 Yves Blusseau <blusseau@zetam.org>
36157
36158 * include/grub/symbol.h: Add the LOCAL macro.
36159 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
36160 starting with "L_".
36161
36162 2009-08-13 Pavel Roskin <proski@gnu.org>
36163
36164 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
36165 any modern compilers we support.
36166
36167 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
36168 Use local labels starting with "L_" so that Apple assembler
36169 knows they are local.
36170
36171 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
36172
36173 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
36174 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
36175 (bsd_kernel_types): ... this enum.
36176
36177 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
36178 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
36179 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
36180
36181 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
36182 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
36183 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
36184 messages.
36185
36186 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36187
36188 * util/grub-dumpdevtree: Moved from here ...
36189 * util/i386/efi/grub-dumpdevtree: ... to here.
36190 (hexify): New function. Converts a string to its hex version.
36191 Generate hex versions of "efi" and "device-properties" by calling
36192 hexify() on the ASCII strings rather than by hardcoding numbers.
36193
36194 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36195
36196 * fs/jfs.c: Update copyright year.
36197
36198 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36199
36200 * util/grub.d/00_header.in: Fix a comment.
36201 * util/grub.d/10_linux.in: Likewise.
36202 * util/grub.d/10_windows.in: Likewise.
36203 * util/grub.d/10_hurd.in: Likewise.
36204
36205 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36206
36207 * util/grub-mkconfig.in: Allow the user to specify the used font
36208 with GRUB_FONT.
36209
36210 2009-08-08 Pavel Roskin <proski@gnu.org>
36211
36212 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
36213 available, xfs.mod needs it now.
36214
36215 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
36216 the "g" modifier in sed when the intention is to strip something
36217 once. This fixes comparison of kernels with multiple dashes.
36218
36219 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
36220 on it. Add missing space before closing bracket. Fix
36221 misleading formatting.
36222
36223 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36224
36225 * docs/grub.texi: Major overhaul. Remove all sections that are
36226 specific to GRUB Legacy, or mostly composed of Legacy-specific
36227 information.
36228
36229 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36230
36231 * docs/version.texi: New file. Provides version information for
36232 grub.texi.
36233
36234 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36235
36236 * docs/grub.texi: Update CVS information to SVN.
36237 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
36238
36239 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36240
36241 * util/grub-mkconfig.in: Remove a wrong `fi'.
36242
36243 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36244
36245 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
36246 (grub_jfs_uuid): New function.
36247 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
36248
36249 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36250
36251 * util/grub-mkconfig_lib.in (font_path): Move the functionality
36252 of it to ...
36253 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
36254 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
36255
36256 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36257
36258 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
36259 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
36260 Update all users.
36261
36262 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
36263 not just "vmlinu[zx]".
36264 Moved from here ...
36265 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
36266 all users.
36267
36268 * util/grub.d/10_linux.in (find_latest): Moved from here ...
36269 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
36270 all users.
36271
36272 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36273
36274 * util/grub.d/10_freebsd.in: Use an absolute device path for
36275 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
36276
36277 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
36278
36279 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
36280 handling of multiple abstraction modules.
36281
36282 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
36283
36284 Fix a bug resulting in black screen when loading Linux using a
36285 packed video mode.
36286
36287 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
36288 function.
36289
36290 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
36291 (grub_vbe_bios_getset_dac_palette_width): New function.
36292 (grub_vbe_bios_get_dac_palette_width)
36293 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
36294 grub_vbe_bios_getset_dac_palette_width()).
36295
36296 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
36297 check for return status.
36298 (grub_vbe_get_video_mode_info): When getting information for a packed
36299 mode (<= 8 bpp), obtain DAC palette width using
36300 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
36301 {red,green,blue}_mark_size.
36302
36303 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
36304
36305 * commands/search.c (options): Fix help output to match actual code.
36306
36307 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
36308
36309 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
36310 of homegrown code.
36311
36312 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36313
36314 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
36315 on XFS or ReiserFS.
36316
36317 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36318
36319 Support Apple partition map with sector size different from 512 bytes.
36320
36321 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
36322 (apple_partition_map_iterate): Respect 'aheader.blocksize'
36323 and 'apart.partmap_size'.
36324
36325 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36326 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
36327
36328 Fix cpuid command.
36329
36330 * commands/i386/cpuid.c (options): New variable.
36331 (grub_cmd_cpuid): Return real error.
36332 (GRUB_MOD_INIT(cpuid)): Declare options.
36333
36334 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
36335
36336 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
36337 valid.
36338
36339 2009-07-31 Bean <bean123ch@gmail.com>
36340
36341 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
36342 log2_inode.
36343 (grub_fshelp_node): Move inode field to the end.
36344 (grub_xfs_data): Remove inode field.
36345 (grub_xfs_inode_block): Calculate inode size using sblock.
36346 (grub_xfs_inode_offset): Likewise.
36347 (grub_xfs_read_inode): Calculate inode size using sblock.
36348 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
36349 (grub_xfs_iterate_dir): Calculate inode size using sblock.
36350 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
36351 to match inode size.
36352 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
36353 not accessible when data is null.
36354 (grub_xfs_open): Likewise.
36355
36356 2009-07-31 Bean <bean123ch@gmail.com>
36357
36358 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
36359 Don't change pv->disk if it's already set.
36360
36361 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
36362 (grub_raid_register): ... here.
36363 (grub_raid_rescan): Removed.
36364
36365 * include/grub/raid.h (grub_raid_rescan): Removed.
36366
36367 * util/grub-fstest.c: Remove include file <grub/raid.h>.
36368 (fstest): Replace grub_raid_rescan with module fini function followed
36369 by init function.
36370
36371 * util/grub-probe.c: Add include file <grub/raid.h>.
36372 (probe_raid_level): New function.
36373 (probe): Detect abstraction by walking the disk device, support two
36374 level of abstraction (LVM on RAID) when detecting partition map.
36375
36376 2009-07-31 Pavel Roskin <proski@gnu.org>
36377
36378 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
36379 to grub_zalloc(), it was erroneous.
36380 Reported by Bean <bean123ch@gmail.com>
36381
36382 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
36383
36384 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
36385 embedding zone, not only the first one.
36386
36387 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
36388
36389 * term/gfxterm.c (clear_char): New function.
36390 (grub_virtual_screen_setup): Use clear_char.
36391 (scroll_up): Likewise.
36392 (grub_virtual_screen_cls): Likewise.
36393
36394 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
36395
36396 * util/deviceiter.c (get_acceleraid_disk_name): New static
36397 function.
36398 (grub_util_iterate_devices): Handle Accelraid devices.
36399 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
36400
36401 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
36402
36403 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
36404 separator for the suggested gfxpayload string (';' collides with the
36405 parser and needs escaping).
36406
36407 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
36408
36409 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
36410 Clear direction flag before jumping to OS.
36411 (grub_multiboot2_real_boot): Likewise.
36412
36413 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36414
36415 * util/i386/pc/grub-install: Fix parsing of --disk-module
36416 option.
36417
36418 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36419
36420 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
36421 when embedding.
36422
36423 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
36424
36425 * util/grub-mkconfig.in (package_version): New variable.
36426 Use it do display the version.
36427
36428 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36429
36430 * kern/file.c (grub_file_open): Revert to previous check with
36431 grub_errno.
36432
36433 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36434
36435 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
36436 from help line. It's out of sync with code.
36437
36438 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36439
36440 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
36441 entries on failed boot.
36442
36443 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36444
36445 * kern/file.c (grub_file_open): Fix an error check.
36446
36447 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
36448
36449 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
36450 partition map couldn't be identified.
36451
36452 2009-07-23 Pavel Roskin <proski@gnu.org>
36453
36454 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
36455 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
36456 case of little endian words becomes just an optimization.
36457 Respect const modifier.
36458 (md5_final): Use code that doesn't depend on endianness.
36459
36460 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
36461 to avoid loss of upper bits if align is unsigned and shorter
36462 than addr.
36463
36464 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36465
36466 UUID support for UFS
36467
36468 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
36469 (grub_ufs_uuid): New function.
36470 (grub_ufs_fs): add .uuid
36471
36472 2009-07-21 Pavel Roskin <proski@gnu.org>
36473
36474 * kern/dl.c (grub_dl_check_header): Make static.
36475
36476 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
36477
36478 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
36479 add drivemap for Vista. It breaks Windows 7.
36480
36481 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36482
36483 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
36484 128 bytes
36485
36486 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36487
36488 Add BFS support
36489
36490 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
36491 (grub_fstest_SOURCES): Likewise.
36492 (pkglib_MODULES): Add befs.mod.
36493 (befs_mod_SOURCES): New variable.
36494 (befs_mod_CFLAGS): Likewise.
36495 (befs_mod_LDFLAGS): Likewise.
36496 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
36497 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36498 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36499 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36500 (grub_setup_SOURCES): Likewise.
36501 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36502 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36503 (grub_setup_SOURCES): Likewise.
36504 * fs/befs.c: New file.
36505 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
36506 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
36507 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
36508 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
36509 (B_KEY_INDEX_ALIGN): New declaration.
36510 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
36511 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
36512 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
36513 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
36514 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
36515 (grub_afs_mount) [MODE_BFS]: Likewise.
36516 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
36517 (grub_afs_fs): Use GRUB_AFS_FSNAME
36518 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
36519 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
36520 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
36521 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
36522
36523 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
36524
36525 * util/getroot.c (find_root_device): Add support for MacOSX.
36526 * util/hostdisk.c: Likewise.
36527
36528 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36529
36530 * font/font.c (find_glyph): Check whether a font is present to avoid
36531 segmentation fault.
36532
36533 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
36534
36535 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
36536
36537 2009-07-20 Pavel Roskin <proski@gnu.org>
36538
36539 * configure.ac: Trim excessively wordy excuses.
36540
36541 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36542
36543 Add symlink, mtime and label support to AtheFS.
36544
36545 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
36546 (grub_afs_iterate_dir): Handle symlinks.
36547 (grub_afs_open): Use grub_afs_read_symlink.
36548 (grub_afs_dir): Likewise.
36549 Pass mtime.
36550 (grub_afs_label): New function.
36551 (grub_afs_fs): Add grub_afs_label.
36552 (grub_afs_read_symlink): New function.
36553
36554 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36555
36556 Fix AtheFS support.
36557
36558 * fs/afs.c: Fix comments style.
36559 (grub_afs_blockrun): Declare as packed.
36560 (grub_afs_datastream): Likewise.
36561 (grub_afs_bnode): Likewise.
36562 (grub_afs_btree): Likewise.
36563 (grub_afs_sblock): Likewise.
36564 Declare `name' as char.
36565 (grub_afs_inode): Declare as packed.
36566 Change void *vnode to grub_uint32_t unused.
36567 (grub_afs_iterate_dir): Check that key_size is positive.
36568 (grub_afs_mount): Don't read superblock twice.
36569 (grub_afs_dir): Don't free node in case of error,
36570 grub_fshelp_find_file already handles this.
36571 (grub_afs_open): Likewise.
36572
36573 2009-07-19 Pavel Roskin <proski@gnu.org>
36574
36575 * Makefile.in: Remove LIBLZO and enable_lzo.
36576 * conf/i386-pc.rmk: Remove lzo support.
36577 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
36578 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
36579 support.
36580 * kern/i386/pc/lzo1x.S: Remove.
36581 * kern/i386/pc/startup.S: Remove lzo support.
36582 * util/i386/pc/grub-mkimage.c: Likewise.
36583
36584 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
36585
36586 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
36587 * fs/xfs.c (grub_xfs_dir): Likewise.
36588 * fs/afs.c (grub_afs_dir): Likewise.
36589 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
36590 (grub_iso9660_open): Likewise.
36591 * fs/jfs.c (grub_jfs_open): Likewise.
36592 * fs/ext2.c (grub_ext2_dir): Likewise.
36593 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
36594 * script/sh/lexer.c (grub_script_yylex): Likewise.
36595
36596 2009-07-16 Pavel Roskin <proski@gnu.org>
36597
36598 * configure.ac: Never add "-c" to CFLAGS.
36599
36600 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
36601
36602 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
36603 grub_cv_cc_efiemu should be used.
36604
36605 * configure.ac: Typo fixes.
36606
36607 * kern/mm.c (grub_zalloc): New function.
36608 (grub_debug_zalloc): Likewise.
36609 * include/grub/mm.h: Declare grub_zalloc() and
36610 grub_debug_zalloc().
36611 * util/misc.c (grub_zalloc): New function.
36612 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
36613 instead of grub_malloc(), remove unneeded initializations.
36614 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
36615 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
36616 * commands/parttool.c (grub_cmd_parttool): Likewise.
36617 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
36618 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
36619 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
36620 * disk/usbms.c (grub_usbms_finddevs): Likewise.
36621 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
36622 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
36623 (grub_cmd_efiemu_pnvram): Likewise.
36624 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
36625 * fs/iso9660.c (grub_iso9660_mount): Likewise.
36626 (grub_iso9660_iterate_dir): Likewise.
36627 * fs/jfs.c (grub_jfs_opendir): Likewise.
36628 * fs/ntfs.c (list_file): Likewise.
36629 (grub_ntfs_mount): Likewise.
36630 * kern/disk.c (grub_disk_open): Likewise.
36631 * kern/dl.c (grub_dl_load_core): Likewise.
36632 * kern/elf.c (grub_elf_file): Likewise.
36633 * kern/env.c (grub_env_context_open): Likewise.
36634 (grub_env_set): Likewise.
36635 (grub_env_set_data_slot): Likewise.
36636 * kern/file.c (grub_file_open): Likewise.
36637 * kern/fs.c (grub_fs_blocklist_open): Likewise.
36638 * loader/i386/multiboot.c (grub_module): Likewise.
36639 * loader/xnu.c (grub_xnu_create_key): Likewise.
36640 (grub_xnu_create_value): Likewise.
36641 * normal/main.c (grub_normal_add_menu_entry): Likewise.
36642 (read_config_file): Likewise.
36643 * normal/menu_entry.c (make_screen): Likewise.
36644 * partmap/sun.c (sun_partition_map_iterate): Likewise.
36645 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
36646 * script/sh/script.c (grub_script_parse): Likewise.
36647 * video/bitmap.c (grub_video_bitmap_create): Likewise.
36648 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
36649 * video/readers/png.c (grub_png_output_byte): Likewise.
36650 (grub_video_reader_png): Likewise.
36651
36652 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36653
36654 Enable all targets that can be built by default
36655
36656 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
36657 grub-mkfont and grub-fstest if they can be built
36658
36659 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36660
36661 Fix hang and segmentation fault in grub-emu-usb
36662
36663 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
36664 * util/usb.c (grub_libusb_devices): likewise
36665 (grub_libusb_init): rename to ...
36666 (GRUB_MOD_INIT (libusb)):...this
36667 (grub_libusb_fini): rename to ..
36668 (GRUB_MOD_FINI (libusb)):...this
36669 * disk/usbms.c (grub_usbms_transfer): fix retry logic
36670 * include/grub/disk.h (grub_raid_init): removed, it's useless
36671 (grub_raid_fini): likewise
36672 (grub_lvm_init): likewise
36673 (grub_lvm_fini): likewise
36674 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
36675 by grub_init_all
36676
36677 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36678
36679 Fix libusb
36680
36681 * Makefile.in (LIBUSB): new macro
36682 * genmk.rb (Utility/print_tail): new method
36683 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
36684 (top level): call util.print_tail at the end.
36685
36686 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36687
36688 Make FreeBSD accept zpool.cache
36689
36690 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
36691 type is /boot/zfs/zpool.cache
36692
36693 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36694
36695 Fix 64-bit efiemu
36696
36697 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
36698 correct wrong typedef
36699 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
36700
36701 2009-07-15 Pavel Roskin <proski@gnu.org>
36702
36703 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
36704 * kern/disk.c (struct grub_disk_cache): Likewise.
36705
36706 * commands/probe.c (options): Typo fix.
36707
36708 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
36709 Increase to 0x5a to accommodate FAT32. Adjust other offsets
36710 accordingly.
36711 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
36712
36713 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
36714 the end of "Error" to make the message more readable.
36715
36716 * boot/i386/pc/boot.S (kernel_segment): Remove.
36717 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
36718 for destination.
36719
36720 * boot/i386/pc/boot.S (boot_version): Remove.
36721 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
36722 Remove.
36723
36724 * include/grub/i386/pc/boot.h: Sort all offsets.
36725 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
36726 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
36727 * boot/i386/pc/boot.S: Assert location of every offset listed in
36728 include/grub/i386/pc/boot.h.
36729
36730 2009-07-13 Pavel Roskin <proski@gnu.org>
36731
36732 * include/grub/i386/coreboot/machine.h: Rename
36733 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
36734 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
36735 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
36736
36737 * kern/dl.c: Force native word size to suppress warnings when
36738 compiling grub-emu.
36739
36740 * kern/device.c (grub_device_iterate): Change struct part_ent to
36741 hold the name, not a pointer to it. Use one grub_malloc() per
36742 partition, not two. Free partition_name if grub_malloc() fails.
36743 Set ents to NULL only before grub_partition_iterate() is called.
36744
36745 2009-07-11 Bean <bean123ch@gmail.com>
36746
36747 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
36748 childname.
36749
36750 2009-07-10 Bean <bean123ch@gmail.com>
36751 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
36752
36753 * kern/ieee1275/openfw.c (grub_children_iterate)
36754 (grub_devalias_iterate): Fix size evaluation for property or path
36755 strings, which was broken since r2132.
36756
36757 2009-07-07 Pavel Roskin <proski@gnu.org>
36758
36759 * commands/search.c (search_file): Merge into ...
36760 (search_fs): ... this. Accept search type as argument.
36761 (grub_cmd_search): Pass search type to search_fs().
36762
36763 * include/grub/util/console.h: New file.
36764 * util/console.c: Use it instead of grub/machine/console.h.
36765 * util/grub-emu.c: Likewise.
36766
36767 * lib/arg.c (find_long_option): Remove.
36768 (find_long): Add `len' argument, make `s' const char *.
36769 (grub_arg_parse): Parse long options in place, not in a
36770 temporary buffer.
36771
36772 2009-07-06 Pavel Roskin <proski@gnu.org>
36773
36774 * commands/search.c (search_fs): Fix potential NULL pointer
36775 dereference.
36776
36777 * commands/search.c (search_fs): Replace QUID macro with quid_fn
36778 function pointer.
36779
36780 2009-07-06 Daniel Mierswa <impulze@impulze.org>
36781
36782 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
36783 comparison.
36784
36785 2009-07-05 Pavel Roskin <proski@gnu.org>
36786
36787 * include/grub/i386/linux.h (struct linux_kernel_params):
36788 Restore padding3, it's still needed.
36789
36790 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
36791 FreeBSD.
36792 * util/osdetect.lua: Likewise.
36793
36794 2009-07-05 Bean <bean123ch@gmail.com>
36795
36796 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
36797
36798 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
36799 (grub_lua_getenv): Likewise.
36800 (grub_lua_setenv): Likewise.
36801 (save_errno): New function.
36802 (push_result): Likewise.
36803 (grub_lua_enum_device): Likewise.
36804 (grub_lua_enum_file): Likewise.
36805 (grub_lua_file_open): Likewise.
36806 (grub_lua_file_close): Likewise.
36807 (grub_lua_file_seek): Likewise.
36808 (grub_lua_file_read): Likewise.
36809 (grub_lua_file_getline): Likewise.
36810 (grub_lua_file_getsize): Likewise.
36811 (grub_lua_file_getpos): Likewise.
36812 (grub_lua_file_eof): Likewise.
36813 (grub_lua_file_exist): Likewise.
36814 (grub_lua_add_menu): Likewise.
36815
36816 * script/lua/grub_lua.h (isupper): New inline function.
36817 (islower): Likewise.
36818 (ispunct): Likewise.
36819 (isxdigit): Likewise.
36820 (strcspn): Change to normal function.
36821 (strpbkr): New function declaration.
36822 (memchr): Likewise.
36823
36824 * script/lua/grub_main.c (scan_str): New function.
36825 (strcspn): Likewise.
36826 (strpbrk): Likewise.
36827 (memchr): Likewise.
36828
36829 * script/lua/linit.c (lualibs): Enable the string library.
36830
36831 * util/osdetect.lua: New file.
36832
36833 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
36834
36835 * include/grub/i386/linux.h (struct linux_kernel_params): Add
36836 `capabilities' member.
36837
36838 2009-07-02 Pavel Roskin <proski@gnu.org>
36839
36840 * genparttoollist.sh: Add missing newline at the end.
36841
36842 2009-07-01 Pavel Roskin <proski@gnu.org>
36843
36844 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
36845
36846 * util/hostdisk.c (open_device): Remove `const' from
36847 `sysctl_size', as sysctlbyname() can change it (in this case it
36848 doesn't actually happen).
36849
36850 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
36851 using signed long int constants.
36852
36853 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
36854 constant to avoid a warning on FreeBSD.
36855
36856 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
36857 where it's needed.
36858
36859 * Makefile.in: Install include/grub/machine symlink.
36860
36861 * Makefile.in: When installing symlinks, use "cp -fR", which
36862 works on FreeBSD and MacOSX.
36863 From Yves Blusseau <cl7m42e02@sneakemail.com>
36864
36865 * kern/dl.c (grub_dl_resolve_symbol): Make static.
36866 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
36867
36868 * util/misc.c: Move grub_reboot() and grub_halt() ...
36869 * util/grub-emu.c: ... here. Make main_env static.
36870 * include/grub/util/misc.h: Remove main_env.
36871
36872 * kern/mm.c: Use correct format to print size_t.
36873
36874 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
36875 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
36876 * kern/powerpc/dl.c: Likewise.
36877 * kern/sparc64/dl.c: Likewise.
36878 * kern/x86_64/dl.c: Likewise.
36879
36880 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36881
36882 Fix grub-emu build on sparc64-ieee1275.
36883
36884 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
36885 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
36886
36887 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36888
36889 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
36890 (grub_reboot, grub_halt): New functions.
36891
36892 * util/i386/pc/misc.c: Delete. Update all users.
36893 * util/sparc64/ieee1275/misc.c: Likewise.
36894 * util/powerpc/ieee1275/misc.c: Likewise.
36895
36896 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36897
36898 * conf/i386.rmk (setjmp_mod_SOURCES)
36899 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
36900 * conf/common.rmk (setjmp_mod_SOURCES)
36901 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
36902 to use $(target_cpu).
36903 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
36904 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
36905 * conf/powerpc-ieee1275.rmk: Likewise.
36906 * conf/sparc64-ieee1275.rmk: Likewise.
36907
36908 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
36909 $(target_cpu) for kern/$(target_cpu)/dl.c.
36910 * conf/i386-efi.rmk: Likewise.
36911 * conf/i386-ieee1275.rmk: Likewise.
36912 * conf/x86_64-efi.rmk: Likewise.
36913 * conf/i386-coreboot.rmk: Likewise.
36914 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
36915 $(target_cpu) for kern/$(target_cpu)/dl.c and for
36916 kern/$(target_cpu)/cache.S.
36917 * conf/sparc64-ieee1275.rmk: Likewise.
36918
36919 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36920
36921 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
36922 type to `grub_uint8_t', and adjust `padding9' accordingly.
36923
36924 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
36925
36926 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
36927
36928 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
36929 assembly in final jump, using register constraints.
36930
36931 (grub_linux_boot): For text mode, initialize `have_vga' using
36932 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
36933
36934 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
36935 right before the final jump.
36936
36937 Set `video_mode' to 0x3.
36938
36939 Document initialization of `video_page', `video_mode' and
36940 `video_ega_bx'.
36941
36942 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
36943
36944 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
36945 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
36946 and set GRUB_LINUX_FLAG_QUIET appropriately.
36947
36948 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
36949
36950 Fix build on Debian / sparc.
36951
36952 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
36953
36954 2009-06-28 Pavel Roskin <proski@gnu.org>
36955
36956 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
36957 fix a warning.
36958
36959 * util/grub.d/10_linux.in: Match SUSE style initrd names.
36960
36961 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
36962
36963 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
36964 `err'.
36965
36966 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
36967
36968 Revert r2338.
36969
36970 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
36971 file can't be opened. grub_file_open() is already supposed to set
36972 grub_errno / grub_errmsg appropriately.
36973 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
36974
36975 2009-06-27 Pavel Roskin <proski@gnu.org>
36976 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
36977
36978 * include/grub/dl.h: Include grub/elf.h.
36979 (struct grub_dl): Add symtab field.
36980 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
36981 GRUB_MODULES_MACHINE_READONLY.
36982 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
36983 of the header for read-only modules.
36984 (grub_dl_unload): Free mod->symtab for read-only modules.
36985 * kern/i386/dl.c: Use mod->symtab.
36986 * kern/powerpc/dl.c: Likewise.
36987 * kern/sparc64/dl.c: Likewise.
36988 * kern/x86_64/dl.c: Likewise.
36989
36990 * conf/i386-qemu.rmk: New file.
36991 * kern/i386/qemu/startup.S: Likewise.
36992 * kern/i386/qemu/mmap.c: Likewise.
36993 * boot/i386/qemu/boot.S: Likewise.
36994 * include/grub/i386/qemu/time.h: Likewise.
36995 * include/grub/i386/qemu/serial.h: Likewise.
36996 * include/grub/i386/qemu/kernel.h: Likewise.
36997 * include/grub/i386/qemu/console.h: Likewise.
36998 * include/grub/i386/qemu/boot.h: Likewise.
36999 * include/grub/i386/qemu/init.h: Likewise.
37000 * include/grub/i386/qemu/machine.h: Likewise.
37001 * include/grub/i386/qemu/loader.h: Likewise.
37002 * include/grub/i386/qemu/memory.h: Likewise.
37003
37004 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
37005 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
37006 [qemu] (pkglib_IMAGES): Add `boot.img'.
37007 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
37008 [qemu] (boot_img_FORMAT): New variables.
37009 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
37010 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
37011 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
37012 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
37013 [qemu] (kernel_img_FORMAT): New variables.
37014
37015 * configure.ac: Recognise `i386-qemu'.
37016
37017 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
37018 (for no compression).
37019 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
37020 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
37021 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
37022 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
37023 ifdefs).
37024
37025 2009-06-27 Pavel Roskin <proski@gnu.org>
37026
37027 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
37028 read.
37029 * efiemu/prepare32.c: Likewise.
37030 * efiemu/prepare64.c: Likewise.
37031
37032 2009-06-26 Pavel Roskin <proski@gnu.org>
37033
37034 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
37035 * include/grub/elf.h: Define symbols without "32" or "64" based
37036 on GRUB_TARGET_WORDSIZE.
37037 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
37038 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
37039 ELF definitions.
37040 * efiemu/loadcore64.c: Likewise.
37041 * loader/i386/bsd32.c: Likewise.
37042 * loader/i386/bsd64.c: Likewise.
37043 * kern/dl.c: Remove own ELF definitions.
37044 * util/i386/efi/grub-mkimage.c: Likewise.
37045
37046 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
37047
37048 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
37049 segment 0x0 unconditionally, because the reference generated by
37050 GAS is an absolute address.
37051
37052 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37053
37054 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
37055 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
37056
37057 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37058
37059 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
37060 indexes. Check for -f explicitly.
37061 (search_file): Improve error message.
37062 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
37063
37064 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37065
37066 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
37067 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
37068
37069 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37070
37071 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
37072 * conf/i386-ieee1275.rmk: Likewise.
37073 * conf/i386-coreboot.rmk: Likewise.
37074
37075 * kern/i386/pc/startup.S (grub_stop): Remove function.
37076 * kern/i386/ieee1275/startup.S: Likewise.
37077 * kern/i386/coreboot/startup.S: Likewise.
37078 * kern/i386/misc.S (grub_stop): New function.
37079
37080 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37081
37082 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
37083 * kern/i386/realmode.S (real_to_prot): ... to here.
37084
37085 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37086
37087 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
37088 with `kernel.img'.
37089 (kernel_elf_SOURCES): Rename to ...
37090 (kernel_img_SOURCES): ... this.
37091 (kernel_elf_HEADERS): Rename to ...
37092 (kernel_img_HEADERS): ... this. Update all users.
37093 (kernel_elf_ASFLAGS): Rename to ...
37094 (kernel_img_ASFLAGS): ... this.
37095 (kernel_elf_CFLAGS): Rename to ...
37096 (kernel_img_CFLAGS): ... this.
37097 (kernel_elf_LDFLAGS): Rename to ...
37098 (kernel_img_LDFLAGS): ... this.
37099 * conf/i386-coreboot.rmk: Likewise.
37100 * conf/powerpc-ieee1275.rmk: Likewise.
37101
37102 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
37103 with "kernel.img".
37104
37105 2009-06-21 Pavel Roskin <proski@gnu.org>
37106
37107 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
37108 to match nested functions.
37109 * loader/sparc64/ieee1275/linux.c: Likewise.
37110
37111 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
37112
37113 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37114
37115 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
37116 all i386 platforms.
37117
37118 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37119
37120 Fix asm file handling on ELF, and remove workarounds.
37121
37122 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
37123 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
37124 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
37125 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
37126
37127 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
37128
37129 Load BSD ELF modules
37130
37131 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
37132 and loader/i386/bsd64.c
37133 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
37134 (FREEBSD_MODTYPE_ELF_MODULE): New definition
37135 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
37136 (grub_freebsd_load_elfmodule32): New declaration
37137 (grub_freebsd_load_elfmoduleobj64): Likewise
37138 (grub_freebsd_load_elf_meta32): Likewise
37139 (grub_freebsd_load_elf_meta64): Likewise
37140 (grub_freebsd_add_meta): Likewise
37141 (grub_freebsd_add_meta_module): Likewise
37142 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
37143 (grub_freebsd_add_meta_module): Likewise and move module-specific
37144 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
37145 (grub_cmd_freebsd): Add elf-kernel specific parts
37146 based on grub_freebsd_add_meta_module
37147 (grub_cmd_freebsd_module): Add type parsing moved from
37148 grub_freebsd_add_meta_module
37149 (grub_cmd_freebsd_module_elf): New function
37150 (cmd_freebsd_module_elf): New variable
37151 (GRUB_MOD_INIT): Register freebsd_module_elf
37152 * loader/i386/bsd32.c: New file
37153 * loader/i386/bsd64.c: Likewise
37154 * loader/i386/bsdXX.c: Likewise
37155 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
37156 (grub_elf64_load): Likewise
37157 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
37158 All users updated
37159 (grub_elf64_load_hook_t): Likewise
37160
37161 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
37162
37163 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
37164 variable.
37165 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
37166 don't write a menu entry for recovery mode.
37167
37168 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37169
37170 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
37171 after it's no longer needed.
37172
37173 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37174
37175 * include/grub/i386/loader.h (grub_linux_prot_size)
37176 (grub_linux_tmp_addr, grub_linux_real_addr)
37177 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
37178 GRUB_MACHINE_PCBIOS.
37179 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
37180 common grub_util_info() call to ...
37181 (generate_image): ... here.
37182 Fix use of uninitialized memory, comparison of signed with
37183 unsigned integers and memory leak.
37184 Remove bogus module address message.
37185
37186 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
37187
37188 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
37189 grub_raid_register
37190 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
37191
37192 2009-06-19 Pavel Roskin <proski@gnu.org>
37193
37194 * configure.ac: Remove stray AC_MSG_CHECKING.
37195
37196 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
37197
37198 * disk/scsi.c (grub_scsi_open): use continue instead of big if
37199
37200 2009-06-18 Pavel Roskin <proski@gnu.org>
37201
37202 * conf/common.rmk: Add fs_file.mod.
37203 * disk/fs_file.c: New file.
37204 * include/grub/disk.h (enum grub_disk_dev_id): Add
37205 GRUB_DISK_DEVICE_FILE_ID.
37206
37207 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37208
37209 Fix build with Apple's toolchain. Part 2
37210
37211 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
37212 a fake start
37213
37214 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37215
37216 Fix build with Apple's toolchain. Part 1
37217
37218 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
37219 for long calls
37220 * configure.ac: remove a leftover AC_MSG_RESULT
37221 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
37222 Apple's toolchain
37223
37224 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37225
37226 Fix warnings
37227
37228 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
37229 (decomp_block): initialize ch
37230 use grub_memcpy instead of memcpy
37231
37232 2009-06-17 Pavel Roskin <proski@gnu.org>
37233
37234 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
37235 version, use declarations needed to use vga_text as the startup
37236 console.
37237
37238 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
37239 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
37240 the kernel.
37241 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
37242 and grub_at_keyboard_fini(), it's done on module load and
37243 unload.
37244
37245 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
37246
37247 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
37248 file can't be found.
37249 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37250
37251 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37252
37253 Fix newline handling
37254
37255 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
37256 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
37257 (grub_script_yylex): don't segfault on unterminated script
37258 newline terminates command and variable
37259
37260 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37261
37262 avoid double grub_adjust_range call. Bug reported by David Simner
37263
37264 * kern/disk.c (grub_disk_write): change to raw disk access before
37265 calling disk_read
37266
37267 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
37268
37269 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
37270 spaces, for the benefit of help2man.
37271 * util/i386/efi/grub-mkimage.c (usage): Likewise.
37272
37273 2009-06-16 Pavel Roskin <proski@gnu.org>
37274
37275 * kern/i386/halt.c: Include grub/machine/init.h.
37276 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
37277
37278 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
37279
37280 * util/grub.d/30_os-prober.in: Use ${root} in the generated
37281 drivemap menuentry.
37282
37283 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
37284
37285 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
37286 `echo' command.
37287
37288 2009-06-16 Pavel Roskin <proski@gnu.org>
37289
37290 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
37291 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
37292 save %dx, we only need %dl and we never change it.
37293 * boot/i386/pc/cdboot.S: Don't set the root drive.
37294 * boot/i386/pc/pxeboot.S: Likewise.
37295 * include/grub/i386/pc/boot.h: Remove
37296 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
37297 GRUB_BOOT_MACHINE_DRIVE_CHECK.
37298 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
37299 * kern/i386/pc/init.c (make_install_device): Remove references
37300 to grub_root_drive.
37301 * kern/i386/pc/startup.S: Likewise.
37302 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
37303
37304 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37305
37306 xnu_uuid command
37307
37308 * commands/xnu_uuid.c: new file
37309 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
37310 (xnu_uuid_mod_SOURCES): new variable
37311 (xnu_uuid_mod_CFLAGS): likewise
37312 (xnu_uuid_mod_LDFLAGS): likewise
37313 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37314 * conf/i386-ieee1275.rmk: likewise
37315 * conf/i386-pc.rmk: likewise
37316 * conf/powerpc-ieee1275.rmk: likewise
37317 * conf/sparc64-ieee1275.rmk: likewise
37318 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
37319
37320 2009-06-16 Pavel Roskin <proski@gnu.org>
37321
37322 * configure.ac: Avoid '==' in test command, it's not portable.
37323
37324 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37325
37326 Probe command
37327
37328 * commands/probe.c: new file
37329 * conf/common.rmk (pkglib_MODULES): add probe.mod
37330 (probe_mod_SOURCES): new variable
37331 (probe_mod_CFLAGS): likewise
37332 (probe_mod_LDFLAGS): likewise
37333 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37334 * conf/i386-ieee1275.rmk: likewise
37335 * conf/i386-pc.rmk: likewise
37336 * conf/powerpc-ieee1275.rmk: likewise
37337 * conf/sparc64-ieee1275.rmk: likewise
37338
37339 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
37340
37341 Fix handling of string like \"hello\" and "a
37342 b"
37343
37344 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
37345 (grub_script_yylex): fix parsing of quoting, escaping and newline
37346
37347 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
37348
37349 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
37350 handling
37351
37352 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
37353
37354 * util/grub-mkconfig.in: Fix parsing of --output option.
37355
37356 2009-06-12 Pavel Roskin <proski@gnu.org>
37357
37358 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
37359 genmk.rb don't need to be generated or installed.
37360
37361 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
37362
37363 * commands/i386/pc/drivemap_int13h.S: add more comments
37364
37365 2009-06-11 Pavel Roskin <proski@gnu.org>
37366
37367 * Makefile.in (uninstall): Uninstall manuals.
37368
37369 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
37370 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
37371 and update-grub_lib in two places.
37372 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
37373
37374 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
37375 a compiler warning.
37376
37377 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
37378 `entry_lo' to fix variable shadowing.
37379
37380 2009-06-11 Christian Franke <franke@computer.org>
37381
37382 * kern/misc.c (__enable_execute_stack): Add missing return type
37383 to prevent gcc warning.
37384
37385 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37386
37387 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
37388
37389 2009-06-11 Pavel Roskin <proski@gnu.org>
37390
37391 * Makefile.in: Don't rely on any scripts being executable.
37392 Always use $(SHELL) to run shell scripts.
37393
37394 * configure.ac: Always define ___main if using -nostdlib. This
37395 fixes tests on Cygwin.
37396
37397 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
37398
37399 UDF fix
37400
37401 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
37402 is in bytes and not in blocks
37403
37404 2009-06-11 Pavel Roskin <proski@gnu.org>
37405
37406 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
37407 warning.
37408
37409 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37410
37411 * util/grub.d/30_os-prober.in: Fix a comment. Source
37412 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
37413 to set the root device. Place drivemap command in the generated
37414 chain entry.
37415
37416 2009-06-11 Pavel Roskin <proski@gnu.org>
37417
37418 * configure.ac: Remove host_m32. Issues with 64-bit utilities
37419 have long been resolved.
37420
37421 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
37422
37423 * util/grub.d/10_linux.in: Capitalise "Linux".
37424
37425 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
37426
37427 2009-06-11 Pavel Roskin <proski@gnu.org>
37428
37429 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
37430 fix a gcc warning and ensure that the function won't ever exit.
37431
37432 * kern/i386/ieee1275/init.c: Add missing prototype for
37433 grub_stop_floppy().
37434
37435 * loader/ieee1275/multiboot2.c [__i386__]: Include
37436 grub/cpu/multiboot.h.
37437
37438 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
37439 casts to short - they are not portable and cause warnings. Fix
37440 use of uninitialized values in input_buf. Use ARRAY_SIZE.
37441
37442 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
37443
37444 Drivemap fixes
37445
37446 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
37447 new function
37448 (grub_get_root_biosnumber_saved): new variable
37449 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
37450 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
37451 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
37452 %dx after the call if necessary
37453 * conf/common.rmk (pkglib_MODULES): remove boot.mod
37454 (boot_mod_SOURCES): remove
37455 (boot_mod_CFLAGS): remove
37456 (boot_mod_LDFLAGS): remove
37457 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
37458 (boot_mod_SOURCES): new variable
37459 (boot_mod_CFLAGS): likewise
37460 (boot_mod_LDFLAGS): likewise
37461 * conf/i386-efi.rmk: likewise
37462 * conf/i386-ieee1275.rmk: likewise
37463 * conf/i386-pc.rmk: likewise
37464 * conf/powerpc-ieee1275.rmk: likewise
37465 * conf/sparc64-ieee1275.rmk: likewise
37466 * conf/x86_64-efi.rmk: likewise
37467 * include/grub/i386/pc/biosnum.h: new file
37468 * lib/i386/pc/biosnum.c: likewise
37469 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
37470 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
37471 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
37472
37473 2009-06-10 Pavel Roskin <proski@gnu.org>
37474
37475 * io/gzio.c (test_header): Don't reuse one buffer for all data.
37476 Use separate variables. Read only the file size at the end, but
37477 not the checksum that we don't use.
37478
37479 * kern/file.c (grub_file_read): Use void pointer for the buffer.
37480 Adjust all callers.
37481
37482 * kern/ieee1275/openfw.c: Remove libc includes.
37483 * kern/ieee1275/cmain.c: Likewise.
37484 * include/grub/ieee1275/ieee1275.h: Likewise.
37485
37486 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
37487 compiler warnings.
37488
37489 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37490
37491 * Makefile.in: Remove all trailing whitespace.
37492 * conf/i386-pc.rmk: Likewise.
37493 * conf/powerpc-ieee1275.rmk: Likewise.
37494 * conf/sparc64-ieee1275.rmk: Likewise.
37495 * docs/grub.texi: Likewise.
37496 * docs/texinfo.tex: Likewise.
37497 * disk/fs_uuid.c: Likewise.
37498 * disk/lvm.c: Likewise.
37499 * disk/scsi.c: Likewise.
37500 * disk/ata.c: Likewise.
37501 * disk/ieee1275/ofdisk.c: Likewise.
37502 * disk/i386/pc/biosdisk.c: Likewise.
37503 * disk/host.c: Likewise.
37504 * disk/raid.c: Likewise.
37505 * disk/efi/efidisk.c: Likewise.
37506 * disk/usbms.c: Likewise.
37507 * disk/memdisk.c: Likewise.
37508 * disk/loopback.c: Likewise.
37509 * kern/powerpc/dl.c: Likewise.
37510 * kern/device.c: Likewise.
37511 * kern/dl.c: Likewise.
37512 * kern/sparc64/dl.c: Likewise.
37513 * kern/ieee1275/ieee1275.c: Likewise.
37514 * kern/term.c: Likewise.
37515 * kern/fs.c: Likewise.
37516 * kern/i386/dl.c: Likewise.
37517 * kern/i386/pc/startup.S: Likewise.
37518 * kern/i386/pc/init.c: Likewise.
37519 * kern/i386/pc/mmap.c: Likewise.
37520 * kern/i386/pc/lzo1x.S: Likewise.
37521 * kern/i386/ieee1275/init.c: Likewise.
37522 * kern/i386/realmode.S: Likewise.
37523 * kern/i386/tsc.c: Likewise.
37524 * kern/partition.c: Likewise.
37525 * kern/corecmd.c: Likewise.
37526 * kern/file.c: Likewise.
37527 * kern/efi/efi.c: Likewise.
37528 * kern/efi/init.c: Likewise.
37529 * kern/efi/mm.c: Likewise.
37530 * kern/main.c: Likewise.
37531 * kern/err.c: Likewise.
37532 * kern/env.c: Likewise.
37533 * kern/disk.c: Likewise.
37534 * kern/generic/millisleep.c: Likewise.
37535 * kern/generic/rtc_get_time_ms.c: Likewise.
37536 * kern/misc.c: Likewise.
37537 * kern/parser.c: Likewise.
37538 * genmk.rb: Likewise.
37539 * configure.ac: Likewise.
37540 * boot/i386/pc/diskboot.S: Likewise.
37541 * boot/i386/pc/pxeboot.S: Likewise.
37542 * boot/i386/pc/boot.S: Likewise.
37543 * boot/i386/pc/lnxboot.S: Likewise.
37544 * boot/i386/pc/cdboot.S: Likewise.
37545 * parttool/pcpart.c: Likewise.
37546 * video/readers/tga.c: Likewise.
37547 * video/video.c: Likewise.
37548 * video/bitmap.c: Likewise.
37549 * lib/envblk.c: Likewise.
37550 * lib/i386/setjmp.S: Likewise.
37551 * fs/xfs.c: Likewise.
37552 * fs/afs.c: Likewise.
37553 * fs/fat.c: Likewise.
37554 * fs/ntfs.c: Likewise.
37555 * fs/udf.c: Likewise.
37556 * fs/affs.c: Likewise.
37557 * fs/iso9660.c: Likewise.
37558 * fs/hfs.c: Likewise.
37559 * fs/fshelp.c: Likewise.
37560 * fs/ext2.c: Likewise.
37561 * fs/jfs.c: Likewise.
37562 * fs/reiserfs.c: Likewise.
37563 * fs/hfsplus.c: Likewise.
37564 * fs/minix.c: Likewise.
37565 * fs/cpio.c: Likewise.
37566 * fs/sfs.c: Likewise.
37567 * fs/ufs.c: Likewise.
37568 * efiemu/prepare.c: Likewise.
37569 * efiemu/loadcore_common.c: Likewise.
37570 * efiemu/runtime/efiemu.sh: Likewise.
37571 * efiemu/runtime/efiemu.S: Likewise.
37572 * efiemu/runtime/efiemu.c: Likewise.
37573 * efiemu/pnvram.c: Likewise.
37574 * efiemu/main.c: Likewise.
37575 * efiemu/i386/pc/cfgtables.c: Likewise.
37576 * efiemu/i386/loadcore64.c: Likewise.
37577 * efiemu/i386/loadcore32.c: Likewise.
37578 * efiemu/loadcore.c: Likewise.
37579 * efiemu/symbols.c: Likewise.
37580 * efiemu/mm.c: Likewise.
37581 * include/grub/autoefi.h: Likewise.
37582 * include/grub/datetime.h: Likewise.
37583 * include/grub/term.h: Likewise.
37584 * include/grub/hfs.h: Likewise.
37585 * include/grub/lvm.h: Likewise.
37586 * include/grub/i386/tsc.h: Likewise.
37587 * include/grub/i386/linux.h: Likewise.
37588 * include/grub/i386/xnu.h: Likewise.
37589 * include/grub/i386/efiemu.h: Likewise.
37590 * include/grub/i386/pc/biosdisk.h: Likewise.
37591 * include/grub/i386/pc/memory.h: Likewise.
37592 * include/grub/i386/pc/vbe.h: Likewise.
37593 * include/grub/parttool.h: Likewise.
37594 * include/grub/video.h: Likewise.
37595 * include/grub/memory.h: Likewise.
37596 * include/grub/fs.h: Likewise.
37597 * include/grub/partition.h: Likewise.
37598 * include/grub/xnu.h: Likewise.
37599 * include/grub/efi/api.h: Likewise.
37600 * include/grub/efi/pe32.h: Likewise.
37601 * include/grub/efi/memory.h: Likewise.
37602 * include/grub/multiboot.h: Likewise.
37603 * include/grub/usbdesc.h: Likewise.
37604 * include/grub/multiboot2.h: Likewise.
37605 * include/grub/acpi.h: Likewise.
37606 * include/grub/efiemu/efiemu.h: Likewise.
37607 * include/grub/disk.h: Likewise.
37608 * include/grub/ieee1275/ieee1275.h: Likewise.
37609 * include/grub/net.h: Likewise.
37610 * include/grub/machoload.h: Likewise.
37611 * include/grub/macho.h: Likewise.
37612 * include/multiboot.h: Likewise.
37613 * genmoddep.awk: Likewise.
37614 * normal/main.c: Likewise.
37615 * normal/menu_entry.c: Likewise.
37616 * normal/menu_viewer.c: Likewise.
37617 * normal/completion.c: Likewise.
37618 * normal/cmdline.c: Likewise.
37619 * normal/misc.c: Likewise.
37620 * normal/datetime.c: Likewise.
37621 * bus/usb/usbtrans.c: Likewise.
37622 * bus/usb/ohci.c: Likewise.
37623 * bus/usb/uhci.c: Likewise.
37624 * bus/usb/usb.c: Likewise.
37625 * mmap/efi/mmap.c: Likewise.
37626 * mmap/i386/pc/mmap_helper.S: Likewise.
37627 * mmap/i386/pc/mmap.c: Likewise.
37628 * mmap/i386/mmap.c: Likewise.
37629 * mmap/i386/uppermem.c: Likewise.
37630 * mmap/mmap.c: Likewise.
37631 * commands/acpi.c: Likewise.
37632 * commands/echo.c: Likewise.
37633 * commands/blocklist.c: Likewise.
37634 * commands/loadenv.c: Likewise.
37635 * commands/usbtest.c: Likewise.
37636 * commands/boot.c: Likewise.
37637 * commands/parttool.c: Likewise.
37638 * commands/search.c: Likewise.
37639 * commands/cat.c: Likewise.
37640 * commands/i386/pc/play.c: Likewise.
37641 * commands/i386/pc/drivemap.c: Likewise.
37642 * commands/i386/pc/vbeinfo.c: Likewise.
37643 * commands/i386/pc/acpi.c: Likewise.
37644 * commands/i386/pc/vbetest.c: Likewise.
37645 * commands/ls.c: Likewise.
37646 * commands/cmp.c: Likewise.
37647 * commands/test.c: Likewise.
37648 * commands/efi/acpi.c: Likewise.
37649 * commands/gptsync.c: Likewise.
37650 * commands/help.c: Likewise.
37651 * partmap/amiga.c: Likewise.
37652 * partmap/apple.c: Likewise.
37653 * partmap/acorn.c: Likewise.
37654 * partmap/pc.c: Likewise.
37655 * partmap/sun.c: Likewise.
37656 * partmap/gpt.c: Likewise.
37657 * script/sh/lexer.c: Likewise.
37658 * script/sh/function.c: Likewise.
37659 * font/font.c: Likewise.
37660 * font/font_cmd.c: Likewise.
37661 * loader/powerpc/ieee1275/linux.c: Likewise.
37662 * loader/efi/chainloader.c: Likewise.
37663 * loader/multiboot_loader.c: Likewise.
37664 * loader/macho.c: Likewise.
37665 * loader/i386/multiboot.c: Likewise.
37666 * loader/i386/linux.c: Likewise.
37667 * loader/i386/pc/linux.c: Likewise.
37668 * loader/i386/pc/multiboot2.c: Likewise.
37669 * loader/i386/pc/chainloader.c: Likewise.
37670 * loader/i386/pc/xnu.c: Likewise.
37671 * loader/i386/bsd_trampoline.S: Likewise.
37672 * loader/i386/efi/linux.c: Likewise.
37673 * loader/i386/multiboot_elfxx.c: Likewise.
37674 * loader/i386/bsd_helper.S: Likewise.
37675 * loader/i386/bsd.c: Likewise.
37676 * loader/i386/linux_trampoline.S: Likewise.
37677 * loader/i386/xnu_helper.S: Likewise.
37678 * loader/i386/xnu.c: Likewise.
37679 * loader/i386/bsd_pagetable.c: Likewise.
37680 * loader/i386/multiboot_helper.S: Likewise.
37681 * loader/xnu.c: Likewise.
37682 * loader/xnu_resume.c: Likewise.
37683 * io/gzio.c: Likewise.
37684 * term/efi/console.c: Likewise.
37685 * term/terminfo.c: Likewise.
37686 * term/ieee1275/ofconsole.c: Likewise.
37687 * term/i386/pc/serial.c: Likewise.
37688 * term/i386/pc/vesafb.c: Likewise.
37689 * term/i386/pc/vga.c: Likewise.
37690 * term/usb_keyboard.c: Likewise.
37691 * term/gfxterm.c: Likewise.
37692 * aclocal.m4: Likewise.
37693 * util/lvm.c: Likewise.
37694 * util/grub.d/30_os-prober.in: Likewise.
37695 * util/grub.d/10_hurd.in: Likewise.
37696 * util/console.c: Likewise.
37697 * util/grub-macho2img.c: Likewise.
37698 * util/grub-probe.c: Likewise.
37699 * util/hostfs.c: Likewise.
37700 * util/i386/pc/grub-mkimage.c: Likewise.
37701 * util/i386/pc/grub-setup.c: Likewise.
37702 * util/i386/efi/grub-mkimage.c: Likewise.
37703 * util/grub-mkconfig.in: Likewise.
37704 * util/raid.c: Likewise.
37705 * util/resolve.c: Likewise.
37706 * util/grub-mkdevicemap.c: Likewise.
37707 * util/grub-emu.c: Likewise.
37708 * util/getroot.c: Likewise.
37709 * util/hostdisk.c: Likewise.
37710 * util/usb.c: Likewise.
37711 * util/grub-editenv.c: Likewise.
37712 * util/misc.c: Likewise.
37713
37714 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37715
37716 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
37717 `genparttoollist.sh'.
37718 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
37719 Add `*.sh' to the list find searches for and change `mdate.sh'
37720 to `mdate-sh'.
37721
37722 2009-06-10 Pavel Roskin <proski@gnu.org>
37723
37724 * include/grub/multiboot2.h: Provide compatibility defines for
37725 multiboot2.h.
37726 * include/multiboot2.h: Include stdint.h only if needed, using
37727 angle brackets.
37728 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
37729 grub/multiboot2.h.
37730 * loader/ieee1275/multiboot2.c: Likewise.
37731 * loader/multiboot2.c: Likewise.
37732 * loader/multiboot_loader.c: Likewise.
37733
37734 * configure.ac: Use -nostdlib when probing for the target. It
37735 should not be required to have libc for the target.
37736
37737 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
37738 they fail without libc headers for the target.
37739 * include/grub/powerpc/libgcc.h: Use weak attribute for all
37740 exports.
37741 * include/grub/sparc64/libgcc.h: Likewise. Don't use
37742 preprocessor conditionals.
37743
37744 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
37745 build system doesn't need to be aware of the tar.c internals.
37746
37747 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
37748
37749 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
37750
37751 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
37752
37753 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
37754 disk limit to 26 for IDE, Virtio, Xen and SCSI.
37755
37756 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
37757
37758 * util/i386/pc/grub-install.in: Change the error message if UUIDs
37759 aren't available if ata.mod gets used.
37760
37761 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
37762
37763 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
37764 initialising controller.
37765 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
37766
37767 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37768
37769 * util/i386/pc/grub-install.in: Add a parameter --disk-module
37770 to choose between ata and biosdisk module on i386-pc.
37771
37772 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
37773
37774 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
37775 Subclass and Programming Interface fields in terms of the 3 byte
37776 Class Code register.
37777 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
37778
37779 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
37780 interface is OHCI. Add grub_dprintf for symmetry with
37781 bus/usb/uhci.c.
37782 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
37783 interface is UHCI. Add interf variable for programming
37784 interface. Print interface with class/subclass.
37785
37786 * bus/usb/ohci.c: Set interf with correct field.
37787
37788 * bus/usb/uhci.c: Remove unneeded doubled lines.
37789 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
37790 Remove whitespace inside comment.
37791
37792 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
37793
37794 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
37795 as fallback an equivalent option without depth.
37796
37797 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
37798
37799 Not fail if unable to retrieve C/H/S on LBA disks
37800
37801 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
37802 if unable to retrieve C/H/S on LBA disks
37803
37804 2009-06-08 Pavel Roskin <proski@gnu.org>
37805
37806 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
37807 about aliasing.
37808
37809 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37810
37811 * Makefile.in (uninstall): Remove all $lib_DATA files.
37812
37813 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
37814
37815 Bugfix: install on partitionless device
37816
37817 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
37818 is a whole disk
37819
37820 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37821
37822 * Makefile.in (uninstall): Remove all $include_DATA files.
37823
37824 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37825
37826 * commands/true.c: New file. Implement the true and false commands.
37827 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
37828 (true_mod_SOURCES): New variable.
37829 (true_mod_CFLAGS): Likewise.
37830 (true_mod_LDFLAGS): Likewise.
37831
37832 2009-06-05 Colin D Bennett <colin@gibibit.com>
37833
37834 Optimized font character lookup using binary search instead of linear
37835 search. Fonts now are required to have the character index ordered by
37836 code point.
37837
37838 * font/font.c (load_font_index): Verify that fonts have ordered
37839 character indices.
37840 (find_glyph): Use binary search instead of linear search to find a
37841 character in a font.
37842
37843 2009-06-05 Michael Scherer <misc@mandriva.org>
37844
37845 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
37846 uses case sensitive btree.
37847 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
37848 only for case insensitive filesystems.
37849
37850 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
37851
37852 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
37853 * conf/common.rmk (search_mod_CFLAGS): likewise
37854
37855 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37856
37857 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
37858 compensate a compiler bug
37859
37860 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37861
37862 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
37863 instead of '\b'
37864
37865 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37866
37867 Definitions for creating asm symbols with Apple's CC
37868
37869 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
37870 [APPLE_CC] (VARIABLE): likewise
37871
37872 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37873
37874 Disable lnxboot.img when compiled
37875 with Apple's CC
37876
37877 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
37878 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
37879 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
37880 [! APPLE_CC] (CODE_LENG): skip
37881 [! APPLE_CC] (setup_sects): likewise
37882 [! APPLE_CC]: skip filling
37883
37884 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37885
37886 Address in trampolines based on 32-bit registers when compiled
37887 with Apple's CC
37888
37889 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
37890 for addresses
37891 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
37892
37893 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37894
37895 Avoid aliases when compiling with Apple's CC for PCBIOS machine
37896
37897 * kern/misc.c [APPLE_CC] (memcpy): new function
37898 [APPLE_CC] (memmove): likewise
37899 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
37900 (memcpy): define alias conditionally on !APPLE_CC
37901 (memset): likewise
37902 (abort): likewise
37903 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
37904 APPLE_CC are defined
37905 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
37906 (grub_assert_fail): make prototype conditional
37907
37908 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37909
37910 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
37911
37912 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
37913 grub-macho2img
37914 (CLEANFILES): add grub-macho2img
37915 (grub_macho2img_SOURCES): new variable
37916 * kern/i386/pc/startup.S (bss_start): new variable
37917 (bss_end): likewise
37918 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
37919 * util/grub-macho2img.c: new file
37920
37921 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37922
37923 Use objconv when compiling with Apple's CC
37924
37925 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
37926 (efiemu64.o): likewise
37927 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
37928 when compiling with Apple's CC
37929 (efiemu64_s.o): likewise
37930 * configure.ac: check for objconv when compiling with Apple's CC
37931 * genmk.rb: use objconv for modules when compiled with Apple's CC
37932
37933 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37934
37935 Define segment as well as section when compiling with
37936 Apple's CC
37937
37938 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
37939 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
37940 (efiemu_convert_pointer): likewise
37941 (efiemu_set_virtual_address_map): likewise
37942 (efiemu_convert_pointer): likewise
37943 (efiemu_getcrc32): likewise
37944 (init_crc32_table): likewise
37945 (reflect): likewise
37946 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
37947 (GRUB_MOD_DEP): likewise
37948
37949 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37950
37951 Allow a compilation without -mcmodel=large
37952
37953 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
37954 when compiled without -mcmodel=large
37955 (filter_memory_map): remove memory post 4 GiB when compiled
37956 without -mcmodel=large
37957 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
37958 TARGET_CFLAGS when -mcmodel=large isn't supported
37959
37960 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37961
37962 Remove nested functions in efiemu core
37963
37964 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
37965
37966 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37967
37968 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
37969
37970 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
37971 temporary storage
37972 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
37973 using Apple's CC
37974 (grub_cpu_is_tsc_supported): likewise
37975 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
37976
37977 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37978
37979 Absolute addressing through constant with Apple's cc
37980
37981 * kern/i386/pc/startup.S: Define necessary constants
37982 and address through it when using ABS with Apple's CC
37983 * boot/i386/pc/diskboot.S: likewise
37984 * boot/i386/pc/boot.S: likewise
37985 * boot/i386/pc/lnxboot.S: likewise
37986 * boot/i386/pc/cdboot.S: likewise
37987 * mmap/i386/pc/mmap_helper.S: likewise
37988 * commands/i386/pc/drivemap_int13h.S: likewise
37989
37990 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37991
37992 Check if compiler is apple cc
37993
37994 * Makefile.in (ASFLAGS): new variable
37995 (TARGET_ASFLAGS): likewise
37996 (TARGET_MODULE_FORMAT): likewise
37997 (TARGET_APPLE_CC): likewise
37998 (OBJCONV): likewise
37999 (TARGET_IMG_CFLAGS): likewise
38000 (TARGET_CPPFLAGS): add includedir
38001 * configure.ac: call grub_apple_cc and grub_apple_target_cc
38002 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
38003 Check for linker script only if compiler isn't Apple's CC
38004 (TARGET_MODULE_FORMAT): set
38005 (TARGET_APPLE_CC): likewise
38006 (TARGET_ASFLAGS): likewise
38007 (ASFLAGS): likewise
38008 Check for objcopy only if compiler isn't Apple's CC
38009 Check for BSS symbol only if compiler isn't Apple's CC
38010 * genmk.rb: adapt nm options if we use Apple's utils
38011 * aclocal.m4 (grub_apple_cc): new test
38012 (grub_apple_target_cc): likewise
38013
38014 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38015
38016 Simplify sed expressions and improve awk
38017
38018 * Makefile.in (install-local): simplify sed expression
38019 * gencmdlist.sh: likewise
38020 * genmoddep.awk: avoid adding module as a dependency of itself
38021
38022 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38023
38024 Add missing start symbols
38025
38026 * boot/i386/pc/boot.S: add start
38027 * boot/i386/pc/pxeboot.S: likewise
38028
38029 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38030
38031 Fix wrong assumptions with grub-mkimage on EFI
38032
38033 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
38034 (relocate_addresses): consider both r_addend and value at offset
38035 (make_mods_section): zerofill modinfo and header
38036 (convert_elf): write prefix here
38037
38038 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38039
38040 Use .asciz instead of .string
38041
38042 * i386/pc/diskboot.S: use .asciz instead of .string
38043 * i386/pc/boot.S: likewise
38044 * include/grub/dl.h (GRUB_MOD_DEP): likewise
38045 (GRUB_MOD_NAME): likewise
38046
38047 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38048
38049 gfxpayload support
38050
38051 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
38052 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
38053 (grub_video_setup): remove
38054 (grub_video_set_mode): new prototype
38055 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
38056 (vid_mode): remove
38057 (linux_vesafb_res): compile only on PCBIOS
38058 (grub_linux_boot): support gfxpayload
38059 * loader/i386/pc/xnu.c (video_hook): new function
38060 (grub_xnu_set_video): support gfxpayload
38061 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
38062 (DEFAULT_VIDEO_HEIGHT): likewise
38063 (DEFAULT_VIDEO_FLAGS): likewise
38064 (DEFAULT_VIDEO_MODE): new definition
38065 (video_hook): new function
38066 (grub_gfxterm_init): use grub_video_set_mode
38067 * util/grub.d/30_os-prober.in: remove explicit modesetting before
38068 loading xnu
38069 * video/video.c (grub_video_setup): removed
38070 (grub_video_set_mode): new function based on grub_gfxterm_init and
38071 grub_video_setup
38072
38073 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38074
38075 Avoid calling biosdisk in drivemap
38076
38077 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
38078 (revparse_biosdisk): likewise
38079 (list_mappings): derive name from id directly
38080 (grub_cmd_drivemap): use tryparse_diskstring
38081
38082 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38083
38084 Script fixes
38085
38086 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
38087 (grub_lexer_param): add tokenonhold
38088 (grub_script_create_cmdline): remove cmdline. All callers updated
38089 (grub_script_function_create): make functionname
38090 grub_script_arg. All callers updated
38091 (grub_script_execute_argument_to_string): new prototype
38092 * kern/parser.c (state_transitions): reorder
38093 (grub_parser_cmdline_state): fix a bug and make more compact
38094 * script/sh/execute.c (grub_script_execute_argument_to_string):
38095 make global
38096 (grub_script_execute_cmdline): use new format
38097 * script/sh/function.c (grub_script_function_create): make functionname
38098 grub_script_arg. All callers updated
38099 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
38100 (grub_script_yylex): remove
38101 (grub_script_yylex2): renamed to ...
38102 (grub_script_yylex): ...renamed
38103 parse the expressions like a${b}c
38104 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
38105 (GRUB_PARSER_TOKEN_VAR): remove
38106 (GRUB_PARSER_TOKEN_NAME): likewise
38107 ("if"): declare as typeless
38108 ("while"): likewise
38109 ("function"): likewise
38110 ("else"): likewise
38111 ("then"): likewise
38112 ("fi"): likewise
38113 (text): remove
38114 (argument): likewise
38115 (script): accept empty scripts and make exit on error
38116 (arguments): use GRUB_PARSER_TOKEN_ARG
38117 (function): likewise
38118 (command): move error handling to script
38119 (menuentry): move grub_script_lexer_ref before
38120 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
38121 argument. All callers updated
38122
38123 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38124
38125 Prevent GRUB from probing floppies during boot.
38126
38127 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
38128 * commands/search.c (options): Add --no-floppy.
38129 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
38130 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
38131 --no-floppy when searching for UUIDs.
38132
38133 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38134
38135 Simplify the code duplication in commands/search.c.
38136
38137 * commands/search.c (search_label, search_fs_uuid): Merge into ...
38138 (search_fs): ... this. Update all users.
38139
38140 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
38141
38142 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
38143
38144 2009-05-28 Pavel Roskin <proski@gnu.org>
38145
38146 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
38147 Remove the original symlink explicitly.
38148
38149 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
38150 just one slash. That's how grub_fshelp_find_file() does it.
38151
38152 2009-05-26 Pavel Roskin <proski@gnu.org>
38153
38154 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
38155 to `str'.
38156
38157 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
38158 possibly unused.
38159
38160 2009-05-25 Christian Franke <franke@computer.org>
38161
38162 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
38163 register.
38164 (grub_atapi_identify): Add wait after drive select.
38165 (grub_ata_identify): Do more strict status register check before
38166 calling grub_atapi_identify (). Suppress error message if status
38167 register is 0x00 after command failure. Add status register
38168 check after PIO read to avoid bogus identify due to stuck DRQ.
38169 Thanks to Pavel Roskin for testing.
38170 (grub_device_initialize): Remove unsafe status register check.
38171 Thanks to 'phcoder' for problem report and patch.
38172 Prevent sign extension in debug message.
38173
38174 2009-05-23 Colin D Bennett <colin@gibibit.com>
38175
38176 Cleaned up `include/grub/normal.h'. Grouped prototypes by
38177 definition file, and functions defined in `normal/menu.c' have had
38178 their prototypes moved to `include/grub/menu.h' for consistency.
38179
38180 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
38181 from normal.h.
38182 (grub_menu_get_entry): Likewise.
38183 (grub_menu_get_timeout): Likewise.
38184 (grub_menu_set_timeout): Likewise.
38185 (grub_menu_execute_entry): Likewise.
38186 (grub_menu_execute_with_fallback): Likewise.
38187 (grub_menu_entry_run): Likewise.
38188
38189 * include/grub/normal.h: Re-ordered and grouped function
38190 prototypes by file that the function is defined in.
38191 (grub_menu_execute_callback): Removed; moved to menu.h.
38192 (grub_menu_get_entry): Likewise.
38193 (grub_menu_get_timeout): Likewise.
38194 (grub_menu_set_timeout): Likewise.
38195 (grub_menu_execute_entry): Likewise.
38196 (grub_menu_execute_with_fallback): Likewise.
38197 (grub_menu_entry_run): Likewise.
38198 (grub_menu_addentry): Renamed from this ...
38199 (grub_normal_add_menu_entry): ... to this.
38200
38201 * normal/main.c (grub_menu_addentry): Renamed from this ...
38202 (grub_normal_add_menu_entry): ... to this.
38203
38204 * script/sh/execute.c (grub_script_execute_menuentry): Update
38205 reference to renamed grub_menu_addentry function.
38206
38207 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
38208
38209 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
38210
38211 2009-05-22 Pavel Roskin <proski@gnu.org>
38212
38213 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
38214 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
38215 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
38216 compiling for the i386 targets, but not for the utilities.
38217
38218 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
38219 to grub_uint8_t.
38220 (grub_root_drive): Likewise.
38221 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
38222 remove alignment.
38223 (grub_root_drive): Change size to byte.
38224 (grub_start_addr): Remove.
38225 (grub_end_addr): Likewise.
38226 (grub_apm_bios_info): Likewise.
38227
38228 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
38229
38230 * normal/i386: Remove.
38231 * normal/powerpc: Likewise.
38232 * normal/sparc64: Likewise.
38233 * normal/x86_64: Likewise.
38234
38235 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
38236
38237 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
38238 * loader/i386/linux_trampoline.S: Fix indentation
38239 * loader/i386/xnu_helper.S: Likewise
38240
38241 2009-05-18 Colin D Bennett <colin@gibibit.com>
38242
38243 Display error messages when parsing a Lua statement fails.
38244 Previously, executing a syntactically invalid statement like
38245 ")foo" or "bar;" would silently fail.
38246
38247 * script/lua/grub_main.c (handle_lua_error): New function.
38248 (grub_lua_parse_line): Improved reporting of Lua parser and
38249 execution errors.
38250
38251 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38252
38253 Remove -Werror which causes build to fail on some systems
38254
38255 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
38256 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
38257 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
38258
38259 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38260
38261 trampoline for linux on 64-bit platform
38262
38263 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
38264 loader/i386/efi/linux_trampoline.S
38265 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
38266 declaration
38267 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
38268 here
38269 * loader/i386/linux_trampoline.S: moved here
38270 * loader/i386/efi/linux.c (allocate_pages): reserve space for
38271 trampoline
38272 (jumpvector): removed
38273 (grub_linux_trampoline_start): new declaration
38274 (grub_linux_trampoline_end): likewise
38275 (grub_linux_boot): use trampoline when on 64-bit platform
38276 * loader/i386/linux.c: likewise
38277
38278 2009-05-16 Pavel Roskin <proski@gnu.org>
38279
38280 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
38281 const to avoid a warning.
38282 (grub_lua_setenv): Likewise.
38283 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
38284 lmsg to fix a warning.
38285
38286 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38287
38288 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
38289 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38290 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
38291 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38292 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38293 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38294 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38295 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38296
38297 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38298
38299 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
38300
38301 2009-05-16 Bean <bean123ch@gmail.com>
38302
38303 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
38304 (lua_mod_SOURCES): New variable.
38305 (lua_mod_CFLAGS): Likewise.
38306 (lua_mod_LDFLAGS): Likewise.
38307
38308 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
38309 (setjmp_mod_SOURCES): New variable.
38310 (setjmp_mod_CFLAGS): Likewise.
38311 (setjmp_LDFLAGS): Likewise.
38312
38313 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
38314 (setjmp_mod_SOURCES): New variable.
38315 (setjmp_mod_CFLAGS): Likewise.
38316 (setjmp_LDFLAGS): Likewise.
38317
38318 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38319 (setjmp_mod_SOURCES): New variable.
38320 (setjmp_mod_CFLAGS): Likewise.
38321 (setjmp_LDFLAGS): Likewise.
38322
38323 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38324 (setjmp_mod_SOURCES): New variable.
38325 (setjmp_mod_CFLAGS): Likewise.
38326 (setjmp_LDFLAGS): Likewise.
38327
38328 * normal/i386/setjmp.S: Moved from here ...
38329 * lib/i386/setjmp.S: ... Moved here
38330 * normal/x86_64/setjmp.S: Moved from here ...
38331 * lib/x86_64/setjmp.S: ... Moved here
38332 * normal/powerpc/setjmp.S: Moved from here ...
38333 * lib/powerpc/setjmp.S: ... Moved here
38334 * normal/sparc64/setjmp.S: Moved from here ...
38335 * lib/sparc64/setjmp.S: ... Moved here
38336
38337 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
38338 returns_twice in mingw.
38339
38340 * script/lua/grub_lib.c: New file.
38341 * script/lua/grub_lib.h: Likewise.
38342 * script/lua/grub_lua.h: Likewise.
38343 * script/lua/grub_main.c: Likewise.
38344 * script/lua/lapi.c: Likewise.
38345 * script/lua/lapi.h: Likewise.
38346 * script/lua/lauxlib.c: Likewise.
38347 * script/lua/lauxlib.h: Likewise.
38348 * script/lua/lbaselib.c: Likewise.
38349 * script/lua/lcode.c: Likewise.
38350 * script/lua/lcode.h: Likewise.
38351 * script/lua/ldblib.c: Likewise.
38352 * script/lua/ldebug.c: Likewise.
38353 * script/lua/ldebug.h: Likewise.
38354 * script/lua/ldo.c: Likewise.
38355 * script/lua/ldo.h: Likewise.
38356 * script/lua/ldump.c: Likewise.
38357 * script/lua/lfunc.c: Likewise.
38358 * script/lua/lfunc.h: Likewise.
38359 * script/lua/lgc.c: Likewise.
38360 * script/lua/lgc.h: Likewise.
38361 * script/lua/linit.c: Likewise.
38362 * script/lua/liolib.c: Likewise.
38363 * script/lua/llex.c: Likewise.
38364 * script/lua/llex.h: Likewise.
38365 * script/lua/llimits.h: Likewise.
38366 * script/lua/lmathlib.c: Likewise.
38367 * script/lua/lmem.c: Likewise.
38368 * script/lua/lmem.h: Likewise.
38369 * script/lua/loadlib.c: Likewise.
38370 * script/lua/lobject.c: Likewise.
38371 * script/lua/lobject.h: Likewise.
38372 * script/lua/lopcodes.c: Likewise.
38373 * script/lua/lopcodes.h: Likewise.
38374 * script/lua/loslib.c: Likewise.
38375 * script/lua/lparser.c: Likewise.
38376 * script/lua/lparser.h: Likewise.
38377 * script/lua/lstate.c: Likewise.
38378 * script/lua/lstate.h: Likewise.
38379 * script/lua/lstring.c: Likewise.
38380 * script/lua/lstring.h: Likewise.
38381 * script/lua/lstrlib.c: Likewise.
38382 * script/lua/ltable.c: Likewise.
38383 * script/lua/ltable.h: Likewise.
38384 * script/lua/ltablib.c: Likewise.
38385 * script/lua/ltm.c: Likewise.
38386 * script/lua/ltm.h: Likewise.
38387 * script/lua/lua.h: Likewise.
38388 * script/lua/luaconf.h: Likewise.
38389 * script/lua/lualib.h: Likewise.
38390 * script/lua/lundump.c: Likewise.
38391 * script/lua/lundump.h: Likewise.
38392 * script/lua/lvm.c: Likewise.
38393 * script/lua/lvm.h: Likewise.
38394 * script/lua/lzio.c: Likewise.
38395 * script/lua/lzio.h: Likewise.
38396
38397 2009-05-16 Bean <bean123ch@gmail.com>
38398
38399 * include/grub/kernel.h (grub_module_header_types): Add type
38400 OBJ_TYPE_CONFIG.
38401
38402 * kern/main.c (grub_load_config): New function.
38403 (grub_main): Call grub_load_config to read boot config.
38404
38405 * grub-mkimage (generate_image): New parameter config_path.
38406 (options): New option --config.
38407 (main): Parse --config option, and pass it to generate_image.
38408
38409 2009-05-14 Christian Franke <franke@computer.org>
38410
38411 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
38412 This fixes build on Cygwin.
38413
38414 2009-05-14 Pavel Roskin <proski@gnu.org>
38415
38416 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
38417 jump. This saves two bytes, so the typical case of 2 swapped
38418 drives would fit 32 bytes.
38419
38420 2009-05-13 Pavel Roskin <proski@gnu.org>
38421
38422 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
38423 grub_uint32_t to avoid a warning.
38424
38425 * loader/i386/linux.c (allocate_pages): When assigning
38426 real_mode_mem, cast through grub_size_t to fix a warning. The
38427 code already makes sure that the value would fit a pointer.
38428 (grub_linux_setup_video): Cast render_target->data to
38429 grub_size_t to fix a warning.
38430
38431 2009-05-13 Javier Martín <lordhabbit@gmail.com>
38432
38433 * commands/i386/pc/drivemap.c: New file - implement drivemap
38434 command.
38435 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
38436 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
38437
38438 2009-05-13 Pavel Roskin <proski@gnu.org>
38439
38440 * util/i386/pc/grub-setup.c (setup): Remove unused variable
38441 embedding_area_exists.
38442
38443 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
38444
38445 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
38446 it easier to understand / work with.
38447 Improve warning messages for cases where there's no embedding area,
38448 or when it is too small (or core.img too large).
38449
38450 2009-05-13 Pavel Roskin <proski@gnu.org>
38451
38452 * loader/i386/pc/multiboot2.c: Add necessary includes for
38453 grub_multiboot2_real_boot().
38454
38455 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
38456 PX record is always little-endian. We only need the lower 2
38457 bytes of the mode.
38458
38459 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
38460 facilitate code reuse.
38461 (grub_cpio_mount): Use "struct head", not a char buffer. This
38462 fixes a warning reported by gcc 4.4.
38463
38464 * kernel/disk.c (grub_disk_read): Use void pointer for the
38465 buffer.
38466 (grub_disk_write): Use const void pointer for the buffer.
38467 Adjust all callers. Remove unnecessary casts.
38468
38469 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
38470
38471 * util/i386/pc/grub-install.in: Update copyright year.
38472
38473 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38474
38475 gptsync
38476
38477 * commands/gptsync.c: new file
38478 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
38479 (gptsync_mod_SOURCES): new variable
38480 (gptsync_mod_CFLAGS): likewise
38481 (gptsync_mod_LDFLAGS): likewise
38482 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
38483 new definition
38484 (GRUB_PC_PARTITION_TYPE_HFS): likewise
38485 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
38486 * conf/i386-ieee1275.rmk: likewise
38487 * conf/i386-pc.rmk: likewise
38488 * conf/powerpc-ieee1275.rmk: likewise
38489
38490 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38491
38492 Fixed grub-emu
38493
38494 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
38495 (grub_dl_ref): likewise
38496
38497 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
38498
38499 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
38500 split in two functions (one for msdos and one for gpt).
38501
38502 2009-05-08 Pavel Roskin <proski@gnu.org>
38503
38504 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
38505 not modified.
38506
38507 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
38508 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
38509 Initialize them with -1. Add sanity check for bad1. Eliminate
38510 nerr variable.
38511
38512 2009-05-08 David S. Miller <davem@davemloft.net>
38513
38514 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
38515
38516 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
38517
38518 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
38519 existence.
38520
38521 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
38522
38523 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
38524 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
38525
38526 2009-05-05 David S. Miller <davem@davemloft.net>
38527
38528 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
38529
38530 2009-05-05 Pavel Roskin <proski@gnu.org>
38531
38532 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
38533 of grub_dl_ref() and grub_dl_unref().
38534 * commands/parttool.c: Remove preprocessor conditionals around
38535 grub_dl_ref() and grub_dl_unref().
38536 * fs/affs.c: Likewise.
38537 * fs/afs.c: Likewise.
38538 * fs/cpio.c: Likewise.
38539 * fs/ext2.c: Likewise.
38540 * fs/fat.c: Likewise.
38541 * fs/hfs.c: Likewise.
38542 * fs/hfsplus.c: Likewise.
38543 * fs/iso9660.c: Likewise.
38544 * fs/jfs.c: Likewise.
38545 * fs/minix.c: Likewise.
38546 * fs/ntfs.c: Likewise.
38547 * fs/reiserfs.c: Likewise.
38548 * fs/sfs.c: Likewise.
38549 * fs/udf.c: Likewise.
38550 * fs/ufs.c: Likewise.
38551 * fs/xfs.c: Likewise.
38552 * include/grub/dl.h: Likewise.
38553 * loader/xnu.c: Likewise.
38554
38555 2009-05-04 Pavel Roskin <proski@gnu.org>
38556
38557 * commands/acpi.c: Remove unused variable my_mod.
38558 * partmap/amiga.c: Likewise.
38559 * partmap/apple.c: Likewise.
38560 * partmap/gpt.c: Likewise.
38561 * partmap/pc.c: Likewise.
38562 * partmap/sun.c: Likewise.
38563 * term/gfxterm.c: Likewise.
38564 * term/i386/pc/vesafb.c: Likewise.
38565 * term/i386/pc/vga.c: Likewise.
38566
38567 2009-05-04 David S. Miller <davem@davemloft.net>
38568
38569 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
38570 pointer args to grub_ieee1275_get_property().
38571
38572 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
38573
38574 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
38575 devices, and do not traverse down under controller nodes.
38576
38577 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
38578 (grub_ofdisk_open): Use it to un-escape "," characters.
38579 * kern/disk.c (find_part_sep): New.
38580 (grub_disk_open): Use it to find the first non-escaped ','
38581 character in the disk name.
38582 * util/ieee1275/devicemap.c (escape_of_path): New.
38583 (grub_util_emit_devicemap_entry): Use it.
38584 * util/sparc64/ieee1275/grub-install.in: Update script to
38585 strip partition specifiers properly by not triggering on
38586 '\' escaped ',' characters.
38587
38588 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38589
38590 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
38591 to 0x300.
38592 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
38593 resolutions.
38594 (linux_vesafb_modes): Add a lot of additional modes to the list (based
38595 on documentation from Wikipedia).
38596
38597 2009-05-04 Pavel Roskin <proski@gnu.org>
38598
38599 * disk/ata.c: Spelling fixes.
38600 * disk/raid.c: Likewise.
38601 * disk/usbms.c: Likewise.
38602 * disk/dmraid_nvidia.c: Likewise.
38603 * kern/ieee1275/openfw.c: Likewise.
38604 * kern/ieee1275/init.c: Likewise.
38605 * kern/ieee1275/cmain.c: Likewise.
38606 * boot/i386/pc/cdboot.S: Likewise.
38607 * video/readers/png.c: Likewise.
38608 * video/i386/pc/vbe.c: Likewise.
38609 * fs/udf.c: Likewise.
38610 * fs/hfs.c: Likewise.
38611 * fs/reiserfs.c: Likewise.
38612 * efiemu/runtime/efiemu.c: Likewise.
38613 * efiemu/main.c: Likewise.
38614 * efiemu/mm.c: Likewise.
38615 * include/grub/elf.h: Likewise.
38616 * include/grub/xnu.h: Likewise.
38617 * include/grub/usbdesc.h: Likewise.
38618 * include/grub/usb.h: Likewise.
38619 * include/grub/script_sh.h: Likewise.
38620 * include/grub/lib/LzmaEnc.h: Likewise.
38621 * include/grub/efiemu/efiemu.h: Likewise.
38622 * include/grub/command.h: Likewise.
38623 * normal/menu.c: Likewise.
38624 * normal/main.c: Likewise.
38625 * normal/datetime.c: Likewise.
38626 * bus/usb/uhci.c: Likewise.
38627 * mmap/i386/uppermem.c: Likewise.
38628 * mmap/mmap.c: Likewise.
38629 * commands/acpi.c: Likewise.
38630 * commands/test.c: Likewise.
38631 * partmap/apple.c: Likewise.
38632 * font/font.c: Likewise.
38633 * loader/sparc64/ieee1275/linux.c: Likewise.
38634 * loader/macho.c: Likewise.
38635 * loader/i386/bsd_trampoline.S: Likewise.
38636 * loader/i386/bsd.c: Likewise.
38637 * loader/xnu.c: Likewise.
38638 * term/i386/pc/vesafb.c: Likewise.
38639 * term/usb_keyboard.c: Likewise.
38640 * util/resolve.c: Likewise.
38641 * util/getroot.c: Likewise.
38642
38643 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38644
38645 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
38646
38647 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38648
38649 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
38650 build error.
38651
38652 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38653
38654 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
38655 parameter only available on BIOS.
38656
38657 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38658
38659 Removed wrong semicolon in declaration
38660
38661 * grub/misc.h (grub_dprintf): remove semicolon
38662
38663 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38664
38665 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
38666 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
38667 is done by grub_cmd_linux() now).
38668 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
38669 restore video to text mode.
38670 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
38671 indicates lack of "vga=" parameter. "vga=0" is mapped to
38672 `GRUB_LINUX_VID_MODE_NORMAL'.
38673
38674 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38675
38676 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
38677 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
38678 and `normal/script.c'. Add `kern/rescue_reader.c',
38679 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
38680 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
38681 `grub_script.tab.c'.
38682
38683 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38684 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
38685 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38686 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
38687 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38688
38689 * Makefile.in: Remove duplicated 2008 in Copyright line.
38690
38691 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38692
38693 * util/misc.c (grub_util_warn): New function. Emits a warning
38694 unconditionally.
38695 * include/grub/util/misc.h (grub_util_warn): New declaration.
38696
38697 * util/i386/pc/grub-install.in: Understand --force and pass it down
38698 to grub-setup.
38699
38700 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
38701 down to setup().
38702 (setup): Improve error messages and add warnings when requested to
38703 install in odd layouts. Refuse to install using blocklists unless
38704 --force was set.
38705
38706 2009-05-04 martin f. krafft <madduck@madduck.net>
38707
38708 * disk/raid.c (grub_raid_scan_device): Improve debug message.
38709
38710 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38711
38712 Updated copyright year
38713
38714 * fs/hfsplus.c: updated copyright year
38715
38716 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38717
38718 HFS+ UUID
38719
38720 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
38721 in the space previously used by unused3
38722 (grub_hfsplus_uuid): new function
38723 (grub_hfsplus_fs): added uuid field
38724
38725 2009-05-03 Pavel Roskin <proski@gnu.org>
38726
38727 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
38728 suppress warnings. It's no longer needed.
38729 * disk/host.c: Likewise.
38730 * disk/ata_pthru.c: Likewise.
38731 * disk/loopback.c: Likewise.
38732 * hook/datehook.c: Likewise.
38733 * parttool/pcpart.c: Likewise.
38734 * fs/i386/pc/pxe.c: Likewise.
38735 * fs/ntfscomp.c: Likewise.
38736 * efiemu/main.c: Likewise.
38737 * mmap/mmap.c: Likewise.
38738 * commands/crc.c: Likewise.
38739 * commands/hexdump.c: Likewise.
38740 * commands/hdparm.c: Likewise.
38741 * commands/acpi.c: Likewise.
38742 * commands/echo.c: Likewise.
38743 * commands/minicmd.c: Likewise.
38744 * commands/blocklist.c: Likewise.
38745 * commands/memrw.c: Likewise.
38746 * commands/loadenv.c: Likewise.
38747 * commands/usbtest.c: Likewise.
38748 * commands/lsmmap.c: Likewise.
38749 * commands/boot.c: Likewise.
38750 * commands/parttool.c: Likewise.
38751 * commands/configfile.c: Likewise.
38752 * commands/search.c: Likewise.
38753 * commands/ieee1275/suspend.c: Likewise.
38754 * commands/cat.c: Likewise.
38755 * commands/i386/pc/pxecmd.c: Likewise.
38756 * commands/i386/pc/play.c: Likewise.
38757 * commands/i386/pc/halt.c: Likewise.
38758 * commands/i386/pc/vbeinfo.c: Likewise.
38759 * commands/i386/pc/vbetest.c: Likewise.
38760 * commands/lspci.c: Likewise.
38761 * commands/date.c: Likewise.
38762 * commands/handler.c: Likewise.
38763 * commands/ls.c: Likewise.
38764 * commands/test.c: Likewise.
38765 * commands/cmp.c: Likewise.
38766 * commands/efi/loadbios.c: Likewise.
38767 * commands/efi/fixvideo.c: Likewise.
38768 * commands/halt.c: Likewise.
38769 * commands/help.c: Likewise.
38770 * commands/reboot.c: Likewise.
38771 * hello/hello.c: Likewise.
38772 * script/sh/main.c: Likewise.
38773 * loader/xnu.c: Likewise.
38774 * term/terminfo.c: Likewise.
38775 * term/i386/pc/serial.c: Likewise.
38776 * term/usb_keyboard.c: Likewise.
38777
38778 2009-05-03 David S. Miller <davem@davemloft.net>
38779
38780 * normal/menu.c: Include grub/parser.h
38781
38782 2009-05-03 Pavel Roskin <proski@gnu.org>
38783
38784 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
38785 not char*.
38786 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
38787 Suggested by Javier Martín <lordhabbit@gmail.com>
38788
38789 * util/i386/pc/grub-mkrescue.in: Allow for the case when
38790 efiemu??.o doesn't exist.
38791 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
38792 copying.
38793
38794 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
38795
38796 FreeBSD 64-bit support
38797
38798 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
38799 and loader/i386/bsd_trampoline.S
38800 (bsd_mod_ASFLAGS): new variable
38801 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
38802 (FREEBSD_MODTYPE_KERNEL64): likewise
38803 (grub_bsd64_trampoline_start): likewise
38804 (grub_bsd64_trampoline_end): likewise
38805 (grub_bsd64_trampoline_selfjump): likewise
38806 (grub_bsd64_trampoline_gdt): likewise
38807 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
38808 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
38809 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
38810 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
38811 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
38812 of "attrib" member
38813 * loader/i386/bsd_pagetable.c: new file
38814 * loader/i386/bsd_trampoline.S: likewise
38815 * loader/i386/bsd.c (ALIGN_QWORD): new macro
38816 (ALIGN_VAR): likewise
38817 (entry_hi): new variable
38818 (kern_end_mdofs): likewise
38819 (is_64bit): likewise
38820 (grub_freebsd_add_meta): use ALIGN_VAR
38821 (grub_e820_mmap): new declaration
38822 (grub_freebsd_add_mmap): new function
38823 (grub_freebsd_add_meta_module): support 64 bit kernels
38824 (grub_freebsd_list_modules): use ALIGN_VAR
38825 (gdt_descriptor): new declaration
38826 (grub_freebsd_boot): support 64 bit kernels
38827 (grub_bsd_elf64_hook): new function
38828 (grub_bsd_load_elf): support elf64
38829
38830 2009-05-03 Bean <bean123ch@gmail.com>
38831
38832 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
38833 after we get the result of if statement.
38834
38835 2009-05-03 Bean <bean123ch@gmail.com>
38836
38837 * Makefile.in (enable_efiemu): New variable.
38838
38839 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
38840 set.
38841 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
38842 path.
38843 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
38844 path, add -mno-red-zone option.
38845 (efiemu64_s.o): Likewise.
38846 (efiemu64.o): Use macro $^ for source file.
38847
38848 * configure.ac (--enable-efiemu): New option.
38849
38850 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
38851
38852 xnu support
38853
38854 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
38855 (pkglib_MODULES): add xnu.mod
38856 (xnu_mod_SOURCES): new variable
38857 (xnu_mod_CFLAGS): likewise
38858 (xnu_mod_LDFLAGS): likewise
38859 (xnu_mod_ASFLAGS): likewise
38860 * conf/i386-pc.rmk: likewise
38861 * conf/x86_64-efi.rmk: likewise
38862 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
38863 new declaration
38864 * include/grub/i386/macho.h: new file
38865 * include/grub/i386/xnu.h: likewise
38866 * include/grub/macho.h: likewise
38867 * include/grub/machoload.h: likewise
38868 * include/grub/x86_64/macho.h: likewise
38869 * include/grub/x86_64/xnu.h: likewise
38870 * include/grub/xnu.h: likewise
38871 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
38872 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
38873 * loader/i386/efi/xnu.c: new file
38874 * loader/i386/pc/xnu.c: likewise
38875 * loader/i386/xnu.c: likewise
38876 * loader/i386/xnu_helper.S: likewise
38877 * loader/macho.c: likewise
38878 * loader/xnu.c: likewise
38879 * loader/xnu_resume.c: likewise
38880 * util/grub-dumpdevtree: likewise
38881 * include/grub/i386/pit.h: include grub/err.h
38882 (grub_pit_wait): export
38883 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
38884
38885 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38886
38887 Efiemu
38888
38889 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
38890 _linux_efi, linux_efi.
38891 new files in grub-emu
38892 new targets efiemu32.o and efiemu64.o
38893 * loader/linux_normal_efiemu.c: likewise
38894 * loader/i386/efi/linux.c: added preliminary efiemu support
38895 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
38896 files to copy
38897 * include/grub/autoefi.h: new file
38898 * include/grub/i386/efiemu.h: likewise
38899 * include/grub/i386/pc/efiemu.h: likewise
38900 * include/grub/efi/api.h: add LL suffix when necessary
38901 new definitions relating to tables
38902 * include/grub/efiemu/efiemu.h: new file
38903 * include/grub/efiemu/runtime.h: likewise
38904 * efiemu/prepare.c: likewise
38905 * efiemu/loadcore_common.c: likewise
38906 * efiemu/loadcore64.c: likewise
38907 * efiemu/runtime/efiemu.sh: likewise
38908 * efiemu/runtime/efiemu.S: likewise
38909 * efiemu/runtime/efiemu.c: likewise
38910 * efiemu/runtime/config.h: likewise
38911 * efiemu/prepare32.c: likewise
38912 * efiemu/main.c: likewise
38913 * efiemu/modules/pnvram.c: likewise
38914 * efiemu/modules/i386: likewise
38915 * efiemu/modules/i386/pc: likewise
38916 * efiemu/modules/acpi.c: likewise
38917 * efiemu/i386/pc/cfgtables.c: likewise
38918 * efiemu/i386/loadcore64.c: likewise
38919 * efiemu/i386/loadcore32.c: likewise
38920 * efiemu/prepare64.c: likewise
38921 * efiemu/loadcore.c: likewise
38922 * efiemu/symbols.c: likewise
38923 * efiemu/mm.c: likewise
38924 * efiemu/loadcore32.c: likewise
38925
38926 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38927
38928 ACPI spoofing
38929
38930 * commands/acpi.c: new file
38931 * commands/i386/pc/acpi.c: likewise
38932 * commands/efi/acpi.c: likewise
38933 * include/grub/acpi.h: likewise
38934 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
38935 (acpi_mod_SOURCES): new variable
38936 (acpi_mod_CFLAGS): likewise
38937 (acpi_mod_LDFLAGS): likewise
38938 * conf/i386-efi.rmk: likewise
38939 * conf/x86_64-efi.rmk: likewise
38940
38941 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38942
38943 Missing part from mmap patch
38944
38945 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
38946 (grub_mmap_unregister)
38947 (grub_mmap_free_and_unregister): use grub_mmap_register
38948
38949 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38950
38951 Mmap services
38952
38953 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
38954 * loader/i386/linux.c (find_mmap_size): likewise
38955 (allocate_pages): likewise
38956 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
38957 (grub_fill_multiboot_mmap): likewise
38958 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
38959 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
38960 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
38961 (OPENBSD_MMAP_RESERVED): likewise
38962 * include/grub/i386/pc/memory.h: include grub/memory.h
38963 (grub_lower_mem): removed
38964 (grub_upper_mem): likewise
38965 (GRUB_MACHINE_MEMORY_ACPI): new definition
38966 (GRUB_MACHINE_MEMORY_NVS): likewise
38967 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
38968 (GRUB_MACHINE_MEMORY_HOLE): likewise
38969 (grub_machine_mmap_register): likewise
38970 (grub_machine_mmap_unregister): likewise
38971 (grub_machine_get_upper): likewise
38972 (grub_machine_get_lower): likewise
38973 (grub_machine_get_post64): likewise
38974 * include/grub/i386/efi/memory.h: new file
38975 * include/grub/x86_64/efi/memory.h: likewise
38976 * include/grub/efi/memory.h: likewise
38977 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
38978 (mmap_mod_SOURCES): new variable
38979 (mmap_mod_LDFLAGS): likewise
38980 (mmap_mod_ASFLAGS): likewise
38981 * conf/i386-coreboot.rmk: likewise
38982 * conf/i386-ieee1275.rmk: likewise
38983 * conf/i386-efi.rmk: likewise
38984 * conf/x86_64-efi.rmk: likewise
38985 * include/grub/types.h (UINT_TO_PTR): new macro
38986 (PTR_TO_UINT32): likewise
38987 (PTR_TO_UINT64): likewise
38988 * include/grub/memory.h: new file
38989 * mmap/i386/pc/mmap.c: likewise
38990 * mmap/i386/pc/mmap_helper.S: likewise
38991 * mmap/i386/uppermem.c: likewise
38992 * mmap/mmap.c: likewise
38993 * mmap/efi/mmap.c: likewise
38994 * kern/i386/coreboot/init.c (grub_machine_init): don't use
38995 grub_upper_mem
38996 * kern/i386/pc/init.c (grub_lower_mem): removed variable
38997 (grub_upper_mem): likewise
38998 (grub_machine_init): don't use grub_upper_mem,
38999 make grub_lower_mem local
39000 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
39001 grub_mmap_iterate and grub_mmap_get_upper
39002 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
39003
39004 2009-05-02 Bean <bean123ch@gmail.com>
39005
39006 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
39007 script/sh/parser.y.
39008 (pkglib_MODULES): Add normal.mod and sh.mod.
39009 (normal_SOURCES): New variable.
39010 (normal_mod_CFLAGS): Likewise.
39011 (normal_mod_LDFLAGS): Likewise.
39012 (sh_mod_SOURCES): Likewise.
39013 (sh_mod_CFLAGS): Likewise.
39014 (sh_mod_LDFLAGS): Likewise.
39015
39016 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
39017 script/sh/lexer.c_DEPENDENCIES.
39018 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
39019 kern/rescue_reader.c and kern/rescue_parser.c.
39020 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
39021 (grub_emu_SOURCES): Change source files.
39022 (pkglib_MODULES): Remove normal.mod.
39023 (normal_SOURCES): Removed.
39024 (normal_mod_CFLAGS): Likewise.
39025 (normal_mod_LDFLAGS): Likewise.
39026 * conf/i386-coreboot.rmk: Likewise.
39027 * conf/i386-efi.rmk: Likewise.
39028 * conf/i386-ieee1276.rmk: Likewise.
39029 * conf/powerpc-ieee1275.rmk: Likewise.
39030 * conf/sparc64-ieee1275.rmk: Likewise.
39031 * conf/x86_64-efi.rmk: Likewise.
39032
39033 * include/grub/command.h (grub_command_execute): New inline function.
39034
39035 * include/grub/menu.h (grub_menu_entry): Removed commands field.
39036
39037 * include/grub/normal.h: Remove <grub/setjmp.h>.
39038 (grub_fs_module_list): Moved to normal/autofs.c.
39039 (grub_exit_env): Removed.
39040 (grub_command_execute): Likewise.
39041 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
39042 parameter script.
39043 (read_command_list): New function declaration.
39044 (read_fs_list): Likewise.
39045
39046 * include/parser.h: Include <grub/reader.h>.
39047 (grub_parser_split_cmdline): Change type of getline parameter.
39048 (grub_parser): New structure.
39049 (grub_parser_class): New variable.
39050 (grub_parser_execute): New function declaration.
39051 (grub_register_rescue_parser): Likewise.
39052 (grub_parser_register): New inline function.
39053 (grub_parser_unregister): Likewise.
39054 (grub_parser_get_current): Likewise.
39055 (grub_parser_set_current): Likewise.
39056
39057 * include/grub/reader.h: New file.
39058 * kern/reader.c: Likewise.
39059 * kern/rescue_parser.c: Likewise.
39060 * kern/rescue_reader.c: Likewise.
39061 * normal/autofs.c: Likewise.
39062 * normal/dyncmd.c: Likewise.
39063
39064 * include/grub/rescue.h: Removed.
39065 * normal/command.h: Likewise.
39066
39067 * include/grub/script.h: Moved to ...
39068 * include/grub/script_sh.h: ... Moved here.
39069 * normal/execute.c: Moved to ...
39070 * script/sh/execute.c: ... Moved here.
39071 * normal/function.c: Moved to ...
39072 * script/sh/function.c: ... Moved here.
39073 * normal/lexer.c: Moved to ...
39074 * script/sh/lexer.c: ... Moved here.
39075 * normal/parser.y: Moved to ...
39076 * script/sh/parser.y: ... Moved here.
39077 * normal/script.c: Moved to ...
39078 * script/sh/script.c: ... Moved here.
39079
39080 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
39081 <grub/reader.h>.
39082 (grub_exit_env): Removed.
39083 (fs_module_list): Moved to normal/autofs.c.
39084 (grub_file_getline): Don't handle comment here.
39085 (free_menu): Skip removed field entry->commands.
39086 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
39087 script parameter.
39088 (read_config_file): Removed nested parameter, change getline function.
39089 (grub_enter_normal_mode): Removed.
39090 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
39091 (read_command_list): Likewise.
39092 (autoload_fs_module): Moved to normal/autofs.c.
39093 (read_fs_list): Likewise.
39094 (reader_nested): New variable.
39095 (grub_normal_execute): Run parser.sh to switch to sh parser.
39096 (grub_cmd_rescue): Removed.
39097 (cmd_normal): Removed.
39098 (grub_cmd_normal): Unregister itself at the beginning. Don't register
39099 rescue command.
39100 (grub_cmdline_run): New function.
39101 (grub_normal_reader_init): Likewise.
39102 (grub_normal_read_line): Likewise.
39103 (grub_env_write_pager): Likewise.
39104 (cmdline): New variable.
39105 (grub_normal_reader): Likewise.
39106 (GRUB_MOD_INIT): Register normal reader and set as current, register
39107 pager hook, register normal command with grub_register_command_prio,
39108 so that it won't show up in command.lst.
39109 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
39110 grub_fs_autoload_hook.
39111
39112 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
39113 (grub_menu_execute_entry): Replace grub_script_execute with
39114 grub_parser_execute, change parameter to grub_command_execute.
39115
39116 * normal/menu_text.c: Remove <grub/script.h>.
39117
39118 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
39119 and <grub/parser.h>.
39120 (run): Change editor_getline to use new parser interface. Change
39121 parameter to grub_command_execute.
39122
39123 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
39124 <grub/reader.h> and <grub/parser.h>.
39125 (grub_load_normal_mode): Execute normal command.
39126 (grub_main): Call grub_register_core_commands,
39127 grub_register_rescue_parser and grub_register_rescue_reader, use
39128 grub_reader_loop to enter input loop.
39129
39130 * kern/parser.c (grub_parser_split_cmdline): Change type of
39131 getline parameter.
39132 (grub_parser_class): New variable.
39133 (grub_parser_execute): New function.
39134
39135 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
39136 * loader/multiboot2.c: Likewise.
39137 * loader/sparc64/ieee1275/linux.c: Likewise.
39138
39139 * util/grub-emu.c (read_command_list): New dummy function.
39140
39141 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39142
39143 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
39144 count to 16 for CCISS and IDA.
39145
39146 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39147
39148 * normal/menu_text.c (grub_wait_after_message): Print a newline
39149 after waiting for user input.
39150
39151 * loader/i386/linux.c: Include `<grub/normal.h>'.
39152 (grub_cmd_linux): Improve the error message about `ask' mode, by
39153 waiting for user input so it's not missed (we can do this, since
39154 user requested interaction).
39155
39156 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39157
39158 Added missing lst to grub-mkrescue
39159
39160 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
39161 and ${input_dir}/parttool.lst
39162
39163 2009-04-30 David S. Miller <davem@davemloft.net>
39164
39165 * util/hostdisk.c (device_is_wholedisk): New function.
39166 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
39167 zero only if device_is_wholedisk() returns true.
39168
39169 * util/hostdisk.c (convert_system_partition_to_system_disk):
39170 Handle virtual disk devices named /dev/vdiskX as found on sparc
39171 and powerpc.
39172
39173 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
39174 lettered partition specifier is found, convert to numbered.
39175
39176 2009-04-29 David S. Miller <davem@davemloft.net>
39177
39178 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
39179 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39180
39181 * normal/command.c: Add missing newline at end of file.
39182
39183 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
39184 warnings.
39185 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
39186 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
39187 grub_ofdisk_read): Likewise, and deal similarly with the fact that
39188 ihandles have a 32-bit type but need to be stored in a "void *".
39189
39190 2009-04-28 Pavel Roskin <proski@gnu.org>
39191
39192 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
39193 not disk. Adjust all dependencies.
39194 (grub_fs_uuid_close): Use grub_device_close(), not
39195 grub_disk_close().
39196
39197 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
39198 parent's partition, don't copy it by reference, as it gets freed
39199 on close.
39200
39201 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39202
39203 Preboot hooks support
39204
39205 * commands/boot.c (struct grub_preboot_t): new declaration
39206 (preboots_head): new variable
39207 (preboots_tail): likewise
39208 (grub_loader_register_preboot_hook): new function
39209 (grub_loader_unregister_preboot_hook): likewise
39210 (grub_loader_set): launch preboot hooks
39211 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
39212 (grub_loader_register_preboot_hook): new declaration
39213 (grub_loader_unregister_preboot_hook): likewise
39214
39215 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39216
39217 Warning fix
39218
39219 * disk/scsi.c (grub_scsi_open): added missing cast when
39220 calling grub_dprintf
39221
39222 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
39223
39224 Bug and warning fixes
39225
39226 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
39227 declaration
39228 * commands/test.c (test_parse): fixed bug with file tests and corrected
39229 declaration of find_file
39230
39231 2009-04-26 Pavel Roskin <proski@gnu.org>
39232
39233 * Makefile.in: Don't install empty manual pages if help2man is
39234 missing. Use help2man option for output, not shell redirection.
39235
39236 2009-04-26 David S. Miller <davem@davemloft.net>
39237
39238 * util/grub-mkdevicemap.c (make_device_map): Add missing
39239 NESTED_FUNC_ATTR to process_device().
39240
39241 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39242
39243 Test command
39244
39245 * commands/test.c: rewritten to use bash-like test
39246
39247 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39248
39249 Parttool autoloading and improvements
39250
39251 * Makefile.in (pkglib_DATA): add parttool.lst
39252 (parttool.lst): new target
39253 * genmk.rb: generate parttool-*
39254 (CLEANFILES): add #{parttool}
39255 (PARTTOOLFILES): new variable
39256 * genparttoollist.sh: new file
39257 * parttool/pcpart.c (grub_pcpart_boot): more feedback
39258 (grub_pcpart_type): likewise
39259 * commands/parttool.c (helpmsg): new variable
39260 (grub_cmd_parttool): output help if not enough arguments are supplied
39261 autoload modules
39262 (GRUB_MOD_INIT(parttool)): use helpmsg
39263
39264 2009-04-24 David S. Miller <davem@davemloft.net>
39265
39266 Avoiding opening same device multiple times in device iterator.
39267
39268 * kern/device.c: (grub_device_iterate): Define struct part_ent,
39269 and use it to build a list of partitions in iterate_disk() and
39270 iterate_partition().
39271
39272 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
39273 on disk->data.
39274
39275 * disk/ieee1275/nand.c (grub_nand_iterate): Return
39276 grub_devalias_iterate() result instead of unconditional 0.
39277 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
39278 Also, capture hook return value, either directly or via
39279 grub_children_iterate(), and propagate to caller.
39280 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
39281 grub_children_iterate): Return value is now 'int' instead of
39282 'grub_err_t'.
39283 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
39284 like a proper iterator, stopping when hooks return non-zero.
39285 (grub_devalias_iterate): Likewise.
39286
39287 2009-04-23 David S. Miller <davem@davemloft.net>
39288
39289 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
39290
39291 2009-04-22 David S. Miller <davem@davemloft.net>
39292
39293 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
39294 is larger than address_cells, use that value for address_cells too.
39295
39296 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
39297 IEEE1275_MAX_PATH_LEN): Define.
39298 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
39299 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
39300 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
39301 'devtype'. Explicitly NULL terminate devalias expansion.
39302
39303 * util/sparc64/ieee1275/misc.c: New file.
39304 * util/sparc64/ieee1275/grub-setup.c: New file.
39305 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
39306 * util/sparc64/ieee1275/grub-mkimage.c: New file.
39307 * util/sparc64/ieee1275/grub-install.in: New file.
39308 * util/ieee1275/ofpath.c: New file.
39309 * util/ieee1275/devicemap.c: New file.
39310 * util/devicemap.c: New file.
39311 * util/deviceiter.c: New file.
39312 * kern/sparc64/ieee1275/init.c: New file.
39313 * include/grub/util/ofpath.h: New file.
39314 * include/grub/util/deviceiter.h: New file.
39315 * util/grub-mkdevicemap.c: Include deviceiter.h.
39316 Implement using grub_util_emit_devicemap_entry and
39317 grub_util_iterate_devices.
39318 * conf/i386-corebook.rmk: Build util/deviceiter.c and
39319 util/devicemap.c into grub-mkdevicemap
39320 * conf/i386-efi.rmk: Likewise.
39321 * conf/i386-ieee1275.rmk: Likewise.
39322 * conf/i386-pc.rmk: Likewise.
39323 * conf/powerpc-ieee1275.rmk: Likewise.
39324 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
39325 images and installation utilities. Build kernel as image
39326 instead of as elf binary. Use common rules as much as possible.
39327
39328 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
39329
39330 Correct GPT definition
39331
39332 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
39333 of "attrib" member
39334
39335 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
39336
39337 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
39338
39339 2009-04-19 David S. Miller <davem@davemloft.net>
39340
39341 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
39342 (grub_rescue_cmd_linux): Rename to...
39343 (grub_cmd_linux): and fix prototype.
39344 (grub_rescue_cmd_initrd): Rename to...
39345 (grub_cmd_initrd): and fix prototype.
39346 (cmd_linux, cmd_initrd): New.
39347 (GRUB_MOD_INIT(linux)): Use grub_register_command().
39348 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
39349
39350 2009-04-17 Pavel Roskin <proski@gnu.org>
39351
39352 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
39353 format.
39354 (grub_ohci_transfer): Likewise.
39355
39356 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
39357
39358 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
39359 return without a value. Fix inconsistent indentation.
39360
39361 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
39362 match struct grub_fs.
39363
39364 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
39365 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
39366 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
39367 * commands/lspci.c (grub_lspci_iter): Likewise.
39368
39369 2009-04-16 Bean <bean123ch@gmail.com>
39370
39371 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
39372 value.
39373
39374 2009-04-15 Pavel Roskin <proski@gnu.org>
39375
39376 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
39377 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
39378 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
39379 definitions.
39380
39381 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39382
39383 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
39384 that no multiple data or metadata areas are supported and `Unknown
39385 metadata header'.
39386
39387 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39388
39389 Move loader out of the kernel
39390
39391 * kern/loader.c: moved to ...
39392 * commands/boot.c: ... moved here
39393 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
39394 * commands/boot.c (grub_cmd_boot): moved here. All users updated
39395 * include/grub/kernel.h (grub_machine_fini): export
39396 * include/grub/loader.h (grub_loader_is_loaded): update declaration
39397 (grub_loader_set): likewise
39398 (grub_loader_unset): likewise
39399 (grub_loader_boot): likewise
39400 * conf/common.rmk: new module boot.mod
39401 (pkglib_MODULES): add boot.mod
39402 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
39403 (grub_emu_SOURCES): likewise
39404 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
39405 (grub_emu_SOURCES): likewise
39406 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
39407 (grub_emu_SOURCES): likewise
39408 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
39409 (grub_emu_SOURCES): likewise
39410 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
39411 (grub_emu_SOURCES): likewise
39412 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
39413 (grub_emu_SOURCES): likewise
39414 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
39415 (grub_emu_SOURCES): likewise
39416
39417 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39418
39419 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
39420
39421 * kern/misc.c (grub_itoa): Removed function
39422 (grub_ltoa): likewise
39423 (grub_vsprintf): use grub_lltoa
39424
39425 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39426
39427 Restore grub-emu
39428
39429 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
39430 * conf/i386-coreboot.rmk: likewise
39431 * conf/i386-ieee1275.rmk: likewise
39432 * conf/powerpc-ieee1275.rmk: likewise
39433
39434 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39435
39436 * INSTALL: Add that `./autogen.sh' needs to be run before
39437 `./configure.'.
39438
39439 2009-04-14 Bean <bean123ch@gmail.com>
39440
39441 * Makefile.in (pkglib_DATA): Add handler.lst.
39442 (handler.lst): New rule.
39443
39444 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
39445 * conf/i386-coreboot.rmk: Likewise.
39446 * conf/i386-ieee1275.rmk: Likewise.
39447 * conf/i386-efi.rmk: Likewise.
39448 * conf/x86_64-efi.rmk: Likewise.
39449 * conf/powerpc-ieee1275.rmk: Likewise.
39450 * conf/sparc64-ieee1275.rmk: Likewise.
39451
39452 * genhandlerlist.sh: New file.
39453
39454 * genmk.rb: Add rules to generate handler.lst.
39455
39456 * include/grub/normal.h (grub_file_getline): New function definition.
39457 (read_handler_list): Likewise.
39458 (free_handler_list): Likewise.
39459
39460 * include/grub/term.h (grub_term_register_input): Add name parameter
39461 for auto generation of handler.lst.
39462 (grub_term_register_output): Likewise.
39463
39464 * normal/handler.c: New file.
39465
39466 * normal/main.c (get_line): Renamed to grub_file_getline.
39467 (read_config_file): Use the newly renamed grub_file_getline.
39468 (read_command_list): Likewise.
39469 (read_fs_list): Likewise.
39470 (grub_normal_execute): Call read_handler_list to parse handler.lst.
39471 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
39472
39473 * term/efi/console.c (grub_console_init): Add name parameter for auto
39474 generation of handler.lst.
39475 * term/gfxterm.c: Likewise.
39476 * term/i386/pc/at_keyboard.c: Likewise.
39477 * term/i386/pc/console.c: Likewise.
39478 * term/i386/pc/serial.c: Likewise.
39479 * term/i386/pc/vesafb.c: Likewise.
39480 * term/i386/pc/vga.c: Likewise.
39481 * term/i386/pc/vga_text.c: Likewise.
39482 * term/ieee1275/ofconsole.c: Likewise.
39483 * term/usb_keyboard.c: Likewise.
39484
39485 2009-04-14 Bean <bean123ch@gmail.com>
39486
39487 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
39488 properly with null character.
39489
39490 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39491
39492 * configure: Remove.
39493 * config.h.in: Likewise.
39494 * stamp-h.in: Likewise.
39495 * DISTLIST: Likewise.
39496 * conf/common.mk: Likewise.
39497 * conf/i386-coreboot.mk: Likewise.
39498 * conf/i386-efi.mk: Likewise.
39499 * conf/i386-ieee1275.mk: Likewise.
39500 * conf/i386.mk: Likewise.
39501 * conf/i386-pc.mk: Likewise.
39502 * conf/powerpc-ieee1275.mk: Likewise.
39503 * conf/sparc64-ieee1275.mk: Likewise.
39504 * conf/x86_64-efi.mk: Likewise.
39505
39506 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
39507 develop on GRUB.
39508
39509 2009-04-14 John Stanley <jpsinthemix@verizon.net>
39510 David S. Miller <davem@davemloft.net>
39511
39512 * util/hostdisk.c (make_device_name): Fix buffer length
39513 calculations.
39514
39515 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39516
39517 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
39518 <sys/param.h> and <sys/sysctl.h>.
39519 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
39520 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
39521 opening the device and reset them afterwards.
39522
39523 2009-04-13 Pavel Roskin <proski@gnu.org>
39524
39525 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
39526 Reported by John Stanley <jpsinthemix@verizon.net>
39527
39528 2009-04-13 Robert Millan <rmh@aybabtu.com>
39529
39530 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
39531 that name for menuentries when appropriate.
39532
39533 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39534
39535 * util/grub.d/10_freebsd.in: Add a missing `fi'.
39536
39537 2009-04-13 Robert Millan <rmh@aybabtu.com>
39538
39539 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
39540 to Linux, simply abort telling the user it's no longer supported.
39541
39542 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39543
39544 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
39545 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
39546 `freebsd_loadenv' only when devices.hints exist.
39547
39548 2009-04-13 Pavel Roskin <proski@gnu.org>
39549
39550 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
39551
39552 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39553
39554 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
39555 partition number.
39556 (grub_drive): Likewise.
39557
39558 2009-04-13 David S. Miller <davem@davemloft.net>
39559
39560 * kern/sparc64/ieee1275/ieee1275.c: New file.
39561 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
39562 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
39563 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
39564 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
39565 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
39566 grub_ieee1275_alloc_physmem): Declare new exported functions.
39567
39568 * include/grub/sparc64/ieee1275/loader.h: New file.
39569 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39570 * include/grub/sparc64/kernel.h: Likewise.
39571 * loader/sparc64/ieee1275/linux.c: Likewise.
39572
39573 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
39574 (grub_fstest_SOURCES): Likewise.
39575
39576 * util/hostdisk.c (make_device_name): Do not make any assumptions
39577 about the length of drive names.
39578
39579 * kern/dl.c (grub_dl_load_file): Close file immediately when
39580 we are done using it.
39581
39582 2009-04-12 David S. Miller <davem@davemloft.net>
39583
39584 * kern/misc.c (grub_ltoa): Fix cast when handling negative
39585 values. Noticed by Pavel Roskin.
39586
39587 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
39588 target compiler.
39589
39590 * genmk.rb: Add more flexible image type specification, also
39591 pass --strip-unneeded to objcopy.
39592 * conf/i386-pc.rmk: Use *_FORMAT.
39593 * conf/i386-pc.mk: Rebuilt.
39594
39595 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
39596 (OFDISK_HASH_SZ): Define.
39597 (ofdisk_hash): New hash table.
39598 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
39599 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
39600 instead of device phandle which is not unique.
39601
39602 * kern/sparc64/ieee1275/init.c: Delete, replace with...
39603 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
39604 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
39605 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
39606 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
39607 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
39608 GRUB_KERNEL_MACHINE_DATA_END): Define.
39609 (grub_kernel_image_size, grub_total_module_size): Declare.
39610
39611 2009-04-12 Pavel Roskin <proski@gnu.org>
39612
39613 * configure.ac: Change the logic when we check for target tools.
39614 Do it when the target is specified and it's different from the
39615 specified value of the host.
39616
39617 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
39618
39619 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
39620 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
39621 GNU/kFreeBSD. Check if a device is a character device. Use
39622 DIOCGMEDIASIZE to get the size.
39623 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
39624 support for GNU/kFreeBSD.
39625 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
39626 is a character device instead of a block device. Add support for
39627 FreeBSD device names.
39628
39629 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
39630 is a character device instead of a block device.
39631
39632 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
39633 is a character device instead of a block device.
39634
39635 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
39636
39637 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
39638 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
39639 FreeBSD. Check if a device is a character device. Use
39640 DIOCGMEDIASIZE to get the size.
39641 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
39642 support for FreeBSD.
39643 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
39644 is a character device instead of a block device. Add support for
39645 FreeBSD device names.
39646
39647 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
39648 a character device instead of a block device.
39649 (grub_util_check_char_device): New function.
39650
39651 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
39652 a character device instead of a block device.
39653
39654 * include/grub/util/getroot.h (grub_util_check_char_device): New
39655 prototype.
39656
39657 2009-04-11 David S. Miller <davem@davemloft.net>
39658
39659 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
39660 static libgcc.
39661 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
39662 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
39663 function, if present.
39664 (__bswapdi2): Likewise.
39665
39666 * include/grub/sparc64/ieee1275/boot.h: New file.
39667 * boot/sparc64/ieee1275/boot.S: Likewise.
39668 * boot/sparc64/ieee1275/diskboot.S: Likewise.
39669
39670 * kern/misc.c (grub_ltoa): New function.
39671 (grub_vsprintf): Use it to format 'long' integers.
39672
39673 2009-04-10 David S. Miller <davem@davemloft.net>
39674
39675 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
39676 slots are of type grub_ieee1275_cell_t.
39677 (grub_nand_read): Likewise.
39678 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
39679 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
39680 macros are used to compare values in arg/ret block of the call.
39681 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
39682 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
39683 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
39684 grub_ieee1275_instance_to_path, grub_ieee1275_write,
39685 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
39686 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
39687 grub_ieee1275_close, grub_ieee1275_set_property,
39688 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
39689 grub_ieee1275_cell_t.
39690 * kern/ieee1275/openfw.c (grub_map): Likewise.
39691 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
39692 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
39693
39694 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
39695 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
39696 (grub_devalias_iterate): Likewise.
39697
39698 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
39699
39700 UFS improvements
39701
39702 * fs/ufs.c (INODE_NBLOCKS): new definition
39703 (struct grub_ufs_dirent): added fields for non-BSD dirents
39704 (grub_ufs_get_file_block): fixed double indirect handling
39705 (grub_ufs_lookup_symlink): use more robust way to determine whether
39706 symlink is inline
39707 (grub_ufs_find_file): support for non-BSD dirents
39708 (grub_ufs_dir): support for non-BSD dirents
39709
39710 2009-04-10 Bean <bean123ch@gnail.com>
39711
39712 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
39713 attribute, otherwise the size would be wrong for i386 platform.
39714
39715 * include/grub/pci.h (grub_pci_read_word): New inline function.
39716 (grub_pci_read_byte): Likewise.
39717 (grub_pci_write): Likewise.
39718 (grub_pci_write_word): Likewise.
39719 (grub_pci_write_byte): Likewise.
39720
39721 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
39722
39723 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
39724 (find_framebuf): Scan pci to locate the frame buffer address.
39725
39726 * commands/efi/fixvideo.c: New file.
39727
39728 * commands/efi/loadbios.c: Likewise.
39729
39730 * commands/memrw.c: Likewise.
39731
39732 * util/grub-dumpbios.in: Likewise.
39733
39734 * conf/common.rmk (grub-dumpbios): New utility.
39735 (pkglib_MODULES): New module memrw.mod.
39736 (memrw_mod_SOURCE): New macro.
39737 (memrw_mod_CFLAGS): Likewise.
39738 (memrw_mod_LDFLAGS): Likewise.
39739
39740 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
39741 fixvideo.mod.
39742 (loadbios_mod_SOURCE): New macro.
39743 (loadbios_mod_CFLAGS): Likewise.
39744 (loadbios_mod_LDFLAGS): Likewise.
39745 (fixvideo_mod_SOURCE): Likewise.
39746 (fixvideo_mod_CFLAGS): Likewise.
39747 (fixvideo_mod_LDFLAGS): Likewise.
39748
39749 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
39750 fixvideo.mod.
39751 (loadbios_mod_SOURCE): New macro.
39752 (loadbios_mod_CFLAGS): Likewise.
39753 (loadbios_mod_LDFLAGS): Likewise.
39754 (fixvideo_mod_SOURCE): Likewise.
39755 (fixvideo_mod_CFLAGS): Likewise.
39756 (fixvideo_mod_LDFLAGS): Likewise.
39757
39758 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
39759
39760 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
39761
39762 2009-04-07 David S. Miller <davem@davemloft.net>
39763
39764 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
39765 support for R_SPARC_OLO10 relocations. Fix compile warning for
39766 R_SPARC_WDISP30 case.
39767 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
39768
39769 2009-04-06 Pavel Roskin <proski@gnu.org>
39770
39771 * include/grub/misc.h (ARRAY_SIZE): New macro.
39772 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
39773 New macro.
39774 * loader/i386/linux.c (allocate_pages): Use free_pages().
39775 (grub_linux_unload): Don't use free_pages().
39776 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
39777 wrong index. Treat all other modes as text modes.
39778 (grub_cmd_linux): Initialize vid_mode unconditionally to
39779 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
39780
39781 * commands/help.c (print_command_help): Use cmd->prio, not
39782 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
39783
39784 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
39785
39786 Parttool
39787
39788 * parttool/pcpart.c: new file
39789 * commands/parttool.c: likewise
39790 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
39791 (parttool_mod_SOURCES): new variable
39792 (parttool_mod_CFLAGS): likewise
39793 (parttool_mod_LDFLAGS): likewise
39794 (pcpart_mod_SOURCES): likewise
39795 (pcpart_mod_CFLAGS): likewise
39796 (pcpart_mod_LDFLAGS): likewise
39797 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
39798 and parttool/pcpart.c
39799 * conf/i386-efi.rmk: likewise
39800 * conf/i386-ieee1275.rmk: likewise
39801 * conf/i386-pc.rmk: likewise
39802 * conf/powerpc-ieee1275.rmk: likewise
39803 * conf/sparc64-ieee1275.rmk: likewise
39804 * conf/x86_64-ieee1275.rmk: likewise
39805
39806 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
39807
39808 Support for mtime and further expandability of dir command
39809
39810 * include/grub/lib/datetime.h: moved to ...
39811 * include/grub/datetime.h: ... moved here and added
39812 declaration of grub_unixtime2datetime. All users updated
39813 * include/grub/fs.h: new syntax for dir and mtime functions in
39814 struct grub_fs
39815 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
39816 and GRUB_FSHELP_FLAGS_MASK
39817 * commands/ls.c (grub_ls_list_files): Write mtime in long format
39818 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
39819 (grub_ext2_mtime): new function
39820 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
39821 (grub_hfsplus_mtime): new function
39822 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
39823 (GRUB_UFS_ATTR_FILE): likewise
39824 (GRUB_UFS_ATTR_LNK): likewise
39825 (struct grub_ufs_sblock): new fields mtime
39826 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
39827 all users updated
39828 (grub_ufs_dir): mtime support
39829 (grub_ufs_mtime): new function
39830 * fs/affs.c (grub_affs_dir): use new dir syntax
39831 * fs/afs.c (grub_afs_dir): likewise
39832 * fs/cpio.c (grub_cpio_dir): likewise
39833 * fs/fat.c (grub_fat_find_dir): likewise
39834 * fs/hfs.c (grub_hfs_dir): likewise
39835 * fs/iso9660.c (grub_iso9660_dir): likewise
39836 * fs/jfs.c (grub_jfs_dir): likewise
39837 * fs/minix.c (grub_minix_dir): likewise
39838 * fs/ntfs.c (grub_ntfs_dir): likewise
39839 * fs/reiserfs.c (grub_reiserfs_dir): likewise
39840 * fs/sfs.c (grub_sfs_dir): likewise
39841 * fs/xfs.c (grub_xfs_dir): likewise
39842 * util/hostfs.c (grub_hostfs_dir): likewise
39843 * lib/datetime.c: moved to ...
39844 * normal/datetime.c: ... moved here
39845 (grub_unixtime2datetime): new function
39846 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
39847 * normal/completion.c (iterate_dir): use new dir syntax
39848 * normal/misc.c (grub_normal_print_device_info): tell the
39849 last modification time of a volume
39850 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
39851 * conf/common.rmk: added lib/datetime.c to ls.mod
39852 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
39853 (normal_mod_SOURCES): likewise
39854 (datetime_mod_SOURCES): Removed lib/datetime.c
39855 * conf/i386-efi.rmk: likewise
39856 * conf/i386-ieee1275.rmk: likewise
39857 * conf/i386-pc.rmk: likewise
39858 * conf/powerpc-ieee1275.rmk: likewise
39859 * conf/sparc64-ieee1275.rmk: likewise
39860 * conf/x86_64-efi.rmk: likewise
39861
39862 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
39863
39864 Trim trailing spaces in FAT label and support mtools-like labels
39865
39866 * fs/fat.c (grub_fat_iterate_dir): New function based
39867 on grub_fat_find_dir
39868 (grub_fat_find_dir): use grub_fat_iterate_dir
39869 (grub_fat_label): likewise
39870
39871 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
39872
39873 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
39874 and command.h
39875 remove extraneous kernel_elf_HEADERS
39876
39877 2009-04-04 Bean <bean123ch@gnail.com>
39878
39879 * include/grub/util/misc.h: Add dummy function fsync for mingw.
39880
39881 * util/misc.c: Likewise.
39882
39883 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
39884
39885 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
39886 instead of grub_printf.
39887
39888 2009-04-03 Robert Millan <rmh@aybabtu.com>
39889
39890 * loader/i386/linux.c (grub_linux_setup_video): Fill
39891 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
39892 values from `mode info' structure instead of hardcoded
39893 values.
39894
39895 2009-04-01 Pavel Roskin <proski@gnu.org>
39896
39897 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
39898 unused now.
39899 * genmk.rb: Likewise.
39900 * configure.ac: Likewise.
39901
39902 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
39903
39904 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
39905 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
39906
39907 2009-04-01 David S. Miller <davem@davemloft.net>
39908
39909 * normal/sparc64/setjmp.S: Fix setjmp implementation.
39910 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
39911 (grub_setjmp): Mark with 'returns_twice' attribute.
39912 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
39913 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
39914 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
39915
39916 2009-04-01 Robert Millan <rmh@aybabtu.com>
39917
39918 Reapply fix from 2008-07-28 which was accidentally reverted; also
39919 perform the same fix to a similar check in same function.
39920
39921 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
39922 with the same number are found, just use issue a warning with
39923 grub_dprintf(), as this error has been reported to be non-fatal.
39924
39925 2009-03-31 Pavel Roskin <proski@gnu.org>
39926
39927 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
39928 for cross-compilation.
39929
39930 2009-03-30 Robert Millan <rmh@aybabtu.com>
39931
39932 Fix i386-ieee1275 build.
39933
39934 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
39935 Remove declaration.
39936
39937 2009-03-30 Pavel Roskin <proski@gnu.org>
39938
39939 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
39940 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
39941 zero-terminated, rely only on the strlen value. Fix comparison
39942 of strings differing in length.
39943
39944 2009-03-30 Robert Millan <rmh@aybabtu.com>
39945
39946 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
39947 checking for abi version. Improve error messages on BIOS to notify
39948 user about `linux16' command.
39949
39950 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
39951
39952 Leak fixes
39953
39954 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
39955 in case of collision
39956 * disk/scsi.c (grub_scsi_open): free scsi in case of error
39957
39958 2009-03-29 Robert Millan <rmh@aybabtu.com>
39959
39960 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
39961 set `vid_mode' accordingly.
39962 (grub_linux_boot): Process `vid_mode' and set video mode.
39963
39964 2009-03-29 Robert Millan <rmh@aybabtu.com>
39965
39966 * util/grub.d/10_linux.in (linux_entry): New function.
39967 Factorize generation of Linux boot entries.
39968
39969 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
39970
39971 Make the format of Environment Block plain text. The boot loader
39972 part is not tested well yet.
39973
39974 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
39975 (buffer): Removed.
39976 (envblk): Likewise.
39977 (usage): Remove "info" and "clear". Add "unset". Update the
39978 description of "set", as this does not delete variables any
39979 longer.
39980 (create_envblk_file): Complete rewrite.
39981 (open_envblk_file): Likewise.
39982 (cmd_info): Removed.
39983 (cmd_list): Likewise.
39984 (cmd_set): Likewise.
39985 (cmd_clear): Likewise.
39986 (list_variables): New function.
39987 (write_envblk): Likewise.
39988 (set_variables): Likewise.
39989 (unset_variables): Likewise.
39990 (main): Complete rewrite.
39991
39992 * commands/loadenv.c (buffer): Removed.
39993 (envblk): Likewise.
39994 (open_envblk_file): New function.
39995 (read_envblk_file): Complete rewrite.
39996 (grub_cmd_load_env): Likewise.
39997 (grub_cmd_list_env): Likewise.
39998 (struct blocklist): New struct.
39999 (free_blocklists): New function.
40000 (check_blocklists): Likewise.
40001 (write_blocklists): Likewise.
40002 (grub_cmd_save_env): Complete rewrite.
40003
40004 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
40005 a plain text signature.
40006 (GRUB_ENVBLK_MAXLEN): Removed.
40007 (struct grub_envblk): Complete rewrite.
40008 (grub_envblk_find): Removed.
40009 (grub_envblk_insert): Likewise.
40010 (grub_envblk_open): New prototype.
40011 (grub_envblk_set): Likewise.
40012 (grub_envblk_delete): Put const to VALUE.
40013 (grub_envblk_iterate): Put const to NAME and VALUE.
40014 (grub_envblk_close): New prototype.
40015 (grub_envblk_buffer): New inline function.
40016 (grub_envblk_size): Likewise.
40017
40018 * lib/envblk.c: Include grub/mm.h.
40019 (grub_env_find): Removed.
40020 (grub_envblk_open): New function.
40021 (grub_envblk_close): Likewise.
40022 (escaped_value_len): Likewise.
40023 (find_next_line): Likewise.
40024 (grub_envblk_insert): Removed.
40025 (grub_envblk_set): New function.
40026 (grub_envblk_delete): Complete rewrite.
40027 (grub_envblk_iterate): Likewise.
40028
40029 2009-03-28 Robert Millan <rmh@aybabtu.com>
40030
40031 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
40032 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
40033 variables. Use 16-bit loader.
40034 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
40035 loader.
40036 * kern/i386/loader.S (grub_linux_boot): Rename to ...
40037 (grub_linux16_boot): ... this. Update all users.
40038 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
40039 (grub_linux_boot): ... this. Update all users.
40040
40041 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
40042 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
40043 commands to `linux16' and `initrd16'.
40044 (GRUB_MOD_FINI(linux)): Rename to ...
40045 (GRUB_MOD_FINI(linux16)): ... this.
40046
40047 2009-03-24 Pavel Roskin <proski@gnu.org>
40048
40049 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
40050 not just for compilation.
40051
40052 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
40053
40054 Move multiboot helper out of kernel
40055
40056 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
40057 `loader/i386/multiboot_helper.S'.
40058 * conf/i386-coreboot.rmk: Likewise
40059 * conf/i386-ieee1275.rmk: Likewise
40060
40061 * kern/i386/loader.S: Move multiboot helpers from here...
40062 * loader/i386/multiboot_helper.S: ...moved here
40063 * include/grub/i386/loader.h: Move declarations of multiboot
40064 helpers from here...
40065 * include/grub/i386/multiboot.h: ...moved here
40066 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
40067
40068 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40069
40070 * kern/env.c (grub_env_context_open): Added an argument to specify
40071 whether a new context inherits exported variables from current
40072 one. This is useful when making a sandbox to interpret a config
40073 file.
40074 All callers updated.
40075
40076 * include/grub/env.h (grub_env_context_open): Updated the prototype.
40077
40078 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40079
40080 * kern/env.c (grub_env_context_close): Fix memory leaks.
40081
40082 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40083
40084 * normal/main.c (grub_normal_execute): Added an argument
40085 BATCH to specify if an interactive interface should be provided
40086 after reading a config file.
40087 All callers updated.
40088 (read_command_list): Prevent being executed twice.
40089 (read_fs_list): Likewise.
40090
40091 * include/grub/normal.h (grub_normal_execute): Updated the
40092 prototype.
40093
40094 2009-03-22 Pavel Roskin <proski@gno.org>
40095
40096 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
40097 _start.
40098 * kern/i386/pc/startup.S: Likewise.
40099 * kern/i386/efi/startup.S: Likewise.
40100 * kern/i386/ieee1275/startup.S: Likewise.
40101 * kern/i386/coreboot/startup.S: Likewise.
40102 * kern/x86_64/efi/startup.S: Likewise.
40103
40104 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
40105 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
40106 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
40107
40108 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
40109
40110 Bugfixes in multiboot for bugs uncovered by solaris kernel.
40111
40112 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
40113 limit detection.
40114 Use vaddr of correct segment for entry_point.
40115
40116 2009-03-21 Bean <bean123ch@gmail.com>
40117
40118 * commands/blocklist.c: Add include file <grub/command.h>, remove
40119 <grub/normal.h> and <grub/arg.h>.
40120 (grub_cmd_blocklist): Use the new command interface.
40121 (GRUB_MOD_INIT): Likewise.
40122 (GRUB_MOD_FINI): Likewise.
40123 * commands/boot.c: Likewise.
40124 * commands/cat.c: Likewise.
40125 * commands/cmp.c: Likewise.
40126 * commands/configfile.c: Likewise.
40127 * commands/crc.c: Likewise.
40128 * commands/echo.c: Likewise.
40129 * commands/halt.c: Likewise.
40130 * commands/handler.c: Likewise.
40131 * commands/hdparm.c: Likewise.
40132 * commands/help.c: Likewise.
40133 * commands/hexdump.c: Likewise.
40134 * commands/loadenv.c: Likewise.
40135 * commands/ls.c: Likewise.
40136 * commands/lsmmap.c: Likewise.
40137 * commands/lspci.c: Likewise.
40138 * commands/loadenv.c: Likewise.
40139 * commands/read.c: Likewise.
40140 * commands/reboot.c: Likewise.
40141 * commands/search.c: Likewise.
40142 * commands/sleep.c: Likewise.
40143 * commands/test.c: Likewise.
40144 * commands/usbtest.c: Likewise.
40145 * commands/videotest.c: Likewise.
40146 * commands/i386/cpuid.c: Likewise.
40147 * commands/i386/pc/halt.c: Likewise.
40148 * commands/i386/pc/play.c: Likewise.
40149 * commands/i386/pc/pxecmd.c: Likewise.
40150 * commands/i386/pc/vbeinfo.c: Likewise.
40151 * commands/i386/pc/vbetest.c: Likewise.
40152 * commands/ieee1275/suspend.c: Likewise.
40153 * disk/loopback.c: Likewise.
40154 * font/font_cmd.c: Likewise.
40155 * hello/hello.c: Likewise.
40156 * loader/efi/appleloader.c: Likewise.
40157 * loader/efi/chainloader.c: Likewise.
40158 * loader/i386/bsd.c: Likewise.
40159 * loader/i386/efi/linux.c: Likewise.
40160 * loader/i386/ieee1275/linux.c: Likewise.
40161 * loader/i386/linux.c: Likewise.
40162 * loader/i386/pc/chainloader.c: Likewise.
40163 * loader/i386/pc/linux.c: Likewise.
40164 * loader/powerpc/ieee1275/linux.c: Likewise.
40165 * loader/multiboot_loader.c: Likewise.
40166 * term/gfxterm.c: Likewise.
40167 * term/i386/pc/serial.c: Likewise.
40168 * term/terminfo.c: Likewise.
40169
40170 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
40171 * term/i386/pc/vga.c: Likewise.
40172 * video/readers/jpeg.c: Likewise.
40173 * video/readers/png.c: Likewise.
40174 * video/readers/tga.c: Likewise.
40175
40176 * util/grub-fstest (cmd_loopback): Removed.
40177 (cmd_blocklist): Likewise.
40178 (cmd_ls): Likewise.
40179 (grub_register_command): Likewise.
40180 (grub_unregister_command): Likewise.
40181 (execute_command): Use grub_command_find to locate command and execute
40182 it.
40183
40184 * include/grub/efi/chainloader.h: Removed.
40185 * loader/efi/chainloader_normal.c: Likewise.
40186 * loader/i386/bsd_normal.c: Likewise.
40187 * loader/i386/pc/chainloader_normal.c: Likewise.
40188 * loader/i386/pc/multiboot_normal.c: Likewise.
40189 * loader/linux_normal.c: Likewise.
40190 * loader/multiboot_loader_normal.c: Likewise.
40191 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
40192
40193 * gencmdlist.sh: Scan new registration command grub_register_extcmd
40194 and grub_register_command_p1.
40195
40196 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
40197 kern/command.c, lib/arg.c and commands/extcmd.c.
40198 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
40199 (minicmd_mod_SOURCES): New variable.
40200 (minicmd_mod_CFLAGS): Likewise.
40201 (minicmd_mod_LDFLAGS): Likewise.
40202 (extcmd_mod_SOURCES): Likewise.
40203 (extcmd_mod_CFLAGS): Likewise.
40204 (extcmd_mod_LDFLAGS): Likewise.
40205 (boot_mod_SOURCES): Removed.
40206 (boot_mod_CFLAGS): Likewise.
40207 (boot_mod_LDFLAGS): Likewise.
40208
40209 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
40210 kern/corecmd.c.
40211 (kernel_img_HEADERS): Add command.h.
40212 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
40213 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
40214 and lib/arg.c.
40215 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
40216 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
40217 remove the corresponding normal mode command.
40218 (normal_mod_SOURCES): Remove normal/arg.c.
40219 * conf/i386-coreboot.rmk: Likewise.
40220 * conf/i386-efi.rmk: Likewise.
40221 * conf/i386-ieee1275.rmk: Likewise.
40222 * conf/powerpc-ieee1275.rmk: Likewise.
40223 * conf/x86_64-efi.rmk: Likewise.
40224
40225 * include/grub/arg.h: Move from here ...
40226 * include/grub/lib/arg.h: ... to here.
40227
40228 * normal/arg.c: Move from here ...
40229 * lib/arg.c: ... to here.
40230
40231 * commands/extcmd.c: New file.
40232 * commands/minicmd.c: Likewise.
40233 * include/grub/command.h: Likewise.
40234 * include/grub/extcmd.h: Likewise.
40235 * kern/command.c: Likewise.
40236 * kern/corecmd.c: Likewise.
40237
40238 * kern/list.c (grub_list_iterate): Return int instead of void.
40239 (grub_list_insert): New function.
40240 (grub_prio_list_insert): Likewise.
40241
40242 * kern/rescue.c (grub_rescue_command): Removed.
40243 (grub_rescue_command_list): Likewise.
40244 (grub_rescue_register_command): Likewise.
40245 (grub_rescue_unregister_command): Likewise.
40246 (grub_rescue_cmd_boot): Move to minicmd.c
40247 (grub_rescue_cmd_help): Likewise.
40248 (grub_rescue_cmd_info): Likewise.
40249 (grub_rescue_cmd_boot): Likewise.
40250 (grub_rescue_cmd_testload): Likewise.
40251 (grub_rescue_cmd_dump): Likewise.
40252 (grub_rescue_cmd_rmmod): Likewise.
40253 (grub_rescue_cmd_lsmod): Likewise.
40254 (grub_rescue_cmd_exit): Likewise.
40255 (grub_rescue_print_devices): Moved to corecmd.c.
40256 (grub_rescue_print_files): Likewise.
40257 (grub_rescue_cmd_ls): Likewise.
40258 (grub_rescue_cmd_insmod): Likewise.
40259 (grub_rescue_cmd_set): Likewise.
40260 (grub_rescue_cmd_unset): Likewise.
40261 (attempt_normal_mode): Use grub_command_find to get normal module.
40262 (grub_enter_rescue_mode): Use grub_register_core_commands to register
40263 commands, remove grub_rescue_register_command calls.
40264
40265 * normal/command.c (grub_register_command): Removed.
40266 (grub_unregister_command): Likewise.
40267 (grub_command_find): Likewise.
40268 (grub_iterate_commands): Likewise.
40269 (rescue_command): Likewise.
40270 (export_command): Moved to corecmd.c.
40271 (set_command): Removed.
40272 (unset_command): Likewise.
40273 (insmod_command): Likewise.
40274 (rmmod_command): Likewise.
40275 (lsmod_command): Likewise.
40276 (grub_command_init): Likewise.
40277
40278 * normal/completion.c (iterate_command): Use cmd->prio to check for
40279 active command.
40280 (complete_arguments): Use grub_extcmd_t structure to find options.
40281 (grub_normal_do_completion): Change function grub_iterate_commands to
40282 grub_command_iterate.
40283
40284 * normal/execute.c (grub_script_execute_cmd): No need to parse
40285 argument here.
40286
40287 * normal/main.c (grub_dyncmd_dispatcher): New function.
40288 (read_command_list): Register unload commands as dyncmd.
40289 (grub_cmd_normal): Use new command interface, register rescue,
40290 unregister normal at entry, register normal, unregister rescue at exit.
40291
40292 * include/grub/list.h (grub_list_test_t): New type.
40293 (grub_list_iterate): Return int instead of void.
40294 (grub_list_insert): New function.
40295 (GRUB_AS_NAMED_LIST_P): New macro.
40296 (GRUB_AS_PRIO_LIST): Likewise.
40297 (GRUB_AS_PRIO_LIST_P): Likewise.
40298 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
40299 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
40300 (grub_prio_list): New structure.
40301 (grub_prio_list_insert): New function.
40302 (grub_prio_list_remove): New inline function.
40303
40304 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
40305 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
40306 (GRUB_COMMAND_FLAG_MENU): Likewise.
40307 (GRUB_COMMAND_FLAG_BOTH): Likewise.
40308 (GRUB_COMMAND_FLAG_TITLE): Likewise.
40309 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
40310 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
40311 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
40312 (grub_command): Likewise.
40313 (grub_register_command): Likewise.
40314 (grub_command_find): Likewise.
40315 (grub_iterate_commands): Likewise.
40316 (grub_command_init): Likewise.
40317 (grub_arg_parse): Likewise.
40318 (grub_arg_show_help): Likewise.
40319
40320 * include/grub/rescue.h (grub_rescue_register_command): Removed.
40321 (grub_rescue_unregister_command): Likewise.
40322
40323 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
40324 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
40325 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
40326
40327 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
40328 grub_rescue_cmd_initrd.
40329 * include/grub/i386/loader.h: Likewise.
40330 * include/grub/x86_64/loader.h: Likewise.
40331
40332 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
40333
40334 2009-03-21 Bean <bean123ch@gmail.com>
40335
40336 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
40337 instead of stat in mingw environment.
40338
40339 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
40340
40341 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
40342
40343 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
40344 AC_CONFIG_LINKS.
40345
40346 2009-03-21 Bean <bean123ch@gmail.com>
40347
40348 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
40349 out of range error.
40350
40351 2009-03-18 Michel Dänzer <michel@daenzer.net>
40352
40353 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
40354 checking inode flags for EXT4_EXTENTS_FLAG.
40355
40356 2009-03-18 Robert Millan <rmh@aybabtu.com>
40357
40358 * loader/i386/linux.c: Include `<grub/video.h>' and
40359 `<grub/i386/pc/vbe.h>'..
40360 (grub_linux_setup_video): New function. Loosely based on the EFI one.
40361 (grub_linux32_boot): Attempt to configure video settings with
40362 grub_linux_setup_video().
40363 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
40364 to avoid grub_console_fini() which would step out of graphical mode
40365 unconditionally.
40366
40367 2009-03-14 Robert Millan <rmh@aybabtu.com>
40368
40369 Fix build on powerpc.
40370 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
40371
40372 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
40373
40374 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
40375 background image command.
40376
40377 2009-03-12 Colin D Bennett <colin@gibibit.com>
40378
40379 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
40380 (grub_gfxterm_putchar): Extract pairs of identical calls to
40381 draw_cursor out of conditional blocks.
40382
40383 2009-03-11 Pavel Roskin <proski@gnu.org>
40384
40385 * fs/hfs.c (grub_hfs_strncasecmp): New function.
40386 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
40387
40388 2009-03-11 Robert Millan <rmh@aybabtu.com>
40389
40390 * loader/i386/multiboot_elfxx.c
40391 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
40392
40393 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
40394
40395 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
40396 `kern/handler.c'.
40397
40398 2009-03-11 Robert Millan <rmh@aybabtu.com>
40399
40400 * loader/i386/multiboot.c (code_size): New variable.
40401 (grub_multiboot): Define offsets by adding to `code_size' rather
40402 than subtracting from `grub_multiboot_payload_size'. Provide
40403 4-byte alignment to MBI and others by increasing
40404 `boot_loader_name_length' appropriately.
40405
40406 * loader/i386/multiboot_elfxx.c
40407 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
40408
40409 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
40410
40411 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
40412 `fs/ext2.c'.
40413
40414 2009-03-08 Robert Millan <rmh@aybabtu.com>
40415
40416 Make loader/i386/linux.c usable on i386-pc again.
40417
40418 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
40419 memory to heap.
40420 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
40421 `#error' stanza.
40422
40423 2009-03-07 Bean <bean123ch@gmail.com>
40424
40425 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
40426 allocation.
40427
40428 2009-03-06 Robert Millan <rmh@aybabtu.com>
40429
40430 Fix display issue on terminals with screen size other than 80x25
40431 (e.g. gfxterm with resolution higher than 640x480).
40432
40433 * normal/main.c (grub_normal_init_page): Display title text in a
40434 position relative to the center of the terminal instead of relying
40435 on a hardcoded offset.
40436
40437 2009-03-04 Robert Millan <rmh@aybabtu.com>
40438
40439 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
40440 installed.
40441
40442 * Makefile.in (host_kernel): New variable.
40443 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
40444 scripts instead of just the windows one.
40445 * configure.ac: Initialize and AC_SUBST `host_kernel'.
40446
40447 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40448
40449 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
40450 `kern/handler.c'.
40451 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40452 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40453 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40454 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40455 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40456 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40457
40458 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40459
40460 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
40461 or if there's no space for the disk label and print the partition number on a
40462 invalid magic.
40463
40464 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40465
40466 * util/misc.c: Include <time.h>.
40467 (grub_millisleep): New function.
40468
40469 2009-03-04 Bean <bean123ch@gmail.com>
40470
40471 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
40472 another option -mno-red-zone.
40473
40474 * commands/handler.c: Change module description.
40475
40476 * kern/handler.c: Add missing space at the end of description line.
40477
40478 * kern/list.c: Likewise.
40479
40480 2009-03-03 Robert Millan <rmh@aybabtu.com>
40481
40482 Move more components to the relocation area, and fix mbi pointer
40483 handling to use the destination rather than the origin (thanks to
40484 Vladimir Serbinenko for spotting).
40485
40486 * loader/i386/multiboot.c (mbi_dest): New variable.
40487 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
40488 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
40489 relocation area.
40490
40491 2009-03-01 Bean <bean123ch@gmail.com>
40492
40493 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
40494 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
40495 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
40496 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
40497
40498 * loader/i386/efi/linux.c (acpi_guid): New variable.
40499 (acpi_guid): Likewise.
40500 (EBDA_SEG_ADDR): New constant.
40501 (LOW_MEM_ADDR): Likewise.
40502 (FAKE_EBDA_SEG): Likewise.
40503 (fake_bios_data): New function.
40504 (grub_linux_boot): Call fake_bios_data.
40505
40506 2009-03-01 Bean <bean123ch@gmail.com>
40507
40508 * commands/terminal.c: Removed.
40509
40510 * commands/handler.c: New file.
40511
40512 * include/grub/list.h: Likewise.
40513
40514 * include/grub/handler.h: Likewise.
40515
40516 * kern/list.c: Likewise.
40517
40518 * kern/handler.c: Likewise.
40519
40520 * kern/term.h: Include header file <grub/handler.h>.
40521 (grub_term_input): Move next field to the beginning.
40522 (grub_term_output): Likewise.
40523 (grub_term_input_class): New variable.
40524 (grub_term_output_class): Likewise.
40525 (grub_term_register_input): Changed to inline function.
40526 (grub_term_register_output): Likewise.
40527 (grub_term_unregister_input): Likewise.
40528 (grub_term_unregister_output): Likewise.
40529 (grub_term_set_current_input): Likewise.
40530 (grub_term_set_current_output): Likewise.
40531 (grub_term_get_current_input): Likewise.
40532 (grub_term_get_current_output): Likewise.
40533 (grub_term_iterate_input): Removed.
40534 (grub_term_iterate_output): Likewise.
40535
40536 * kern/term.c (grub_term_list_input): Removed.
40537 (grub_term_list_output): Likewise.
40538 (grub_term_input_class): New variable.
40539 (grub_term_output_class): Likewise.
40540 (grub_cur_term_input): Change variable as macro.
40541 (grub_cur_term_output): Likewise.
40542 (grub_term_register_input): Removed.
40543 (grub_term_register_output): Likewise.
40544 (grub_term_unregister_input): Likewise.
40545 (grub_term_unregister_output): Likewise.
40546 (grub_term_set_current_input): Likewise.
40547 (grub_term_set_current_output): Likewise.
40548 (grub_term_iterate_input): Likewise.
40549 (grub_term_iterate_output): Likewise.
40550 (grub_term_get_current_input): Likewise.
40551 (grub_term_get_current_output): Likewise.
40552
40553 * util/grub-editenv.c: Include header file <grub/handler.h>.
40554 (grub_term_get_current_input): Removed.
40555 (grub_term_get_current_output): Likewise.
40556 (grub_term_input_class): New variable.
40557 (grub_term_output_class): Likewise.
40558
40559 * util/grub-fstest.c (grub_term_get_current_input): Removed.
40560 (grub_term_get_current_output): Likewise.
40561 (grub_term_input_class): New variable.
40562 (grub_term_output_class): Likewise.
40563
40564 * util/grub-probe.c (grub_term_get_current_input): Removed.
40565 (grub_term_get_current_output): Likewise.
40566 (grub_term_input_class): New variable.
40567 (grub_term_output_class): Likewise.
40568
40569 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
40570 (grub_term_get_current_output): Likewise.
40571 (grub_term_input_class): New variable.
40572 (grub_term_output_class): Likewise.
40573
40574 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
40575 (terminal_mod_SOURCES): Likewise.
40576 (terminal_mod_CFLAGS): Likewise.
40577 (terminal_mod_LDFLAGS): Likewise.
40578
40579 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
40580 handler.c.
40581 (kernel_img_SOURCES): Add list.c and handler.c.
40582 (kernel_img_HEADERS): Add list.h and handler.h.
40583
40584 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40585 handler.c.
40586 (kernel_mod_SOURCES): Add list.c and handler.c.
40587 (kernel_mod_HEADERS): Add list.h and handler.h.
40588
40589 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
40590 handler.c.
40591 (kernel_elf_SOURCES): Add list.c and handler.c.
40592 (kernel_elf_HEADERS): Add list.h and handler.h.
40593
40594 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40595 handler.c.
40596 (kernel_elf_SOURCES): Add list.c and handler.c.
40597 (kernel_elf_HEADERS): Add list.h and handler.h.
40598
40599 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40600 handler.c.
40601 (kernel_mod_SOURCES): Add list.c and handler.c.
40602 (kernel_mod_HEADERS): Add list.h and handler.h.
40603
40604 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40605 handler.c.
40606 (kernel_elf_SOURCES): Add list.c and handler.c.
40607 (kernel_elf_HEADERS): Add list.h and handler.h.
40608
40609 2009-02-27 Robert Millan <rmh@aybabtu.com>
40610
40611 Factorize elf32 / elf64 code in Multiboot loader. This will
40612 prevent it from getting out of sync again.
40613
40614 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
40615 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
40616 grub_multiboot_load_elf64): Move from here ...
40617 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
40618 grub_multiboot_load_elf): ... to here (new file).
40619
40620 2009-02-27 Robert Millan <rmh@aybabtu.com>
40621
40622 * util/grub.d/10_linux.in: Rename "single-user mode" to
40623 "recovery mode".
40624
40625 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
40626
40627 Don't leak in SCSI code.
40628 * disk/scsi.c (grub_scsi_close): free `scsi'.
40629
40630 2009-02-27 Robert Millan <rmh@aybabtu.com>
40631
40632 * loader/i386/pc/multiboot.c: Move from here ...
40633 * loader/i386/multiboot.c: ... to here. Update all users.
40634
40635 2009-02-27 Robert Millan <rmh@aybabtu.com>
40636
40637 Patch from Alexandre Bique <bique.alexandre@gmail.com>
40638 * util/i386/pc/grub-setup.c (setup): Fix directory path.
40639
40640 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
40641
40642 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
40643 b-tree.
40644
40645 2009-02-27 Robert Millan <rmh@aybabtu.com>
40646
40647 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
40648 `0x' qualifier as 0 when base is specified as parameter).
40649
40650 2009-02-24 Bean <bean123ch@gmail.com>
40651
40652 * configure.ac: Check for -mcmodel=large in x86_64 target.
40653
40654 * include/grub/efi/api.h (efi_call_10): New macro.
40655 (efi_wrap_10): New function.
40656
40657 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
40658 (GRUB_PE32_REL_BASED_HIGH): Likewise.
40659 (GRUB_PE32_REL_BASED_LOW): Likewise.
40660 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
40661 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
40662 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
40663 (GRUB_PE32_REL_BASED_SECTION): Likewise.
40664 (GRUB_PE32_REL_BASED_REL): Likewise.
40665 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
40666 (GRUB_PE32_REL_BASED_DIR64): Likewise.
40667 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
40668
40669 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
40670 issue.
40671
40672 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
40673 (efi_wrap_10): New function.
40674
40675 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
40676
40677 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
40678 MB/MBP model (NV chipset).
40679 (devdata_devs): Add devpath_5 to the list.
40680
40681 * load/i386/efi/linux.c (video_base): Remove variable.
40682 (RGB_MASK): New macro.
40683 (RGB_MAGIC): Likewise.
40684 (LINE_MIN): Likewise.
40685 (LINE_MAX): Likewise.
40686 (FBTEST_STEP): Likewise.
40687 (FBTEST_COUNT): Likewise.
40688 (fb_list): New variable.
40689 (grub_find_video_card): Remove function.
40690 (find_framebuf): New function.
40691 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
40692 line length.
40693
40694 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
40695 problem for x86_64.
40696
40697 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
40698
40699 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
40700
40701 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
40702 coding tool name.
40703
40704 2009-02-22 Robert Millan <rmh@aybabtu.com>
40705
40706 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
40707 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
40708 in our relocation, instead of using it directly from heap. Also
40709 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
40710
40711 2009-02-21 Robert Millan <rmh@aybabtu.com>
40712
40713 Implement USB keyboard support (based on patch by Marco Gerards)
40714
40715 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
40716 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
40717 (usb_keyboard_mod_LDFLAGS): New variables.
40718
40719 * term/usb_keyboard.c: New file.
40720
40721 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
40722
40723 Corrected wrong declaration
40724
40725 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
40726
40727 2009-02-14 Christian Franke <franke@computer.org>
40728
40729 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
40730 (grub_lspci_iter): Print class code and programming interface byte.
40731
40732 2009-02-14 Christian Franke <franke@computer.org>
40733
40734 * gendistlist.sh: Ignore `.svn' directories.
40735
40736 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
40737
40738 * fs/fat.c: Add 2009 to Copyright line.
40739
40740 2009-02-14 Christian Franke <franke@computer.org>
40741
40742 * commands/hdparm.c: New file. Provides `hdparm' command
40743 which sends ATA commands via grub_disk_ata_pass_through ().
40744
40745 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
40746
40747 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
40748 and <grub/cpu/io.h> to include/grub/ata.h.
40749 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
40750 (GRUB_CDROM_SECTOR_SIZE): Remove.
40751 (GRUB_ATA_*): Move to include/grub/ata.h.
40752 (GRUB_ATAPI_*): Likewise.
40753 (enum grub_ata_commands): Likewise.
40754 (enum grub_ata_timeout_milliseconds): Likewise.
40755 (struct grub_ata_device): Likewise.
40756 (grub_ata_regset): Likewise.
40757 (grub_ata_regget): Likewise.
40758 (grub_ata_regset2): Likewise.
40759 (grub_ata_regget2): Likewise.
40760 (grub_ata_check_ready): Likewise.
40761 (grub_ata_wait_not_busy): Remove static, exported in
40762 include/grub/ata.h.
40763 (grub_ata_wait_drq): Likewise.
40764 (grub_ata_pio_read): Likewise.
40765
40766 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
40767 function for hdparm.mod.
40768
40769 * include/grub/ata.h: New file, contains declarations from
40770 disk/ata.c.
40771 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
40772
40773 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
40774 (grub_disk_ata_pass_through): New exported variable.
40775
40776 * kern/disk.c (grub_disk_ata_pass_through): New variable.
40777
40778 2009-02-13 Colin D Bennett <colin@gibibit.com>
40779
40780 Support multiple fallback entries, and provide an API to support
40781 executing default+fallback menu entries. Renamed the `terminal' menu
40782 viewer to `text'.
40783
40784 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
40785 variable declaration.
40786 (grub_menu_execute_callback): New structure declaration.
40787 (grub_menu_execute_callback_t): New typedef.
40788 (grub_menu_execute_with_fallback): New function declaration.
40789 (grub_menu_get_entry): Likewise.
40790 (grub_menu_get_timeout): Likewise.
40791 (grub_menu_set_timeout): Likewise.
40792
40793 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
40794
40795 * normal/menu.c (grub_wait_after_message): Moved to
40796 `normal/menu_text.c'.
40797 (draw_border): Likewise.
40798 (print_message): Likewise.
40799 (print_entry): Likewise.
40800 (print_entries): Likewise.
40801 (grub_menu_init_page): Likewise.
40802 (get_entry_number): Likewise.
40803 (print_timeout): Likewise.
40804 (run_menu): Likewise.
40805 (grub_menu_execute_entry): Likewise.
40806 (show_text_menu): Likewise.
40807 (get_and_remove_first_entry_number): New function.
40808 (grub_menu_execute_with_fallback): Likewise.
40809 (get_entry): Renamed to ...
40810 (grub_menu_get_entry): .. this and made it global.
40811 (get_timeout): Renamed to ...
40812 (grub_menu_get_timeout): ... this and made it global.
40813 (set_timeout): Renamed to ...
40814 (grub_menu_set_timeout): ... this and made it global.
40815 (grub_normal_terminal_menu_viewer): Renamed to ...
40816 (grub_normal_text_menu_viewer): ... this.
40817
40818 * normal/menu_text.c: New file. Extracted text-menu-specific code
40819 from normal/menu.c.
40820
40821 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
40822 (normal_mod_SOURCES): Likewise.
40823
40824 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40825 (normal_mod_SOURCES): Likewise.
40826
40827 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40828 (normal_mod_SOURCES): Likewise.
40829
40830 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
40831 (normal_mod_SOURCES): Likewise.
40832
40833 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40834 (normal_mod_SOURCES): Likewise.
40835
40836 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40837 (normal_mod_SOURCES): Likewise.
40838
40839 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40840 (normal_mod_SOURCES): Likewise.
40841
40842 2009-02-11 Robert Millan <rmh@aybabtu.com>
40843
40844 * util/grub.d/00_header.in: Update old reference to `font' command.
40845
40846 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
40847
40848 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
40849
40850 Based on patch from Javier Martín.
40851
40852 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
40853
40854 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
40855 to avoid false positives with FAT.
40856 (grub_fstest_SOURCES): Likewise.
40857 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
40858 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40859 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40860 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40861 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40862 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40863
40864 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
40865
40866 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
40867 bpb.version_specific.fat12_or_fat16.fstype and
40868 bpb.version_specific.fat32.fstype.
40869
40870 2009-02-08 Robert Millan <rmh@aybabtu.com>
40871
40872 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
40873
40874 2009-02-08 Robert Millan <rmh@aybabtu.com>
40875
40876 * Makefile.in (host_os, host_cpu): New variables.
40877 (target_os): Remove. Update all users.
40878
40879 2009-02-08 Marco Gerards <marco@gnu.org>
40880
40881 * Makefile.in (enable_grub_emu_usb): New variable.
40882 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
40883 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
40884 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
40885 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
40886 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
40887 `usbtest.mod' and `usbms.mod'.
40888 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
40889 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
40890 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
40891 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
40892 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
40893 variables.
40894
40895 * disk/usbms.c: New file.
40896
40897 * include/grub/usb.h: Likewise.
40898
40899 * include/grub/usbtrans.h: Likewise.
40900
40901 * include/grub/usbdesc.h: Likewise.
40902
40903 * bus/usb/usbtrans.c: Likewise.
40904
40905 * bus/usb/ohci.c: Likewise.
40906
40907 * bus/usb/uhci.c: Likewise.
40908
40909 * bus/usb/usbhub.c: Likewise.
40910
40911 * bus/usb/usb.c: Likewise.
40912
40913 * commands/usbtest.c: Likewise.
40914
40915 * util/usb.c: Likewise.
40916
40917 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
40918
40919 * configure.ac: Test for libusb presence.
40920
40921 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
40922
40923 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
40924
40925 * kern/mm.c: Add more comments.
40926
40927 2009-02-08 Robert Millan <rmh@aybabtu.com>
40928
40929 Patch from Javier Martín.
40930 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
40931 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
40932
40933 2009-02-08 Robert Millan <rmh@aybabtu.com>
40934
40935 * fs/cpio.c: Split tar functionality to ...
40936 * fs/tar.c: ... here (new file). Update all users.
40937
40938 2009-02-07 Robert Millan <rmh@aybabtu.com>
40939
40940 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
40941 backward-incompatible features.
40942
40943 Based on patch from Javier Martín, with some adjustments.
40944
40945 2009-02-07 Michael Scherer <misc@mandriva.org>
40946
40947 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
40948
40949 2009-02-07 Robert Millan <rmh@aybabtu.com>
40950
40951 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
40952 position of `disk/lvm.c' to ensure grub_init_all() always picks it
40953 after the RAID stuff.
40954
40955 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
40956
40957 Fixes problem when running vbetest command as reported by
40958 Vladimir Serbinenko <phcoder@gmail.com>.
40959
40960 * (grub_vbe_set_video_mode): Fixed problem with text modes.
40961
40962 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
40963
40964 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
40965 /dev/md/NpN style mdraid devices.
40966
40967 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
40968
40969 * util/unifont2pff.rb: Remove.
40970
40971 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
40972
40973 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
40974 `#'.
40975
40976 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
40977
40978 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
40979 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40980 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40981 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40982 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40983 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40984 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40985
40986 2009-02-02 Christian Franke <franke@computer.org>
40987
40988 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
40989
40990 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
40991
40992 * INSTALL: Note that we now require at least autoconf 2.59 and
40993 that LZO is optional.
40994
40995 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
40996
40997 Base on patch on bug #24154 created by Tomas Tintera
40998 <trosos@seznam.cz>.
40999
41000 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
41001
41002 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41003
41004 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
41005 <bero@arklinux.org>.
41006
41007 * normal/parser.y (script_init): Add missing semicolon.
41008
41009 2009-01-31 Colin D Bennett <colin@gibibit.com>
41010
41011 * normal/main.c: Add include to grub/menu_viewer.h.
41012 (free_menu_entry_classes): Added.
41013 (grub_normal_menu_addentry): Added class property handling.
41014 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
41015 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
41016
41017 * normal/menu_viewer.c: New file.
41018
41019 * normal/menu.c (run_menu_entry): Renamed to ...
41020 (grub_menu_execute_entry): ... this and made it as global.
41021 (grub_menu_run): Renamed to ...
41022 (show_text_menu): ... this and made it local.
41023 (show_text_menu): Adapt to new function names.
41024 (grub_normal_terminal_menu_viewer): New global variable.
41025
41026 * include/grub/menu.h: New file.
41027
41028 * include/grub/menu_viewer.h: New file.
41029
41030 * include/grub/normal.h: Added include to grub/menu.h.
41031 (grub_menu_entry): Moved to include/grub/menu.h.
41032 (grub_menu_entry_t): Likewise.
41033 (grub_menu): Likewise.
41034 (grub_menu_t): Likewise.
41035 (grub_normal_terminal_menu_viewer): Added.
41036 (grub_menu_execute_entry): Likewise.
41037 (grub_menu_run): Removed.
41038
41039 * DISTLIST: Added include/grub/menu.h.
41040 Added include/grub/menu_viewer.h.
41041 Added normal/menu_viewer.c.
41042
41043 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
41044
41045 * normal/execute.c (grub_script_execute_menuentry): Changed to use
41046 arglist for menutitle arguments.
41047
41048 * normal/main.c (grub_normal_menu_addentry): Likewise.
41049
41050 * normal/parser.y (menuentry): Likewise.
41051
41052 * normal/script.c (grub_script_create_cmdmenu): Likewise.
41053
41054 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
41055 (grub_script_create_cmdmenu): Likewise.
41056
41057 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
41058
41059 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
41060 changes.
41061
41062 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
41063
41064 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
41065
41066 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
41067
41068 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41069
41070 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41071
41072 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41073
41074 2009-01-30 Christian Franke <franke@computer.org>
41075
41076 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
41077 in option help text.
41078
41079 2009-01-27 Pavel Roskin <proski@gnu.org>
41080
41081 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
41082
41083 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41084
41085 * commands/lsmmap.c: Add include to grub/machine/memory.h.
41086
41087 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
41088
41089 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
41090 unregister function.
41091
41092 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41093
41094 * disk/scsi.c (grub_scsi_read): Fix sign problem.
41095
41096 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
41097
41098 * util/grub-mkfont.c (usage): Fix typo.
41099
41100 * util/elf/grub-mkimage.c (load_modules): Fix warning.
41101
41102 2009-01-26 Daniel Mierswa <impulze@impulze.org>
41103
41104 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
41105
41106 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
41107
41108 * kern/misc.c (grub_strcasecmp): New function.
41109 (grub_strcasecmp): Use grub_size_t instead of int for length.
41110 Fix return value.
41111 * include/grub/misc.h: Update function prototypes.
41112
41113 2009-01-26 Robert Millan <rmh@aybabtu.com>
41114
41115 * configure.ac: Fix cross-compilation check.
41116
41117 2009-01-22 Christian Franke <franke@computer.org>
41118
41119 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
41120 (precision) digit string. Allow `.format2' without `format1' (width).
41121 Limit input chars for `%s' output to `format2' if specified. This is
41122 compatible with standard printf ().
41123
41124 2009-01-22 Christian Franke <franke@computer.org>
41125
41126 * disk/ata.c (grub_ata_wait_status): Replace by ...
41127 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
41128 other status bits may be invalid while BSY is asserted.
41129 (grub_ata_check_ready): New function.
41130 (grub_ata_cmd): Removed.
41131 (grub_ata_wait_drq): New function.
41132 (grub_ata_strncpy): Remove inline.
41133 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
41134 and error check now done by grub_ata_wait_drq ().
41135 (grub_ata_pio_write): Likewise.
41136 (grub_atapi_identify): Set DEV before check for !BSY. Use
41137 grub_ata_wait_drq () to wait for data.
41138 (grub_ata_device_initialize): Add status register check to
41139 detect missing SATA slave devices. Add debug messages.
41140 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
41141 (grub_atapi_packet): Set DEV before check for !BSY. Replace
41142 transfer loop by grub_ata_pio_write ().
41143 (grub_ata_identify): Set DEV before check for !BSY. Use
41144 grub_ata_wait_drq () to wait for data.
41145 (grub_ata_setaddress): Set DEV before check for !BSY.
41146 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
41147 read/write in one loop. Fix invalid command on write. Fix incomplete
41148 command on (size % batch) == 0. Add missing error check after write of
41149 last block. Add debug messages.
41150 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
41151
41152 2009-01-19 Christian Franke <franke@computer.org>
41153
41154 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
41155 (GRUB_ATAPI_IREASON_*): Likewise.
41156 (grub_ata_pio_write): Fix timeout error return.
41157 (grub_atapi_identify): Add grub_ata_wait () after cmd.
41158 (grub_atapi_wait_drq): New function.
41159 (grub_atapi_packet): New parameter `size'.
41160 Use grub_atapi_wait_drq () and direct write instead of
41161 grub_ata_pio_write ().
41162 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
41163 reads the number of bytes requested by the device for each DRQ
41164 assertion.
41165 (grub_atapi_write): Remove old implementation, return not
41166 implemented instead.
41167
41168 2009-01-19 Christian Franke <franke@computer.org>
41169
41170 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
41171 of 512 to calculate data size.
41172 (grub_scsi_read12): Likewise.
41173 (grub_scsi_write10): Likewise.
41174 (grub_scsi_write12): Likewise.
41175 (grub_scsi_read): Adjust size according to blocksize.
41176 Add checks for invalid blocksize and unaligned transfer.
41177
41178 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
41179
41180 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
41181
41182 * term/gfxterm.c (write_char): Fix background rendering for wide
41183 width glyphs.
41184
41185 2009-01-19 Robert Millan <rmh@aybabtu.com>
41186
41187 * config.guess: Update to latest version from config git.
41188 * config.sub: Likewise.
41189
41190 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
41191
41192 * Makefile.in: Change font compilation to use new grub-mkfont instead
41193 of java version.
41194
41195 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
41196 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41197 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41198 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41199 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41200 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41201 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41202 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41203 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41204
41205 2009-01-16 Christian Franke <franke@computer.org>
41206
41207 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
41208 (enum grub_ata_timeout_milliseconds): New enum.
41209 (grub_ata_wait_status): Add parameter milliseconds.
41210 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
41211 recovery from timed-out commands.
41212 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
41213 return grub_errno instead of REG_ERROR.
41214 (grub_ata_pio_write): Add parameter milliseconds.
41215 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
41216 Pass milliseconds to grub_ata_wait_status () and
41217 grub_ata_pio_read ().
41218 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
41219 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
41220 grub_ata_wait_status (). Fix IDENTIFY timeout check.
41221 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
41222 It is not suitable for device detection, because DEV bit is ignored,
41223 the command may run too long, and not all devices set the signature
41224 properly.
41225 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
41226 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
41227 Fix device selection, DEV bit must be set first to address the registers
41228 of the correct device.
41229 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
41230 grub_ata_pio_read/write ().
41231 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
41232 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
41233
41234 2009-01-13 Carles Pina i Estany <carles@pina.cat>
41235
41236 * util/grub-editenv.c (main): Use fseeko(), not fseek().
41237
41238 2009-01-13 Bean <bean123ch@gmail.com>
41239
41240 * util/grub-mkfont.c (write_font): forget to remove some debug code.
41241
41242 2009-01-13 Bean <bean123ch@gmail.com>
41243
41244 * Makefile.in: (enable_grub_mkfont): New variable.
41245 (freetype_cflags): Likewise.
41246 (freetype_libs): Likewise.
41247
41248 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
41249 (grub_mkfont_SOURCES): New variable.
41250 (grub_mkfont_CFLAGS): Likewise.
41251 (grub_mkfont_LDFLAGS): Likewise.
41252
41253 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
41254 library if `--enable-grub-mkfont' is requested.
41255 (enable_grub_mkfont): New variable.
41256 (freetype_cflags): Likewise.
41257 (freetype_libs): Likewise.
41258
41259 * util/grub-mkfont.c: New file.
41260
41261 2009-01-12 Christian Franke <franke@computer.org>
41262
41263 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
41264 mode check. Fix setting of compat_use[].
41265
41266 2009-01-10 Robert Millan <rmh@aybabtu.com>
41267
41268 Update a few copyright years which we forgot to do in 2008 (only for
41269 files whose changes made in 2008 were copyright-significant)
41270
41271 * Makefile.in: Add 2008 to Copyright line.
41272 * disk/ieee1275/ofdisk.c: Likewise.
41273 * disk/efi/efidisk.c: Likewise.
41274 * kern/dl.c: Likewise.
41275 * kern/sparc64/ieee1275/init.c: Likewise.
41276 * kern/mm.c: Likewise.
41277 * kern/efi/mm.c: Likewise.
41278 * boot/i386/pc/boot.S: Likewise.
41279 * genfslist.sh: Likewise.
41280 * fs/iso9660.c: Likewise.
41281 * fs/hfs.c: Likewise.
41282 * fs/jfs.c: Likewise.
41283 * fs/minix.c: Likewise.
41284 * fs/ufs.c: Likewise.
41285 * gensymlist.sh.in: Likewise.
41286 * genkernsyms.sh.in: Likewise.
41287 * include/grub/misc.h: Likewise.
41288 * include/grub/types.h: Likewise.
41289 * include/grub/symbol.h: Likewise.
41290 * include/grub/elf.h: Likewise.
41291 * include/grub/kernel.h: Likewise.
41292 * include/grub/disk.h: Likewise.
41293 * include/grub/dl.h: Likewise.
41294 * include/grub/i386/linux.h: Likewise.
41295 * include/grub/i386/pc/biosdisk.h: Likewise.
41296 * include/grub/efi/api.h: Likewise.
41297 * include/grub/efi/pe32.h: Likewise.
41298 * include/grub/util/misc.h: Likewise.
41299 * normal/execute.c: Likewise.
41300 * normal/arg.c: Likewise.
41301 * normal/completion.c: Likewise.
41302 * normal/lexer.c: Likewise.
41303 * normal/parser.y: Likewise.
41304 * normal/misc.c: Likewise.
41305 * commands/i386/pc/vbeinfo.c: Likewise.
41306 * commands/hexdump.c: Likewise.
41307 * commands/terminal.c: Likewise.
41308 * commands/ls.c: Likewise.
41309 * commands/help.c: Likewise.
41310 * partmap/pc.c: Likewise.
41311 * loader/efi/chainloader.c: Likewise.
41312 * loader/multiboot_loader.c: Likewise.
41313 * loader/i386/pc/multiboot2.c: Likewise.
41314 * term/efi/console.c: Likewise.
41315 * term/i386/pc/serial.c: Likewise.
41316 * util/lvm.c: Likewise.
41317 * util/console.c: Likewise.
41318 * util/i386/efi/grub-mkimage.c: Likewise.
41319 * util/raid.c: Likewise.
41320
41321 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
41322
41323 * commands/videotest.c: Removed include to grub/machine/memory.h.
41324
41325 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
41326 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
41327 (video_mod_SOURCES): Removed.
41328 (video_mod_CFLAGS): Likewise.
41329 (video_mod_LDFLAGS): Likewise.
41330 (gfxterm_mod_SOURCES): Likewise.
41331 (gfxterm_mod_CFLAGS): Likewise.
41332 (gfxterm_mod_LDFLAGS): Likewise.
41333 (videotest_mod_SOURCES): Likewise.
41334 (videotest_mod_CFLAGS): Likewise.
41335 (videotest_mod_LDFLAGS): Likewise.
41336 (bitmap_mod_SOURCES): Likewise.
41337 (bitmap_mod_CFLAGS): Likewise.
41338 (bitmap_mod_LDFLAGS): Likewise.
41339 (tga_mod_SOURCES): Likewise.
41340 (tga_mod_CFLAGS): Likewise.
41341 (tga_mod_LDFLAGS): Likewise.
41342 (jpeg_mod_SOURCES): Likewise.
41343 (jpeg_mod_CFLAGS): Likewise.
41344 (jpeg_mod_LDFLAGS): Likewise.
41345 (png_mod_SOURCES): Likewise.
41346 (png_mod_CFLAGS): Likewise.
41347 (png_mod_LDFLAGS): Likewise.
41348
41349 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
41350 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
41351 (video_mod_SOURCES): Added.
41352 (video_mod_CFLAGS): Likewise.
41353 (video_mod_LDFLAGS): Likewise.
41354 (videotest_mod_SOURCES): Likewise.
41355 (videotest_mod_CFLAGS): Likewise.
41356 (videotest_mod_LDFLAGS): Likewise.
41357 (bitmap_mod_SOURCES): Likewise.
41358 (bitmap_mod_CFLAGS): Likewise.
41359 (bitmap_mod_LDFLAGS): Likewise.
41360 (tga_mod_SOURCES): Likewise.
41361 (tga_mod_CFLAGS): Likewise.
41362 (tga_mod_LDFLAGS): Likewise.
41363 (jpeg_mod_SOURCES): Likewise.
41364 (jpeg_mod_CFLAGS): Likewise.
41365 (jpeg_mod_LDFLAGS): Likewise.
41366 (png_mod_SOURCES): Likewise.
41367 (png_mod_CFLAGS): Likewise.
41368 (png_mod_LDFLAGS): Likewise.
41369 (gfxterm_mod_SOURCES): Likewise.
41370 (gfxterm_mod_CFLAGS): Likewise.
41371 (gfxterm_mod_LDFLAGS): Likewise.
41372
41373 * term/gfxterm.c: Removed include to grub/machine/memory.h,
41374 grub/machine/console.h.
41375
41376 2009-01-04 Jerone Young <jerone@gmail.com>
41377
41378 Make on screen instructions clearer
41379
41380 Based on patch created by Jidanni <jidanni@jidanni.org>
41381
41382 * normal/menu.c: print clearer instructions on the screen
41383
41384 2009-01-02 Colin D Bennett <colin@gibibit.com>
41385
41386 New font engine.
41387
41388 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
41389 build system and fixed gfxterm.c to work with different sized fonts.
41390
41391 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
41392
41393 * configure: Re-generated.
41394
41395 * DISTLIST: Removed font/manager.c.
41396 Added font/font.c.
41397 Added font/font_cmd.c.
41398
41399 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
41400 compilation.
41401
41402 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
41403
41404 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
41405
41406 * kern/term.c: Changed users of grub_utf8_to_ucs4.
41407
41408 * normal/menu.c: Likewise.
41409
41410 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
41411 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
41412
41413 * include/grub/font.h: Replaced with new file.
41414
41415 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
41416 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
41417 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
41418 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
41419 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
41420 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
41421 fg_red, fg_green, fg_blue, fg_alpha.
41422 (grub_video_adapter): Removed blit_glyph.
41423 (grub_video_blit_glyph): Removed.
41424
41425 * font/manager.c: Removed file.
41426
41427 * font/font.c: New file.
41428
41429 * font/font_cmd.c: Likewise.
41430
41431 * video/video.c (grub_video_blit_glyph): Removed.
41432
41433 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
41434 (grub_video_vbe_map_rgba): Likewise.
41435 (grub_video_vbe_unmap_color_int): Likewise.
41436 (grub_video_vbe_blit_glyph): Removed.
41437 (grub_video_vbe_adapter): Removed blit_glyph.
41438
41439 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
41440 (get_pixel): Likewise.
41441 (set_pixel): Likewise.
41442
41443 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
41444
41445 * term/gfxterm.c: Adapted to new font engine.
41446
41447 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
41448
41449 * term/i386/pc/vga.c: Likewise.
41450
41451 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
41452
41453 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41454
41455 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41456
41457 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41458
41459 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41460
41461 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41462
41463 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41464
41465 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41466
41467 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41468
41469 * util/grub.d/00_header.in: Changed to use new loadfont command.
41470
41471 * util/grub-mkconfig_lib.in: Changed font extension.
41472
41473 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
41474
41475 * util/getroot.c (grub_util_get_grub_dev): Add support for
41476 /dev/md/dNNpNN style partitionable mdraid devices.
41477
41478 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
41479
41480 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
41481 at a time limit of the PXE TFTP API correctly.
41482 (grub_pxefs_close): Likewise.
41483
41484 2008-11-29 Robert Millan <rmh@aybabtu.com>
41485
41486 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
41487 grub_ata_device_initialize() calls.
41488
41489 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
41490
41491 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
41492 iteration failed.
41493 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
41494
41495 2008-11-28 Robert Millan <rmh@aybabtu.com>
41496
41497 Fix build on powerpc-ieee1275. Based on patch created by
41498 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
41499 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
41500 `kern/ieee1275/mmap.c'.
41501 * include/grub/powerpc/ieee1275/memory.h: New file.
41502
41503 Provide grub-install on coreboot.
41504 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
41505 (grub_install_SOURCES): New variable.
41506 * util/i386/pc/grub-install.in: Add a few condition checks to make it
41507 usable on coreboot.
41508
41509 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
41510
41511 * util/grub-fstest.c (grub_term_get_current_input): Change return type
41512 to `grub_term_input_t'.
41513 (grub_term_get_current_output): Change return type to
41514 `grub_term_output_t'.
41515
41516 2008-11-22 Robert Millan <rmh@aybabtu.com>
41517
41518 Fix breakage on coreboot due to declaration mismatch.
41519 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
41520 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
41521 grub_vga_text_cls().
41522
41523 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
41524 comments. Avoid copying one more byte than necessary (just in case).
41525
41526 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
41527 to 0x200000 (avoids trouble with some OFW implementations, and matches
41528 with the one in Yaboot).
41529 Reported by Manoel Abranches
41530
41531 2008-11-20 Robert Millan <rmh@aybabtu.com>
41532
41533 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
41534 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
41535
41536 * util/grub-mkconfig_lib.in (grub_warn): New function.
41537 (convert_system_path_to_grub_path): Use grub_warn() when issuing
41538 warnings, to obtain consistent formatting.
41539 * util/grub.d/00_header.in: Likewise.
41540 * util/update-grub_lib.in: Likewise.
41541
41542 * loader/i386/linux.c (allocate_pages): Fix a warning.
41543 Move comment text to `#error' stanza.
41544
41545 Harmonize ieee1275's grub_available_iterate() with the generic
41546 grub_machine_mmap_iterate() interface (fixes a recently-introduced
41547 build problem on i386-ieee1275):
41548 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
41549 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
41550 parameter `type'. Update all users of this function.
41551 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
41552 `kern/ieee1275/mmap.c'.
41553 * kern/ieee1275/init.c
41554 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
41555 with ...
41556 (grub_machine_mmap_iterate): ... this.
41557 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
41558 return type to `grub_err_t'. Update all implementations of this
41559 function prototype.
41560 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
41561 Likewise.
41562
41563 Add `lsmmap' command (lists firmware-provided memory map):
41564 * commands/lsmmap.c: New file.
41565 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
41566 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
41567 variables.
41568 * conf/powerpc-ieee1275.rmk: Likewise.
41569 * conf/i386-coreboot.rmk: Likewise.
41570 * conf/i386-ieee1275.rmk: Likewise.
41571
41572 2008-11-19 Robert Millan <rmh@aybabtu.com>
41573
41574 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
41575 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
41576 constraints to initrd allocation (based on code from
41577 loader/i386/pc/linux.c). Without them, initrd was allocated too high
41578 for Linux to find it.
41579
41580 2008-11-14 Robert Millan <rmh@aybabtu.com>
41581
41582 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
41583 order to cope with duplicate slashes.
41584
41585 2008-11-14 Robert Millan <rmh@aybabtu.com>
41586
41587 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
41588 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
41589 don't want to mess with lower memory, because it is used in the Linux
41590 loader.
41591
41592 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
41593 an appropriate place in lower memory, between 0x10000 and 0x90000,
41594 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
41595 is in our heap (probably as a result of it being corrupted during
41596 decompression). Add #error instance with comment to explain why this
41597 loader isn't currently usable on PC/BIOS.
41598
41599 2008-11-14 Robert Millan <rmh@aybabtu.com>
41600
41601 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
41602 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
41603
41604 2008-11-12 Robert Millan <rmh@aybabtu.com>
41605
41606 Make loader/i386/linux.c buildable on i386-pc (although disabled).
41607
41608 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
41609 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
41610 from here ...
41611 * include/grub/i386/pc/memory.h: ... to here.
41612
41613 2008-11-12 Robert Millan <rmh@aybabtu.com>
41614
41615 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
41616 split).
41617
41618 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
41619 (grub_console_cur_color, grub_console_real_putchar)
41620 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41621 (grub_console_setcolorstate, grub_console_setcolor)
41622 (grub_console_getcolor): Move from here ...
41623 * include/grub/i386/vga_common.h: ... to here (new file).
41624
41625 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
41626 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
41627 `<grub/i386/io.h>'.
41628 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
41629 `<grub/i386/vga_common.h>'.
41630
41631 2008-11-12 Robert Millan <rmh@aybabtu.com>
41632
41633 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
41634 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
41635 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
41636 variables.
41637 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41638 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
41639
41640 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
41641 grub_console_init() with call to grub_vga_text_init().
41642 (grub_machine_fini): Replace call to
41643 grub_console_fini() with call to grub_vga_text_fini() and
41644 grub_at_keyboard_fini().
41645
41646 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
41647 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41648 (grub_console_setcolorstate, grub_console_setcolor)
41649 (grub_console_getcolor): New function prototypes.
41650
41651 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
41652 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
41653 (grub_vga_text_setcursor): Static-ize.
41654 (grub_vga_text_term): New structure.
41655 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
41656
41657 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
41658 (grub_console_cur_color, grub_console_standard_color)
41659 (grub_console_normal_color, grub_console_highlight_color)
41660 (map_char, grub_console_putchar, grub_console_getcharwidth)
41661 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
41662 (grub_console_getcolor): Move from here ...
41663 * term/i386/vga_common.c: ... to here (same function names).
41664
41665 2008-11-12 Robert Millan <rmh@aybabtu.com>
41666
41667 Use newly-added Multiboot support in coreboot.
41668
41669 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41670 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
41671
41672 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
41673 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
41674 (codestart): Store the MBI in `startup_multiboot_info' when we're
41675 being loaded using Multiboot.
41676
41677 * kern/i386/coreboot/init.c (grub_machine_init): Move
41678 grub_at_keyboard_init() call to beginning of function (useful for
41679 debugging). Call grub_machine_mmap_init() before attempting to use
41680 grub_machine_mmap_iterate().
41681 (grub_lower_mem, grub_upper_mem): Move from here ...
41682 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
41683 here (new file).
41684
41685 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
41686 function prototype.
41687
41688 2008-11-12 Robert Millan <rmh@aybabtu.com>
41689
41690 Fix a regression introduced by the at_keyboard.mod split. Because
41691 some terminals are default on some platforms and non-default on
41692 others, the first terminal being registered determines which is
41693 going to be default.
41694
41695 * kern/term.c (grub_term_register_input): If this is the first
41696 terminal being registered, set it as the current one.
41697 (grub_term_register_output): Likewise.
41698
41699 * term/efi/console.c (grub_console_init): Do not call
41700 grub_term_set_current_output() or grub_term_set_current_input().
41701 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
41702 * term/i386/pc/console.c (grub_console_init): Likewise.
41703 (grub_console_fini): Do not call grub_term_set_current_input()
41704 (but leave grub_term_set_current_output() to restore text mode).
41705
41706 2008-11-10 Robert Millan <rmh@aybabtu.com>
41707
41708 * util/grub.d/00_header.in: Add backward compatibility check for
41709 versions of terminal.mod that don't understand `terminal_input' or
41710 `terminal_output'.
41711
41712 2008-11-09 Robert Millan <rmh@aybabtu.com>
41713
41714 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
41715 `terminal_input' / `terminal_output', not `terminal'.
41716
41717 2008-11-08 Robert Millan <rmh@aybabtu.com>
41718
41719 * Makefile.in (include_DATA): Fix srcdir=. assumption.
41720 (DISTCLEANFILES): Add `build_env.mk'.
41721
41722 2008-11-08 Robert Millan <rmh@aybabtu.com>
41723
41724 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
41725 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41726 members. Update all users.
41727 * util/console.c (grub_ncurses_term): Split in ...
41728 (grub_ncurses_term_input): ... this, and ...
41729 (grub_ncurses_term_output): ... this. Update all users.
41730 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
41731
41732 2008-11-08 Robert Millan <rmh@aybabtu.com>
41733
41734 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
41735 (PKGDATA): Add $(pkgdata_SRCDIR).
41736 (pkglib_BUILDDIR): New variable.
41737 (pkgdata_SRCDIR): New variable.
41738 (build_env.mk): New target.
41739 (include_DATA): New variable.
41740 (install-local): Install $(include_DATA) files in $(includedir).
41741
41742 2008-11-07 Pavel Roskin <proski@gnu.org>
41743
41744 * gendistlist.sh: Use C locale for sorting to ensure consistent
41745 output on all systems.
41746
41747 * util/grub.d/00_header.in: Remove incorrect space before
41748 "serial".
41749
41750 2008-11-07 Robert Millan <rmh@aybabtu.com>
41751
41752 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
41753 per specification.
41754 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
41755 * loader/multiboot_loader.c (find_multi_boot2_header): New function
41756 (based on find_multi_boot1_header).
41757 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
41758 using find_multi_boot2_header(), and abort if neither Multiboot or
41759 Multiboot headers were found.
41760
41761 2008-11-07 Robert Millan <rmh@aybabtu.com>
41762
41763 Modularize at_keyboard.mod:
41764
41765 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
41766 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
41767 (at_keyboard_mod_LDFLAGS): New variables.
41768
41769 Actual terminal split:
41770
41771 * include/grub/term.h (struct grub_term): Split in ...
41772 (struct grub_term_input): ... this, and ...
41773 (struct grub_term_output): ... this. Update all users.
41774 (grub_term_set_current): Split in ...
41775 (grub_term_set_current_input): ... this, and ...
41776 (grub_term_set_current_output): ... this.
41777 (grub_term_get_current): Split in ...
41778 (grub_term_get_current_input): ... this, and ...
41779 (grub_term_get_current_output): ... this.
41780 (grub_term_register): Split in ...
41781 (grub_term_register_input): ... this, and ...
41782 (grub_term_register_output): ... this.
41783 (grub_term_unregister): Split in ...
41784 (grub_term_unregister_input): ... this, and ...
41785 (grub_term_unregister_output): ... this.
41786 (grub_term_iterate): Split in ...
41787 (grub_term_iterate_input): ... this, and ...
41788 (grub_term_iterate_output): ... this.
41789
41790 * kern/term.c (grub_term_list): Split in ...
41791 (grub_term_list_input): ... this, and ...
41792 (grub_term_list_output): ... this. Update all users.
41793 (grub_cur_term): Split in ...
41794 (grub_cur_term_input): ... this, and ...
41795 (grub_cur_term_output): ... this. Update all users.
41796 (grub_term_set_current): Split in ...
41797 (grub_term_set_current_input): ... this, and ...
41798 (grub_term_set_current_output): ... this.
41799 (grub_term_get_current): Split in ...
41800 (grub_term_get_current_input): ... this, and ...
41801 (grub_term_get_current_output): ... this.
41802 (grub_term_register): Split in ...
41803 (grub_term_register_input): ... this, and ...
41804 (grub_term_register_output): ... this.
41805 (grub_term_unregister): Split in ...
41806 (grub_term_unregister_input): ... this, and ...
41807 (grub_term_unregister_output): ... this.
41808 (grub_term_iterate): Split in ...
41809 (grub_term_iterate_input): ... this, and ...
41810 (grub_term_iterate_output): ... this.
41811
41812 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
41813 a check for input and one for output (and only attempt to get keys
41814 from user when input works).
41815
41816 * util/grub-probe.c (grub_term_get_current): Split in ...
41817 (grub_term_get_current_input): ... this, and ...
41818 (grub_term_get_current_output): ... this.
41819 * util/grub-fstest.c: Likewise.
41820 * util/i386/pc/grub-setup.c: Likewise.
41821 * util/grub-editenv.c: Likewise.
41822
41823 Portability adjustments:
41824
41825 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
41826 `term/i386/pc/at_keyboard.c'.
41827 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
41828 grub_keyboard_controller_init() (now handled by terminal .init).
41829 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
41830 grub_at_keyboard_init().
41831 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
41832 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
41833 at_keyboard.mod via input terminal interface).
41834 * include/grub/i386/coreboot/console.h: Convert into a stub for
41835 `<grub/i386/pc/console.h>'.
41836
41837 Migrate full terminals to new API:
41838
41839 * term/efi/console.c (grub_console_term): Split into ...
41840 (grub_console_term_input): ... this, and ...
41841 (grub_console_term_output): ... this. Update all users.
41842 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
41843 (grub_ofconsole_init): Split into ...
41844 (grub_ofconsole_init_input): ... this, and ...
41845 (grub_ofconsole_init_output): ... this.
41846 (grub_ofconsole_term): Split into ...
41847 (grub_ofconsole_term_input): ... this, and ...
41848 (grub_ofconsole_term_output): ... this. Update all users.
41849 * term/i386/pc/serial.c (grub_serial_term): Split into ...
41850 (grub_serial_term_input): ... this, and ...
41851 (grub_serial_term_output): ... this. Update all users.
41852 * term/i386/pc/console.c (grub_console_term): Split into ...
41853 (grub_console_term_input): ... this, and ...
41854 (grub_console_term_output): ... this. Update all users.
41855 (grub_console_term_input): Only enable it on PC/BIOS platform.
41856 (grub_console_init): Remove grub_keyboard_controller_init() call.
41857
41858 Migrate input terminals to new API:
41859
41860 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
41861 `i386' and `i386/pc' to enable build on x86_64 (this driver is
41862 i386-specific anyway).
41863 (grub_console_checkkey): Rename to ...
41864 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
41865 users.
41866 (grub_keyboard_controller_orig): New variable.
41867 (grub_console_getkey): Rename to ...
41868 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
41869 users.
41870 (grub_keyboard_controller_init): Static-ize. Save original
41871 controller value so that it can be restored ...
41872 (grub_keyboard_controller_fini): ... here (new function).
41873 (grub_at_keyboard_term): New structure.
41874 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
41875 functions.
41876
41877 Migrate output terminals to new API:
41878
41879 * term/i386/pc/vga.c (grub_vga_term): Change type to
41880 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41881 members. Update all users.
41882 * term/gfxterm.c (grub_video_term): Change type to
41883 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41884 members. Update all users.
41885 * include/grub/i386/pc/console.h (grub_console_checkkey)
41886 (grub_console_getkey): Do not export (no longer needed by gfxterm,
41887 etc).
41888
41889 Migrate `terminal' command and userland tools to new API:
41890
41891 * commands/terminal.c (grub_cmd_terminal): Split into ...
41892 (grub_cmd_terminal_input): ... this, and ...
41893 (grub_cmd_terminal_output): ... this.
41894 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
41895 `terminal_input' and `terminal_output'.
41896 * util/grub.d/00_header.in: Adjust `terminal' calls to new
41897 `terminal_input' / `terminal_output' API.
41898 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
41899 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
41900 provided ${GRUB_TERMINAL}, convert it).
41901
41902 2008-11-04 Robert Millan <rmh@aybabtu.com>
41903
41904 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
41905 for FreeBSD.
41906 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
41907
41908 2008-11-03 Bean <bean123ch@gmail.com>
41909
41910 * kern/elf.c (grub_elf32_load): Revert to previous code.
41911 (grub_elf64_load): Likewise.
41912
41913 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
41914
41915 2008-11-01 Robert Millan <rmh@aybabtu.com>
41916
41917 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
41918 (TARGET_CPPFLAGS): Likewise.
41919 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
41920
41921 2008-11-01 Carles Pina i Estany <carles@pina.cat>
41922
41923 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
41924
41925 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
41926
41927 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
41928 addition of objects until the code is not going to be able to fail.
41929
41930 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
41931
41932 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
41933 (add a missing NULL check, and correct them by moving the pointer
41934 operations after the actual check).
41935
41936 2008-10-29 Robert Millan <rmh@aybabtu.com>
41937
41938 * util/i386/pc/grub-install.in: Handle empty string as output from
41939 make_system_path_relative_to_its_root().
41940
41941 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
41942
41943 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
41944 circular metadata worst case scenario. If the metadata is circular
41945 then copy the wrap in place.
41946 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
41947 project lib/format_text/layout.h
41948 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
41949
41950 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
41951
41952 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
41953
41954 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
41955
41956 * util/update-grub_lib.in: Mention filename in warning message.
41957
41958 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
41959
41960 * NEWS: Update for rename of update-grub to grub-mkconfig.
41961
41962 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
41963
41964 * util/update-grub_lib.in: Copy to ...
41965 * util/grub-mkconfig_lib.in: ... this. Update all users.
41966 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
41967 * util/update-grub.in: Rename to ...
41968 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
41969 option. Add `--output' option to allow users to specify the generated
41970 configuration file. Default to stdout.
41971 (update_grub_dir): Rename to ...
41972 (grub_mkconfig_dir): ... this.
41973 (grub_cfg): Default to an empty string.
41974 * conf/common.rmk (update-grub): Rename to ...
41975 (grub-mkconfig): ... this.
41976 (update-grub_lib): Copy to ...
41977 (grub-mkconfig_lib): ... this.
41978 (update-grub_SCRIPTS): Copy to ...
41979 (grub-mkconfig_SCRIPTS): ... this. Update all users.
41980 (update-grub_DATA): Rename to ...
41981 (grub-mkconfig_DATA): ... this.
41982
41983 2008-09-28 Robert Millan <rmh@aybabtu.com>
41984
41985 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
41986 to `modified'. Add the real `created' field.
41987 (grub_iso9660_uuid): Use `modified' rather than `created' for
41988 constructing the UUID.
41989
41990 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
41991
41992 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
41993 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
41994
41995 2008-09-28 Bean <bean123ch@gmail.com>
41996
41997 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
41998 Thanks to Christian Franke for finding this bug.
41999
42000 2008-09-25 Robert Millan <rmh@aybabtu.com>
42001
42002 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
42003 instances of grub_util_get_disk_name() (see previous commit).
42004
42005 2008-09-25 Robert Millan <rmh@aybabtu.com>
42006
42007 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
42008 `util/i386/get_disk_name.c'.
42009 * conf/i386-efi.rmk: Likewise.
42010 * conf/x86_64-efi.rmk: Likewise.
42011 * conf/i386-coreboot.rmk: Likewise.
42012 * conf/i386-ieee1275.rmk: Likewise.
42013 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
42014 `util/ieee1275/get_disk_name.c'.
42015 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
42016 * util/ieee1275/get_disk_name.c: Remove file.
42017 * util/i386/get_disk_name.c: Remove file.
42018 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
42019 "hd%d" for device.map entries, rather than using
42020 grub_util_get_disk_name().
42021
42022 2008-09-24 Carles Pina i Estany <carles@pina.cat>
42023
42024 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
42025 warning.
42026 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
42027
42028 2008-09-24 Carles Pina i Estany <carles@pina.cat>
42029
42030 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
42031 Changed to 0x5100.
42032 (GRUB_TERM_PPAGE): Changed to 0x4900.
42033
42034 2008-09-24 Robert Millan <rmh@aybabtu.com>
42035
42036 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
42037 macros (they were i386-pc specific).
42038 * include/grub/sparc64/ieee1275/console.h: Likewise.
42039 * include/grub/efi/console.h: Likewise.
42040
42041 2008-09-22 Bean <bean123ch@gmail.com>
42042
42043 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
42044 resident and in attribute list.
42045
42046 * include/grub/ntfs.h (BMP_LEN): Removed.
42047
42048 2008-09-22 Bean <bean123ch@gmail.com>
42049
42050 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
42051 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
42052
42053 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
42054 error occurs, as grub_disk_open will call grub_disk_close, which will
42055 call p->close (scsi).
42056
42057 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42058
42059 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
42060 (AC_PREREQ): Bumped to 2.59.
42061 (AC_TRY_COMPILE): Replace obsolete macro with ...
42062 (AC_COMPILE_IFELSE): ... this.
42063 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
42064 (AC_LINK_IFELSE): ... this.
42065
42066 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42067
42068 * autogen.sh: Add a call to `gendistlist.sh'.
42069
42070 2008-09-19 Christian Franke <franke@computer.org>
42071
42072 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
42073 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
42074 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
42075 Export __enable_execute_stack() to modules.
42076 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
42077 New function.
42078
42079 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42080
42081 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
42082 Sort the list.
42083
42084 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42085
42086 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
42087 #include <grub/util/hostdisk.h>.
42088
42089 2008-09-08 Robert Millan <rmh@aybabtu.com>
42090
42091 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
42092 segments when their filesz is zero (grub_file_read() interprets
42093 zero-size as "read until EOF", which results in memory corruption).
42094 Use `lowest_segment' rather than 0 for calculating the current
42095 segment load address.
42096
42097 2008-09-08 Robert Millan <rmh@aybabtu.com>
42098
42099 * util/hostdisk.c (open_device): Replace a grub_util_info() call
42100 with grub_dprintf("hostdisk", ...), as it was so verbose that it
42101 clobbered useful information.
42102
42103 2008-09-08 Robert Millan <rmh@aybabtu.com>
42104
42105 * include/grub/util/biosdisk.h: Move to ...
42106 * include/grub/util/hostdisk.h: ... here. Update all users.
42107 * util/biosdisk.c: Move to ...
42108 * util/hostdisk.c: ... here. Update all users.
42109
42110 2008-09-07 Robert Millan <rmh@aybabtu.com>
42111
42112 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
42113 variables.
42114 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
42115 and length can be stored directly in the `mbi->mmap_addr' and
42116 `mbi->mmap_length' struct fields.
42117
42118 2008-09-07 Robert Millan <rmh@aybabtu.com>
42119
42120 * conf/i386.rmk: New file. Provides declaration for building
42121 `cpuid.mod'.
42122 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
42123 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
42124 variables.
42125 Include `conf/i386.mk'.
42126 * conf/i386-efi.rmk: Likewise.
42127 * conf/x86_64-efi.rmk: Likewise.
42128 * conf/i386-coreboot.rmk: Likewise.
42129 * conf/i386-ieee1275.rmk: Likewise.
42130
42131 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
42132
42133 Based on patch created by Colin D Bennett <colin@gibibit.com>.
42134 Adds optimization support for BGR based modes.
42135
42136 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
42137 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42138 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42139 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42140 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42141 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42142 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42143 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42144 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42145 (grub_video_i386_vbeblit_index_index): Likewise.
42146 (grub_video_i386_vbeblit_replace_directN): Added.
42147 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42148 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42149 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42150 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42151 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42152 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42153 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42154 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42155 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42156 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42157 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42158 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42159 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42160
42161 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
42162 (grub_video_i386_vbefill_R8G8B8): Likewise.
42163 (grub_video_i386_vbefill_index): Likewise.
42164 (grub_video_i386_vbefill_direct32): Added.
42165 (grub_video_i386_vbefill_direct24): Likewise.
42166 (grub_video_i386_vbefill_direct16): Likewise.
42167 (grub_video_i386_vbefill_direct8): Likewise.
42168
42169 * include/grub/video.h (grub_video_blit_format): Removed
42170 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
42171 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
42172 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
42173 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
42174 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
42175
42176 * video/video.c (grub_video_get_blit_format): Updated to use new
42177 blit formats. Added handling for 16 bit color modes.
42178
42179 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
42180 fillers.
42181 (common_blitter): Updated to use new blitters.
42182
42183 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
42184 Removed.
42185 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42186 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42187 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42188 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42189 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42190 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42191 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42192 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42193 (grub_video_i386_vbeblit_index_index): Likewise.
42194 (grub_video_i386_vbeblit_replace_directN): Added.
42195 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42196 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42197 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42198 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42199 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42200 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42201 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42202 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42203 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42204 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42205 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42206 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42207 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42208
42209 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
42210 (grub_video_i386_vbefill_R8G8B8): Likewise.
42211 (grub_video_i386_vbefill_index): Likewise.
42212 (grub_video_i386_vbefill_direct32): Added.
42213 (grub_video_i386_vbefill_direct24): Likewise.
42214 (grub_video_i386_vbefill_direct16): Likewise.
42215 (grub_video_i386_vbefill_direct8): Likewise.
42216
42217 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
42218 types.
42219
42220 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
42221 types.
42222
42223 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
42224 blitter types.
42225
42226 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
42227 types.
42228
42229 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42230
42231 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
42232 RAID level 1.
42233
42234 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42235
42236 * fs/iso9660.c (grub_iso9660_date): New structure.
42237 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
42238 (grub_iso9660_uuid): New function.
42239
42240 2008-09-05 Bean <bean123ch@gmail.com>
42241
42242 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
42243
42244 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
42245 insensitive bit for names in Win32 and Win32 & DOS namespace.
42246
42247 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
42248
42249 * include/grub/types.h (LONG_MAX): Likewise.
42250
42251 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42252
42253 * util/getroot.c: Include <config.h>.
42254 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
42255 add support for /dev/md/N devices and handle LVM double dash escaping.
42256
42257 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42258
42259 * config.guess: Update to latest version from config git.
42260 * config.sub: Likewise.
42261
42262 2008-09-03 Robert Millan <rmh@aybabtu.com>
42263
42264 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
42265 `disk->total_sectors'.
42266
42267 2008-09-01 Colin D Bennett <colin@gibibit.com>
42268
42269 * include/grub/normal.h: Fixed incorrect comment for
42270 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
42271
42272 2008-09-01 Colin D Bennett <colin@gibibit.com>
42273
42274 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
42275 values with defines.
42276
42277 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
42278 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
42279 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
42280 (GRUB_VBE_MODEATTR_COLOR): Likewise.
42281 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
42282 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
42283 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
42284 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
42285 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
42286 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
42287 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
42288 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
42289 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
42290 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
42291 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
42292 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
42293 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
42294 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
42295 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
42296
42297 2008-08-31 Robert Millan <rmh@aybabtu.com>
42298
42299 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
42300 declaration.
42301 (grub_multiboot): Fix a few warnings.
42302
42303 2008-08-31 Robert Millan <rmh@aybabtu.com>
42304
42305 * loader/i386/pc/multiboot.c: Update comment not to say that
42306 boot_device support is unimplemented.
42307
42308 2008-08-31 Robert Millan <rmh@aybabtu.com>
42309
42310 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
42311 or memory map support are unimplemented.
42312
42313 2008-08-31 Colin D Bennett <colin@gibibit.com>
42314
42315 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
42316
42317 2008-08-31 Colin D Bennett <colin@gibibit.com>
42318
42319 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
42320 total video memory in 'vbeinfo' output; show color format details for
42321 each video mode.
42322
42323 2008-08-30 Pavel Roskin <proski@gnu.org>
42324
42325 * util/genmoddep.c: Remove for real this time.
42326 * DISTLIST: Remove util/genmoddep.c.
42327
42328 2008-08-30 Robert Millan <rmh@aybabtu.com>
42329
42330 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
42331 as required by Multiboot spec (it was already 4-byte aligned, but
42332 only by chance).
42333
42334 2008-08-29 Pavel Roskin <proski@gnu.org>
42335
42336 * kern/powerpc/ieee1275/crt0.S: Rename to ...
42337 * kern/powerpc/ieee1275/startup.S: ... this.
42338 * conf/powerpc-ieee1275.rmk: Adjust for the above.
42339 * DISTLIST: Likewise.
42340
42341 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
42342 grub/cpu/kernel.h. Add start label for consistency with other
42343 platforms. Add grub_prefix immediately after start. Add jump
42344 to the code after grub_prefix.
42345 * include/grub/powerpc/kernel.h: Provide valid values for
42346 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
42347
42348 2008-08-29 Bean <bean123ch@gmail.com>
42349
42350 * configure.ac: Change host_os to cygwin for mingw.
42351 (asprintf): New check for function.
42352
42353 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
42354 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
42355
42356 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
42357 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
42358 sync, sleep and grub_util_get_disk_size for mingw.
42359
42360 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
42361 to get size in mingw.
42362 (open_device): Use flag O_BINARY if it's defined.
42363 (find_root_device): Add dummy code for mingw.
42364
42365 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
42366 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
42367 (get_scsi_disk_name): Return 0 for mingw.
42368
42369 * util/hostfs.c: #include <grub/util/misc.h>.
42370 (grub_hostfs_open): Use "rb" flag to open file, use
42371 grub_util_get_disk_size to get disk size for mingw.
42372
42373 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
42374 (asprintf): New function if HAVE_ASPRINTF is not set.
42375 (sync): New function for mingw.
42376 (sleep): Likewise.
42377 (grub_util_get_disk_size): Likewise.
42378
42379 2008-08-28 Pavel Roskin <proski@gnu.org>
42380
42381 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
42382 kern/time.c.
42383
42384 2008-08-28 Robert Millan <rmh@aybabtu.com>
42385
42386 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
42387
42388 2008-08-28 Robert Millan <rmh@aybabtu.com>
42389
42390 Change find_grub_drive() syntax so it doesn't prevent it from
42391 detecting NULL names as errors.
42392
42393 * util/biosdisk.c (find_grub_drive): Move free slot search code
42394 from here ...
42395 (find_free_slot): ... to here.
42396 (read_device_map): Use find_free_slot() to search for free slots.
42397
42398 2008-08-27 Marco Gerards <marco@gnu.org>
42399
42400 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
42401 (scsi_mod_SOURCES): New variable.
42402 (scsi_mod_CFLAGS): Likewise
42403 (scsi_mod_LDFLAGS): Likewise.
42404
42405 * disk/scsi.c: New file.
42406
42407 * include/grub/scsi.h: Likewise.
42408
42409 * include/grub/scsicmd.h: Likewise.
42410
42411 * disk/ata.c: Include <grub/scsi.h>.
42412 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
42413 instead.
42414 (grub_ata_iterate): Skip ATAPI devices.
42415 (grub_ata_open): Only handle ATAPI devices.
42416 (struct grub_atapi_read): Removed.
42417 (grub_atapi_readsector): Likewise.
42418 (grub_ata_read): No longer handle ATAPI devices.
42419 (grub_ata_write): Likewise.
42420 (grub_atapi_iterate): New function.
42421 (grub_atapi_read): Likewise.
42422 (grub_atapi_write): Likewise.
42423 (grub_atapi_open): Likewise.
42424 (grub_atapi_close): Likewise.
42425 (grub_atapi_dev): New variable.
42426 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
42427 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
42428
42429 * include/grub/disk.h (enum grub_disk_dev_id): Add
42430 `GRUB_DISK_DEVICE_SCSI_ID'.
42431
42432 2008-08-26 Robert Millan <rmh@aybabtu.com>
42433
42434 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
42435 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
42436 descriptive.
42437
42438 2008-08-23 Bean <bean123ch@gmail.com>
42439
42440 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
42441 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42442 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
42443 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
42444 dm_nv.mod.
42445 (raid5rec_mod_SOURCES): New macro.
42446 (raid5rec_mod_CFLAGS): Likewise.
42447 (raid5rec_mod_LDFLAGS): Likewise.
42448 (raid6rec_mod_SOURCES): Likewise.
42449 (raid6rec_mod_CFLAGS): Likewise.
42450 (raid6rec_mod_LDFLAGS): Likewise.
42451 (mdraid_mod_SOURCES): Likewise.
42452 (mdraid_mod_CFLAGS): Likewise.
42453 (mdraid_mod_LDFLAGS): Likewise.
42454 (dm_nv_mod_SOURCES): Likewise.
42455 (dm_nv_mod_CFLAGS): Likewise.
42456 (dm_nv_mod_LDFLAGS): Likewise.
42457
42458 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
42459 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42460 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42461
42462 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
42463 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42464
42465 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42466
42467 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
42468
42469 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42470
42471 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42472
42473 * disk/raid5_recover.c: New file.
42474
42475 * disk/raid6_recover.c: Likewise.
42476
42477 * disk/mdraid_linux.c: Likewise.
42478
42479 * disk/dmraid_nvidia.c: Likewise.
42480
42481 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
42482 ULONG_MAX.
42483
42484 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
42485 calculate the size of raid device.
42486 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
42487 different layout of raid5.
42488 (grub_raid_scan_device): Remove code specific to mdraid.
42489 (grub_raid_list): New variable.
42490 (free_array): New function.
42491 (grub_raid_register): Likewise.
42492 (grub_raid_unregister): Likewise.
42493 (grub_raid_rescan): Likewise.
42494 (GRUB_MOD_INIT): Don't iterate device here.
42495 (GRUB_MOD_FINI): Use free_array to release resource.
42496
42497 * include/grub/raid.h: Remove macro and structure specific to mdraid.
42498 (grub_raid5_recover_func_t): New function variable type.
42499 (grub_raid6_recover_func_t): Likewise.
42500 (grub_raid5_recover_func): New variable.
42501 (grub_raid6_recover_func): Likewise.
42502 (grub_raid_register): New function.
42503 (grub_raid_unregister): Likewise.
42504 (grub_raid_rescan): Likewise.
42505 (grub_raid_block_xor): Likewise.
42506
42507 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
42508 (CMD_CRC): New macro.
42509 (part): Removed.
42510 (read_file): Handle device as well as file.
42511 (cmd_crc): New function.
42512 (fstest): Handle multiple disks.
42513 (options): Remove part, raw and long, add root and diskcount.
42514 (usage): Add crc, remove -p, -r, -l, add -r and -c.
42515 (main): Find the first non option entry and ignore subsequent options,
42516 add handling for the new options, support multiple disks.
42517
42518 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
42519
42520 2008-08-23 Bean <bean123ch@gmail.com>
42521
42522 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
42523
42524 * genfslist.sh: Ignore kernel.mod.
42525
42526 * genpartmaplist.sh: Likewise.
42527
42528 2008-08-23 Robert Millan <rmh@aybabtu.com>
42529
42530 * util/getroot.c (find_root_device): Skip anything that starts with
42531 a dot, not just directories. This avoids things like /dev/.tmp.md0.
42532
42533 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
42534
42535 * util/update-grub.in (GRUB_GFXMODE): Export variable.
42536 * util/grub.d/00_header.in: Allow the administrator to change default
42537 gfxmode via ${GRUB_GFXMODE}.
42538
42539 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
42540
42541 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
42542
42543 2008-08-21 Robert Millan <rmh@aybabtu.com>
42544
42545 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
42546 loader.
42547 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
42548 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
42549
42550 2008-08-20 Carles Pina i Estany <carles@pina.cat>
42551
42552 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
42553 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
42554
42555 2008-08-19 Robert Millan <rmh@aybabtu.com>
42556
42557 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
42558 (struct grub_virtual_screen): Remove `cursor_color'.
42559 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
42560 initialization.
42561 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
42562
42563 2008-08-18 Robert Millan <rmh@aybabtu.com>
42564
42565 Unify (identical) linux_normal.c files.
42566 * loader/i386/efi/linux_normal.c: Move from here ...
42567 * loader/linux_normal.c: ... to here. Update all users.
42568 * loader/i386/pc/linux_normal.c: Delete. Update all users.
42569 * loader/i386/ieee1275/linux_normal.c: Likewise.
42570
42571 2008-08-18 Robert Millan <rmh@aybabtu.com>
42572
42573 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
42574 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
42575 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
42576 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
42577 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
42578 New macros.
42579 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
42580 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
42581 (GRUB_LINUX_CL_END_OFFSET): ... to here.
42582 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
42583 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
42584 (GRUB_EFI_CL_END_OFFSET): Rename to ...
42585 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
42586 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
42587 Initialize `params->video_cursor_x' and `params->video_cursor_y'
42588 portably using grub_getxy().
42589 Replace `-EFI' with `-bzImage' in boot message.
42590
42591 2008-08-17 Robert Millan <rmh@aybabtu.com>
42592
42593 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
42594
42595 2008-08-17 Robert Millan <rmh@aybabtu.com>
42596
42597 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
42598
42599 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
42600 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
42601 (grub_machine_mmap_iterate): New function declaration.
42602 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
42603 structure.
42604 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
42605 macros.
42606
42607 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
42608 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
42609 Move e820 parsing from here ...
42610 * kern/i386/pc/mmap.c: New file.
42611 (grub_machine_mmap_iterate): ... to here.
42612
42613 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
42614 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
42615 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
42616 (grub_available_iterate): Redeclare to return `void', and redeclare
42617 its hook to use grub_uint64_t as addr and size parameters, and rename
42618 to ...
42619 (grub_machine_mmap_iterate): ... this. Update all users.
42620
42621 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
42622 to make it more readable. Rename to ...
42623 (grub_machine_mmap_iterate): ... this.
42624
42625 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
42626 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
42627 (grub_multiboot): Allocate an extra region after the payload, and fill
42628 it with a Multiboot memory map. Adjust a.out loader to calculate size
42629 with the extra space.
42630 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
42631 with the extra space.
42632
42633 2008-08-17 Carles Pina i Estany <carles@pina.cat>
42634
42635 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
42636
42637 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
42638
42639 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
42640 mdate-sh to the list `find' searches for.
42641 * DISTLIST: Regenerated.
42642
42643 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
42644
42645 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
42646 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
42647 genmoddep.awk, gensymlist.sh.in.
42648 (DISTDIRS): Add bus, docs, hook, lib.
42649 * DISTLIST: Regenerated.
42650 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
42651
42652 2008-08-16 Robert Millan <rmh@aybabtu.com>
42653
42654 * disk/raid.c (grub_raid_init): Handle/report errors set by
42655 grub_device_iterate().
42656 * disk/lvm.c (grub_lvm_init): Likewise.
42657
42658 2008-08-15 Bean <bean123ch@gmail.com>
42659
42660 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42661 and datehook.mod.
42662 (datetime_mod_SOURCES): New macro.
42663 (datetime_mod_CFLAGS): Likewise.
42664 (datetime_mod_LDFLAGS): Likewise.
42665 (date_mod_SOURCES): Likewise.
42666 (date_mod_CFLAGS): Likewise.
42667 (date_mod_LDFLAGS): Likewise.
42668 (datehook_mod_SOURCES): Likewise.
42669 (datehook_mod_CFLAGS): Likewise.
42670 (datehook_mod_LDFLAGS): Likewise.
42671
42672 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42673 and datehook.mod.
42674 (datetime_mod_SOURCES): New macro.
42675 (datetime_mod_CFLAGS): Likewise.
42676 (datetime_mod_LDFLAGS): Likewise.
42677 (date_mod_SOURCES): Likewise.
42678 (date_mod_CFLAGS): Likewise.
42679 (date_mod_LDFLAGS): Likewise.
42680 (datehook_mod_SOURCES): Likewise.
42681 (datehook_mod_CFLAGS): Likewise.
42682 (datehook_mod_LDFLAGS): Likewise.
42683
42684 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42685 and datehook.mod.
42686 (datetime_mod_SOURCES): New macro.
42687 (datetime_mod_CFLAGS): Likewise.
42688 (datetime_mod_LDFLAGS): Likewise.
42689 (date_mod_SOURCES): Likewise.
42690 (date_mod_CFLAGS): Likewise.
42691 (date_mod_LDFLAGS): Likewise.
42692 (datehook_mod_SOURCES): Likewise.
42693 (datehook_mod_CFLAGS): Likewise.
42694 (datehook_mod_LDFLAGS): Likewise.
42695
42696 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42697 and datehook.mod.
42698 (datetime_mod_SOURCES): New macro.
42699 (datetime_mod_CFLAGS): Likewise.
42700 (datetime_mod_LDFLAGS): Likewise.
42701 (date_mod_SOURCES): Likewise.
42702 (date_mod_CFLAGS): Likewise.
42703 (date_mod_LDFLAGS): Likewise.
42704 (datehook_mod_SOURCES): Likewise.
42705 (datehook_mod_CFLAGS): Likewise.
42706 (datehook_mod_LDFLAGS): Likewise.
42707
42708 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42709 and datehook.mod.
42710 (datetime_mod_SOURCES): New macro.
42711 (datetime_mod_CFLAGS): Likewise.
42712 (datetime_mod_LDFLAGS): Likewise.
42713 (date_mod_SOURCES): Likewise.
42714 (date_mod_CFLAGS): Likewise.
42715 (date_mod_LDFLAGS): Likewise.
42716 (datehook_mod_SOURCES): Likewise.
42717 (datehook_mod_CFLAGS): Likewise.
42718 (datehook_mod_LDFLAGS): Likewise.
42719
42720 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
42721
42722 * commands/date.c: New file.
42723
42724 * hook/datehook.c: Likewise.
42725
42726 * include/grub/lib/datetime.h: Likewise.
42727
42728 * include/grub/i386/cmos.h: Likewise.
42729
42730 * lib/datetime.c: Likewise.
42731
42732 * lib/i386/datetime.c: Likewise.
42733
42734 * lib/efi/datetime.c: Likewise.
42735
42736 2008-08-14 Robert Millan <rmh@aybabtu.com>
42737
42738 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
42739 (grub_mkelfimage_SOURCES): New variable.
42740 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
42741
42742 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
42743 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
42744 * conf/powerpc-ieee1275.rmk: Likewise.
42745 * conf/i386-ieee1275.rmk: Likewise.
42746
42747 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
42748 * kern/i386/coreboot/init.c: Likewise.
42749
42750 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
42751 with `<grub/cpu/kernel.h>'.
42752 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
42753 to ...
42754 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
42755 * kern/i386/coreboot/startup.S: Likewise.
42756
42757 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
42758 (GRUB_MOD_GAP): Remove.
42759 * include/grub/powerpc/kernel.h: New file.
42760 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
42761 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42762 * include/grub/i386/kernel.h: New file.
42763 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
42764 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
42765 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42766
42767 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
42768 `grub-mkelfimage'.
42769 Use --directory when invoking grub_mkimage.
42770
42771 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
42772 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
42773 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
42774 and GRUB_KERNEL_CPU_PREFIX.
42775
42776 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
42777
42778 * include/grub/err.h (grub_err_printf): New function prototype.
42779 * util/misc.c (grub_err_printf): New function.
42780 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
42781 grub_printf.
42782 * kern/err.c (grub_print_error): Use grub_err_printf.
42783
42784 2008-08-13 Robert Millan <rmh@aybabtu.com>
42785
42786 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
42787
42788 2008-08-13 Robert Millan <rmh@aybabtu.com>
42789
42790 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
42791 boot entry.
42792
42793 2008-08-12 Robert Millan <rmh@aybabtu.com>
42794
42795 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
42796 of the relocation code from here ...
42797 (grub_multiboot): ... to here.
42798 (forward_relocator, backward_relocator): Move from here ...
42799 * kern/i386/loader.S (grub_multiboot_forward_relocator)
42800 (grub_multiboot_backward_relocator): ... to here.
42801 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
42802 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
42803 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
42804 (grub_multiboot_forward_relocator_end)
42805 (grub_multiboot_backward_relocator)
42806 (grub_multiboot_backward_relocator_end): New variables.
42807
42808 2008-08-12 Bean <bean123ch@gmail.com>
42809
42810 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
42811
42812 2008-08-11 Robert Millan <rmh@aybabtu.com>
42813
42814 * kern/i386/linuxbios/startup.S: Move from here ...
42815 * kern/i386/coreboot/startup.S: ... to here.
42816
42817 * kern/i386/linuxbios/init.c: Move from here ...
42818 * kern/i386/coreboot/init.c: ... to here.
42819
42820 * kern/i386/linuxbios/table.c: Move from here ...
42821 * kern/i386/coreboot/mmap.c: ... to here.
42822
42823 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
42824
42825 2008-08-11 Robert Millan <rmh@aybabtu.com>
42826
42827 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
42828 errors. Leave it to the upper layer to handle them.
42829
42830 2008-08-09 Christian Franke <franke@computer.org>
42831
42832 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
42833 * conf/common.rmk: Install `grub-pe2elf' only if requested.
42834 Install `grub.d/10_windows' only on Cygwin.
42835 * configure.ac: Add subst of `target_os'.
42836 Check `target_os' also before setting TARGET_OBJ2ELF.
42837 Add `--enable-grub-pe2elf'.
42838
42839 2008-08-08 Robert Millan <rmh@aybabtu.com>
42840
42841 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
42842 (grub_last_time): Change type to grub_uint64_t.
42843 (grub_disk_open): Migrate code from to using grub_get_time_ms().
42844 (grub_disk_close): Likewise.
42845
42846 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
42847 (run_menu): Migrate code from to using grub_get_time_ms().
42848
42849 * util/misc.c (grub_get_time_ms): New function.
42850
42851 2008-08-08 Marco Gerards <marco@gnu.org>
42852
42853 * disk/ata.c (grub_ata_regget): Change return type to
42854 `grub_uint8_t'.
42855 (grub_ata_regget2): Likewise.
42856 (grub_ata_wait_status): New function.
42857 (grub_ata_wait_busy): Removed function, updated all users to use
42858 `grub_ata_wait_status'.
42859 (grub_ata_wait_drq): Likewise.
42860 (grub_ata_cmd): New function.
42861 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
42862 error handling.
42863 (grub_ata_pio_write): Add error handling.
42864 (grub_atapi_identify): Likewise.
42865 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
42866 handling.
42867 (grub_ata_identify): Use `grub_ata_cmd' and improve error
42868 handling. Actually use the detected registers. Reorder the
42869 detection logic such that it is easier to read.
42870 (grub_ata_pciinit): Do not assign the same ID to each controller.
42871 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
42872 handling.
42873 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
42874
42875 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
42876
42877 2008-08-08 Marco Gerards <marco@gnu.org>
42878
42879 * NEWS: Update.
42880
42881 2008-08-07 Bean <bean123ch@gmail.com>
42882
42883 * include/grub/x86_64/pci.h: New file.
42884
42885 2008-08-07 Christian Franke <franke@computer.org>
42886
42887 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
42888 (TIMER2_GATE): Likewise.
42889 (grub_pit_wait): Add enable/disable of the timer2 gate
42890 bit of port 0x61. This fixes a possible infinite loop.
42891
42892 2008-08-07 Bean <bean123ch@gmail.com>
42893
42894 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
42895 kern/i386/tsc.c and kern/i386/pit.c.
42896
42897 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
42898 x86_64 platform.
42899
42900 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
42901 <grub/i386/tsc.h>.
42902
42903 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
42904
42905 2008-08-07 Bean <bean123ch@gmail.com>
42906
42907 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
42908
42909 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
42910
42911 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
42912 multiple inclusion. Add #include <grub/types.h>.
42913
42914 2008-08-06 Christian Franke <franke@computer.org>
42915
42916 * conf/common.rmk: Build and install `10_windows'.
42917 * util/grub.d/10_windows.in: New script.
42918
42919 2008-08-06 Pavel Roskin <proski@gnu.org>
42920
42921 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
42922
42923 2008-08-06 Robert Millan <rmh@aybabtu.com>
42924
42925 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
42926 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
42927
42928 2008-08-06 Bean <bean123ch@gmail.com>
42929
42930 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
42931 (grub_pxefs_fs_int): Remove dummy definition.
42932 (grub_pxefs_open): Use data->block_size to store the current block
42933 size setting.
42934 (grub_pxefs_read): Use block size stored in data->block_size. As the
42935 value of grub_pxe_blksize can be changed after the file is opened.
42936
42937 2008-08-06 Bean <bean123ch@gmail.com>
42938
42939 * fs/i386/pc/pxe.c (curr_file): new variable.
42940 (grub_pxefs_open): Simply the handling of pxe file system. Don't
42941 require the dummy internal file system anymore.
42942 (grub_pxefs_read): Removed.
42943 (grub_pxefs_close): Likewise.
42944 (grub_pxefs_fs_int): Likewise.
42945 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
42946 connection when we switch file.
42947 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
42948
42949 2008-08-06 Robert Millan <rmh@aybabtu.com>
42950
42951 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
42952 `halt.mod'.
42953 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
42954 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
42955
42956 * kern/i386/halt.c: New file.
42957 * kern/i386/reboot.c: Likewise.
42958 * include/grub/i386/reboot.h: Likewise.
42959 * include/grub/i386/halt.h: Likewise.
42960
42961 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
42962 Include `<grub/cpu/halt.h>'.
42963 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
42964 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
42965
42966 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
42967 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
42968 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
42969 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
42970 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
42971 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
42972 from here ...
42973 * include/grub/i386/at_keyboard.h: ... to here.
42974
42975 2008-08-05 Robert Millan <rmh@aybabtu.com>
42976
42977 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
42978 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
42979 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
42980 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
42981 `kern/generic/millisleep.c'.
42982
42983 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
42984 instead of grub_get_rtc().
42985 (grub_tsc_init): Initialize `tsc_boot_time'.
42986
42987 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
42988 (grub_machine_init): Use grub_tsc_init() rather than
42989 installing an RTC-based handler via grub_install_get_time_ms().
42990
42991 * kern/i386/pit.c: New file.
42992 * include/grub/i386/pit.h: Likewise.
42993
42994 2008-08-05 Bean <bean123ch@gmail.com>
42995
42996 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
42997
42998 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
42999 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
43000 (pxe_mod_SOURCES): New macro.
43001 (pxe_mod_CFLAGS): Likewise.
43002 (pxe_mod_LDFLAGS): Likewise.
43003 (pxecmd_mod_SOURCES): Likewise.
43004 (pxecmd_mod_CFLAGS): Likewise.
43005 (pxecmd_mod_LDFLAGS): Likewise.
43006
43007 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
43008 (grub_pxe_call): Likewise.
43009
43010 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
43011
43012 * commands/i386/pc/pxecmd.c: New file.
43013
43014 * fs/i386/pc/pxe.c: Likewise.
43015
43016 * include/grub/i386/pc/pxe.h: Likewise.
43017
43018 2008-08-05 Bean <bean123ch@gmail.com>
43019
43020 * util/console.c (grub_console_cur_color): New variable.
43021 (grub_console_standard_color): Likewise.
43022 (grub_console_normal_color): Likewise.
43023 (grub_console_highlight_color): Likewise.
43024 (color_map): Likewise.
43025 (use_color): Likewise.
43026 (NUM_COLORS): New macro.
43027 (grub_ncurses_setcolorstate): Handle color properly.
43028 (grub_ncurses_setcolor): Don't change color here, just remember the
43029 settings, color will be set in grub_ncurses_setcolorstate.
43030 (grub_ncurses_getcolor): New function.
43031 (grub_ncurses_init): Initialize color pairs.
43032 (grub_ncurses_term): New member grub_ncurses_getcolor.
43033
43034 2008-08-05 Colin D Bennett <colin@gibibit.com>
43035
43036 High resolution timer support. Implemented for x86 CPUs using TSC.
43037 Extracted generic grub_millisleep() so it's linked in only as needed.
43038 This requires a Pentium compatible CPU; if the RDTSC instruction is
43039 not supported, then it falls back on the generic grub_get_time_ms()
43040 implementation that uses the machine's RTC.
43041
43042 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
43043 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43044 `kern/generic/millisleep.c'.
43045
43046 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
43047 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
43048
43049 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
43050 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
43051
43052 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43053
43054 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
43055 `kern/generic/millisleep.c'.
43056
43057 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43058
43059 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
43060
43061 * kern/generic/rtc_get_time_ms.c: New file.
43062
43063 * kern/generic/millisleep.c: New file.
43064
43065 * kern/misc.c: Don't include
43066 <kern/time.h> anymore.
43067 (grub_millisleep_generic): Removed.
43068
43069 * commands/sleep.c (grub_interruptible_millisleep): Uses
43070 grub_get_time_ms() instead of grub_get_rtc().
43071
43072 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
43073 function.
43074 (grub_cpu_is_cpuid_supported): New inline function.
43075 (grub_cpu_is_tsc_supported): New inline function.
43076 (grub_tsc_init): New function prototype.
43077 (grub_tsc_get_time_ms): New function prototype.
43078
43079 * kern/i386/tsc.c (grub_get_time_ms): New file.
43080
43081 * include/grub/time.h: Include <grub/types.h.
43082 (grub_millisleep_generic): Removed.
43083 (grub_get_time_ms): New prototype.
43084 (grub_install_get_time_ms): New prototype.
43085 (grub_rtc_get_time_ms): New prototype.
43086
43087 * kern/time.c (grub_get_time_ms): New function.
43088 (grub_install_get_time_ms): New function.
43089
43090 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
43091 <grub/time.h> anymore.
43092 (grub_millisleep): Removed.
43093 (grub_machine_init): Call grub_tsc_init.
43094
43095 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
43096 get_time_ms() implementation.
43097
43098 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
43099 (ieee1275_get_time_ms): New function.
43100 (grub_machine_init): Install get_time_ms() implementation.
43101
43102 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
43103 (grub_machine_init): Call grub_tsc_init().
43104 (grub_millisleep): Removed.
43105
43106 * kern/ieee1275/init.c (grub_millisleep): Removed.
43107 (grub_machine_init): Install ieee1275_get_time_ms()
43108 implementation.
43109 (ieee1275_get_time_ms): New function.
43110 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
43111 real work.
43112
43113 2008-08-05 Marco Gerards <marco@gnu.org>
43114
43115 * disk/ata.c: Include <grub/pci.h>.
43116 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
43117 (grub_ata_initialize): Rewritten.
43118 (grub_ata_device_initialize): New function.
43119
43120 2008-08-04 Pavel Roskin <proski@gnu.org>
43121
43122 * kern/main.c: Include grub/mm.h.
43123
43124 2008-08-04 Robert Millan <rmh@aybabtu.com>
43125
43126 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
43127 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
43128 corruption problem).
43129
43130 2008-08-04 Robert Millan <rmh@aybabtu.com>
43131
43132 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
43133 warnings introduced in my last commit.
43134
43135 2008-08-03 Robert Millan <rmh@aybabtu.com>
43136
43137 Make PCI available on all i386 architectures.
43138
43139 * include/grub/i386/pc/pci.h: Move from here ...
43140 * include/grub/i386/pci.h: ... to here.
43141
43142 * include/grub/i386/pc/pci.h: Remove.
43143 * include/grub/i386/efi/pci.h: Remove.
43144 * include/grub/x86_64/efi/pci.h: Remove.
43145
43146 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
43147 `<grub/cpu/pci.h>'.
43148
43149 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
43150 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
43151 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
43152
43153 * conf/i386-ieee1275.rmk: Likewise.
43154
43155 2008-08-03 Robert Millan <rmh@aybabtu.com>
43156
43157 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
43158 (grub_console_setcursor): Make it possible to set cursor off.
43159
43160 2008-08-03 Robert Millan <rmh@aybabtu.com>
43161
43162 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
43163 of modules instead of assuming which platform provides what.
43164 * util/update-grub.in: Likewise.
43165
43166 2008-08-03 Robert Millan <rmh@aybabtu.com>
43167
43168 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
43169 instead of `grub_install_dos_part' to determine whether a drive needs
43170 to be prepended to prefix (`grub_install_dos_part' is not reliable,
43171 because it can be overridden when loading GRUB via Multiboot).
43172
43173 2008-08-02 Robert Millan <rmh@aybabtu.com>
43174
43175 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
43176
43177 2008-08-02 Robert Millan <rmh@aybabtu.com>
43178
43179 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
43180 of informational grub_dprintf() calls.
43181
43182 2008-08-02 Robert Millan <rmh@aybabtu.com>
43183
43184 * disk/memdisk.c (memdisk_size): Don't initialize.
43185 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
43186
43187 * include/grub/i386/pc/kernel.h
43188 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
43189 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
43190 (grub_memdisk_image_size, grub_arch_memdisk_addr)
43191 (grub_arch_memdisk_size): Remove.
43192
43193 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
43194 field (was only used to transfer a constant). Add `type' field to
43195 support multiple module types.
43196 (grub_module_iterate): New function.
43197
43198 * kern/device.c (grub_device_open): Do not hide error messages
43199 when grub_disk_open() fails. Use grub_print_error() instead.
43200
43201 * kern/i386/pc/init.c (grub_arch_modules_addr)
43202 (grub_arch_memdisk_size): Remove functions.
43203 (grub_arch_modules_addr): Return the module address in high memory
43204 (now that it isn't copied anymore).
43205
43206 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
43207 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
43208 decompression routine (grub_total_module_size already includes that
43209 now). Don't copy modules back to low memory.
43210
43211 * kern/main.c: Include `<grub/mm.h>'.
43212 (grub_load_modules): Split out (and use) ...
43213 (grub_module_iterate): ... this function, which iterates through
43214 module objects and runs a hook.
43215 Comment out grub_mm_init_region() call, as it would cause non-ELF
43216 modules to be overwritten.
43217
43218 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
43219 the memdisk image in its own region, make it part of the module list.
43220 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
43221 (main): Parse --memdisk|-m option, and pass user-provided path as
43222 parameter to generate_image().
43223 (add_segments): Pass `memdisk_path' down to load_modules().
43224 (load_modules): Embed memdisk image in module section when requested.
43225 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
43226 `header.type' instead of `header.offset'.
43227
43228 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
43229 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
43230 (memdisk_mod_LDFLAGS): New variables.
43231 * conf/i386-coreboot.rmk: Likewise.
43232 * conf/i386-ieee1275.rmk: Likewise.
43233
43234 2008-08-02 Robert Millan <rmh@aybabtu.com>
43235
43236 * loader/i386/pc/multiboot.c (playground, forward_relocator)
43237 (backward_relocator): New variables. Used to allocate and relocate
43238 the payload, respectively.
43239 (grub_multiboot_load_elf32): Load into heap instead of requested
43240 address, install the appropriate relocator code in each bound of
43241 the payload, and set the entry point such that
43242 grub_multiboot_real_boot() will jump to one of them.
43243
43244 * kern/i386/loader.S (grub_multiboot_payload_size)
43245 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43246 (grub_multiboot_payload_entry_offset): New variables.
43247 (grub_multiboot_real_boot): Set cpu context to what the relocator
43248 expects, and jump to the relocator instead of the payload.
43249
43250 * include/grub/i386/loader.h (grub_multiboot_payload_size)
43251 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43252 (grub_multiboot_payload_entry_offset): Export.
43253
43254 2008-08-01 Bean <bean123ch@gmail.com>
43255
43256 * normal/menu_entry.c (editor_getline): Don't return the original
43257 string as result, as it will be released by lexer once it has done
43258 using it.
43259
43260 2008-08-01 Robert Millan <rmh@aybabtu.com>
43261
43262 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
43263 within menuentries, not before them.
43264 util/grub.d/10_hurd.in: Likewise.
43265
43266 2008-08-01 Bean <bean123ch@gmail.com>
43267
43268 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
43269 (bufio_mod_SOURCES): New macro.
43270 (bufio_mod_CFLAGS): Likewise.
43271 (bufio_mod_LDFLAGS): Likewise.
43272
43273 * include/grub/bufio.h: New file.
43274
43275 * io/bufio.c: Likewise.
43276
43277 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
43278 (grub_video_reader_png): Use grub_buffile_open to open file.
43279
43280 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
43281 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
43282
43283 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
43284 (grub_video_reader_tga): Use grub_buffile_open to open file.
43285
43286 * font/manager.c: Include <grub/bufio.h>.
43287 (add_font): Use grub_buffile_open to open file.
43288
43289 2008-07-31 Robert Millan <rmh@aybabtu.com>
43290
43291 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
43292 ELF segments, use a macro for arbitrarily accessing any of them instead
43293 of preparing a pointer that allows access to one at a time.
43294 (grub_multiboot_load_elf64): Likewise.
43295
43296 2008-07-31 Bean <bean123ch@gmail.com>
43297
43298 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
43299 GRUB_KERNEL_MACHINE_DATA_END.
43300
43301 2008-07-30 Robert Millan <rmh@aybabtu.com>
43302
43303 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
43304 Increase from 0x50 to 0x60.
43305 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
43306 use UUIDs to identify the root drive for them. If that's not
43307 possible, abort.
43308 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
43309 check, for cross-disk installs.
43310
43311 2008-07-30 Robert Millan <rmh@aybabtu.com>
43312
43313 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
43314 is non-empty, use it to set the `prefix' environment variable instead
43315 of the usual approach.
43316 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
43317 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
43318 environment variable instead of dummy make_install_device().
43319
43320 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
43321 (start): Insert a data section, with `grub_prefix' variable.
43322 * kern/i386/linuxbios/startup.S: Likewise.
43323
43324 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
43325 New variable reference.
43326 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
43327 New macro. Defines offset of `grub_prefix' within startup.S (relative
43328 to `start').
43329 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
43330 section within startup.S (relative to `start').
43331 * include/grub/i386/coreboot/kernel.h: Likewise.
43332
43333 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
43334 Overwrite grub_prefix with its contents, at the beginning of the
43335 first segment.
43336 (main): Understand -p|--prefix.
43337
43338 2008-07-30 Robert Millan <rmh@aybabtu.com>
43339
43340 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
43341
43342 2008-07-30 Robert Millan <rmh@aybabtu.com>
43343
43344 * term/i386/pc/vga_text.c (grub_console_cls): Use
43345 grub_console_gotoxy() to go back to beginning of the screen.
43346 Found by Patrick Georgi <patrick.georgi@coresystems.de>
43347
43348 2008-07-29 Christian Franke <franke@computer.org>
43349
43350 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
43351 Add conversion of emulated mount points on Cygwin.
43352
43353 2008-07-29 Christian Franke <franke@computer.org>
43354
43355 * util/update-grub.in: Add a check for admin
43356 group on Cygwin.
43357 Remove old `grub.cfg.new' before creation.
43358 Add `-f' to `mv' to handle the different filesystem
43359 semantics of Windows.
43360
43361 2008-07-29 Bean <bean123ch@gmail.com>
43362
43363 * normal/main.c (get_line): Fix buffer overflow bug.
43364
43365 2008-07-28 Robert Millan <rmh@aybabtu.com>
43366
43367 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
43368 (struct grub_apple_header): New struct. Describes the layout of
43369 the partmap header.
43370 (apple_partition_map_iterate): Check the header magic as well as the
43371 partition magic (which was already being checked).
43372
43373 2008-07-28 Pavel Roskin <proski@gnu.org>
43374
43375 * genmk.rb: Add a warning to the beginning of the output that
43376 it's a generated file and should not be edited.
43377
43378 2008-07-28 Robert Millan <rmh@aybabtu.com>
43379
43380 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
43381 with the same number are found, just use issue a warning with
43382 grub_dprintf(), as this error has been reported to be non-fatal.
43383
43384 2008-07-27 Robert Millan <rmh@aybabtu.com>
43385
43386 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
43387 information.
43388
43389 2008-07-27 Bean <bean123ch@gmail.com>
43390
43391 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
43392 (grub_fat_find_dir): Ignore case when comparing filename.
43393
43394 2008-07-27 Bean <bean123ch@gmail.com>
43395
43396 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
43397 smallino, as it's more descriptive, and i8count can be confused with
43398 the other field count.
43399 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
43400 inode type.
43401
43402 2008-07-27 Bean <bean123ch@gmail.com>
43403
43404 * commands/crc.c: New file.
43405
43406 * lib/crc.c: Likewise.
43407
43408 * include/grub/lib/crc.h: Likewise.
43409
43410 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
43411
43412 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
43413 (hexdump): Move this function to ...
43414
43415 * lib/hexdump.c: ... here.
43416
43417 * include/grub/hexdump.h: Renamed to ...
43418
43419 * include/grub/lib/hexdump.h: ... this.
43420
43421 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
43422
43423 * util/grub-editenv.c: Likewise.
43424
43425 * include/envblk.h: Renamed to ...
43426
43427 * include/lib/envblk.h: ... this.
43428
43429 * util/envblk.c: Renamed to ...
43430
43431 * lib/envblk.c: ... this.
43432
43433 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
43434 lib/hexdump.c.
43435 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
43436 (pkglib_MODULES): Add crc.mod.
43437 (hexdump_mod_SOURCES): Add lib/hexdump.c.
43438 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
43439 (crc_mod_SOURCES): New macro.
43440 (crc_mod_CFLAGS): Likewise.
43441 (crc_mod_LDFLAGS): Likewise.
43442
43443 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
43444
43445 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
43446
43447 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
43448
43449 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43450
43451 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
43452
43453 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
43454
43455 * commands/help.c: Include <grub/term.h>.
43456 (TERM_WIDTH): Removed. Updated all users.
43457
43458 2008-07-27 Pavel Roskin <proski@gnu.org>
43459
43460 * util/getroot.c (find_root_device): Rephrase a comment to avoid
43461 spurious warnings about a comment within a comment.
43462
43463 2008-07-25 Robert Millan <rmh@aybabtu.com>
43464
43465 * util/getroot.c (find_root_device): Skip devices that match
43466 /dev/dm-[0-9]. This lets the real device be found for any type of
43467 abstraction (LVM, EVMS, RAID..).
43468 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
43469 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
43470 device is found first, find_root_device() will now skip it.
43471
43472 2008-07-24 Pavel Roskin <proski@gnu.org>
43473
43474 * include/grub/types.h: Use __builtin_bswap32() and
43475 __builtin_bswap64() with gcc 4.3 and newer.
43476
43477 2008-07-24 Christian Franke <franke@computer.org>
43478
43479 * util/i386/pc/grub-install.in: If `--debug' is specified,
43480 pass `--verbose' to grub-setup.
43481 Abort script if make_system_path_relative_to_its_root() fails.
43482
43483 2008-07-24 Bean <bean123ch@gmail.com>
43484
43485 * configure.ac: Fixed a bug caused by the previous cygwin patch,
43486 variable `target_platform' should be `platform'.
43487
43488 2008-07-24 Bean <bean123ch@gmail.com>
43489
43490 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
43491 (grub_png_init_fixed_block): New function.
43492 (grub_png_decode_image_data): Handle fixed huffman code compression.
43493
43494 2008-07-24 Bean <bean123ch@gmail.com>
43495
43496 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
43497 (grub_pe2elf_SOURCES): New macro.
43498 (CLEANFILES): Add grub-pe2elf.
43499
43500 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
43501 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
43502 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
43503 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
43504 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
43505 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
43506 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
43507 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
43508 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
43509 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
43510 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
43511 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
43512 (GRUB_PE32_DT_FUNCTION): Likewise.
43513 (GRUB_PE32_REL_I386_DIR32): Likewise.
43514 (GRUB_PE32_REL_I386_REL32): Likewise.
43515 (grub_pe32_symbol): New structure.
43516 (grub_pe32_reloc): Likewise.
43517
43518 * util/grub-pe2elf.c: New file.
43519
43520 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
43521 start symbol in non pc platform.
43522
43523 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
43524
43525 The following patches are from Christian Franke.
43526
43527 * include/grub/dl.h: Remove .previous, gas supports this only
43528 for ELF format.
43529
43530 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
43531 Remove .type, gas supports this only for ELF format.
43532
43533 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
43534 nullbytes in symbol table. This fixes an infinite loop if table is
43535 zero filled.
43536
43537 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
43538 TARGET_IMG_LDFLAGS and EXEEXT.
43539
43540 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
43541 TARGET_IMG_LDFLAGS_AC.
43542 (grub_CHECK_STACK_ARG_PROBE): New function.
43543
43544 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
43545
43546 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
43547
43548 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
43549 to set TARGET_IMG_LD* accordingly.
43550 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
43551 Add call to grub_CHECK_STACK_ARG_PROBE.
43552 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
43553
43554 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
43555
43556 * genmk.rb: Add EXEEXT to CLEANFILES.
43557
43558 2008-07-23 Robert Millan <rmh@aybabtu.com>
43559
43560 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
43561 define the codes for arrows and lines used for the menu).
43562 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
43563 as well.
43564
43565 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
43566 fonts, because the latter are too slow.
43567
43568 2008-07-21 Bean <bean123ch@gmail.com>
43569
43570 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
43571 a20. Run keyboard test last, as it will cause macbook to halt.
43572
43573 2008-07-18 Pavel Roskin <proski@gnu.org>
43574
43575 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
43576 load foreign architecture modules correctly anyway. Keep
43577 support for loading host architecture modules, whether we
43578 compile them or not.
43579
43580 2008-07-17 Pavel Roskin <proski@gnu.org>
43581
43582 * configure.ac: Use -m32 or -m64 regardless of whether we had to
43583 change target_cpu. The compiler default can mismatch target_cpu
43584 in any case.
43585
43586 * disk/efi/efidisk.c: Fix format warnings on x86_64.
43587 * kern/efi/efi.c: Likewise.
43588
43589 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
43590 target compiler is functional.
43591 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
43592 are set up.
43593
43594 * configure.ac: Default to efi platform for x86_64-apple. Allow
43595 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
43596 adjustments from the rest, only do them if target is not
43597 explicitly given. Merge other adjustments with the final sanity
43598 check. Remove an extraneous check for supported CPU. Be
43599 specific which CPU and which platform is not supported.
43600
43601 * configure.ac: Default to pc platform for x86_64.
43602
43603 2008-07-17 Robert Millan <rmh@aybabtu.com>
43604
43605 Partial LinuxBIOS -> Coreboot rename.
43606
43607 * conf/i386-linuxbios.rmk: Renamed to ...
43608 * conf/i386-coreboot.rmk: ... this.
43609 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
43610 * configure.ac: Accept "coreboot" as input platform (but maintain
43611 compatibility with "linuxbios").
43612 * include/grub/i386/linuxbios: Renamed to ...
43613 * include/grub/i386/coreboot: ... this.
43614
43615 2008-07-17 Bean <bean123ch@gmail.com>
43616
43617 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
43618 (appleldr_mod_SOURCE): New variable.
43619 (appleldr_mod_CFLAGS): Likewise.
43620 (appleldr_mod_LDFLAGS): Likewise.
43621 (pci_mod_SOURCES): Likewise.
43622 (pci_mod_CFLAGS): Likewise.
43623 (pci_mod_LDFLAGS): Likewise.
43624 (lspci_mod_SOURCES): Likewise.
43625 (lspci_mod_CFLAGS): Likewise.
43626 (lspci_mod_LDFLAGS): Likewise.
43627
43628 * conf/x86_64-efi.rmk: New file.
43629
43630 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
43631 macro.
43632 (grub_efidisk_write): Likewise.
43633
43634 * include/efi/api.h (efi_call_0): New macro.
43635 (efi_call_1): Likewise.
43636 (efi_call_2): Likewise.
43637 (efi_call_3): Likewise.
43638 (efi_call_4): Likewise.
43639 (efi_call_5): Likewise.
43640 (efi_call_6): Likewise.
43641
43642 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
43643 grub_rescue_cmd_chainloader.
43644
43645 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
43646 (grub_pe32_optional_header): Change some fields based on i386 or
43647 x86_64 platform.
43648 (GRUB_PE32_PE32_MAGIC): Likewise.
43649
43650 * include/grub/efi/uga_draw.h: New file.
43651
43652 * include/grub/elf.h (STN_ABS): New constant.
43653 (R_X86_64_NONE): Relocation constant for x86_64.
43654 (R_X86_64_64): Likewise.
43655 (R_X86_64_PC32): Likewise.
43656 (R_X86_64_GOT32): Likewise.
43657 (R_X86_64_PLT32): Likewise.
43658 (R_X86_64_COPY): Likewise.
43659 (R_X86_64_GLOB_DAT): Likewise.
43660 (R_X86_64_JUMP_SLOT): Likewise.
43661 (R_X86_64_RELATIVE): Likewise.
43662 (R_X86_64_GOTPCREL): Likewise.
43663 (R_X86_64_32): Likewise.
43664 (R_X86_64_32S): Likewise.
43665 (R_X86_64_16): Likewise.
43666 (R_X86_64_PC16): Likewise.
43667 (R_X86_64_8): Likewise.
43668 (R_X86_64_PC8): Likewise.
43669
43670 * include/grub/i386/efi/pci.h: New file.
43671
43672 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
43673 Change it value based on platform.
43674 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
43675 (GRUB_E820_RAM): Likewise.
43676 (GRUB_E820_RESERVED): Likewise.
43677 (GRUB_E820_ACPI): Likewise.
43678 (GRUB_E820_NVS): Likewise.
43679 (GRUB_E820_EXEC_CODE): Likewise.
43680 (GRUB_E820_MAX_ENTRY): Likewise.
43681 (grub_e820_mmap): New structure.
43682 (linux_kernel_header): Change the efi field according to different
43683 kernel version, also field from linux_kernel_header.
43684
43685 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
43686
43687 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
43688 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
43689 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
43690 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
43691 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
43692 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
43693 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
43694 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
43695 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
43696 (GRUB_PCI_ADDR_IO_MASK): Likewise.
43697
43698 * include/grub/x86_64/efi/kernel.h: New file.
43699
43700 * include/grub/x86_64/efi/loader.h: Likewise.
43701
43702 * include/grub/x86_64/efi/machine.h: Likewise.
43703
43704 * include/grub/x86_64/efi/pci.h: Likewise.
43705
43706 * include/grub/x86_64/efi/time.h: Likewise.
43707
43708 * include/grub/x86_64/linux.h: Likewise.
43709
43710 * include/grub/x86_64/setjmp.h: Likewise.
43711
43712 * include/grub/x86_64/time.h: Likewise.
43713
43714 * include/grub/x86_64/types.h: Likewise.
43715
43716 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
43717 GRUB_TARGET_SIZEOF_VOID_P.
43718
43719 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
43720 (grub_efi_locate_handle): Likewise.
43721 (grub_efi_open_protocol): Likewise.
43722 (grub_efi_set_text_mode): Likewise.
43723 (grub_efi_stall): Likewise.
43724 (grub_exit): Likewise.
43725 (grub_reboot): Likewise.
43726 (grub_halt): Likewise.
43727 (grub_efi_exit_boot_services): Likewise.
43728 (grub_get_rtc): Likewise.
43729
43730 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
43731 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
43732 (grub_efi_allocate_pages): Wrap efi calls.
43733 (grub_efi_free_pages): Wrap efi calls.
43734 (grub_efi_get_memory_map): Wrap efi calls.
43735
43736 * kern/x86_64/dl.c: New file.
43737
43738 * kern/x86_64/efi/callwrap.S: Likewise.
43739
43740 * kern/x86_64/efi/startup.S: Likewise.
43741
43742 * loader/efi/appleloader.c: Likewise.
43743
43744 * loader/efi/chainloader.c (cmdline): New variable.
43745 (grub_chainloader_unload): Wrap efi calls.
43746 (grub_chainloader_boot): Likewise.
43747 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
43748 command line.
43749
43750 * loader/efi/chainloader_normal.c (chainloader_command):
43751 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
43752 command line.
43753
43754 * loader/i386/efi/linux.c (allocate_pages): Change allocation
43755 method.
43756 (grub_e820_add_region): New function.
43757 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
43758 booting.
43759 (grub_find_video_card): New function.
43760 (grub_linux_setup_video): New function.
43761 (grub_rescue_cmd_linux): Probe for video information.
43762
43763 * normal/x86_64/setjmp.S: New file.
43764
43765 * term/efi/console.c (map_char): New function.
43766 (grub_console_putchar): Map unicode char.
43767 (grub_console_checkkey): Wrap efi calls.
43768 (grub_console_getkey): Likewise.
43769 (grub_console_getwh): Likewise.
43770 (grub_console_gotoxy): Likewise.
43771 (grub_console_cls): Likewise.
43772 (grub_console_setcolorstate): Likewise.
43773 (grub_console_setcursor): Likewise.
43774
43775 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
43776
43777 2008-07-16 Pavel Roskin <proski@gnu.org>
43778
43779 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
43780 format strings.
43781
43782 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
43783 pointer, not an integer. This fixes a warning and prevents
43784 precision loss on 64-bit systems.
43785 (relocate_addresses): Remove unneeded cast.
43786
43787 2008-07-15 Pavel Roskin <proski@gnu.org>
43788
43789 * kern/i386/ieee1275/init.c: Include grub/cache.h.
43790
43791 * term/ieee1275/ofconsole.c: Disable code unused on i386.
43792
43793 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
43794 Fix comparison between signed and unsigned.
43795
43796 * include/grub/i386/ieee1275/console.h: Declare
43797 grub_console_init() and grub_console_fini().
43798
43799 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
43800 It's empty and unused.
43801
43802 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
43803 beginning to avoid warnings with some compilers.
43804
43805 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
43806 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
43807
43808 2008-07-14 Pavel Roskin <proski@gnu.org>
43809
43810 * kern/env.c (grub_register_variable_hook): Don't copy empty
43811 string, it leaks memory. Pass "" to grub_env_set(), it should
43812 handle constant strings.
43813
43814 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
43815 * commands/cmp.c (grub_cmd_cmp): Likewise.
43816 * kern/dl.c (grub_dl_flush_cache): Likewise.
43817 (grub_dl_load_core): Likewise.
43818 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
43819 (grub_elf64_load_phdrs): Likewise.
43820
43821 2008-07-13 Pavel Roskin <proski@gnu.org>
43822
43823 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
43824 between signed and unsigned.
43825 (LzmaEnc_Finish): Fix warning about an unused parameter.
43826
43827 2008-07-13 Bean <bean123ch@gmail.com>
43828
43829 * Makefile.in (enable_lzo): New rule.
43830
43831 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
43832
43833 * configure.ac (ENABLE_LZO): New option --enable-lzo.
43834
43835 * boot/i386/pc/lnxboot.S: #include <config.h>.
43836
43837 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
43838 its value according to the compression algorithm used, lzo or lzma.
43839
43840 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
43841 compression algorithm according to configure macro.
43842
43843 * kern/i386/pc/startup.S (codestart): Likewise.
43844
43845 * kern/i386/pc/lzma_decode.S: New file.
43846
43847 * include/grub/lib/LzFind.h: Likewise.
43848
43849 * include/grub/lib/LzHash.h: Likewise.
43850
43851 * include/grub/lib/LzmaDec.h: Likewise.
43852
43853 * include/grub/lib/LzmaEnc.h: Likewise.
43854
43855 * include/grub/lib/LzmaTypes.h: Likewise.
43856
43857 * lib/LzFind.c: Likewise.
43858
43859 * lib/LzmaDec.c: Likewise.
43860
43861 * lib/LzmaEnc.c: Likewise.
43862
43863 2008-07-13 Bean <bean123ch@gmail.com>
43864
43865 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
43866 (grub_ext4_extent_header): New structure.
43867 (grub_ext4_extent): Likewise.
43868 (grub_ext4_extent_idx): Likewise.
43869 (grub_ext4_find_leaf): New function.
43870 (grub_ext2_read_block): Handle extents.
43871
43872 2008-07-12 Robert Millan <rmh@aybabtu.com>
43873
43874 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
43875
43876 2008-07-11 Robert Millan <rmh@aybabtu.com>
43877
43878 * util/grub.d/40_custom.in: New file. Example on how to add custom
43879 entries to /etc/grub.d.
43880 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
43881 40_custom (implicitly, by merging all the grub.d rules).
43882
43883 2008-07-11 Pavel Roskin <proski@gnu.org>
43884
43885 * commands/read.c (grub_getline): Fix invalid memory access.
43886 Don't add newline to the variable value.
43887
43888 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
43889 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
43890 (serial_hw_get_port): Check validity of the port number.
43891 (grub_cmd_serial): Check return value of serial_hw_get_port().
43892
43893 2008-07-07 Pavel Roskin <proski@gnu.org>
43894
43895 * boot/i386/pc/diskboot.S (notification_string): Replace
43896 "Loading kernel" with just "loading". This is shorter, less
43897 confusing and saves a few bytes for possible future changes.
43898
43899 2008-07-05 Pavel Roskin <proski@gnu.org>
43900
43901 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
43902 size for ATAPI devices, they are undefined. Output sector
43903 number in decimal form.
43904
43905 * disk/ata.c: Use named constants for status bits.
43906
43907 2008-07-04 Pavel Roskin <proski@gnu.org>
43908
43909 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
43910 grub_addr_t before casting it to the void pointer to fix a
43911 warning. Non-addressable regions are discarded earlier.
43912 (grub_arch_modules_addr): Cast _end to grub_addr_t.
43913 * kern/i386/linuxbios/table.c: Include grub/misc.h.
43914 (check_signature): Don't shadow table_header.
43915 (grub_linuxbios_table_iterate): Cast numeric constants to
43916 grub_linuxbios_table_header_t.
43917 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
43918 grub_stop().
43919
43920 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
43921 prevent warnings.
43922
43923 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
43924 pointer, which can cause warnings. Support 64-bit addresses.
43925
43926 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
43927 of sizeof(long). This fixes PowerPC image generation on x86_64.
43928
43929 2008-07-04 Robert Millan <rmh@aybabtu.com>
43930
43931 This fixes a performance issue when pc & gpt partmap iterators
43932 didn't abort iteration even after our hook found what it was
43933 looking for (often causing expensive probes of non-existent drives).
43934
43935 Some callers relied on previous buggy behaviour, since they would
43936 raise an error when their own hooks caused early abortion of its
43937 iteration.
43938
43939 * kern/device.c (grub_device_open): Improve error message.
43940 * disk/lvm.c (grub_lvm_open): Likewise.
43941 * disk/raid.c (grub_raid_open): Likewise.
43942
43943 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
43944 when hook requests it, independently of grub_errno.
43945 (pc_partition_map_probe): Do not fail when find_func() caused
43946 early abortion of pc_partition_map_iterate().
43947
43948 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
43949 when hook requests it, independently of grub_errno.
43950 (gpt_partition_map_probe): Do not fail when find_func() caused
43951 early abortion of gpt_partition_map_iterate().
43952
43953 * kern/partition.c (grub_partition_iterate): Abort parent iteration
43954 when hook requests it, independently of grub_errno. Do not fail when
43955 part_map_iterate_hook() caused early abortion of p->iterate().
43956
43957 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
43958 when grub_partition_iterate() returned with non-zero.
43959
43960 2008-07-03 Pavel Roskin <proski@gnu.org>
43961
43962 * disk/ata.c (grub_ata_pio_write): Check status before writing,
43963 like we do in grub_ata_pio_read().
43964 (grub_ata_readwrite): Always write individual sectors. Fix the
43965 sector count for the remainder.
43966 (grub_ata_write): Enable writing to ATA devices. Correctly
43967 report error for ATAPI devices.
43968
43969 2008-07-02 Pavel Roskin <proski@gnu.org>
43970
43971 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
43972 warning.
43973
43974 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
43975 for every read sector, we already increment it for the whole
43976 batch. This fixes reading more than 256 sectors at once.
43977
43978 * util/grub-editenv.c (cmd_info): Cast argument to long
43979 explicitly. ptrdiff_t reduces to int on i386.
43980
43981 * util/grub-editenv.c (main): Be specific which parameter is
43982 missing.
43983
43984 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
43985 (memdisk): Make memdisk_orig_addr a pointer.
43986
43987 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
43988 for file offsets, use grub_off_t instead. Fix printf format
43989 warnings.
43990
43991 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
43992 there. Real unexpected warnings should not drown in the noise
43993 about known problems.
43994
43995 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
43996 grub_disk_addr_t for memory addresses.
43997
43998 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
43999 explicitly to fix a warning.
44000
44001 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
44002
44003 * Makefile.in (MODULE_LDFLAGS): New variable.
44004 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
44005 the linker accepts --build-id=none.
44006 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
44007 MODULE_LDFLAGS.
44008 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
44009
44010 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
44011 those in Linux XFS code. Provide a way to access 64-bit parent
44012 inode.
44013 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
44014 the end of struct grub_xfs_dir_header.
44015
44016 2008-07-02 Bean <bean123ch@gmail.com>
44017
44018 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
44019 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44020 and GRUB_IEEE1275_FLAG_NO_ANSI.
44021
44022 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
44023 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44024 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
44025
44026 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
44027 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
44028
44029 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
44030 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
44031
44032 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
44033 esc sequence on non ANSI terminal.
44034 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
44035
44036 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
44037 beginning of file.
44038
44039 2008-07-02 Bean <bean123ch@gmail.com>
44040
44041 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
44042 (grub_editenv_SOURCES): New variable.
44043 (pkglib_MODULES): Add loadenv.mod.
44044 (loadenv_mod_SOURCES): New variable.
44045 (loadenv_mod_CFLAGS): Likewise.
44046 (loadenv_mod_LDFLAGS): Likewise.
44047
44048 * include/grub/envblk.h: New file.
44049
44050 * util/envblk.c: New file.
44051
44052 * util/grub-editenv.c: New file.
44053
44054 * commands/loadenv.c: New file.
44055
44056 2008-07-01 Pavel Roskin <proski@gnu.org>
44057
44058 * include/multiboot2.h (struct multiboot_tag_module): Use char,
44059 not unsigned char. This fixes warnings and is consistent with
44060 other tags.
44061
44062 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
44063
44064 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
44065
44066 * term/tparm.c (analyze): Always set *popcount.
44067
44068 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
44069 cast to fix a warning.
44070
44071 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
44072 cast to suppress a warning.
44073
44074 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
44075 grub_fshelp_read_file() expects.
44076
44077 * fs/fat.c: Fix UUID calculation on big-endian systems. We
44078 write uuid as a 32-bit value in CPU byte order, so declare and
44079 use it as such.
44080
44081 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
44082 long if the format specifier expects it.
44083 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
44084 * partmap/pc.c (pc_partition_map_iterate): Likewise.
44085 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
44086 long to fix a warning.
44087 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
44088 grub_dprintf() arguments to fix warnings.
44089
44090 2008-06-30 Pavel Roskin <proski@gnu.org>
44091
44092 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
44093 install_bsd_part immediately before core.img is embedded or
44094 modified on disk. This fixes core.img verification if core.img
44095 cannot be embedded.
44096
44097 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
44098 core_path to calculate the blocklist.
44099 Patch from Javier Martín <lordhabbit@gmail.com>
44100
44101 2008-06-29 Robert Millan <rmh@aybabtu.com>
44102
44103 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
44104 block to disk block.
44105 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
44106 Patch from Niels Böhm <bitbucket@arcor.de>
44107
44108 2008-06-29 Robert Millan <rmh@aybabtu.com>
44109
44110 * util/update-grub_lib.in (font_path): Search for fonts in
44111 /boot/grub first, which is more likely to be readable (we aren't
44112 deciding where fonts live, just looking for them).
44113
44114 2008-06-26 Pavel Roskin <proski@gnu.org>
44115
44116 * util/biosdisk.c (read_device_map): Don't leave dead map
44117 entries for devices failing stat() check.
44118
44119 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
44120 core_path_dev for the core.img path on the target device.
44121
44122 2008-06-26 Robert Millan <rmh@aybabtu.com>
44123
44124 * disk/fs_uuid.c: New file.
44125 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
44126 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
44127 (fs_uuid_mod_LDFLAGS): New variables.
44128 * include/grub/disk.h (grub_disk_dev_id): Add
44129 `GRUB_DISK_DEVICE_UUID_ID'.
44130 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
44131 implement iterate().
44132
44133 2008-06-26 Robert Millan <rmh@aybabtu.com>
44134
44135 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
44136 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
44137 Linux image includes no initrd.
44138
44139 2008-06-21 Javier Martín <lordhabbit@gmail.com>
44140
44141 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
44142 call to resolve the core image location that effectively appended the
44143 name twice.
44144
44145 2008-06-21 Robert Millan <rmh@aybabtu.com>
44146
44147 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
44148 call from here ...
44149
44150 * util/grub.d/10_hurd.in: ... to here ...
44151 * util/grub.d/10_linux.in: ... and here.
44152
44153 2008-06-19 Robert Millan <rmh@aybabtu.com>
44154
44155 * kern/main.c (grub_main): Export `prefix' variable immediately
44156 after it has been set by grub_machine_set_prefix().
44157
44158 2008-06-19 Robert Millan <rmh@aybabtu.com>
44159
44160 * commands/search.c (search_label, search_fs_uuid, search_file): Print
44161 search result when not saving to variable, not the other way around.
44162 When saving to variable, abort iteration as soon as a match is found.
44163
44164 2008-06-19 Robert Millan <rmh@aybabtu.com>
44165
44166 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
44167 check for partition that provides /boot/grub. Its logic is flawed,
44168 as it prevents prepare_grub_to_access_device() from being called
44169 multiple times.
44170
44171 2008-06-19 Robert Millan <rmh@aybabtu.com>
44172
44173 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
44174 "insmod" command directly when abstraction modules are needed,
44175 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
44176 since it had already been processed).
44177
44178 2008-06-19 Pavel Roskin <proski@gnu.org>
44179
44180 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
44181 changed. This is needed in case GRUB_LIBDIR changes.
44182 * conf/i386-ieee1275.rmk: Likewise.
44183 * conf/i386-linuxbios.rmk: Likewise.
44184 * conf/i386-pc.rmk: Likewise.
44185 * conf/powerpc-ieee1275.rmk: Likewise.
44186
44187 2008-06-18 Pavel Roskin <proski@gnu.org>
44188
44189 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
44190 kernel_elf_symlist.c to symlist.c for consistency with other
44191 architectures. Update all users.
44192 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
44193
44194 2008-06-18 Robert Millan <rmh@aybabtu.com>
44195
44196 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
44197 it in prefix.
44198
44199 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
44200 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
44201 a RAID device, run setup() for all members independently on whether
44202 LVM abstraction is being used.
44203 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
44204 If grub-mkimage has set `*install_dos_part == -2', don't override this
44205 value.
44206 Perform *install_dos_part adjustments independently on whether
44207 we're embedding or not.
44208 Clarify error message when image is too big for embedding.
44209 Remove duplicate *install_dos_part stanza.
44210
44211 2008-06-17 Robert Millan <rmh@aybabtu.com>
44212
44213 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
44214 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
44215 variables.
44216 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
44217 values in grub_ofconsole_normal_color and
44218 grub_ofconsole_highlight_color (they're not directly related to
44219 background and foreground).
44220 (grub_ofconsole_setcolorstate): Extract background and foreground
44221 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
44222
44223 2008-06-17 Robert Millan <rmh@aybabtu.com>
44224
44225 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
44226 /boot/grub for the check in last commit, not /boot (they could be
44227 different partitions).
44228
44229 2008-06-16 Robert Millan <rmh@aybabtu.com>
44230
44231 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
44232 asked to setup access for the same partition that provides /boot,
44233 don't bother using UUIDs since our root already has the value we
44234 want.
44235
44236 2008-06-16 Robert Millan <rmh@aybabtu.com>
44237
44238 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
44239 I2O devices.
44240 Patch from Sven Mueller <sven@debian.org>.
44241
44242 2008-06-16 Robert Millan <rmh@aybabtu.com>
44243
44244 * util/update-grub.in: Check for $EUID instead of $UID.
44245 Reported by Vincent Zweije.
44246
44247 2008-06-16 Bean <bean123ch@gmail.com>
44248
44249 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
44250 (grub_ext2_read_block): Likewise.
44251 (grub_ext2_read_inode): Likewise.
44252 (grub_ext2_mount): Likewise.
44253 (grub_ext2_close): Likewise.
44254 (grub_ext3_get_journal): Removed.
44255
44256 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
44257 (grub_reiserfs_read_symlink): Likewise.
44258 (grub_reiserfs_mount): Likewise.
44259 (grub_reiserfs_open): Likewise.
44260 (grub_reiserfs_read): Likewise.
44261 (grub_reiserfs_close): Likewise.
44262 (grub_reiserfs_get_journal): Removed.
44263
44264 * fs/fshelp.c (grub_fshelp_read): Removed.
44265 (grub_fshelp_map_block): Likewise.
44266
44267 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
44268 (grub_fshelp_journal): Likewise.
44269 (grub_fshelp_read): Likewise.
44270 (grub_fshelp_map_block): Likewise.
44271
44272 2008-06-16 Pavel Roskin <proski@gnu.org>
44273
44274 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
44275 floating point anymore.
44276 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
44277
44278 2008-06-15 Pavel Roskin <proski@gnu.org>
44279
44280 * commands/ls.c (grub_ls_list_files): Use integer calculations
44281 for human readable format, avoid floating point use.
44282 * kern/misc.c (grub_ftoa): Remove.
44283 (grub_vsprintf): Remove floating point support.
44284
44285 2008-06-15 Robert Millan <rmh@aybabtu.com>
44286
44287 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
44288 devices.
44289 Reported by Max Vozeler.
44290
44291 2008-06-15 Robert Millan <rmh@aybabtu.com>
44292
44293 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
44294 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
44295 skipped later.
44296 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
44297 the beginning of the prefix.
44298
44299 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
44300 It is assumed that if we have a memdisk, grub-mkimage has set
44301 grub_prefix to include the "(memdisk)" drive in it.
44302
44303 2008-06-15 Robert Millan <rmh@aybabtu.com>
44304
44305 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
44306 Initialize keyboard controller after registering the terminal, so that
44307 grub_printf() can be called from grub_keyboard_controller_init().
44308
44309 2008-06-15 Robert Millan <rmh@aybabtu.com>
44310
44311 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
44312 extent-btree which is written as big endian on disk.
44313 Reported by Alain Greppin <al@chilibi.org>.
44314
44315 2008-06-14 Robert Millan <rmh@aybabtu.com>
44316
44317 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
44318 * util/i386/pc/grub-install.in (modules): Likewise.
44319
44320 2008-06-13 Pavel Roskin <proski@gnu.org>
44321
44322 * commands/ls.c (grub_ls_list_files): Fix format warnings.
44323
44324 2008-06-13 Bean <bean123ch@gmail.com>
44325
44326 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
44327
44328 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
44329
44330 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
44331 to indicate sparse block.
44332
44333 2008-06-12 Pavel Roskin <proski@gnu.org>
44334
44335 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
44336 number, grub_fshelp_read() does it for us.
44337
44338 * fs/fshelp.c (grub_fshelp_read): New function. Implement
44339 linear disk read with journal translation.
44340 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
44341 * include/grub/fshelp.h: Declare grub_fshelp_read().
44342
44343 2008-06-09 Pavel Roskin <proski@gnu.org>
44344
44345 * fs/minix.c (grub_minix_mount): Handle error reading
44346 superblock.
44347
44348 2008-06-08 Robert Millan <rmh@aybabtu.com>
44349
44350 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
44351 don't append the RAID prefix afterwards.
44352 Reported by Clint Adams.
44353
44354 2008-06-08 Robert Millan <rmh@aybabtu.com>
44355
44356 Based on description from Pavel:
44357 * kern/disk.c (grub_disk_check_range): Rename to ...
44358 (grub_disk_adjust_range): ... this. Add a comment explaining the
44359 tasks performed by this function.
44360
44361 2008-06-08 Robert Millan <rmh@aybabtu.com>
44362
44363 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
44364 `num_serial' (for consistency with other variables).
44365 (struct grub_ntfs_data): Add `uuid' member.
44366 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
44367 (grub_ntfs_uuid): New function.
44368 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
44369
44370 2008-06-07 Pavel Roskin <proski@gnu.org>
44371
44372 * util/biosdisk.c (open_device): Revert last change to the
44373 function, it broke installation. The sector needs to be
44374 different dependent on which device is opened.
44375
44376 2008-06-06 Robert Millan <rmh@aybabtu.com>
44377
44378 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
44379 rest of GRUB, and breakage doesn't happen if its value were modified.
44380
44381 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44382 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
44383 a constant (same value).
44384 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
44385 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
44386
44387 2008-06-06 Robert Millan <rmh@aybabtu.com>
44388
44389 * util/biosdisk.c (open_device): Do not modify sector offset when
44390 accessing a partition. kern/disk.c already handles this for us.
44391
44392 2008-06-06 Robert Millan <rmh@aybabtu.com>
44393
44394 * util/grub-emu.c (grub_machine_init): Move code in this function from
44395 here ...
44396 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
44397 segfault in case grub_printf() is called).
44398
44399 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
44400 grub_probe. Update all users not to explicitly add it again.
44401 (grub_device): New variable; contains corresponding device for grubdir.
44402 (fs_module, partmap_module, devabstraction_module): Pass
44403 `--device ${grub_device}' to grub_probe to avoid traversing /dev
44404 every time.
44405
44406 2008-06-05 Robert Millan <rmh@aybabtu.com>
44407
44408 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
44409 is found, print it (same layout as with labels).
44410
44411 2008-06-04 Robert Millan <rmh@aybabtu.com>
44412
44413 * util/biosdisk.c (get_drive): Rename to ...
44414 (find_grub_drive): ... this. Update all users.
44415
44416 (get_os_disk): Rename to ...
44417 (convert_system_partition_to_system_disk): ... this. Update all users.
44418
44419 (find_drive): Rename to ...
44420 (find_system_device): ... this. Update all users.
44421
44422 2008-06-04 Robert Millan <rmh@aybabtu.com>
44423
44424 * util/biosdisk.c (get_os_disk): Handle IDA devices.
44425 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44426 (make_device_map): Likewise.
44427
44428 2008-06-01 Robert Millan <rmh@aybabtu.com>
44429
44430 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
44431 before dereferencing it.
44432
44433 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
44434 union with fat12/fat16-specific ones. Add some new fields, including
44435 `num_serial' for both versions.
44436 (struct grub_fat_data): Add `uuid' member.
44437 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
44438 names. Initialize `data->uuid' using `num_serial'.
44439 (grub_fat_uuid): New function.
44440 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
44441
44442 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
44443 (grub_reiserfs_uuid): New function.
44444 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
44445 member.
44446
44447 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
44448 (grub_xfs_uuid): New function.
44449 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
44450
44451 2008-06-01 Robert Millan <rmh@aybabtu.com>
44452
44453 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
44454 code that is backward compatible with pre-uuid search command.
44455
44456 2008-05-31 Robert Millan <rmh@aybabtu.com>
44457
44458 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
44459 floppies after everything else, to ensure floppy drive isn't accessed
44460 unnecessarily (patch from Bean).
44461
44462 2008-05-31 Robert Millan <rmh@aybabtu.com>
44463
44464 * commands/search.c (search_label, search_fs_uuid, search_file): Do
44465 not print device names when we were asked to set a variable.
44466
44467 2008-05-31 Robert Millan <rmh@aybabtu.com>
44468
44469 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
44470 using "cursor-on" and "cursor-off" commands (understood at least by
44471 the Open Firmware flavour on OLPC).
44472
44473 2008-05-31 Michael Gorven <michael@gorven.za.net>
44474
44475 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
44476 on and off sequences.
44477
44478 2008-05-31 Robert Millan <rmh@aybabtu.com>
44479
44480 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
44481 * util/update-grub.in: Likewise.
44482
44483 2008-05-30 Pavel Roskin <proski@gnu.org>
44484
44485 * util/biosdisk.c (linux_find_partition): Simplify logic and
44486 make the code more universal. Keep special processing for
44487 devfs, but use a simple rule for all other devices. If the
44488 device ends with a number, append 'p' and the partition number.
44489 Otherwise, append only the partition number.
44490
44491 2008-05-30 Robert Millan <rmh@aybabtu.com>
44492
44493 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
44494 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
44495 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
44496 the `root' parameter to Linux.
44497
44498 2008-05-30 Robert Millan <rmh@aybabtu.com>
44499
44500 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
44501 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
44502 --fs_uuid with --fs-uuid.
44503 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
44504 all filesystems support them).
44505
44506 2008-05-30 Robert Millan <rmh@aybabtu.com>
44507
44508 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
44509 grub_printf() flags, since we're printing in units of 2 bytes.
44510
44511 2008-05-30 Robert Millan <rmh@aybabtu.com>
44512
44513 * util/grub.d/00_header.in: Remove obsolete comment referencing
44514 convert_system_path_to_grub_path().
44515 * util/update-grub.in: Likewise.
44516 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
44517 (convert_system_path_to_grub_path): Add a warning message explaining
44518 that this function is deprecated. Rely on is_path_readable_by_grub()
44519 for the readability checks.
44520 (font_path): Use is_path_readable_by_grub() for the readability
44521 check rather than convert_system_path_to_grub_path().
44522
44523 2008-05-30 Robert Millan <rmh@aybabtu.com>
44524
44525 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
44526 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
44527 converting it first.
44528 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
44529 grub.cfg for access to font file, and afterwards call it again to set
44530 the root device.
44531
44532 2008-05-30 Robert Millan <rmh@aybabtu.com>
44533
44534 * commands/search.c (options): Add --fs_uuid option.
44535 (search_fs_uuid): New function.
44536 (grub_cmd_search): Fix --set argument passing.
44537 Use search_fs_uuid() when requested via --fs_uuid.
44538 (grub_search_init): Update help message.
44539 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
44540 and redeclare it as an array of 16-bit words.
44541 (grub_ext2_uuid): New function.
44542 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
44543 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
44544 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
44545 (GRUB_DEVICE_BOOT_UUID): New variables.
44546 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
44547 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
44548 whenever possible.
44549 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
44550 just assume `root' variable has the right value.
44551 * util/grub.d/10_linux.in: Likewise.
44552 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
44553 via PRINT_FS_UUID.
44554 (main): Recognise `-t fs_uuid' argument.
44555
44556 2008-05-30 Robert Millan <rmh@aybabtu.com>
44557
44558 * util/biosdisk.c (map): Redefine structure to hold information
44559 about GRUB drive name.
44560 (get_drive): Reimplement without assuming (and verifying) BIOS-like
44561 drive names.
44562 (call_hook): Remove.
44563 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
44564 member. Assume drive has partitions.
44565 (grub_util_biosdisk_open): Access device names via `.device' struct
44566 member.
44567 (open_device): Likewise.
44568 (find_drive): Likewise.
44569 (read_device_map): Adjust map[] usage to match the new struct
44570 definition. Don't check for duplicates (still possible, but not cheap
44571 anymore).
44572 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
44573 (make_device_name): Remove assumption of BIOS-like drive names.
44574
44575 2008-05-30 Pavel Roskin <proski@gnu.org>
44576
44577 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
44578 compiling execute.c doesn't need grub_script.tab.h anymore.
44579 (normal/command.c_DEPENDENCIES): Likewise.
44580 (normal/function.c_DEPENDENCIES): Likewise.
44581 * conf/i386-ieee1275.rmk: Likewise.
44582 * conf/i386-linuxbios.rmk: Likewise.
44583 * conf/i386-pc.rmk: Likewise.
44584 * conf/powerpc-ieee1275.rmk: Likewise.
44585 * conf/sparc64-ieee1275.rmk: Likewise.
44586
44587 2008-05-29 Pavel Roskin <proski@gnu.org>
44588
44589 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
44590 when scanning metadata for volume group name.
44591
44592 * include/grub/script.h: Don't include grub_script.tab.h. It's
44593 a generated file, which may only be included from the files with
44594 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
44595 use union YYSTYPE, as the later allows forward declaration.
44596 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
44597
44598 2008-05-29 Robert Millan <rmh@aybabtu.com>
44599
44600 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
44601 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
44602 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
44603 (grub_console_checkkey): Add grub_dprintf() call to report unknown
44604 scan codes.
44605
44606 2008-05-29 Robert Millan <rmh@aybabtu.com>
44607
44608 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
44609 control key combinations.
44610
44611 2008-05-29 Robert Millan <rmh@aybabtu.com>
44612
44613 * util/powerpc/ieee1275/grub-install.in: Move from here ...
44614 * util/ieee1275/grub-install.in: ... to here.
44615 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
44616 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
44617 (grub_install_SOURCES): Likewise.
44618
44619 2008-05-29 Robert Millan <rmh@aybabtu.com>
44620
44621 * fs/affs.c: Update copyright year.
44622 * fs/ext2.c: Likewise.
44623 * fs/fshelp.c: Likewise.
44624 * fs/hfsplus.c: Likewise.
44625 * fs/ntfs.c: Likewise.
44626 * fs/xfs.c: Likewise.
44627 * include/grub/fshelp.h: Likewise.
44628 * util/grub-mkdevicemap.c: Likewise.
44629
44630 2008-05-28 Robert Millan <rmh@aybabtu.com>
44631
44632 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
44633 might need to be fatfs to support some firmware implementations
44634 (e.g. OFW or EFI).
44635
44636 2008-05-28 Robert Millan <rmh@aybabtu.com>
44637
44638 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
44639 devices.
44640 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44641 (make_device_map): Likewise.
44642
44643 2008-05-20 Bean <bean123ch@gmail.com>
44644
44645 * fs/fshelp.c (grub_fshelp_map_block): New function.
44646 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
44647 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
44648
44649 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
44650 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
44651 (grub_fshelp_journal): New structure.
44652 (grub_fshelp_map_block): New function prototype.
44653 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
44654 (grub_fshelp_map_block): Likewise.
44655
44656 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
44657 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
44658 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
44659 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
44660 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
44661 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
44662 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
44663 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
44664 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
44665 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
44666 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
44667 (grub_ext2_sblock): New members for journal support.
44668 (grub_ext3_journal_header): New structure.
44669 (grub_ext3_journal_revoke_header): Likewise.
44670 (grub_ext3_journal_block_tag): Likewise.
44671 (grub_ext3_journal_sblock): Likewise.
44672 (grub_fshelp_node): New members logfile and journal.
44673 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
44674 grub_fshelp_map_block to get real block number.
44675 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
44676 number.
44677 (grub_ext2_read_inode): Likewise.
44678 (grub_ext3_get_journal): New function.
44679 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
44680 (grub_ext2_close): Release memory used by journal.
44681
44682 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
44683 (REISERFS_MAGIC_DESC_BLOCK): New macro.
44684 (grub_reiserfs_transaction_header): Renamed to
44685 grub_reiserfs_description_block, replace field data with real_blocks.
44686 (grub_reiserfs_commit_block): New structure.
44687 (grub_reiserfs_data): New member journal.
44688 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
44689 number.
44690 (grub_reiserfs_read_symlink): Likewise.
44691 (grub_reiserfs_iterate_dir): Likewise.
44692 (grub_reiserfs_open): Likewise.
44693 (grub_reiserfs_read): Likewise.
44694 (grub_reiserfs_get_journal): New function.
44695 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
44696 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
44697 using grub_reiserfs_get_journal.
44698 (grub_reiserfs_close): Release memory used by journal.
44699
44700 * fs/affs.c (grub_affs_read_block): Change block type to
44701 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
44702
44703 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
44704
44705 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
44706
44707 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
44708
44709 * fs/udf.c (grub_udf_read_block): Change block type to
44710 grub_disk_addr_t. Use type cast to avoid warning.
44711
44712 * fs/xfs.c (grub_xfs_read_block): Likewise.
44713
44714 2008-05-16 Christian Franke <franke@computer.org>
44715
44716 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
44717 to ensure that break with ESC will always work.
44718 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
44719 Remove ESC from keyboard queue.
44720
44721 2008-05-16 Christian Franke <franke@computer.org>
44722
44723 * util/biosdisk.c: [__CYGWIN__] Add includes.
44724 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
44725 (get_os_disk): Move variable declarations to OS specific
44726 parts to avoid warning.
44727 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
44728 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
44729 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
44730 Cygwin.
44731 * util/getroot.c: [__CYGWIN__] Add includes.
44732 (strip_extra_slashes): Fix "/" case.
44733 [__CYGWIN__] (get_win32_path): New function.
44734 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
44735 [__CYGWIN__] (find_root_device): Disable.
44736 [__CYGWIN__] (get_bootsec_serial): New function.
44737 [__CYGWIN__] (find_cygwin_root_device): Likewise.
44738 [__linux__] (grub_guess_root_device): Add early returns to simplify
44739 structure.
44740 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
44741 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
44742 check for Linux only.
44743
44744 2008-05-15 Bean <bean123ch@gmail.com>
44745
44746 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
44747 keyboard hang problem in apple's intel mac.
44748
44749 2008-05-09 Robert Millan <rmh@aybabtu.com>
44750
44751 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
44752 devices.
44753 * util/grub-mkdevicemap.c (get_virtio_disk_name)
44754 (make_device_map): Likewise.
44755 Reported by Aurelien Jarno <aurel32@debian.org>
44756
44757 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
44758
44759 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
44760 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
44761 (make_device_map): Output entries for xvd type disks.
44762
44763 2008-05-07 Robert Millan <rmh@aybabtu.com>
44764
44765 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
44766 devices.
44767 * util/grub-mkdevicemap.c (get_cciss_disk_name)
44768 (make_device_map): Likewise.
44769 Reported by Roland Dreier <rdreier@cisco.com>
44770
44771 2008-05-07 Robert Millan <rmh@aybabtu.com>
44772
44773 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
44774 grub_strstr() call. Correct a few mistakes in failure path handling.
44775
44776 2008-05-06 Robert Millan <rmh@aybabtu.com>
44777
44778 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
44779 Do not print a trailing slash (therefore, the root directory is an
44780 empty string).
44781 (convert_system_path_to_grub_path): Do not remove trailing slash
44782 from make_system_path_relative_to_its_root() output.
44783
44784 * util/i386/pc/grub-install.in: Add trailing slash to output from
44785 make_system_path_relative_to_its_root().
44786
44787 2008-05-06 Robert Millan <rmh@aybabtu.com>
44788
44789 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
44790 ensures that output lines aren't intermangled with those sent to
44791 stderr (via grub_util_info()).
44792 * util/grub-probe.c (grub_refresh): Likewise.
44793 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
44794
44795 2008-05-05 Christian Franke <franke@computer.org>
44796
44797 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
44798 Add Cygwin device names.
44799 (get_ide_disk_name) [__CYGWIN__]: Likewise.
44800 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
44801 (check_device): Return error instead of success on empty name.
44802 (make_device_map): Move label inside linux specific code to
44803 prevent compiler warning.
44804
44805 2008-04-30 Robert Millan <rmh@aybabtu.com>
44806
44807 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
44808 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
44809 first boot option.
44810 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
44811
44812 2008-04-29 Robert Millan <rmh@aybabtu.com>
44813
44814 * docs/grub.cfg: New file (example GRUB configuration).
44815
44816 2008-04-26 Robert Millan <rmh@aybabtu.com>
44817
44818 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
44819 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
44820 and `disk/ieee1275/nand.c'.
44821
44822 2008-04-25 Bean <bean123ch@gmail.com>
44823
44824 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
44825 i386-linuxbios.
44826
44827 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
44828 change the buffer size to 4096 for cdrom device.
44829
44830 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
44831 and nand.mod.
44832 (_linux_mod_SOURCES): New variable.
44833 (_linux_mod_CFLAGS): Likewise.
44834 (_linux_mod_LDFLAGS): Likewise.
44835 (linux_mod_SOURCES): Likewise.
44836 (linux_mod_CFLAGS): Likewise.
44837 (linux_mod_LDFLAGS): Likewise.
44838 (nand_mod_SOURCES): Likewise.
44839 (nand_mod_CFLAGS): Likewise.
44840 (nand_mod_LDFLAGS): Likewise.
44841
44842 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
44843 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
44844 type property. (nand device in olpc don't have this property)
44845
44846 * include/grub/disk.h (grub_disk_dev_id): New macro
44847 GRUB_DISK_DEVICE_NAND_ID.
44848
44849 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
44850 function prototype.
44851 (grub_rescue_cmd_initrd): Likewise.
44852
44853 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
44854 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
44855 ofw_cif_handler and ofw_idt, adjust padding number.
44856
44857 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
44858 GRUB_MACHINE_IEEE1275 is defined.
44859
44860 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
44861 Use NESTED_FUNC_ATTR attribute on the hook parameter.
44862
44863 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
44864 on nested function heap_init.
44865 (grub_upper_mem): New variable for i386-ieee1275.
44866 (grub_get_extended_memory): New function for i386-ieee1275.
44867 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
44868
44869 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
44870 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
44871 property.
44872
44873 * loader/i386/ieee1275/linux.c: New file.
44874
44875 * loader/i386/ieee1275/linux_normal.c: New file.
44876
44877 * disk/ieee1275/nand.c: New file.
44878
44879 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
44880
44881 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
44882 value.
44883 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
44884
44885 2008-04-18 Robert Millan <rmh@aybabtu.com>
44886
44887 Restructures early code path on ieee1275 to unify grub_main() as
44888 the first C function that is executed in every platform.
44889
44890 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
44891 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
44892 cmain().
44893 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
44894 * kern/ieee1275/cmain.c (cmain): Rename to ...
44895 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
44896 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
44897 at the beginning.
44898
44899 2008-04-18 Robert Millan <rmh@aybabtu.com>
44900
44901 * util/update-grub.in: Fix syntax error when setting
44902 `GRUB_PRELOAD_MODULES'.
44903 Reported by Stephane Chazelas <stephane@artesyncp.com>
44904
44905 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
44906
44907 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
44908 section into account, newer toolchains generate unique build ids
44909 * configure.ac: remove the test for --build-id=none acceptance,
44910 we want build ids to be preserved
44911 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
44912 far from other sections don't cause the raw binary images grow
44913 size
44914
44915 2008-04-15 Robert Millan <rmh@aybabtu.com>
44916
44917 * disk/lvm.c: Update copyright year.
44918 * kern/misc.c: Likewise.
44919
44920 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
44921
44922 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
44923 there is no memory left for physical volume name.
44924
44925 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
44926
44927 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
44928 volume name mapping to support bigger than 9 character names properly.
44929
44930 2008-04-13 Robert Millan <rmh@aybabtu.com>
44931
44932 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
44933 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
44934
44935 2008-04-13 Christian Franke <franke@computer.org>
44936
44937 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
44938 to create a floppy emulation boot CD when non emulation mode
44939 does not work.
44940 Enable Joliet CD filesystem extension.
44941
44942 2008-04-13 Robert Millan <rmh@aybabtu.com>
44943
44944 * kern/misc.c (grub_strncat): Fix off-by-one error.
44945 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
44946
44947 * kern/env.c (grub_env_context_close): Clear current context, not
44948 previous one.
44949 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
44950
44951 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
44952
44953 2008-04-13 Robert Millan <rmh@aybabtu.com>
44954
44955 Improve robustness when handling LVM.
44956
44957 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
44958 (and leave `*p' unmodified).
44959 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
44960 through it.
44961 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
44962 iterating through it.
44963 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
44964 through it.
44965 (grub_lvm_scan_device): Check the return value (and fail gracefully
44966 when due) on each grub_lvm_getvalue() or grub_strstr() call.
44967 Don't assume `vg->pvs != NULL' when iterating through it.
44968
44969 2008-04-13 Robert Millan <rmh@aybabtu.com>
44970
44971 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
44972 * genmk.rb (partmap): New variable.
44973 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
44974 (#{partmap}): New target rule.
44975 * genpartmaplist.sh: New file.
44976 * Makefile.in (pkglib_DATA): Add partmap.lst.
44977 (partmap.lst): New target rule.
44978 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
44979 modules (including all partition maps), instead of preloading them.
44980
44981 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
44982
44983 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
44984 `linux-boot-prober' (if installed) to detect other operating
44985 systems which are installed on the computer and add them to
44986 the boot menu.
44987 * conf/common.rmk: Build and install 30_os-prober.
44988
44989 2008-04-12 Robert Millan <rmh@aybabtu.com>
44990
44991 * kern/powerpc/ieee1275/init.c: Move from here ...
44992 * kern/ieee1275/init.c: ... to here. Update all users.
44993
44994 * kern/powerpc/ieee1275/cmain.c: Move from here ...
44995 * kern/ieee1275/cmain.c: ... to here. Update all users.
44996
44997 * kern/powerpc/ieee1275/openfw.c: Move from here ...
44998 * kern/ieee1275/openfw.c: ... to here. Update all users.
44999
45000 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
45001 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
45002
45003 2008-04-10 Pavel Roskin <proski@gnu.org>
45004
45005 * configure.ac: Always use "_cv_" in cache variables for
45006 compatibility with Autoconf 2.62.
45007
45008 2008-04-07 Robert Millan <rmh@aybabtu.com>
45009
45010 Revert grub/machine/init.h addition by Pavel (since it breaks on
45011 i386-ieee1275 and others):
45012 * util/i386/pc/misc.c: Remove grub/machine/init.h.
45013 * util/powerpc/ieee1275/misc.c: Likewise.
45014
45015 2008-04-07 Robert Millan <rmh@aybabtu.com>
45016
45017 * util/grub-probe.c (probe): Improve error message.
45018
45019 2008-04-07 Robert Millan <rmh@aybabtu.com>
45020
45021 * util/biosdisk.c (read_device_map): Skip devices that don't exist
45022 (this prevents the presence of a bogus entry from ruining the whole
45023 thing).
45024
45025 2008-04-06 Pavel Roskin <proski@gnu.org>
45026
45027 * util/biosdisk.c: Include grub/util/biosdisk.h.
45028 * util/grub-fstest.c (execute_command): Make static.
45029 * util/grub-mkdevicemap.c (check_device): Likewise.
45030 * util/i386/pc/misc.c: Include grub/machine/init.h.
45031 * util/powerpc/ieee1275/misc.c: Likewise.
45032 * util/lvm.c: Include grub/util/lvm.h.
45033 * util/misc.c: Include grub/kernel.h, grub/misc.h and
45034 grub/cache.h.
45035 * util/raid.c: Include grub/util/raid.h.
45036 (grub_util_getdiskname): Make static.
45037
45038 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
45039 grub_hostfs_fini(), as they are called from grub_init_all() and
45040 grub_fini_all() respectively. This fixes an infinite loop in
45041 grub-fstest due to double registration of hostfs.
45042 Reported by Christian Franke <Christian.Franke@t-online.de>
45043
45044 2008-04-05 Pavel Roskin <proski@gnu.org>
45045
45046 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
45047 all 8 functions. Otherwise, probe function 0 only.
45048
45049 2008-04-04 Pavel Roskin <proski@gnu.org>
45050
45051 * commands/lspci.c (grub_lspci_iter): Print the bus number
45052 correctly.
45053
45054 * commands/lspci.c (grub_pci_classes): Fix typos.
45055 (grub_lspci_iter): Don't print func twice. Print vendor ID
45056 before device ID, as it's normally done.
45057
45058 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
45059 Fix signedness warnings.
45060 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
45061 Likewise.
45062 * util/ieee1275/get_disk_name.c: Include config.h so that
45063 _GNU_SOURCE is defined and getline() is declared. Mark an
45064 unused argument as such. Fix a signedness warning.
45065
45066 2008-04-02 Pavel Roskin <proski@gnu.org>
45067
45068 * genkernsyms.sh.in: Use more robust assignments for CC and
45069 srcdir. Quote srcdir.
45070 * gensymlist.sh.in: Likewise. Assert at the compile time that
45071 the symbol table is not empty.
45072
45073 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
45074 * fs/cpio.c (grub_cpio_read): Likewise.
45075
45076 2008-04-01 Pavel Roskin <proski@gnu.org>
45077
45078 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
45079 * disk/host.c (grub_host_open): Likewise.
45080 * disk/loopback.c (grub_loopback_open): Likewise.
45081 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
45082 disk->id as in disk/host.c, not a multi-character constant.
45083
45084 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
45085 later is obsolete, potentially dangerous and sets a bad example.
45086 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
45087 * util/misc.c (grub_util_get_image_size): Likewise.
45088
45089 * disk/loopback.c (options): Improve help for "--partitions".
45090
45091 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
45092 options to align them with the short options, e.g. "echo -e".
45093
45094 2008-03-31 Bean <bean123ch@gmail.com>
45095
45096 * video/reader/png.c (grub_png_data): New member is_16bit and
45097 image_data.
45098 (grub_png_decode_image_header): Detect 16 bit png image.
45099 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
45100 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
45101 (grub_video_reader_png): Release memory occupied by image_data.
45102
45103 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
45104 4096 bytes.
45105 (grub_nfs_mount): Skip the test for sector per cluster.
45106
45107 * include/grub/ntfs.h (MAX_SPC): Removed.
45108
45109 2008-03-31 Bean <bean123ch@gmail.com>
45110
45111 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
45112 (grub_probe_SOURCES): Add fs/afs.c.
45113 (grub_fstest_SOURCES): Likewise.
45114 (afs_mod_SOURCES): New variable.
45115 (afs_mod_CFLAGS): Likewise.
45116 (afs_mod_LDFLAGS): Likewise.
45117
45118 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
45119 (grub_emu_SOURCES): Likewise.
45120
45121 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45122
45123 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45124
45125 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45126
45127 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45128
45129 * fs/afs.c: New file.
45130
45131 2008-03-30 Pavel Roskin <proski@gnu.org>
45132
45133 * disk/host.c: Include grub/misc.h to fix a warning.
45134 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
45135 warnings about implicit declarations.
45136
45137 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
45138 variable.
45139 * include/grub/i386/loader.h: Change declaration of
45140 grub_linux_boot() to match what grub_loader_set() expects.
45141 * util/getroot.c (grub_guess_root_device): Return const char* to
45142 fix a warning.
45143 * util/grub-probe.c (probe): Fix a warning about uninitialized
45144 abstraction_name variable.
45145 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
45146 second argument as unused to fix a warning.
45147
45148 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
45149 missing grub_error() call.
45150
45151 * util/update-grub_lib.in: Define datarootdir, since Autoconf
45152 2.60 and newer uses it to define datadir.
45153
45154 * commands/sleep.c: Fix warning about implicit declaration.
45155 * disk/memdisk.c: Likewise.
45156 * loader/aout.c: Likewise.
45157 * loader/i386/bsd_normal.c: Likewise.
45158 * util/grub-probe.c: Likewise.
45159
45160 * commands/i386/cpuid.c (has_longmode): Make static.
45161 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
45162 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
45163
45164 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
45165 GDT. This is more robust, as %ds can change.
45166 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
45167 calling real_to_prot().
45168 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
45169
45170 2008-03-28 Pavel Roskin <proski@gnu.org>
45171
45172 * kern/i386/pc/startup.S: Assert that uncompressed functions
45173 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
45174 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
45175 code, as they push parts of the code (error handlers) beyond
45176 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
45177 code as correctness and size.
45178
45179 2008-03-28 Pavel Roskin <proski@gnu.org>
45180
45181 * kern/i386/pc/startup.S
45182 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
45183 data block address to the real mode, keep offset minimal. This
45184 works around a bug in AWARD BIOS on old Athlon systems, which
45185 makes CD detection hang.
45186
45187 2008-03-26 Pavel Roskin <proski@gnu.org>
45188
45189 * normal/color.c (grub_parse_color_name_pair): Make `name' a
45190 const.
45191 * include/grub/normal.h: Add grub_parse_color_name_pair()
45192 declaration.
45193
45194 2008-03-24 Bean <bean123ch@gmail.com>
45195
45196 * disk/i386/pc/biosdisk.c (cd_start): Removed.
45197 (cd_count): Removed.
45198 (cd_drive): New variable.
45199 (grub_biosdisk_get_drive): Don't check for (cdN) device.
45200 (grub_biosdisk_call_hook): Likewise.
45201 (grub_biosdisk_iterate): Change cdrom detection method.
45202 (grub_biosdisk_open): Replace cd_start with cd_drive.
45203 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
45204 detect cdrom device.
45205
45206 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
45207 Removed.
45208 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
45209 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
45210 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
45211 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
45212 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
45213 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
45214 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
45215 (grub_biosdisk_cdrp): New structure.
45216 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
45217
45218 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
45219
45220 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
45221 device.
45222
45223 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
45224 New function.
45225
45226 2008-03-20 Robert Millan <rmh@aybabtu.com>
45227
45228 Remove 2 TiB limit in ata.mod.
45229 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
45230 (grub_ata_dumpinfo): Print sector count with 0x%llx.
45231 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
45232 grub_uint64_t instead of grub_uint32_t.
45233
45234 2008-03-05 Bean <bean123ch@gmail.com>
45235
45236 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
45237 (grub_multiboot): Set boot device.
45238
45239 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
45240
45241 2008-03-02 Bean <bean123ch@gmail.com>
45242
45243 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
45244 symlink_buffer.
45245
45246 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
45247
45248 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
45249 texinfo.tex.
45250
45251 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
45252 modified.
45253
45254 * docs/fdl.texi: New file.
45255
45256 * docs/mdate-sh: New file. Copied from gnulib.
45257 * docs/texinfo.tex: Likewise.
45258
45259 * config.guess: Updated from gnulib.
45260 * install-sh: Likewise.
45261
45262 2008-02-28 Robert Millan <rmh@aybabtu.com>
45263
45264 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
45265 (aout_mod_SOURCES): New variable.
45266 (aout_mod_CFLAGS): Likewise.
45267 (aout_mod_LDFLAGS): Likewise.
45268
45269 * conf/i386-ieee1275.rmk: Likewise.
45270
45271 2008-02-28 Robert Millan <rmh@aybabtu.com>
45272
45273 * util/update-grub.in: Reorganise terminal validity check. Accept
45274 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
45275 Based on suggestion by Franklin PIAT.
45276
45277 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
45278
45279 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
45280 function.
45281 * util/getroot.c (grub_util_check_block_device): New function that
45282 returns the given argument if it is a block device and returns NULL else.
45283 * util/grub-probe.c (argument_is_device): New variable.
45284 (probe): Promote device_name from a variable to an argument. Receive
45285 device_name from grub_util_check_block_device() if path is NULL and from
45286 grub_guess_root_device() else. Do not free() device_name anymore.
45287 (options): Introduce new parameter '-d, --device'.
45288 (main): Add description of the new parameter to the help screen.
45289 Rename path variable to argument. Set argument_is_device if the '-d'
45290 option is given. Pass argument to probe() depending on
45291 argument_is_device.
45292
45293 2008-02-24 Bean <bean123ch@gmail.com>
45294
45295 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
45296 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
45297 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
45298 (GRUB_ISO9660_VOLDESC_PART): Likewise.
45299 (GRUB_ISO9660_VOLDESC_END): Likewise.
45300 (grub_iso9660_primary_voldesc): New member escape.
45301 (grub_iso9660_data): New member joliet.
45302 (grub_iso9660_convert_string): New function.
45303 (grub_iso9660_mount): Detect joliet extension.
45304 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
45305 (grub_iso9660_iso9660_label): Likewise.
45306
45307 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
45308 (grub_setup_SOURCES): Add fs/udf.c.
45309 (grub_fstest_SOURCES): Likewise.
45310 (udf_mod_SOURCES): New variable.
45311 (udf_mod_CFLAGS): Likewise.
45312 (udf_mod_LDFLAGS): Likewise.
45313
45314 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
45315 (grub_emu_SOURCES): Likewise.
45316
45317 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45318
45319 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45320
45321 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45322
45323 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45324
45325 * fs/udf.c: New file.
45326
45327 2008-02-24 Robert Millan <rmh@aybabtu.com>
45328
45329 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
45330 (normal/lexer.c_DEPENDENCIES): New variables.
45331 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45332 (normal/lexer.c_DEPENDENCIES): Likewise.
45333 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
45334 (normal/lexer.c_DEPENDENCIES): Likewise.
45335 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
45336 (normal/lexer.c_DEPENDENCIES): Likewise.
45337 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45338 (normal/lexer.c_DEPENDENCIES): Likewise.
45339 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45340 (normal/lexer.c_DEPENDENCIES): Likewise.
45341
45342 2008-02-23 Robert Millan <rmh@aybabtu.com>
45343
45344 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
45345 since they were intended to be in hex. This didn't break previously
45346 because of a bug in gpt_partition_map_iterate() (see below).
45347
45348 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
45349 when checking the validity of GPT header.
45350 Remove `partno', since it always provides the same information as `i'.
45351
45352 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
45353
45354 * include/grub/efi/time.h: Fix a wrong comment.
45355
45356 2008-02-19 Pavel Roskin <proski@gnu.org>
45357
45358 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
45359 message.
45360
45361 2008-02-19 Bean <bean123ch@gmail.com>
45362
45363 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
45364 (aout_mod_SOURCES): New variable.
45365 (aout_mod_CFLAGS): Likewise.
45366 (aout_mod_LDFLAGS): Likewise.
45367 (_bsd_mod_SOURCES): New variable.
45368 (_bsd_mod_CFLAGS): Likewise.
45369 (_bsd_mod_LDFLAGS): Likewise.
45370 (bsd_mod_SOURCES): New variable.
45371 (bsd_mod_CFLAGS): Likewise.
45372 (bsd_mod_LDFLAGS): Likewise.
45373
45374 * include/grub/aout.h: New file.
45375
45376 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
45377
45378 * include/grub/i386/bsd.h: New file.
45379
45380 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
45381 to make it public.
45382
45383 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
45384 function is called, so that it's possible to change it inside the hook.
45385 (grub_elf64_load): Likewise.
45386 (grub_elf_file): Don't close the file if elf header is not found.
45387 (grub_elf_close): Close the file if grub_elf_file fails (The new
45388 grub_elf_file won't close it).
45389 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
45390 (grub_elf64_size): Likewise.
45391
45392 * kern/i386/loader.S (grub_unix_real_boot): New function.
45393
45394 * loader/aout.c: New file.
45395
45396 * loader/i386/bsd.c: New file.
45397
45398 * loader/i386/bsd_normal.c: New file.
45399
45400 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
45401
45402 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
45403 can test other formats.
45404
45405 2008-02-19 Robert Millan <rmh@aybabtu.com>
45406
45407 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
45408 (grub_gpt_partition_type_empty): Redefine with macro from
45409 `<grub/gpt_partition.h>'.
45410 (gpt_partition_map_iterate): Adjust partition type comparison.
45411
45412 Export `entry' as partmap-specific `part.data' struct.
45413 (grub_gpt_header, grub_gpt_partentry): Move from here ...
45414
45415 * include/grub/gpt_partition.h (grub_gpt_header)
45416 (grub_gpt_partentry): ... to here (new file).
45417
45418 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
45419
45420 (grub_gpt_partition_type_bios_boot): New const variable, defined
45421 with macro from `<grub/gpt_partition.h>'.
45422
45423 (setup): Replace `first_start' with `embed_region', which keeps
45424 track of the embed region (and is partmap-agnostic).
45425
45426 Replace find_first_partition_start() with find_usable_region(),
45427 which finds a usable region for embedding using partmap-specific
45428 knowledge (supports PC/MSDOS and GPT).
45429
45430 Fix all assumptions that the embed region start at sector 1, using
45431 `embed_region.start' from now on. Similarly, use `embed_region.end'
45432 rather than `first_start' to calculate available size.
45433
45434 In grub_util_info() message, replace "into after the MBR" with an
45435 indication of the specific sector our embed region starts at.
45436
45437 2008-02-19 Robert Millan <rmh@aybabtu.com>
45438
45439 * DISTLIST: Replace `commands/ieee1275/halt.c' and
45440 `commands/ieee1275/reboot.c' with `commands/halt.c' and
45441 `commands/reboot.c'.
45442 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45443 (halt_mod_SOURCES): Likewise.
45444 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45445 (halt_mod_SOURCES): Likewise.
45446
45447 2008-02-17 Christian Franke <franke@computer.org>
45448
45449 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
45450
45451 2008-02-17 Robert Millan <rmh@aybabtu.com>
45452
45453 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45454 set `first_start' to 0 for non-PC/MSDOS partition maps.
45455
45456 2008-02-16 Robert Millan <rmh@aybabtu.com>
45457
45458 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45459 do not assume partition map is PC/MSDOS before performing checks that
45460 are specific to that layout.
45461
45462 2008-02-13 Robert Millan <rmh@aybabtu.com>
45463
45464 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
45465 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
45466 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
45467
45468 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
45469
45470 * configure.ac: Only a cosmetic change on the handling of
45471 -fno-stack-protector.
45472
45473 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
45474
45475 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
45476 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
45477 reboot.c.
45478 (grub_install_SOURCES): Add halt.mod and reboot.mod.
45479 (halt_mod_SOURCES): New variable.
45480 (halt_mod_CFLAGS): Likewise.
45481 (halt_mod_LDFLAGS): Likewise.
45482 (reboot_mod_SOURCES): Likewise.
45483 (reboot_mod_CFLAGS): Likewise.
45484 (reboot_mod_LDFLAGS): Likewise.
45485
45486 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
45487 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
45488 reboot.c.
45489 (halt_mod_SOURCES): Likewise.
45490 (reboot_mod_SOURCES): Likewise.
45491
45492 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
45493 commands/i386/pc/reboot.c by commands/reboot.c.
45494 (reboot_mod_SOURCES): Likewise.
45495
45496 * commands/i386/pc/reboot.c: merge this file ...
45497
45498 * commands/ieee1275/reboot.c: ... and this file ...
45499
45500 * commands/reboot.c: ... to this file.
45501 Add some precompiler directive to include the correct header for
45502 each machine.
45503
45504 * commands/ieee1275/halt.c: move this file ...
45505
45506 * commands/halt.c: ... to here.
45507 Add some precompiler directive to include the correct header for
45508 each machine.
45509
45510 * include/grub/efi/efi.h (grub_reboot): New function declaration.
45511 (grub_halt): Likewise.
45512
45513 * kern/efi/efi.c (grub_reboot): New function.
45514 (grub_halt): Likewise.
45515
45516 2008-02-12 Robert Millan <rmh@aybabtu.com>
45517
45518 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
45519 /dev (like it is done for /dev/mapper). This doesn't provide support
45520 for EVMS, but at least it is now easy to identify the problem when it
45521 arises.
45522
45523 2008-02-11 Robert Millan <rmh@aybabtu.com>
45524
45525 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
45526 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
45527 comparing it with -1, not 0.
45528
45529 2008-02-10 Robert Millan <rmh@aybabtu.com>
45530
45531 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
45532 `disk/lvm.c'.
45533 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45534 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
45535
45536 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
45537 `disk/lvm.c' to the end of the list.
45538 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45539 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
45540
45541 2008-02-10 Robert Millan <rmh@aybabtu.com>
45542
45543 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
45544 grub_print_error() instead. This will let user know why we're entering
45545 rescue mode.
45546 Based on suggestions from Sam Morris.
45547
45548 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
45549
45550 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
45551 on remaining N args, instead of "--" arg N times.
45552
45553 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
45554
45555 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
45556 (fill_with_default_glyph): Changed to use unknown_glyph for fill
45557 pattern for unknown glyphs.
45558
45559 2008-02-09 Robert Millan <rmh@aybabtu.com>
45560
45561 * configure.ac: Probe for `help2man'.
45562 * Makefile.in (builddir): New variable.
45563 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
45564 or otherwise add a few flags/options to it.
45565 (install-local): For every executable utility or script that is
45566 installed, invoke $(HELP2MAN) to install a manpage based on --help
45567 output.
45568
45569 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
45570 that it doesn't prevent --help from working in build tree.
45571
45572 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
45573 with `bug-grub@gnu.org'.
45574 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
45575 * util/update-grub.in (usage): New function.
45576 Implement proper argument check, with support for --help and --version
45577 (as well as existing -y).
45578
45579 2008-02-09 Christian Franke <franke@computer.org>
45580
45581 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
45582 avoid overwriting previous output.
45583 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
45584
45585 2008-02-09 Robert Millan <rmh@aybabtu.com>
45586
45587 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
45588 drawing the menu.
45589
45590 2008-02-09 Robert Millan <rmh@aybabtu.com>
45591
45592 * commands/sleep.c: New file.
45593 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
45594 (sleep_mod_SOURCES): New variable.
45595 (sleep_mod_CFLAGS): Likewise.
45596 (sleep_mod_LDFLAGS): Likewise.
45597
45598 2008-02-09 Robert Millan <rmh@aybabtu.com>
45599
45600 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
45601 situations in which we can deduce the RAID size and the superblock
45602 doesn't match it.
45603
45604 2008-02-09 Robert Millan <rmh@aybabtu.com>
45605
45606 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
45607 and return a grub_diskmemberlist_t composed of LVM physical volumes.
45608 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
45609
45610 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
45611 and return a grub_diskmemberlist_t composed of physical array members.
45612 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
45613
45614 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
45615 prototype.
45616 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
45617 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
45618 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
45619
45620 * util/grub-probe.c (probe): Move partmap probing code from here ...
45621 (probe_partmap): ... to here.
45622 (probe): Use probe_partmap() once for the disk we're probing, and
45623 additionally, when such disk contains a memberlist() struct member,
45624 once for each disk that is contained in the structure returned by
45625 memberlist().
45626
45627 2008-02-09 Robert Millan <rmh@aybabtu.com>
45628
45629 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
45630 environment variable to 'all' in order to obtain debug output from
45631 non-util/ code.
45632 * util/i386/pc/grub-setup.c (main): Likewise.
45633
45634 2008-02-08 Robert Millan <rmh@aybabtu.com>
45635
45636 * disk/raid.c (grub_raid_scan_device): Check for
45637 `array->device[sb.this_disk.number]' rather than for
45638 `array->device[sb.this_disk.number]->name', since the latter is not
45639 guaranteed to be accessible.
45640
45641 2008-02-08 Robert Millan <rmh@aybabtu.com>
45642
45643 * disk/raid.c: Update copyright.
45644 * fs/cpio.c: Likewise.
45645 * include/grub/raid.h: Likewise.
45646 * loader/i386/pc/multiboot.c: Likewise.
45647 * util/hostfs.c: Likewise.
45648
45649 2008-02-08 Robert Millan <rmh@aybabtu.com>
45650
45651 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
45652 to a grub_disk_t array.
45653 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
45654 `device[x]'.
45655 (grub_raid_scan_device): Replace `device[x].name' accesses with
45656 `device[x]->name'. Simplify initialization of `array->device[x]'.
45657
45658 2008-02-08 Robert Millan <rmh@aybabtu.com>
45659
45660 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
45661 grub_dprintf() calls.
45662 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
45663 error message.
45664
45665 2008-02-07 Christian Franke <franke@computer.org>
45666
45667 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
45668 instead of fseek and ftell to support large files.
45669 (grub_hostfs_read): Likewise.
45670
45671 2008-02-07 Robert Millan <rmh@aybabtu.com>
45672
45673 Patch from Jeroen Dekkers.
45674 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
45675 failure, since successfully reading all array members might not be
45676 required.
45677
45678 2008-02-06 Robert Millan <rmh@aybabtu.com>
45679
45680 * util/grub-probe.c (probe): Simplify partmap probing (with the
45681 assumption that the first word up to the underscore equals to
45682 the module name).
45683
45684 2008-02-06 Christian Franke <franke@computer.org>
45685
45686 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
45687 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
45688 last block of a cpio or tar stream.
45689 Check for "TRAILER!!!" instead of any empty data
45690 block to detect last block of a cpio stream.
45691 (grub_cpio_dir): Fix constness of variable np.
45692 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
45693 cpio or tar trailer is detected. This fixes a crash
45694 on open of a non existing file.
45695
45696 2008-02-05 Bean <bean123ch@gmail.com>
45697
45698 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
45699 address of entry.
45700 (grub_multiboot_load_elf64): Likewise.
45701 (grub_multiboot): Initialize mbi structure.
45702
45703 * util/grub-fstest.c: Don't include unused header file script.h.
45704
45705 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
45706 of file.
45707 (grub_fstest_SOURCES): Likewise.
45708
45709 2008-02-05 Robert Millan <rmh@aybabtu.com>
45710
45711 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
45712 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
45713 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
45714 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
45715
45716 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
45717 (translation_table): Replace hardcoded values with macros
45718 provided by `<grub/term.h>'.
45719
45720 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
45721 (keyboard_map): Correct/add a few values, with macros provided
45722 by `<grub/term.h>'.
45723 (keyboard_map_shift): Zero values that don't differ from their
45724 `keyboard_map' equivalents.
45725 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
45726 Discard the second scan code that is always sent by Caps lock.
45727 Only use `keyboard_map_shift' when it provides a non-zero value,
45728 otherwise fallback to `keyboard_map'.
45729
45730 2008-02-04 Bean <bean123ch@gmail.com>
45731
45732 * Makefile.in (enable_grub_fstest): New variable.
45733
45734 * conf/common.rmk (grub_fstest_init.lst): New rule.
45735 (grub_fstest_init.h): Likewise.
45736 (grub_fstest_init.c): Likewise.
45737 (util/grub-fstest.c_DEPENDENCIES): New variable.
45738 (grub_fstest_SOURCES): Likewise.
45739
45740 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
45741
45742 * util/grub-fstest.c: New file.
45743
45744 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45745
45746 Make grub-setup handle a separate root device.
45747
45748 * util/i386/pc/grub-setup.c (setup): Always open the root device,
45749 so that the root device can be compared with the destination
45750 device.
45751 When embedding the core image, if the root and destination devices
45752 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
45753 0xFF.
45754 When not embedding, set ROOT_DRIVE to 0xFF.
45755
45756 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45757
45758 Add support for having a grub directory in a different drive. This
45759 is still only the data handling part.
45760
45761 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
45762 (codestart): Save %dh in GRUB_ROOT_DRIVE.
45763 (grub_root_drive): New variable.
45764
45765 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
45766 instead of GRUB_BOOT_DRIVE to construct a device name. Set
45767 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
45768 as it was.
45769
45770 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
45771
45772 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
45773 macro.
45774 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
45775
45776 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
45777 is bogus, because PXE booting does not specify any drive
45778 correctly.
45779
45780 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
45781 am not sure if this is really correct.
45782
45783 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
45784 is always identical to the boot drive when booting from a CD.
45785
45786 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
45787 longer.
45788 (root_drive): New variable.
45789 (real_start): Unconditionally set %dh to ROOT_DRIVE.
45790 (setup_sectors): Push %dx right after popping it, because %dh will
45791 be modified later.
45792 (copy_buffer): Restore %dx.
45793
45794 2008-02-03 Robert Millan <rmh@aybabtu.com>
45795
45796 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
45797 use `cdboot.img' for cdrom images.
45798
45799 2008-02-03 Robert Millan <rmh@aybabtu.com>
45800
45801 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
45802 only setup gfxterm when `font' command has succeeded.
45803
45804 2008-02-03 Robert Millan <rmh@aybabtu.com>
45805
45806 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
45807 (grub_rescue_cmd_multiboot_loader)
45808 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
45809
45810 2008-02-03 Pavel Roskin <proski@gnu.org>
45811
45812 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
45813 %edx and %esi from stack only after grub_gate_a20() is called.
45814 grub_gate_a20() clobbers %edx.
45815
45816 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45817
45818 * configure.ac (AC_INIT): Bumped to 1.96.
45819
45820 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
45821 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
45822 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
45823 video/readers/png.c.
45824
45825 2008-02-03 Bean <bean123ch@gmail.com>
45826
45827 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
45828 (cdboot_img_SOURCES): New variable.
45829 (cdboot_img_ASFLAGS): New variable.
45830 (cdboot_img_LDFLAGS): New variable.
45831
45832 * boot/i386/pc/cdboot.S: New file.
45833
45834 * disk/i386/pc/biosdisk.c (cd_start): New variable.
45835 (cd_count): Likewise.
45836 (grub_biosdisk_get_drive): Add support for cd device.
45837 (grub_biosdisk_call_hook): Likewise.
45838 (grub_biosdisk_iterate): Likewise.
45839 (grub_biosdisk_open): Likewise.
45840 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
45841 (grub_biosdisk_rw): Support reading from cd device.
45842 (GRUB_MOD_INIT): Iterate cd devices.
45843
45844 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
45845 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
45846 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
45847
45848 * kern/i386/pc/init.c (make_install_device): Check for cd device.
45849
45850 2008-02-02 Robert Millan <rmh@aybabtu.com>
45851
45852 * commands/read.c: New file.
45853 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
45854 (read_mod_SOURCES): New variable.
45855 (read_mod_CFLAGS): Likewise.
45856 (read_mod_LDFLAGS): Likewise.
45857
45858 2008-02-02 Robert Millan <rmh@aybabtu.com>
45859
45860 * normal/main.c (grub_normal_execute): Check for `menu->size' when
45861 determining whether menu has to be displayed.
45862
45863 2008-02-02 Marco Gerards <marco@gnu.org>
45864
45865 * bus/pci.c: New file.
45866
45867 * include/grub/pci.h: Likewise.
45868
45869 * include/grub/i386/pc/pci.h: Likewise.
45870
45871 * commands/lspci.c: Likewise.
45872
45873 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
45874 `lspci.mod'.
45875 (pci_mod_SOURCES): New variable.
45876 (pci_mod_CFLAGS): Likewise.
45877 (pci_mod_LDFLAGS): Likewise.
45878 (lspci_mod_SOURCES): Likewise.
45879 (lspci_mod_CFLAGS): Likewise.
45880 (lspci_mod_LDFLAGS): Likewise.
45881
45882 2008-02-02 Bean <bean123ch@gmail.com>
45883
45884 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
45885 (grub_ufs_get_file_block): Fix indirect block calculation problem.
45886
45887 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
45888 (grub_xfs_btree_node): New structure.
45889 (grub_xfs_btree_root): New structure.
45890 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
45891 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
45892 (GRUB_XFS_EXTENT_BLOCK): Likewise.
45893 (GRUB_XFS_EXTENT_SIZE): Likewise.
45894 (grub_xfs_read_block): Support btree format type.
45895 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
45896 Use directory block as basic unit.
45897
45898 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
45899
45900 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
45901 __attribute__ ((__regparm__ (1))).
45902
45903 2008-02-01 Robert Millan <rmh@aybabtu.com>
45904
45905 Correct a mistake in previous commit.
45906
45907 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
45908 top.
45909 (normal/command.c_DEPENDENCIES): New variable.
45910
45911 2008-02-01 Robert Millan <rmh@aybabtu.com>
45912
45913 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
45914 top.
45915 (normal/command.c_DEPENDENCIES): New variable.
45916 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
45917 * conf/i386-ieee1275.rmk: Likewise.
45918 * conf/i386-linuxbios.rmk: Likewise.
45919 * conf/i386-pc.rmk: Likewise.
45920 * conf/sparc64-ieee1275.rmk: Likewise.
45921 * conf/powerpc-ieee1275.rmk: Likewise.
45922 (grub_emu_SOURCES): Add `fs/fshelp.c'.
45923
45924 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
45925
45926 2008-02-01 Robert Millan <rmh@aybabtu.com>
45927
45928 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
45929 call at beginning of function.
45930
45931 2008-01-31 Pavel Roskin <proski@gnu.org>
45932
45933 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
45934 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
45935 (grub_mkrescue_SOURCES): Likewise.
45936 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
45937
45938 2008-01-30 Robert Millan <rmh@aybabtu.com>
45939
45940 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
45941 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
45942 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
45943 (grub_probe_SOURCES): ... to here.
45944
45945 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
45946 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
45947 * conf/i386-ieee1275.rmk: Likewise.
45948 * conf/i386-linuxbios.rmk: Likewise.
45949 * conf/powerpc-ieee1275.rmk: Likewise.
45950
45951 2008-01-30 Tristan Gingold <gingold@free.fr>
45952
45953 * kern/rescue.c: Silently accept empty lines.
45954
45955 2008-01-29 Bean <bean123ch@gmail.com>
45956
45957 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
45958 (real_code_2): Code cleanup and change comment style.
45959 (move_memory): Avoid using 32-bit address mode.
45960
45961 2008-01-29 Bean <bean123ch@gmail.com>
45962
45963 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
45964 (png_mod_SOURCES): New variable.
45965 (png_mod_CFLAGS): Likewise.
45966 (png_mod_LDFLAGS): Likewise.
45967
45968 * video/readers/png.c: New file.
45969
45970 2008-01-28 Robert Millan <rmh@aybabtu.com>
45971
45972 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
45973 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
45974 `ifndef GRUB_MOD_GAP' hack.
45975 * util/elf/grub-mkimage.c (add_segments): Likewise.
45976
45977 2008-01-27 Robert Millan <rmh@aybabtu.com>
45978
45979 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
45980 `GRUB_MOD_GAP' for platforms in which it's not defined.
45981 * util/elf/grub-mkimage.c (add_segments): Likewise.
45982
45983 2008-01-27 Robert Millan <rmh@aybabtu.com>
45984
45985 Get grub-emu to build again (including parallel builds).
45986
45987 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
45988 Split into ...
45989 (util/grub-emu.c_DEPENDENCIES): ... this, ...
45990 (normal/execute.c_DEPENDENCIES): ... this, ...
45991 (grub-emu_DEPENDENCIES): ... and this.
45992
45993 * conf/i386-efi.rmk: Likewise.
45994 * conf/i386-linuxbios.rmk: Likewise.
45995 * conf/i386-ieee1275.rmk: Likewise.
45996 * conf/powerpc-ieee1275.rmk: Likewise.
45997 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
45998
45999 2008-01-27 Robert Millan <rmh@aybabtu.com>
46000
46001 * NEWS: Add a few items.
46002
46003 2008-01-27 Robert Millan <rmh@aybabtu.com>
46004
46005 Fix parallel builds with grub-emu. Based on earlier commit for
46006 grub-probe and grub-setup.
46007
46008 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46009 (util/grub-emu.c_DEPENDENCIES): ... this.
46010 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46011 (util/grub-emu.c_DEPENDENCIES): ... this.
46012 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46013 (util/grub-emu.c_DEPENDENCIES): ... this.
46014 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46015 (util/grub-emu.c_DEPENDENCIES): ... this.
46016 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46017 (util/grub-emu.c_DEPENDENCIES): ... this.
46018
46019 2008-01-27 Pavel Roskin <proski@gnu.org>
46020
46021 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
46022 to create a gap between _end and the modules added to the image
46023 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
46024 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
46025 * util/elf/grub-mkimage.c (add_segments): Likewise.
46026
46027 2008-01-26 Pavel Roskin <proski@gnu.org>
46028
46029 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
46030 just return an error.
46031
46032 2008-01-26 Bean <bean123ch@gmail.com>
46033
46034 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
46035 (grub_reiserfs_get_item): Save offset of the next item.
46036 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
46037
46038 2008-01-25 Robert Millan <rmh@aybabtu.com>
46039
46040 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
46041 make all filesystem sources appear together (possibly fixing omissions
46042 while at it).
46043 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
46044 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46045 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
46046 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46047
46048 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
46049 add `kern/file.c'.
46050 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
46051 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46052 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
46053 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46054
46055 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
46056 (probe): Add a sanity check to make sure of our ability to read
46057 requested files when probing for filesystem type.
46058
46059 * genmk.rb: Update copyright year (2007).
46060
46061 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
46062 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
46063 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
46064 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
46065 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
46066 : Remove function prototypes.
46067
46068 2008-01-25 Robert Millan <rmh@aybabtu.com>
46069
46070 Revert my previous commits (based on wrong assumption of how grub_errno
46071 works).
46072
46073 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
46074 * kern/file.c (grub_file_open): Likewise.
46075
46076 2008-01-24 Pavel Roskin <proski@gnu.org>
46077
46078 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
46079 that hang if GRUB tries to setup colors.
46080 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
46081 colors for firmwares that don't support it.
46082 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
46083 Recognize Open Hack'Ware, set flags to work around its
46084 limitations.
46085
46086 2008-01-24 Robert Millan <rmh@aybabtu.com>
46087
46088 * kern/file.c (grub_file_open): Do not account previous failures of
46089 unrelated functions when grub_errno is checked for.
46090 Reported by Oleg Strikov.
46091
46092 2008-01-24 Bean <bean123ch@gmail.com>
46093
46094 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
46095 (grub_ufs_sblock): New member volume name.
46096 (grub_ufs_find_file): Fix string copy bug.
46097 (grub_ufs_label): Implement this function properly.
46098
46099 * fs/hfs.c (grub_hfs_cnid_type): New enum.
46100 (grub_hfs_iterate_records): Use the correct file number for extents
46101 and catalog file. Fix problem in next index calculation.
46102 (grub_hfs_find_node): Replace recursive function call with loop.
46103 (grub_hfs_iterate_dir): Replace recursive function call with loop.
46104
46105 2008-01-23 Robert Millan <rmh@aybabtu.com>
46106
46107 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
46108 `<grub/symbol.h>' and `<grub/multiboot.h>'.
46109 (grub_multiboot2_real_boot): New function prototype.
46110
46111 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
46112 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
46113
46114 * kern/i386/ieee1275/init.c (grub_os_area_addr)
46115 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
46116
46117 2008-01-23 Robert Millan <rmh@aybabtu.com>
46118
46119 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
46120 #ifdef'ed out grub_printf().
46121
46122 2008-01-23 Robert Millan <rmh@aybabtu.com>
46123
46124 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
46125 grub_dprintf calls, since they make "debug=all" mode unusable.
46126 (grub_console_checkkey): Likewise.
46127
46128 2008-01-23 Robert Millan <rmh@aybabtu.com>
46129
46130 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
46131 `term/i386/pc/at_keyboard.c'.
46132 (pkglib_MODULES): Add `serial.mod'.
46133 (serial_mod_SOURCES): New variable.
46134 (serial_mod_CFLAGS): Likewise.
46135 (serial_mod_LDFLAGS): Likewise.
46136
46137 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
46138 `<grub/powerpc/ieee1275/console.h>'.
46139 (grub_keyboard_controller_init): New function prototype.
46140 (grub_console_checkkey): Likewise.
46141 (grub_console_getkey): Likewise.
46142
46143 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
46144 keyboard on i386.
46145
46146 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
46147 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
46148
46149 2008-01-23 Robert Millan <rmh@aybabtu.com>
46150
46151 * kern/i386/pc/init.c (make_install_device): When memdisk image is
46152 present, "(memdisk)/boot/grub" becomes the default prefix.
46153
46154 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
46155 a memdisk tarball with all the modules. Add --overlay=DIR option that
46156 allows users to overlay additional files into the image.
46157
46158 2008-01-23 Robert Millan <rmh@aybabtu.com>
46159
46160 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
46161 and `machine/memory.h'.
46162 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
46163 (_multiboot_mod_SOURCES): New variable.
46164 (_multiboot_mod_CFLAGS): Likewise.
46165 (_multiboot_mod_LDFLAGS): Likewise.
46166 (multiboot_mod_SOURCES): Likewise.
46167 (multiboot_mod_CFLAGS): Likewise.
46168 (multiboot_mod_LDFLAGS): Likewise.
46169
46170 * include/grub/i386/ieee1275/loader.h: New file.
46171
46172 * include/grub/i386/ieee1275/machine.h: Likewise.
46173
46174 * include/grub/i386/ieee1275/memory.h: Likewise.
46175
46176 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
46177 variable declaration.
46178 (grub_os_area_size): Likewise.
46179
46180 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
46181 (grub_lower_mem, grub_upper_mem): New variables.
46182 (grub_stop_floppy): New function (just to make
46183 grub_multiboot2_real_boot() happy).
46184
46185 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
46186 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
46187 (grub_stop): New function.
46188 Include `"../realmode.S"' and `"../loader.S"'.
46189
46190 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
46191 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
46192
46193 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
46194 rely on grub_multiboot2_real_boot() for final boot.
46195
46196 2008-01-22 Robert Millan <rmh@aybabtu.com>
46197
46198 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
46199 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
46200 device that doesn't look like an SD card.
46201 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
46202 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
46203 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
46204 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
46205 found.
46206
46207 2008-01-22 Robert Millan <rmh@aybabtu.com>
46208
46209 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
46210 avoid claiming over our own code.
46211
46212 2008-01-22 Bean <bean123ch@gmail.com>
46213
46214 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
46215 (jpeg_mod_SOURCES): New variable.
46216 (jpeg_mod_CFLAGS): Likewise.
46217 (jpeg_mod_LDFLAGS): Likewise.
46218
46219 * video/readers/jpeg.c : New file.
46220
46221 2008-01-22 Bean <bean123ch@gmail.com>
46222
46223 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
46224 there are no more items.
46225
46226 2008-01-21 Robert Millan <rmh@aybabtu.com>
46227
46228 * kern/mm.c (grub_mm_init_region): Improve debug message.
46229
46230 2008-01-21 Robert Millan <rmh@aybabtu.com>
46231
46232 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
46233 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
46234 address.
46235 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
46236 a C macro.
46237 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
46238 Indicates start of upper memory.
46239 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
46240 (generate_image): Abort when image size is big enough to corrupt
46241 upper memory.
46242
46243 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
46244 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
46245 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46246 instead of hardcoding 0xA0000.
46247 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
46248 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46249 instead of hardcoding 0xA0000.
46250
46251 2008-01-21 Robert Millan <rmh@aybabtu.com>
46252
46253 * disk/memdisk.c (memdisk_size): New variable.
46254 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
46255 `memdisk_size'.
46256 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
46257 image to dynamic memory.
46258 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
46259 `memdisk_size'. Free memdisk block.
46260
46261 2008-01-21 Robert Millan <rmh@aybabtu.com>
46262
46263 Fix detection of very small filesystems (like tar).
46264
46265 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
46266 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
46267 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
46268 a problem with this disk).
46269
46270 2008-01-21 Robert Millan <rmh@aybabtu.com>
46271
46272 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
46273 on grub_biosdisk_rw_standard() error.
46274
46275 2008-01-21 Robert Millan <rmh@aybabtu.com>
46276
46277 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
46278 recent changes.
46279 * kern/elf.c: Likewise.
46280 * kern/ieee1275/ieee1275.c: Likewise.
46281 * kern/powerpc/ieee1275/openfw.c: Likewise.
46282 * term/ieee1275/ofconsole.c: Likewise.
46283
46284 2008-01-21 Robert Millan <rmh@aybabtu.com>
46285
46286 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
46287
46288 * include/grub/kernel.h (grub_arch_memdisk_addr)
46289 (grub_arch_memdisk_size): Moved from here ...
46290
46291 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
46292 (grub_arch_memdisk_size): ... to here.
46293
46294 2008-01-21 Robert Millan <rmh@aybabtu.com>
46295
46296 Mostly based on bugfix from Bean.
46297
46298 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
46299 attribute with hook() parameter.
46300 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
46301 declaration.
46302 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
46303 attribute with hook() parameter.
46304 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
46305 declaration.
46306
46307 2008-01-21 Robert Millan <rmh@aybabtu.com>
46308
46309 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
46310 (pkglib_MODULES): Add `memdisk.mod'.
46311 (memdisk_mod_SOURCES): New variable.
46312 (memdisk_mod_CFLAGS): Likewise.
46313 (memdisk_mod_LDFLAGS): Likewise.
46314
46315 * disk/memdisk.c: New file.
46316
46317 * include/grub/disk.h (grub_disk_dev_id): Add
46318 `GRUB_DISK_DEVICE_MEMDISK_ID'.
46319
46320 * include/grub/i386/pc/kernel.h
46321 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
46322 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
46323 (grub_kernel_image_size): New variable declaration.
46324 (grub_total_module_size): Likewise.
46325 (grub_memdisk_image_size): Likewise.
46326
46327 * include/grub/i386/pc/memory.h
46328 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
46329
46330 * include/grub/kernel.h: Include `<grub/symbol.h>'.
46331 (grub_arch_memdisk_addr): New variable declaration.
46332 (grub_arch_memdisk_size): Likewise.
46333
46334 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
46335 (grub_arch_memdisk_size): Likewise.
46336
46337 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
46338 (codestart): Replace hardcoded `0x100000' with
46339 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
46340
46341 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
46342 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
46343 not NULL, append the contents of the file it refers to, at the end of
46344 the compressed kernel image. Initialize `grub_memdisk_image_size'
46345 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
46346 (options): Add "memdisk"|'m' option.
46347 (main): Parse --memdisk|-m option, and pass user-provided path as
46348 parameter to generate_image().
46349
46350 2008-01-20 Robert Millan <rmh@aybabtu.com>
46351
46352 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
46353 grub_dprintf() calls from here ...
46354 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
46355
46356 2008-01-20 Robert Millan <rmh@aybabtu.com>
46357
46358 Fix detection of "real mode" when /options/real-mode? doesn't exist.
46359
46360 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
46361 declaration.
46362 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
46363 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
46364 `GRUB_IEEE1275_FLAG_REAL_MODE'.
46365 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
46366 property).
46367 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
46368 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
46369
46370 2008-01-19 Robert Millan <rmh@aybabtu.com>
46371
46372 Get rid of confusing function (superseded by
46373 `grub_ieee1275_get_integer_property')
46374 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
46375 prototype.
46376 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
46377 function.
46378 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
46379 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
46380 in native endianness from grub_ieee1275_get_integer_property().
46381
46382 2008-01-19 Robert Millan <rmh@aybabtu.com>
46383
46384 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
46385 command after "shut-down", since implementations differ on which
46386 the command for halt is.
46387
46388 2008-01-19 Robert Millan <rmh@aybabtu.com>
46389
46390 * include/grub/i386/linuxbios/console.h: Add header protection.
46391 (grub_keyboard_controller_init): New function prototype.
46392 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
46393 (KEYBOARD_COMMAND_READ): Likewise.
46394 (KEYBOARD_COMMAND_WRITE): Likewise.
46395 (KEYBOARD_SCANCODE_SET1): Likewise.
46396 (grub_keyboard_controller_write): New function.
46397 (grub_keyboard_controller_read): Likewise.
46398 (grub_keyboard_controller_init): Likewise.
46399
46400 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
46401 (grub_console_init): On coreboot/LinuxBIOS, call
46402 grub_keyboard_controller_init().
46403
46404 2008-01-19 Robert Millan <rmh@aybabtu.com>
46405
46406 PowerPC changes provided by Pavel Roskin.
46407
46408 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
46409 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
46410 don't rely on cmain() doing it.
46411 * kern/i386/ieee1275/startup.S (_start): Store %eax in
46412 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
46413
46414 2008-01-16 Robert Millan <rmh@aybabtu.com>
46415
46416 * include/grub/i386/linuxbios/memory.h
46417 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
46418 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
46419 receive `table_header' as argument. Instead, probe for it in the
46420 known memory ranges where it can be present.
46421 (grub_available_iterate): Do not pass a fixed `table_header' address
46422 to grub_linuxbios_table_iterate().
46423
46424 2008-01-15 Robert Millan <rmh@aybabtu.com>
46425
46426 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
46427 * conf/i386-ieee1275.rmk: New file.
46428 * include/grub/i386/ieee1275/console.h: Likewise.
46429 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
46430 * include/grub/i386/ieee1275/kernel.h: Likewise.
46431 * include/grub/i386/ieee1275/time.h: Likewise.
46432 * kern/i386/ieee1275/init.c: Likewise.
46433 * kern/i386/ieee1275/startup.S: Likewise.
46434
46435 2008-01-15 Robert Millan <rmh@aybabtu.com>
46436
46437 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
46438 when pointers are 32-bit (but still do set it to one when they are
46439 64-bit).
46440
46441 2008-01-15 Robert Millan <rmh@aybabtu.com>
46442
46443 * include/grub/ieee1275/ieee1275.h
46444 (grub_ieee1275_get_integer_property): New function prototype.
46445
46446 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
46447 (grub_ieee1275_get_integer_property): New function. Wraps around
46448 grub_ieee1275_get_property() to handle endianness.
46449
46450 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
46451 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
46452 where appropriate.
46453 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
46454 (grub_map): Likewise.
46455 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
46456
46457 2008-01-15 Bean <bean123ch@gmail.com>
46458
46459 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
46460 (grub_script_execute_cmdline): Reset grub_errno.
46461
46462 * normal/main.c (read_config_file): Reset grub_errno.
46463
46464 * normal/parse.y (script_init): New.
46465 (script): Move function and menuentry here.
46466 (delimiter): New.
46467 (command): Add delimiter at the end of command.
46468 (commands): Adjust to match the new command.
46469 (commandblock): Remove grub_script_lexer_record_start.
46470 (menuentry): Add grub_script_lexer_record_start, use the new commands.
46471 (if): Use the new commands.
46472
46473 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
46474
46475 2008-01-15 Robert Millan <rmh@aybabtu.com>
46476
46477 * normal/menu.c (run_menu): Move timeout message from here ...
46478 (print_timeout): ... to here.
46479 (run_menu): Use print_timeout() once during initial draw to print
46480 the whole message, and again in every clock tick to update only
46481 the number of seconds.
46482
46483 2008-01-15 Robert Millan <rmh@aybabtu.com>
46484
46485 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
46486 actual size of `available' from grub_ieee1275_get_property(), and
46487 restrict parsing to that bound.
46488
46489 2008-01-15 Christian Franke <franke@computer.org>
46490
46491 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
46492 (argp_program_version): Remove variable.
46493 (argp_program_bug_address): Likewise.
46494 (options): Convert from struct argp_option to struct option.
46495 (struct arguments): Remove.
46496 (parse_opt): Remove.
46497 (usage): New function.
46498 (main): Replace struct args members by simple variables.
46499 Replace argp_parse() by getopt_long().
46500 Add switch to evaluate options.
46501 Add missing "(...)" around root_dev in prefix string.
46502
46503 2008-01-14 Robert Millan <rmh@aybabtu.com>
46504
46505 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
46506 for grub_ieee1275_exit(), in order to improve portability.
46507
46508 2008-01-14 Robert Millan <rmh@aybabtu.com>
46509
46510 * util/grub.d/10_linux.in (prefix): Define.
46511 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
46512
46513 2008-01-13 Pavel Roskin <proski@gnu.org>
46514
46515 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
46516 grub_errno if no errors have been detected.
46517
46518 2008-01-12 Robert Millan <rmh@aybabtu.com>
46519
46520 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
46521 (grub_util_get_dev_abstraction): New function prototype.
46522
46523 * util/getroot.c: Include `<grub/util/getroot.h>'
46524 (grub_util_get_grub_dev): Move detection of abstraction type to ...
46525 (grub_util_get_dev_abstraction): ... here (new function).
46526
46527 * util/grub-probe.c: Convert PRINT_* to an enum. Add
46528 `PRINT_ABSTRACTION'.
46529 (probe): Probe for abstraction type when requested.
46530 (main): Understand `--target=abstraction'.
46531
46532 * util/i386/efi/grub-install.in: Add abstraction module to core
46533 image when it is found to be necessary.
46534 * util/i386/pc/grub-install.in: Likewise.
46535 * util/powerpc/ieee1275/grub-install.in: Likewise.
46536
46537 * util/update-grub_lib.in (font_path): Return system path without
46538 converting to GRUB path.
46539 * util/update-grub.in: Convert system path returned by font_path()
46540 to a GRUB path. Use `grub-probe -t abstraction' to determine what
46541 abstraction module is needed for loading fonts (if any). Export
46542 that as `GRUB_PRELOAD_MODULES'.
46543 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
46544 insmod commands).
46545
46546 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
46547
46548 Remove some unused code from reiserfs.
46549
46550 * fs/reiserfs.c (struct grub_reiserfs_key)
46551 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
46552 (struct grub_reiserfs_node_body): Removed.
46553 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46554 Likewise.
46555 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46556 Likewise.
46557 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46558 Likewise.
46559 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46560 Likewise.
46561 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46562 Likewise.
46563 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
46564 Likewise.
46565 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46566 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46567 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46568
46569 2008-01-10 Robert Millan <rmh@aybabtu.com>
46570
46571 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
46572 Determines if a file is garbage left by packaging systems, etc.
46573 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
46574 for processing /etc/grub.d scripts.
46575 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
46576 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
46577 as a condition for processing Linux images.
46578
46579 2008-01-10 Pavel Roskin <proski@gnu.org>
46580
46581 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
46582 to compile reiserfs.c on PowerPC.
46583
46584 2008-01-10 Robert Millan <rmh@aybabtu.com>
46585
46586 * kern/device.c (grub_device_iterate): Do not abort device iteration
46587 when one of the devices cannot be opened.
46588 * kern/disk.c (grub_disk_open): Do not account previous failures of
46589 unrelated functions when grub_errno is checked for.
46590
46591 2008-01-08 Robert Millan <rmh@aybabtu.com>
46592
46593 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
46594 `! grub_linux_is_bzimage', change order of address comparison to make
46595 it more intuitive, and improve "too big zImage" error message.
46596
46597 2008-01-08 Robert Millan <rmh@aybabtu.com>
46598
46599 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
46600 `$(update-grub_DATA)'.
46601 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
46602 targets.
46603
46604 2008-01-07 Robert Millan <rmh@aybabtu.com>
46605
46606 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
46607 which instruction is modified by grub-setup during installation
46608 (since it wasn't obvious by only looking at this file).
46609
46610 2008-01-07 Robert Millan <rmh@aybabtu.com>
46611
46612 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
46613 listing actual TODO items.
46614
46615 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46616
46617 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
46618 correctly.
46619 (grub_reiserfs_get_key_offset): Likewise.
46620 (grub_reiserfs_set_key_offset): Likewise.
46621 (grub_reiserfs_set_key_type): Likewise.
46622 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
46623
46624 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
46625 better to remove the bitfield version completely.
46626
46627 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46628
46629 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
46630 allocated from the heap, due to the fshelp implementation.
46631 (grub_reiserfs_dir): Free NODE, due to the same reason.
46632
46633 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46634
46635 Mostly from Vincent Pelletier:
46636
46637 * fs/reiserfs.c: New file.
46638
46639 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
46640 (reiserfs_mod_SOURCES): New variable.
46641 (reiserfs_mod_CFLAGS): Likewise.
46642 (reiserfs_mod_LDFLAGS): Likewise.
46643
46644 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
46645 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
46646 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
46647 normal/color.c.
46648
46649 2008-01-06 Robert Millan <rmh@aybabtu.com>
46650
46651 * normal/color.c: Remove `<grub/env.h>'.
46652
46653 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
46654
46655 * include/grub/normal.h: Include <grub/env.h>.
46656
46657 2008-01-05 Robert Millan <rmh@aybabtu.com>
46658
46659 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
46660 usage example with `(hd0,1)'.
46661 Reported by Samuel Thibault.
46662
46663 2008-01-05 Robert Millan <rmh@aybabtu.com>
46664
46665 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
46666 (grub_linux_boot_zimage): Rename to ...
46667 (grub_linux_boot): ... this.
46668 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
46669 (grub_linux_boot_zimage): Conditionalize zImage copy.
46670
46671 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
46672 (grub_linux_boot_bzimage): Remove prototype.
46673 (grub_linux_boot_zimage): Rename to ...
46674 (grub_linux_boot): ... this.
46675
46676 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
46677 (grub_linux_boot): Remove function.
46678
46679 2008-01-05 Robert Millan <rmh@aybabtu.com>
46680
46681 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
46682 (grub_env_write_color_highlight): Likewise.
46683 (grub_wait_after_message): Likewise.
46684
46685 * normal/color.c: New file.
46686
46687 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46688 (normal_mod_DEPENDENCIES): Likewise.
46689
46690 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46691 (normal_mod_DEPENDENCIES): Likewise.
46692
46693 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46694 (normal_mod_DEPENDENCIES): Likewise.
46695
46696 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46697 (normal_mod_DEPENDENCIES): Likewise.
46698
46699 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
46700 for waiting after a message is printed.
46701 * normal/main.c (read_config_file): Likewise.
46702 (grub_normal_init): Register grub_env_write_color_normal() and
46703 grub_env_write_color_highlight() hooks. Mark `color_normal' and
46704 `color_highlight' variables as global.
46705
46706 * normal/menu.c (grub_wait_after_message): New function.
46707 (grub_color_menu_normal): New variable. Replaces ...
46708 (GRUB_COLOR_MENU_NORMAL): ... this macro.
46709 (grub_color_menu_highlight): New variable. Replaces ...
46710 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
46711 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
46712 `GRUB_TERM_COLOR_STANDARD'.
46713 (print_message): Use `grub_setcolorstate' to reload colors. Rename
46714 `normal_code' and `highlight_code' to `old_color_normal' and
46715 `old_color_highlight', respectively.
46716 (grub_menu_init_page): Update colors when drawing the menu, based on
46717 `menu_color_normal' and `menu_color_highlight' variables.
46718 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
46719 a message is printed.
46720
46721 2008-01-05 Robert Millan <rmh@aybabtu.com>
46722
46723 * kern/env.c (grub_env_context_open): Propagate hooks for global
46724 variables to new context.
46725
46726 * kern/main.c (grub_set_root_dev): Export `root' variable.
46727
46728 2008-01-05 Robert Millan <rmh@aybabtu.com>
46729
46730 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
46731 discs unconditionally, since udev and others have options to provide
46732 them.
46733
46734 2008-01-05 Robert Millan <rmh@aybabtu.com>
46735
46736 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
46737
46738 2008-01-04 Christian Franke <franke@computer.org>
46739
46740 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
46741 of eisa_mmap.
46742
46743 2008-01-03 Pavel Roskin <proski@gnu.org>
46744
46745 * kern/i386/linuxbios/init.c: Put "void" to all function
46746 declarations with no arguments.
46747 * kern/powerpc/ieee1275/init.c: Likewise.
46748 * term/i386/pc/at_keyboard.c: Likewise.
46749 * term/i386/pc/vga_text.c: Likewise.
46750 * util/grub-mkdevicemap.c: Likewise.
46751
46752 2008-01-02 Robert Millan <rmh@aybabtu.com>
46753
46754 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
46755 message when loaded image is out of bounds.
46756 (grub_multiboot_load_elf64): Likewise.
46757
46758 2008-01-02 Pavel Roskin <proski@gnu.org>
46759
46760 * util/grub.d/10_linux.in: Try version without ".old" when
46761 looking for initrd. It's better to use initrd from the newer
46762 kernel of the same version than no initrd at all.
46763
46764 2008-01-01 Robert Millan <rmh@aybabtu.com>
46765
46766 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
46767
46768 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
46769
46770 * include/grub/video.h: Added grub_video_unmap_color and
46771 grub_video_get_active_render_target.
46772 (grub_video_adapter): Added unmap_color and get_active_render_target.
46773
46774 * video/video.c: Added grub_video_unmap_color and
46775 grub_video_get_active_render_target.
46776 (grub_video_get_info): Changed method to accept NULL pointer as an
46777 argument to allow detection of active video adapter.
46778
46779 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
46780 grub_video_vbe_unmap_color_int.
46781 Added grub_video_vbe_unmap_color and
46782 grub_video_vbe_get_active_render_target.
46783 (grub_video_vbe_adapter): Added unmap_color and
46784 get_active_render_target.
46785
46786 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
46787 with grub_video_vbe_unmap_color_int.
46788
46789 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
46790 (DEFAULT_NORMAL_COLOR): Likewise.
46791 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
46792 (DEFAULT_FG_COLOR): Removed.
46793 (DEFAULT_BG_COLOR): Likewise.
46794 (DEFAULT_CURSOR_COLOR): Changed value.
46795 (grub_virtual_screen): Added standard_color_setting,
46796 normal_color_setting, highlight_color_setting and term_color.
46797 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
46798 (bitmap_width): Added.
46799 (bitmap_height): Likewise.
46800 (bitmap): Likewise.
46801 (set_term_color): Likewise.
46802 (grub_virtual_screen_setup): Changed to use new terminal coloring
46803 settings.
46804 (grub_gfxterm_init): Added init for bitmap.
46805 (grub_gfxterm_fini): Added destroy for bitmap.
46806 (redraw_screen_rect): Updated to use background bitmap and new
46807 terminal coloring.
46808 (scroll_up): Added optimization for case when there is no bitmap.
46809 (grub_gfxterm_cls): Fixed to use correct background color.
46810 (grub_virtual_screen_setcolorstate): Changed to use new terminal
46811 coloring.
46812 (grub_virtual_screen_setcolor): Likewise.
46813 (grub_virtual_screen_getcolor): Added.
46814 (grub_gfxterm_background_image_cmd): Likewise.
46815 (grub_video_term): Added setcolor and getcolor.
46816 (MOD_INIT): Added registration of background_image command.
46817 (MOD_TERM): Added unregistration for background_image command.
46818
46819 2007-12-30 Pavel Roskin <proski@gnu.org>
46820
46821 * loader/multiboot_loader.c: Fix multiboot command
46822 unregistration. Fix all typos in the word "multiboot".
46823
46824 2007-12-29 Pavel Roskin <proski@gnu.org>
46825
46826 * util/grub.d/10_linux.in: Refactor search for initrd. Add
46827 support for initrd names used in Fedora.
46828
46829 2007-12-26 Bean <bean123ch@gmail.com>
46830
46831 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
46832 (cpio_mod_SOURCES): New variable.
46833 (cpio_mod_CFLAGS): Likewise.
46834 (cpio_mod_LDFLAGS): Likewise.
46835
46836 * fs/cpio.c: New file.
46837
46838 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
46839
46840 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
46841
46842 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
46843
46844 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46845
46846 2007-12-25 Robert Millan <rmh@aybabtu.com>
46847
46848 * include/grub/term.h (struct grub_term): Add `getcolor' function.
46849 (grub_getcolor): New function.
46850
46851 * kern/term.c (grub_getcolor): New function.
46852 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
46853 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
46854 (print_entry): Set normal and highlight colors to
46855 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
46856 respectively, before printing and restore them to old
46857 values afterwards.
46858 (grub_menu_init_page): Likewise. Fill an additional colored space
46859 that would otherwise be left blank.
46860
46861 * term/efi/console.c (grub_console_getcolor): New function.
46862 (struct grub_console_term.getcolor): New variable.
46863 * term/i386/pc/console.c (grub_console_getcolor): New function.
46864 (struct grub_console_term.getcolor): New variable.
46865 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
46866 (struct grub_console_term.getcolor): New variable.
46867
46868 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
46869 (struct grub_console_term.setcolor): Remove variable.
46870 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
46871 (struct grub_console_term.setcolor): Remove variable.
46872 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
46873 (struct grub_console_term.setcolor): Remove variable.
46874 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
46875 (struct grub_console_term.setcolor): Remove variable.
46876
46877 2007-12-25 Robert Millan <rmh@aybabtu.com>
46878
46879 * configure.ac: Search for possible unifont.hex locations, and
46880 define UNIFONT_HEX if found.
46881
46882 * Makefile.in (UNIFONT_HEX): Define variable.
46883 (DATA): Rename to ...
46884 (PKGLIB): ... this. Update all users.
46885 (PKGDATA): New variable.
46886 (pkgdata_IMAGES): Rename to ...
46887 (pkglib_IMAGES): ... this. Update all users.
46888 (pkgdata_MODULES): Rename to ...
46889 (pkglib_MODULES): ... this. Update all users.
46890 (pkgdata_PROGRAMS): Rename to ...
46891 (pkglib_PROGRAMS): ... this. Update all users.
46892 (pkgdata_DATA): Rename to ...
46893 (pkglib_DATA): ... this. Update all users.
46894 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
46895 (unicode.pff, ascii.pff): New rules.
46896 (all-local): Add `$(PKGDATA)' dependency.
46897 (install-local): Process `$(PKGDATA)'.
46898
46899 * util/update-grub_lib.in (font_path): Search for *.pff files in
46900 a few more locations, including `${pkgdata}'.
46901
46902 2007-12-23 Robert Millan <rmh@aybabtu.com>
46903
46904 Patch from Bean <bean123ch@gmail.com>:
46905 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
46906 `size'.
46907
46908 2007-12-21 Bean <bean123ch@gmail.com>
46909
46910 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
46911 (ntfscomp_mod_SOURCES): New variable.
46912 (ntfscomp_mod_CFLAGS): Likewise.
46913 (ntfscomp_mod_LDFLAGS): Likewise.
46914
46915 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
46916 (grub_probe_SOURCES): Likewise.
46917 (grub_emu_SOURCES): Likewise.
46918
46919 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
46920 (grub_emu_SOURCES): Likewise.
46921
46922 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
46923 (grub_emu_SOURCES): Likewise.
46924
46925 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
46926 (grub_emu_SOURCES): Likewise.
46927
46928 * fs/ntfs.c (grub_ntfscomp_func): New variable.
46929 (read_run_list): Renamed to grub_ntfs_read_run_list.
46930 (decomp_nextvcn): Moved to ntfscomp.c.
46931 (decomp_getch): Likewise.
46932 (decomp_get16): Likewise.
46933 (decomp_block): Likewise.
46934 (read_block): Likewise.
46935 (read_data): Partially moved to ntfscomp.c.
46936 (fixup): Change unsigned to grub_uint16_t.
46937 (read_mft): Change unsigned long to grub_uint32_t.
46938 (read_attr): Likewise.
46939 (read_data): Likewise.
46940 (read_run_data): Likewise.
46941 (read_run_list): Likewise.
46942 (read_mft): Likewise.
46943
46944 * fs/ntfscomp.c: New file.
46945
46946 * include/grub/ntfs.h: New file.
46947
46948 2007-12-16 Robert Millan <rmh@aybabtu.com>
46949
46950 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
46951 IDE disk check, since Linux is known to support 20 IDE disks.
46952 Reported by Colin Watson.
46953
46954 2007-12-15 Bean <bean123ch@gmail.com>
46955
46956 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
46957 (lnxboot_img_SOURCES): New variable.
46958 (lnxboot_img_ASFLAGS): Likewise.
46959 (lnxboot_img_LDFLAGS): Likewise.
46960
46961 * boot/i386/pc/lnxboot.S: New file.
46962
46963 2007-11-24 Pavel Roskin <proski@gnu.org>
46964
46965 * configure.ac: Test if '--build-id=none' is supported by the
46966 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
46967 objcopy to generate incorrect binary files (binutils
46968 2.17.50.0.18-1 as shipped by Fedora 8).
46969 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
46970 linking, so that build ID doesn't break the test.
46971
46972 2007-11-24 Pavel Roskin <proski@gnu.org>
46973
46974 * include/grub/i386/time.h: use "void" in the argument list
46975 of grub_cpu_idle().
46976 * include/grub/powerpc/time.h: Likewise.
46977 * include/grub/sparc64/time.h: Likewise.
46978
46979 2007-11-18 Christian Franke <franke@computer.org>
46980
46981 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
46982 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
46983 This fixes the problem that function keys did not work in grub-emu.
46984
46985 2007-11-18 Christian Franke <franke@computer.org>
46986
46987 * disk/host.c (grub_host_open): Remove attribute unused from
46988 name parameter. Add check for "host". This fixes the problem
46989 that grub-emu does not find partitions.
46990
46991 2007-11-18 Christian Franke <franke@computer.org>
46992
46993 * util/hostfs.c (is_dir): New function.
46994 (grub_hostfs_dir): Handle missing dirent.d_type case.
46995 (grub_hostfs_read): Add missing fseek().
46996 (grub_hostfs_label): Clear label pointer. This fixes a crash
46997 of grub-emu on "ls (host)".
46998
46999 2007-11-18 Christian Franke <franke@computer.org>
47000
47001 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
47002 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
47003 to 64 bit boundary by default.
47004
47005 2007-11-18 Bean <bean123ch@gmail.com>
47006
47007 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
47008 (hexdump_mod_SOURCES): New variable.
47009 (hexdump_mod_CFLAGS): Likewise.
47010 (hexdump_mod_LDFLAGS): Likewise.
47011
47012 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47013
47014 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47015
47016 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47017
47018 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47019
47020 * include/grub/hexdump.h: New file.
47021
47022 * commands/hexdump.c: New file.
47023
47024 2007-11-10 Robert Millan <rmh@aybabtu.com>
47025
47026 * commands/i386/pc/play.c (beep_off): Switch order of arguments
47027 in grub_outb() calls.
47028 (beep_on): Likewise.
47029
47030 2007-11-10 Christian Franke <franke@computer.org>
47031
47032 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
47033 (grub_menu_run): Likewise.
47034
47035 2007-11-10 Robert Millan <rmh@aybabtu.com>
47036
47037 * include/grub/i386/efi/machine.h: New file.
47038 * include/grub/i386/linuxbios/machine.h: Likewise.
47039 * include/grub/i386/pc/machine.h: Likewise.
47040 * include/grub/powerpc/ieee1275/machine.h: Likewise.
47041 * include/grub/sparc64/ieee1275/machine.h: Likewise.
47042
47043 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
47044 (serial_hw_io_addr): New variable.
47045 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
47046 instead of `(unsigned short *) 0x400'.
47047
47048 2007-11-10 Bean <bean123ch@gmail.com>
47049
47050 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
47051
47052 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47053
47054 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
47055 (vga_mod_SOURCES): Added.
47056 (vga_mod_CFLAGS): Likewise.
47057 (vga_mod_LDFLAGS): Likewise.
47058
47059 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
47060 grub_outb() calls.
47061 (set_map_mask): Likewise.
47062 (set_read_map): Likewise.
47063 (set_read_address): Likewise.
47064 (vga_font): Removed variable.
47065 (get_vga_glyph): Removed function.
47066 (invalidate_char): Likewise.
47067 (write_char): Changed to use grub_font_get_glyph() for font
47068 information.
47069 (grub_vga_putchar): Likewise.
47070 (grub_vga_getcharwidth): Likewise.
47071
47072 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47073
47074 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
47075 flags.
47076 (pxeboot_img_LDFLAGS): Likewise.
47077 (diskboot_img_LDFLAGS): Likewise.
47078 (kernel_img_LDFLAGS): Likewise.
47079
47080 2007-11-06 Robert Millan <rmh@aybabtu.com>
47081
47082 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
47083 in grub_outb() calls.
47084 (serial_hw_init): Likewise.
47085
47086 2007-11-05 Robert Millan <rmh@aybabtu.com>
47087
47088 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
47089 spaces. Skip non-regular files.
47090
47091 2007-11-05 Robert Millan <rmh@aybabtu.com>
47092
47093 * kern/disk.c (grub_disk_firmware_fini)
47094 (grub_disk_firmware_is_tainted): New variables.
47095
47096 * include/grub/disk.h (grub_disk_firmware_fini)
47097 (grub_disk_firmware_is_tainted): Likewise.
47098
47099 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
47100 (grub_disk_biosdisk_fini): ... to here.
47101 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
47102 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
47103 is set. Register grub_disk_biosdisk_fini() in
47104 `grub_disk_firmware_fini'.
47105
47106 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
47107 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
47108 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
47109 to finish existing firmware disk interface.
47110
47111 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
47112 (ata_mod_SOURCES): New variable.
47113 (ata_mod_CFLAGS): Likewise.
47114 (ata_mod_LDFLAGS): Likewise.
47115
47116 2007-11-05 Robert Millan <rmh@aybabtu.com>
47117
47118 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
47119 (grub_ata_wait): Reimplement using grub_millisleep().
47120
47121 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
47122 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
47123
47124 2007-11-03 Marco Gerards <marco@gnu.org>
47125
47126 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
47127 (CRTC_ADDR_PORT): New macro.
47128 (CRTC_DATA_PORT): Likewise.
47129 (CRTC_CURSOR): Likewise.
47130 (CRTC_CURSOR_ADDR_HIGH): Likewise.
47131 (CRTC_CURSOR_ADDR_LOW): Likewise.
47132 (update_cursor): New function.
47133 (grub_console_real_putchar): Call `update_cursor'.
47134 (grub_console_gotoxy): Likewise.
47135 (grub_console_cls): Set the default color when clearing the
47136 screen.
47137 (grub_console_setcursor): Implemented.
47138
47139 2007-11-03 Marco Gerards <marco@gnu.org>
47140
47141 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
47142 become activate.
47143 (grub_ata_pio_write): Likewise.
47144
47145 (grub_atapi_identify): Wait after issuing an ATA command.
47146 (grub_atapi_packet): Likewise.
47147 (grub_ata_identify): Likewise.
47148 (grub_ata_readwrite): Likewise.
47149
47150 2007-11-03 Marco Gerards <marco@gnu.org>
47151
47152 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
47153 (grub_ata_pio_write): Likewise.
47154 (grub_ata_readwrite): Use `grub_error', instead of
47155 returning `grub_errno'.
47156
47157 2007-11-03 Marco Gerards <marco@gnu.org>
47158
47159 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
47160 grub_ata_pio_write once for every single sector, instead of for
47161 multiple sectors.
47162
47163 2007-10-31 Robert Millan <rmh@aybabtu.com>
47164
47165 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
47166
47167 * conf/i386-linuxbios.rmk: New file.
47168
47169 * kern/i386/pc/hardware.c: Likewise.
47170 * term/i386/pc/at_keyboard.c: Likewise.
47171 * term/i386/pc/vga_text.c: Likewise.
47172
47173 * include/grub/i386/linuxbios/boot.h: Likewise.
47174 * include/grub/i386/linuxbios/console.h: Likewise.
47175 * include/grub/i386/linuxbios/init.h: Likewise.
47176 * include/grub/i386/linuxbios/kernel.h: Likewise.
47177 * include/grub/i386/linuxbios/loader.h: Likewise.
47178 * include/grub/i386/linuxbios/memory.h: Likewise.
47179 * include/grub/i386/linuxbios/serial.h: Likewise.
47180 * include/grub/i386/linuxbios/time.h: Likewise.
47181
47182 * kern/i386/linuxbios/init.c: Likewise.
47183 * kern/i386/linuxbios/startup.S: Likewise.
47184 * kern/i386/linuxbios/table.c: Likewise.
47185
47186 2007-10-31 Marco Gerards <marco@gnu.org>
47187
47188 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
47189 (ata_mod_SOURCES): New variable.
47190 (ata_mod_CFLAGS): Likewise.
47191 (ata_mod_LDFLAGS): Likewise.
47192
47193 * disk/ata.c: New file.
47194
47195 * include/grub/disk.h (grub_disk_dev_id): Add
47196 `GRUB_DISK_DEV_ATA_ID'.
47197
47198 2007-10-31 Robert Millan <rmh@aybabtu.com>
47199
47200 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
47201 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
47202
47203 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
47204 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
47205
47206 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
47207 `<grub/types.h>'.
47208
47209 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
47210
47211 2007-10-27 Robert Millan <rmh@aybabtu.com>
47212
47213 * include/grub/types.h (ULONG_MAX): Define macro.
47214
47215 2007-10-22 Robert Millan <rmh@aybabtu.com>
47216
47217 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
47218 `"../realmode.S"'.
47219 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
47220
47221 2007-10-22 Robert Millan <rmh@aybabtu.com>
47222
47223 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
47224 (pkgdata_MODULES): Add `biosdisk.mod'.
47225 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
47226 variables.
47227
47228 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
47229 (grub_biosdisk_init): Replace with ...
47230 (GRUB_MOD_INIT(biosdisk)): ... this.
47231 (grub_biosdisk_fini): Replace with ...
47232 (GRUB_MOD_FINI(biosdisk)): ... this.
47233
47234 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
47235 (grub_machine_init): Remove call to grub_biosdisk_init().
47236 (grub_machine_fini): Remove call to grub_machine_fini().
47237
47238 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
47239
47240 2007-10-22 Robert Millan <rmh@aybabtu.com>
47241
47242 * include/grub/time.h: New file.
47243 * include/grub/i386/time.h: Likewise.
47244 * include/grub/powerpc/time.h: Likewise.
47245 * include/grub/sparc64/time.h: Likewise.
47246
47247 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
47248 instances to ...
47249 (KERNEL_MACHINE_TIME_HEADER): ... this.
47250 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47251 instances to ...
47252 (KERNEL_MACHINE_TIME_HEADER): ... this.
47253 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47254 instances to ...
47255 (KERNEL_MACHINE_TIME_HEADER): ... this.
47256
47257 * kern/i386/efi/init.c: Include `<grub/time.h>'.
47258 (grub_millisleep): New function.
47259 * kern/i386/pc/init.c: Include `<grub/time.h>'.
47260 (grub_millisleep): New function.
47261 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
47262 Remove `grub/machine/time.h' include.
47263 (grub_millisleep): New function.
47264 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
47265 Remove `grub/machine/time.h' include.
47266 (grub_millisleep): New function.
47267
47268 * include/grub/misc.h (grub_div_roundup): New function.
47269
47270 * kern/misc.c: Include `<grub/time.h>'.
47271 (grub_millisleep_generic): New function.
47272
47273 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
47274 Add `time.h'.
47275 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
47276 Add `time.h'.
47277 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
47278 `machine/time.h'. Add `time.h'.
47279 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
47280
47281 2007-10-21 Robert Millan <rmh@aybabtu.com>
47282
47283 * include/grub/misc.h (grub_max): New function.
47284
47285 2007-10-21 Robert Millan <rmh@aybabtu.com>
47286
47287 * util/misc.c (grub_util_info): Call fflush() before returning.
47288
47289 2007-10-20 Robert Millan <rmh@aybabtu.com>
47290
47291 * genmk.rb (Image): Copy `extra_flags' from here ...
47292 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
47293
47294 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
47295 to `argc' and `args' arguments.
47296
47297 2007-10-17 Robert Millan <rmh@aybabtu.com>
47298
47299 * kern/i386/loader.S: New file.
47300
47301 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
47302 * kern/i386/loader.S (grub_linux_prot_size)... to here.
47303 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
47304 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
47305 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
47306 * kern/i386/loader.S (grub_linux_real_addr)... to here.
47307 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
47308 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
47309 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
47310 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
47311 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
47312 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
47313 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
47314 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
47315
47316 * kern/i386/realmode.S: New file.
47317
47318 * kern/i386/pc/startup.S (protstack): Moved from here ...
47319 * kern/i386/realmode.S (protstack)... to here.
47320 * kern/i386/pc/startup.S (gdt): Moved from here ...
47321 * kern/i386/realmode.S (gdt)... to here.
47322 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
47323 * kern/i386/realmode.S (prot_to_real)... to here.
47324
47325 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
47326 `kern/i386/realmode.S'.
47327
47328 2007-10-17 Robert Millan <rmh@aybabtu.com>
47329
47330 * include/grub/i386/loader.h: New file.
47331
47332 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
47333 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47334 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47335 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47336 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
47337 * include/grub/i386/loader.h (grub_linux_prot_size)
47338 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47339 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47340 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47341 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
47342
47343 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
47344
47345 2007-10-15 Robert Millan <rmh@aybabtu.com>
47346
47347 * normal/misc.c (grub_normal_print_device_info): Do not probe for
47348 filesystem when dev->disk is unset.
47349 Do probe for filesystem even when dev->disk->has_partitions is set.
47350 In case a filesystem is found, always report it.
47351 In case it isn't, if dev->disk->has_partitions is set, report that
47352 a partition table was found instead of reporting that no filesystem
47353 could be identified.
47354
47355 2007-10-12 Robert Millan <rmh@aybabtu.com>
47356
47357 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
47358 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
47359
47360 * include/grub/types.h (grub_host_to_target16): New macro.
47361 (grub_host_to_target32): Likewise.
47362 (grub_host_to_target64): Likewise.
47363 (grub_target_to_host16): Likewise.
47364 (grub_target_to_host32): Likewise.
47365 (grub_target_to_host64): Likewise.
47366
47367 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
47368 Renamed from to ...
47369 (GRUB_MOD_ALIGN): ...this. Update all users.
47370
47371 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
47372 grub_host_to_target32.
47373 Replace grub_be_to_cpu32 with grub_target_to_host32.
47374 (load_modules): Likewise.
47375 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
47376 Replace grub_be_to_cpu32 with grub_target_to_host32.
47377 Replace grub_cpu_to_be16 with grub_host_to_target16.
47378 Replace grub_cpu_to_be32 grub_host_to_target32.
47379
47380 2007-10-12 Robert Millan <rmh@aybabtu.com>
47381
47382 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
47383 * util/elf/grub-mkimage.c: ... here.
47384
47385 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
47386 `util/powerpc/ieee1275/grub-mkimage.c'.
47387
47388 2007-10-07 Robert Millan <rmh@aybabtu.com>
47389
47390 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
47391 and make it easier to figure out.
47392 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
47393 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
47394 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
47395 leave us with less than HEAP_MIN_SIZE total heap.
47396 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
47397
47398 2007-10-03 Robert Millan <rmh@aybabtu.com>
47399
47400 * include/grub/i386/io.h: New file.
47401 * commands/i386/pc/play.c (inb): Removed.
47402 (outb): Removed.
47403 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47404 with grub_outb().
47405 * term/i386/pc/serial.c (inb): Removed.
47406 (outb): Removed.
47407 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47408 with grub_outb().
47409 * term/i386/pc/vga.c (inb): Removed.
47410 (outb): Removed.
47411 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47412 with grub_outb().
47413
47414 2007-10-02 Robert Millan <rmh@aybabtu.com>
47415
47416 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
47417 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47418 Reported by Marcin Kurek.
47419
47420 2007-09-07 Robert Millan <rmh@aybabtu.com>
47421
47422 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
47423 SmartFirmware version updates (as released by Sven Luther), and avoid
47424 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
47425 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
47426 known broken.
47427
47428 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47429
47430 From Hitoshi Ozeki:
47431 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
47432 when merging two regions.
47433
47434 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47435
47436 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
47437 * normal/completion.c (grub_normal_do_completion): Likewise.
47438 Reported by Hitoshi Ozeki.
47439
47440 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47441
47442 Do not use devices at boot in chainloading.
47443
47444 * loader/i386/pc/chainloader.c (boot_drive): New variable.
47445 (boot_part_addr): Likewise.
47446 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
47447 with BOOT_DRIVE and BOOT_PART_ADDR.
47448 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
47449 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
47450
47451 2007-08-29 Robert Millan <rmh@aybabtu.com>
47452
47453 Patch from Simon Peter <dn.tlp@gmx.net>:
47454 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
47455 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
47456 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
47457 util/i386/pc/grub-setup.c_DEPENDENCIES.
47458 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
47459 util/grub-probe.c_DEPENDENCIES.
47460 * conf/powerpc-ieee1275.rmk: Likewise.
47461
47462 2007-08-28 Robert Millan <rmh@aybabtu.com>
47463
47464 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
47465 to tell grub-mkdevicemap how to name devices.
47466 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
47467 feature).
47468
47469 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
47470 util/i386/get_disk_name.c.
47471 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
47472 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
47473 util/ieee1275/get_disk_name.c.
47474
47475 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
47476
47477 * DISTLIST: Add util/i386/get_disk_name.c and
47478 util/ieee1275/get_disk_name.c.
47479
47480 * util/grub-mkdevicemap.c: Replace device naming logic with
47481 grub_util_get_disk_name() calls.
47482
47483 2007-08-20 Robert Millan <rmh@aybabtu.com>
47484
47485 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
47486 (so that it works for both plural and singular quantities).
47487
47488 2007-08-05 Robert Millan <rmh@aybabtu.com>
47489
47490 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
47491 so that [xz] isn't taken into account when determining order.
47492
47493 2007-08-02 Marco Gerards <marco@gnu.org>
47494
47495 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
47496 `include/multiboot2.h', `include/grub/elfload.h',
47497 `include/multiboot.h', `include/grub/multiboot.h',
47498 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
47499 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
47500 `kern/elf.c', `loader/multiboot_loader.c',
47501 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
47502 `loader/i386/pc/multiboot2.c',
47503 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
47504 `util/i386/pc/grub-mkrescue.in'. Remove
47505 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
47506 `include/grub/i386/pc/util/biosdisk.h' and
47507 `include/grub/powerpc/ieee1275/multiboot.h'.
47508
47509 2007-08-02 Bean <bean123ch@gmail.com>
47510
47511 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
47512 (ntfs_mod_SOURCES): New variable.
47513 (ntfs_mod_CFLAGS): Likewise.
47514 (ntfs_mod_LDFLAGS): Likewise.
47515
47516 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
47517 (grub_probe_SOURCES): Likewise.
47518 (grub_emu_SOURCES): Likewise.
47519
47520 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47521 (grub_emu_SOURCES): Likewise.
47522
47523 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47524 (grub_emu_SOURCES): Likewise.
47525
47526 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
47527
47528 * fs/ntfs.c: New file.
47529
47530 2007-08-02 Bean <bean123ch@gmail.com>
47531
47532 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
47533
47534 * file.h (grub_file): Likewise.
47535
47536 * fshelp.h (grub_fshelp_read_file): Likewise.
47537
47538 * util/i386/pc/grub-setup.c (setup): Likewise.
47539 (save_first_sector): Likewise.
47540 (save_blocklists): Likewise.
47541
47542 * fs/affs.c (grub_affs_read_file): Likewise.
47543
47544 * fs/ext2.c (grub_ext2_read_file): Likewise.
47545
47546 * fs/fat.c (grub_fat_read_data): Likewise.
47547
47548 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
47549
47550 * fs/hfs.c (grub_hfs_read_file): Likewise.
47551
47552 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
47553
47554 * fs/jfs.c (grub_jfs_read_file): Likewise.
47555
47556 * fs/minix.c (grub_minix_read_file): Likewise.
47557
47558 * fs/sfs.c (grub_sfs_read_file): Likewise.
47559
47560 * fs/ufs.c (grub_ufs_read_file): Likewise.
47561
47562 * fs/xfs.c (grub_xfs_read_file): Likewise.
47563
47564 * command/blocklist.c (read_blocklist): Likewise.
47565 (print_blocklist): Likewise.
47566
47567 2007-08-02 Marco Gerards <marco@gnu.org>
47568
47569 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
47570 `util/hostfs.c'.
47571
47572 * disk/host.c: New file.
47573
47574 * util/hostfs.c: Likewise.
47575
47576 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
47577 return `GRUB_ERR_BAD_FS'.
47578 * fs/sfs.c (grub_sfs_mount): Likewise.
47579 * fs/xfs.c (grub_xfs_mount): Likewise.
47580
47581 * include/grub/disk.h (enum grub_disk_dev_id): Add
47582 `GRUB_DISK_DEVICE_HOST_ID'.
47583
47584 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
47585
47586 2007-07-24 Jerone Young <jerone@gmail.com>
47587
47588 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
47589 modules for compilation.
47590 * conf/powerpc-ieee1275.rmk: Likewise.
47591
47592 * include/multiboot.h: Move multiboot definitions to one file. Rename
47593 many definitions to not get grub specific.
47594 * include/multiboot2.h: Create header with multiboot 2 definitions.
47595 * include/grub/multiboot.h: Header for grub specific function
47596 prototypes and definitions.
47597 * include/grub/multiboot2.h: Likewise.
47598 * include/grub/multiboot_loader.h: Likewise.
47599 * include/grub/i386/pc/multiboot.h: Removed.
47600 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
47601
47602 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
47603 and 2 to allow for one multiboot and module commands.
47604 * loader/multiboot2.c: Add multiboot2 functionality.
47605 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
47606 and definition names.
47607 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
47608 2 functions.
47609 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
47610 ieee1275 specific multiboot2 code.
47611
47612 * kern/i386/pc/startup.S: Change headers and definition names for
47613 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
47614
47615 2007-07-22 Robert Millan <rmh@aybabtu.com>
47616
47617 * geninitheader.sh: Process file specified in first parameter rather
47618 than hardcoding grub_modules_init.lst.
47619 * geninit.sh: Likewise. Also, construct header name dynamically rather
47620 than hardcoding grub_modules_init.h.
47621
47622 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
47623 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
47624 grub_probe_init.[ch] and grub_setup_init.[ch].
47625
47626 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
47627 grub_modules_init.h with grub_emu_init.h.
47628 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
47629 grub_probe_init.[ch] files.
47630 * conf/i386-efi.rmk: Likewise.
47631 * conf/i386-pc.rmk: Likewise.
47632 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
47633 grub_setup_init.[ch] files.
47634
47635 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
47636 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
47637 to initialize modules rather than a list of hardcoded functions.
47638 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
47639 grub_init_all() to initialize modules rather than a list of hardcoded
47640 functions.
47641
47642 2007-07-22 Robert Millan <rmh@aybabtu.com>
47643
47644 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
47645 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
47646
47647 2007-07-22 Robert Millan <rmh@aybabtu.com>
47648
47649 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
47650 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
47651 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
47652 flag when running on SmartFirmware.
47653 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
47654 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
47655 was set.
47656
47657 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
47658 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
47659 rather than decreasing it.
47660
47661 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
47662 there's not enough space to do it, fail in the same way as when it
47663 can't be done because there are no partitions.
47664
47665 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
47666 when nvsetenv failed.
47667
47668 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47669
47670 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
47671 because this rule is automatically generated.
47672 (grub-mkrescue): Removed for the same reason as above.
47673
47674 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47675
47676 Migrate to GNU General Public License Version 3.
47677
47678 * COPYING: Replaced with the plain text version of GPLv3.
47679
47680 * config.guess: Updated from gnulib.
47681 * config.sub: Likewise.
47682
47683 * geninit.sh: Output a GPLv3 copyright notice.
47684 * geninitheader.sh: Likewise.
47685 * genmodsrc.sh: Likewise.
47686 * gensymlist.sh.in: Likewise.
47687
47688 * boot/i386/pc/boot.S: Upgraded to GPLv3.
47689 * boot/i386/pc/diskboot.S: Likewise.
47690 * boot/i386/pc/pxeboot.S: Likewise.
47691 * commands/blocklist.c: Likewise.
47692 * commands/boot.c: Likewise.
47693 * commands/cat.c: Likewise.
47694 * commands/cmp.c: Likewise.
47695 * commands/configfile.c: Likewise.
47696 * commands/echo.c: Likewise.
47697 * commands/help.c: Likewise.
47698 * commands/ls.c: Likewise.
47699 * commands/search.c: Likewise.
47700 * commands/terminal.c: Likewise.
47701 * commands/test.c: Likewise.
47702 * commands/videotest.c: Likewise.
47703 * commands/i386/cpuid.c: Likewise.
47704 * commands/i386/pc/halt.c: Likewise.
47705 * commands/i386/pc/play.c: Likewise.
47706 * commands/i386/pc/reboot.c: Likewise.
47707 * commands/i386/pc/vbeinfo.c: Likewise.
47708 * commands/i386/pc/vbetest.c: Likewise.
47709 * commands/ieee1275/halt.c: Likewise.
47710 * commands/ieee1275/reboot.c: Likewise.
47711 * commands/ieee1275/suspend.c: Likewise.
47712 * disk/loopback.c: Likewise.
47713 * disk/lvm.c: Likewise.
47714 * disk/raid.c: Likewise.
47715 * disk/efi/efidisk.c: Likewise.
47716 * disk/i386/pc/biosdisk.c: Likewise.
47717 * disk/ieee1275/ofdisk.c: Likewise.
47718 * font/manager.c: Likewise.
47719 * fs/affs.c: Likewise.
47720 * fs/ext2.c: Likewise.
47721 * fs/fat.c: Likewise.
47722 * fs/fshelp.c: Likewise.
47723 * fs/hfs.c: Likewise.
47724 * fs/hfsplus.c: Likewise.
47725 * fs/iso9660.c: Likewise.
47726 * fs/jfs.c: Likewise.
47727 * fs/minix.c: Likewise.
47728 * fs/sfs.c: Likewise.
47729 * fs/ufs.c: Likewise.
47730 * fs/xfs.c: Likewise.
47731 * hello/hello.c: Likewise.
47732 * include/grub/acorn_filecore.h: Likewise.
47733 * include/grub/arg.h: Likewise.
47734 * include/grub/bitmap.h: Likewise.
47735 * include/grub/boot.h: Likewise.
47736 * include/grub/cache.h: Likewise.
47737 * include/grub/device.h: Likewise.
47738 * include/grub/disk.h: Likewise.
47739 * include/grub/dl.h: Likewise.
47740 * include/grub/elfload.h: Likewise.
47741 * include/grub/env.h: Likewise.
47742 * include/grub/err.h: Likewise.
47743 * include/grub/file.h: Likewise.
47744 * include/grub/font.h: Likewise.
47745 * include/grub/fs.h: Likewise.
47746 * include/grub/fshelp.h: Likewise.
47747 * include/grub/gzio.h: Likewise.
47748 * include/grub/hfs.h: Likewise.
47749 * include/grub/kernel.h: Likewise.
47750 * include/grub/loader.h: Likewise.
47751 * include/grub/lvm.h: Likewise.
47752 * include/grub/misc.h: Likewise.
47753 * include/grub/mm.h: Likewise.
47754 * include/grub/net.h: Likewise.
47755 * include/grub/normal.h: Likewise.
47756 * include/grub/parser.h: Likewise.
47757 * include/grub/partition.h: Likewise.
47758 * include/grub/pc_partition.h: Likewise.
47759 * include/grub/raid.h: Likewise.
47760 * include/grub/rescue.h: Likewise.
47761 * include/grub/script.h: Likewise.
47762 * include/grub/setjmp.h: Likewise.
47763 * include/grub/symbol.h: Likewise.
47764 * include/grub/term.h: Likewise.
47765 * include/grub/terminfo.h: Likewise.
47766 * include/grub/tparm.h: Likewise.
47767 * include/grub/types.h: Likewise.
47768 * include/grub/video.h: Likewise.
47769 * include/grub/efi/api.h: Likewise.
47770 * include/grub/efi/chainloader.h: Likewise.
47771 * include/grub/efi/console.h: Likewise.
47772 * include/grub/efi/console_control.h: Likewise.
47773 * include/grub/efi/disk.h: Likewise.
47774 * include/grub/efi/efi.h: Likewise.
47775 * include/grub/efi/pe32.h: Likewise.
47776 * include/grub/efi/time.h: Likewise.
47777 * include/grub/i386/linux.h: Likewise.
47778 * include/grub/i386/setjmp.h: Likewise.
47779 * include/grub/i386/types.h: Likewise.
47780 * include/grub/i386/efi/kernel.h: Likewise.
47781 * include/grub/i386/efi/loader.h: Likewise.
47782 * include/grub/i386/efi/time.h: Likewise.
47783 * include/grub/i386/pc/biosdisk.h: Likewise.
47784 * include/grub/i386/pc/boot.h: Likewise.
47785 * include/grub/i386/pc/chainloader.h: Likewise.
47786 * include/grub/i386/pc/console.h: Likewise.
47787 * include/grub/i386/pc/init.h: Likewise.
47788 * include/grub/i386/pc/kernel.h: Likewise.
47789 * include/grub/i386/pc/loader.h: Likewise.
47790 * include/grub/i386/pc/memory.h: Likewise.
47791 * include/grub/i386/pc/multiboot.h: Likewise.
47792 * include/grub/i386/pc/serial.h: Likewise.
47793 * include/grub/i386/pc/time.h: Likewise.
47794 * include/grub/i386/pc/vbe.h: Likewise.
47795 * include/grub/i386/pc/vbeblit.h: Likewise.
47796 * include/grub/i386/pc/vbefill.h: Likewise.
47797 * include/grub/i386/pc/vbeutil.h: Likewise.
47798 * include/grub/i386/pc/vga.h: Likewise.
47799 * include/grub/ieee1275/ieee1275.h: Likewise.
47800 * include/grub/ieee1275/ofdisk.h: Likewise.
47801 * include/grub/powerpc/libgcc.h: Likewise.
47802 * include/grub/powerpc/setjmp.h: Likewise.
47803 * include/grub/powerpc/types.h: Likewise.
47804 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
47805 * include/grub/powerpc/ieee1275/console.h: Likewise.
47806 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
47807 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
47808 * include/grub/powerpc/ieee1275/loader.h: Likewise.
47809 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
47810 * include/grub/powerpc/ieee1275/time.h: Likewise.
47811 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
47812 * include/grub/sparc64/libgcc.h: Likewise.
47813 * include/grub/sparc64/setjmp.h: Likewise.
47814 * include/grub/sparc64/types.h: Likewise.
47815 * include/grub/sparc64/ieee1275/console.h: Likewise.
47816 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
47817 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
47818 * include/grub/sparc64/ieee1275/time.h: Likewise.
47819 * include/grub/util/biosdisk.h: Likewise.
47820 * include/grub/util/getroot.h: Likewise.
47821 * include/grub/util/lvm.h: Likewise.
47822 * include/grub/util/misc.h: Likewise.
47823 * include/grub/util/raid.h: Likewise.
47824 * include/grub/util/resolve.h: Likewise.
47825 * io/gzio.c: Likewise.
47826 * kern/device.c: Likewise.
47827 * kern/disk.c: Likewise.
47828 * kern/dl.c: Likewise.
47829 * kern/elf.c: Likewise.
47830 * kern/env.c: Likewise.
47831 * kern/err.c: Likewise.
47832 * kern/file.c: Likewise.
47833 * kern/fs.c: Likewise.
47834 * kern/loader.c: Likewise.
47835 * kern/main.c: Likewise.
47836 * kern/misc.c: Likewise.
47837 * kern/mm.c: Likewise.
47838 * kern/parser.c: Likewise.
47839 * kern/partition.c: Likewise.
47840 * kern/rescue.c: Likewise.
47841 * kern/term.c: Likewise.
47842 * kern/efi/efi.c: Likewise.
47843 * kern/efi/init.c: Likewise.
47844 * kern/efi/mm.c: Likewise.
47845 * kern/i386/dl.c: Likewise.
47846 * kern/i386/efi/init.c: Likewise.
47847 * kern/i386/efi/startup.S: Likewise.
47848 * kern/i386/pc/init.c: Likewise.
47849 * kern/i386/pc/lzo1x.S: Likewise.
47850 * kern/i386/pc/startup.S: Likewise.
47851 * kern/ieee1275/ieee1275.c: Likewise.
47852 * kern/powerpc/cache.S: Likewise.
47853 * kern/powerpc/dl.c: Likewise.
47854 * kern/powerpc/ieee1275/cmain.c: Likewise.
47855 * kern/powerpc/ieee1275/crt0.S: Likewise.
47856 * kern/powerpc/ieee1275/init.c: Likewise.
47857 * kern/powerpc/ieee1275/openfw.c: Likewise.
47858 * kern/sparc64/cache.S: Likewise.
47859 * kern/sparc64/dl.c: Likewise.
47860 * kern/sparc64/ieee1275/init.c: Likewise.
47861 * kern/sparc64/ieee1275/openfw.c: Likewise.
47862 * loader/efi/chainloader.c: Likewise.
47863 * loader/efi/chainloader_normal.c: Likewise.
47864 * loader/i386/efi/linux.c: Likewise.
47865 * loader/i386/efi/linux_normal.c: Likewise.
47866 * loader/i386/pc/chainloader.c: Likewise.
47867 * loader/i386/pc/chainloader_normal.c: Likewise.
47868 * loader/i386/pc/linux.c: Likewise.
47869 * loader/i386/pc/linux_normal.c: Likewise.
47870 * loader/i386/pc/multiboot.c: Likewise.
47871 * loader/i386/pc/multiboot_normal.c: Likewise.
47872 * loader/powerpc/ieee1275/linux.c: Likewise.
47873 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
47874 * normal/arg.c: Likewise.
47875 * normal/cmdline.c: Likewise.
47876 * normal/command.c: Likewise.
47877 * normal/completion.c: Likewise.
47878 * normal/execute.c: Likewise.
47879 * normal/function.c: Likewise.
47880 * normal/lexer.c: Likewise.
47881 * normal/main.c: Likewise.
47882 * normal/menu.c: Likewise.
47883 * normal/menu_entry.c: Likewise.
47884 * normal/misc.c: Likewise.
47885 * normal/parser.y: Likewise.
47886 * normal/script.c: Likewise.
47887 * normal/i386/setjmp.S: Likewise.
47888 * normal/powerpc/setjmp.S: Likewise.
47889 * normal/sparc64/setjmp.S: Likewise.
47890 * partmap/acorn.c: Likewise.
47891 * partmap/amiga.c: Likewise.
47892 * partmap/apple.c: Likewise.
47893 * partmap/gpt.c: Likewise.
47894 * partmap/pc.c: Likewise.
47895 * partmap/sun.c: Likewise.
47896 * term/gfxterm.c: Likewise.
47897 * term/terminfo.c: Likewise.
47898 * term/efi/console.c: Likewise.
47899 * term/i386/pc/console.c: Likewise.
47900 * term/i386/pc/serial.c: Likewise.
47901 * term/i386/pc/vesafb.c: Likewise.
47902 * term/i386/pc/vga.c: Likewise.
47903 * term/ieee1275/ofconsole.c: Likewise.
47904 * util/biosdisk.c: Likewise.
47905 * util/console.c: Likewise.
47906 * util/genmoddep.c: Likewise.
47907 * util/getroot.c: Likewise.
47908 * util/grub-emu.c: Likewise.
47909 * util/grub-mkdevicemap.c: Likewise.
47910 * util/grub-probe.c: Likewise.
47911 * util/lvm.c: Likewise.
47912 * util/misc.c: Likewise.
47913 * util/raid.c: Likewise.
47914 * util/resolve.c: Likewise.
47915 * util/update-grub.in: Likewise.
47916 * util/update-grub_lib.in: Likewise.
47917 * util/grub.d/00_header.in: Likewise.
47918 * util/grub.d/10_hurd.in: Likewise.
47919 * util/grub.d/10_linux.in: Likewise.
47920 * util/i386/efi/grub-install.in: Likewise.
47921 * util/i386/efi/grub-mkimage.c: Likewise.
47922 * util/i386/pc/grub-install.in: Likewise.
47923 * util/i386/pc/grub-mkimage.c: Likewise.
47924 * util/i386/pc/grub-mkrescue.in: Likewise.
47925 * util/i386/pc/grub-setup.c: Likewise.
47926 * util/i386/pc/misc.c: Likewise.
47927 * util/powerpc/ieee1275/grub-install.in: Likewise.
47928 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
47929 * util/powerpc/ieee1275/misc.c: Likewise.
47930 * video/bitmap.c: Likewise.
47931 * video/video.c: Likewise.
47932 * video/i386/pc/vbe.c: Likewise.
47933 * video/i386/pc/vbeblit.c: Likewise.
47934 * video/i386/pc/vbefill.c: Likewise.
47935 * video/i386/pc/vbeutil.c: Likewise.
47936 * video/readers/tga.c: Likewise.
47937
47938 2007-07-02 Robert Millan <rmh@aybabtu.com>
47939
47940 * conf/i386-efi.rmk: Replace obsolete reference to
47941 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
47942 with util/getroot.c.
47943 * conf/powerpc-ieee1275.rmk: Likewise.
47944 * conf/sparc64-ieee1275.rmk: Likewise.
47945
47946 * util/grub-emu.c (main): Fix unchecked pointer handling.
47947
47948 2007-07-02 Robert Millan <rmh@aybabtu.com>
47949
47950 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
47951 invocation to fail, in order to support partition-less media.
47952
47953 * util/i386/pc/grub-install.in: Likewise.
47954
47955 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
47956 which fs or partmap modules are needed (akin to its sister scripts).
47957
47958 Also use grub-probe to get rid of unportable /proc/mounts check.
47959
47960 Print the same informational message that the other scripts do, before
47961 exiting.
47962
47963 2007-06-23 Robert Millan <rmh@aybabtu.com>
47964
47965 * util/update-grub_lib.in (font_path): New function. Determine whether
47966 a font file can be found and, if so, echo the GRUB path to it.
47967
47968 * util/update-grub.in: Handle multiple terminals depending on user
47969 input, platform availability and font file presence. Propagate
47970 variables of our findings to /etc/grub.d/ children.
47971
47972 * util/grub.d/00_header.in: Handle multiple terminals, based on
47973 environment setup by update-grub.
47974
47975 2007-06-23 Robert Millan <rmh@aybabtu.com>
47976
47977 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
47978
47979 2007-06-21 Robert Millan <rmh@aybabtu.com>
47980
47981 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
47982 indicate end of data section in kernel image.
47983 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
47984 GRUB_KERNEL_MACHINE_DATA_END.
47985
47986 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
47987 space for it.
47988 * kern/i386/efi/startup.S: Likewise.
47989
47990 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
47991 during image generation. Implement --prefix option to override this
47992 patch.
47993 * util/i386/efi/grub-mkimage.c: Likewise.
47994
47995 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
47996 code to make path relative to its root into a separate function.
47997
47998 * util/i386/pc/grub-install.in: Use newly provided
47999 make_system_path_relative_to_its_root() to convert ${grubdir}, then
48000 pass the result to grub-install --prefix.
48001
48002 2007-06-13 Robert Millan <rmh@aybabtu.com>
48003
48004 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
48005 DEFAULT_DEVICE_MAP.
48006 * util/grub-emu.c: Use above definitions from misc.h instead of
48007 defining them.
48008 * util/grub-mkdevicemap.c: Likewise.
48009 * util/i386/pc/grub-setup.c: Likewise.
48010 * util/grub-probe.c: Likewise.
48011 (probe): Abort with grub_util_error() when either
48012 grub_guess_root_device or grub_util_get_grub_dev fails.
48013
48014 2007-06-12 Robert Millan <rmh@aybabtu.com>
48015
48016 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
48017 "pager" assignment.
48018 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
48019 "pcdata".
48020 * util/grub-probe.c (probe): Likewise for "drive_name".
48021
48022 2007-06-11 Robert Millan <rmh@aybabtu.com>
48023
48024 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
48025 not just the cdrom one.
48026
48027 2007-06-11 Robert Millan <rmh@aybabtu.com>
48028
48029 * util/i386/pc/grub-mkrescue.in: Add "set -e".
48030 Add --pkglibdir=DIR option to override pkglibdir.
48031 Mention --image-type=TYPE in help output.
48032 Fix --grub-mkimage (it was a no-op).
48033 Abort gracefully when no parameter is given.
48034
48035 2007-06-11 Robert Millan <rmh@aybabtu.com>
48036
48037 * util/i386/pc/grub-mkrescue.in: New file.
48038 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
48039 * Makefile.in: Handle bin_SCRIPTS.
48040
48041 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
48042
48043 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
48044 list of video modes.
48045
48046 2007-06-06 Robert Millan <rmh@aybabtu.com>
48047
48048 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
48049 file doesn't exist, or if it is in a filesystem grub can't read.
48050
48051 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
48052 not abort if GRUB_DRIVE could not be defined. Rearrange generated
48053 header comment to fit in 80 columns when the variables are resolved.
48054
48055 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
48056 could be identified by update-grub. Remove redundant check for
48057 unifont.pff existence (since convert_system_path_to_grub_path now
48058 handles that).
48059
48060 2007-06-04 Robert Millan <rmh@aybabtu.com>
48061
48062 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
48063
48064 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
48065
48066 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
48067
48068 2007-06-04 Robert Millan <rmh@aybabtu.com>
48069
48070 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
48071
48072 * include/grub/partition.h: Declare grub_apple_partition_map_init and
48073 grub_apple_partition_map_fini.
48074
48075 * util/biosdisk.c
48076 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
48077 to access >2 TiB disks).
48078
48079 Print disk->total_sectors with %llu instead of %lu, since this
48080 variable is always 64-bit (prevents wrong disk size from being displayed
48081 on either >2 TiB disk or big-endian CPU).
48082
48083 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
48084 into a generic case that supports all (sane) partition maps.
48085
48086 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
48087 breaks big-endian.
48088
48089 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
48090 and grub_apple_partition_map_fini() after that.
48091
48092 2007-06-01 Robert Millan <rmh@aybabtu.com>
48093
48094 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
48095
48096 * util/grub.d/00_header.in: Only enable gfxterm when
48097 convert_system_path_to_grub_path() succeeds.
48098
48099 2007-05-20 Robert Millan <rmh@aybabtu.com>
48100
48101 * util/update-grub_lib.in: New file.
48102 * DISTLIST: Add update-grub_lib.in.
48103 * conf/common.rmk: Generate update-grub_lib and install it in
48104 $(lib_DATA).
48105 * Makefile.in: Add install routine for $(lib_DATA).
48106
48107 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
48108 function provided by update-grub_lib to support arbitrary paths of
48109 unifont.pff.
48110 * util/update-grub.in: Use convert_system_path_to_grub_path() to
48111 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
48112
48113 2007-05-19 Robert Millan <rmh@aybabtu.com>
48114
48115 * commands/i386/cpuid.c: New module.
48116 * DISTLIST: Add it.
48117 * conf/i386-efi.rmk: Enable cpuid.mod.
48118 * conf/i386-pc.rmk: Likewise.
48119
48120 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48121
48122 * kern/disk.c (grub_disk_read): Check return value of
48123 grub_realloc().
48124
48125 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48126
48127 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
48128 arrays.
48129 * disk/raid.c (grub_raid_open): Likewise.
48130
48131 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48132
48133 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
48134 stack instead of on the heap.
48135
48136 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
48137 before doing a read on it.
48138
48139 * configure.ac: Only use -fno-stack-protector for the target
48140 environment.
48141
48142 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48143
48144 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
48145 __attribute_ ((unused)) to mode_type argument.
48146
48147 * util/getroot.c (grub_guess_root_device): Fix #endif.
48148
48149 * kern/misc.c (memcmp): Fix prototype.
48150
48151 * include/grub/partition.h [GRUB_UTIL]
48152 (grub_gpt_partition_map_init): Add prototype.
48153 (grub_gpt_partition_map_fini): Likewise.
48154
48155 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
48156 at the right place.
48157
48158 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
48159 (grub_fat_read_data): Likewise.
48160 (grub_fat_find_dir): Likewise.
48161
48162 * font/manager.c (find_glyph): Make table a const.
48163 (grub_font_get_glyph): Remove bitmap from if statement.
48164
48165 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
48166
48167 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
48168 code, first search for device in /dev/mapper, then in /dev.
48169 (grub_util_get_grub_dev): New function.
48170 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
48171 prototype.
48172 * util/grub-probe.c (probe): Remove check for RAID, call
48173 grub_util_get_grub_dev() instead of
48174 grub_util_biosdisk_get_grub_dev().
48175 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
48176 grub_util_biosdisk_get_grub_dev().
48177 * util/i386/pc/grub-setup.c (main): Likewise.
48178
48179 2007-05-16 Robert Millan <rmh@aybabtu.com>
48180
48181 * DISTLIST: Update for the latest changes.
48182 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
48183 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
48184 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
48185 grub/util/biosdisk.h.
48186 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
48187 grub/util/biosdisk.h.
48188
48189 2007-05-16 Robert Millan <rmh@aybabtu.com>
48190
48191 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
48192
48193 2007-05-16 Robert Millan <rmh@aybabtu.com>
48194
48195 * util/i386/efi/grub-install.in: New.
48196 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
48197 newly added grub-install.
48198 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
48199 include.
48200 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
48201 grub/util/biosdisk.h.
48202 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
48203 grub/util/biosdisk.h.
48204
48205 2007-05-16 Robert Millan <rmh@aybabtu.com>
48206
48207 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
48208 * include/grub/util/biosdisk.h: ... here.
48209 * util/i386/pc/biosdisk.c: Moved to ...
48210 * util/biosdisk.c: ... here.
48211 * util/i386/pc/getroot.c: Moved to ...
48212 * util/getroot.c: ... here.
48213 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
48214 * util/grub-mkdevicemap.c: ... here.
48215 * util/i386/pc/grub-probe.c: Moved to ...
48216 * util/grub-probe.c: ... here.
48217
48218 2007-05-15 Robert Millan <rmh@aybabtu.com>
48219
48220 * util/update-grub.in: Remove duplicated line in grub.cfg header
48221 message.
48222
48223 2007-05-13 Robert Millan <rmh@aybabtu.com>
48224
48225 * util/update-grub.in: Fix a few assumptions about the devices holding
48226 /, /boot and /boot/grub being the same.
48227 * util/grub.d/00_header.in: Likewise.
48228 * util/grub.d/10_hurd.in: Likewise.
48229 * util/grub.d/10_linux.in: Likewise.
48230
48231 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
48232 patterns. Use that to define the `.old' suffix as older than `'.
48233
48234 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
48235
48236 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
48237 the grub.cfg header message.
48238
48239 2007-05-11 Robert Millan <rmh@aybabtu.com>
48240
48241 * util/update-grub.in: Create device.map if it doesn't already exist,
48242 before attempting to run grub-probe.
48243 Check for grub-probe and grub-mkdevicemap with the same code
48244 grub-install is using.
48245 Remove test mode.
48246
48247 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
48248
48249 * Makefile.in: Add the datarootdir autoconf variable.
48250
48251 2007-05-09 Robert Millan <rmh@aybabtu.com>
48252
48253 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
48254 fail gracefully if dev->disk->partition == NULL.
48255
48256 2007-05-07 Robert Millan <rmh@aybabtu.com>
48257
48258 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
48259 determine partition map module.
48260 * util/i386/pc/grub-install.in: Use this feature to decide which
48261 partition module to load, instead of hardcoding pc and gpt.
48262
48263 2007-05-07 Robert Millan <rmh@aybabtu.com>
48264
48265 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
48266 source directory differs from build directory.
48267
48268 2007-05-05 Robert Millan <rmh@aybabtu.com>
48269
48270 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
48271 initialisation.
48272
48273 2007-05-05 Robert Millan <rmh@aybabtu.com>
48274
48275 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
48276
48277 2007-05-05 Robert Millan <rmh@aybabtu.com>
48278
48279 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
48280 command-line arguments via ${GRUB_CMDLINE_LINUX}.
48281
48282 2007-05-05 Robert Millan <rmh@aybabtu.com>
48283
48284 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
48285 (grub_probe_SOURCES): Likewise.
48286 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
48287 GPT and initialize dos_part and bsd_part accordingly.
48288 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
48289 install_bsd_part.
48290 (main): Activate gpt module for use during partition identification,
48291 and deactivate it afterwards.
48292 * util/i386/pc/grub-install.in: Add gpt module to core.img.
48293 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
48294 partition identification, and deactivate it afterwards.
48295
48296 2007-05-05 Robert Millan <rmh@aybabtu.com>
48297
48298 * term/i386/pc/console.c (grub_console_fini): Call
48299 grub_term_set_current() before grub_term_unregister().
48300
48301 2007-05-04 Robert Millan <rmh@aybabtu.com>
48302
48303 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
48304 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
48305 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
48306 and update-grub_DATA.
48307 * conf/common.rmk: Build and install update-grub components.
48308 * conf/common.mk: Regenerate.
48309 * util/update-grub.in: New. Core of update-grub.
48310 * util/grub.d/00_header.in: New. Generates grub.cfg header.
48311 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
48312 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
48313 * util/grub.d/README: New. Document grub.d directory layout.
48314
48315 2007-05-01 Robert Millan <rmh@aybabtu.com>
48316
48317 * util/grub-emu.c: Move initialization functions
48318 grub_util_biosdisk_init() and grub_init_all() before
48319 grub_util_biosdisk_get_grub_dev(), which relies on them.
48320
48321 2007-04-19 Robert Millan <rmh@aybabtu.com>
48322
48323 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
48324 it is used later.
48325
48326 2007-04-18 Jerone Young <jerone@gmail.com>
48327
48328 * kernel/elf.c: Add missing parenthesis for conditional statement
48329 stanza.
48330
48331 2007-04-10 Jerone Young <jerone@gmail.com>
48332
48333 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
48334 continue on and look for device node with real device name.
48335
48336 2007-04-10 Jerone Young <jerone@gmail.com>
48337
48338 * configure.ac: Add argument for autoconf to use transformation
48339 ability.
48340 * Makefile.in: Add autoconf package transformation code.
48341 * util/i386/pc/grub-install.in: Likewise.
48342 * util/powerpc/ieee1275/grub-install.in: Likewise.
48343
48344 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
48345
48346 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
48347 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
48348 (EXT2_REVISION): Likewise.
48349 (EXT2_INODE_SIZE): Likewise.
48350 (struct grub_ext2_block_group): Added a missing member
48351 "used_dirs".
48352 (grub_ext2_read_inode): Divide by the inode size in a superblock
48353 instead of 128 to obtain INODES_PER_BLOCK.
48354 Use the macro EXT2_INODE_SIZE instead of directly using
48355 SBLOCK->INODE_SIZE.
48356
48357 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
48358
48359 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
48360 superblock instead of the structure size to compute an
48361 offset. This fixes the problem that GRUB could not read a
48362 filesystem when inode size is different from 128-byte.
48363
48364 2007-03-05 Marco Gerards <marco@gnu.org>
48365
48366 * normal/main.c (read_config_file): When "menu" is not set, create
48367 an initial context.
48368
48369 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48370
48371 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
48372 (HEAP_LIMIT): New macro.
48373 (grub_claim_heap): Claim memory up to `heaplimit'.
48374
48375 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48376
48377 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
48378 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
48379 (_start): Likewise.
48380 (grub_arch_modules_addr): Return address after `_end'.
48381 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
48382 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
48383 (add_segments): Calculate `_end' from phdr size and location.
48384 (ALIGN_UP): Moved to ...
48385 * include/grub/misc.h: here.
48386 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
48387 New macro.
48388 (GRUB_IEEE1275_MODULE_BASE): Removed.
48389
48390 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48391
48392 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
48393 loop boundary.
48394
48395 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48396
48397 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
48398 All users updated.
48399 (grub_elf64_load_hook_t): Likewise.
48400 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
48401 debug output.
48402
48403 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48404
48405 * kern/mm.c: Update copyright.
48406 (grub_mm_debug): Correct syntax error.
48407 (grub_mm_dump_free): New function.
48408 (grub_debug_free): Call `grub_free'.
48409 * include/grub/mm.h: Update copyright.
48410 (grub_mm_dump_free): Add declaration.
48411
48412 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48413
48414 * include/grub/ieee1275/ieee1275.h: Update copyright.
48415 * kern/powerpc/ieee1275/init.c: Likewise.
48416 * kern/powerpc/ieee1275/openfw.c: Likewise.
48417
48418 * loader/powerpc/ieee1275/linux.c: Likewise.
48419 * include/grub/elfload.h: Likewise.
48420 * kern/elf.c: Likewise.
48421 (grub_elf32_load): Pass `base' and `size' parameters. Update all
48422 callers.
48423 (grub_elf64_load): Likewise.
48424 (grub_elf32_load_segment): Move to a nested function.
48425 (grub_elf64_load_segment): Likewise.
48426
48427 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48428
48429 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
48430 prototype.
48431 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
48432 (grub_heap_len): Likewise.
48433 (HEAP_SIZE): New macro.
48434 (grub_claim_heap): New function.
48435 (grub_machine_init): Don't claim heap directly. Call
48436 `grub_claim_heap'.
48437 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
48438 (grub_available_iterate): New function.
48439
48440 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
48441
48442 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
48443 * configure.ac: Use it for testing the HOST and TARGET compilers.
48444
48445 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
48446
48447 * Makefile.in (enable_grub_emu): New variable.
48448 * configure.ac (--enable-grub-emu): New option.
48449 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
48450 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
48451 * conf/i386-pc.rmk: Likewise.
48452 * conf/powerpc-ieee1275.rmk: Likewise.
48453 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
48454
48455 2006-12-12 Marco Gerards <marco@gnu.org>
48456
48457 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
48458
48459 * kern/env.c (grub_env_unset): Don't free the member `value' when
48460 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
48461 pointer.
48462
48463 * normal/main.c (current_menu): Removed.
48464 (free_menu): Unset the `menu' environment variable.
48465 (grub_normal_menu_addentry): Make use of the environment variable
48466 `menu', instead of using the global `current_menu'. Allocate
48467 memory for the sourcecode of this entry.
48468 (read_config_file): New argument `nested', changed all callers.
48469 Only in the case of a new context, initialize a new menu. Set the
48470 `menu' environment variable.
48471 (grub_normal_execute): Don't set and unset the environment
48472 variable `menu' here anymore. Only free the menu when leaving the
48473 context.
48474
48475 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
48476 leak.
48477
48478 2006-12-11 Marco Gerards <marco@gnu.org>
48479
48480 * normal/menu_entry.c (run): Fix off by one bug so the last line
48481 is executed. Move the loader check to outside the loop.
48482
48483 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
48484
48485 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
48486
48487 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
48488
48489 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
48490 the number of sectors. Reported by Andrey Shuvikov
48491 <mr_hyro@yahoo.com>.
48492
48493 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
48494
48495 * kern/disk.c (grub_disk_read): When there is a read error, always
48496 try to read only the necessary data.
48497
48498 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
48499 disk/raid.c.
48500 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
48501 prototype.
48502 [GRUB_UTIL] (grub_raid_fini): Likewise.
48503 [GRUB_UTIL] (grub_lvm_init): Likewise.
48504 [GRUB_UTIL] (grub_lvm_fini): Likewise.
48505 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
48506 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
48507 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
48508 and grub_raid_fini().
48509
48510 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
48511
48512 * include/grub/types.h (__unused): Rename to UNUSED.
48513 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
48514 (grub_elf64_size): Likewise.
48515
48516 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48517
48518 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
48519 grub_error_push and grub_error_pop in the error-handling path.
48520 (grub_elf32_load_segment): Only call grub_file_read with non-zero
48521 length.
48522
48523 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48524
48525 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
48526 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
48527 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
48528 (kernel_elf_SOURCES): Likewise.
48529 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
48530 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
48531 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48532 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48533 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
48534 (elf_mod_SOURCES): New variable.
48535 (elf_mod_CFLAGS): Likewise.
48536 (elf_mod_LDFLAGS): Likewise.
48537 * include/grub/types.h (__unused): New macro.
48538 * include/grub/elfload.h: New file.
48539 * kern/elf.c: Likewise.
48540 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
48541 (ELF32_LOADMASK): New macro.
48542 (ELF64_LOADMASK): Likewise.
48543 (vmlinux): Removed.
48544 (grub_linux_load32): New function.
48545 (grub_linux_load64): Likewise.
48546 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
48547 Use grub_elf_t instead of grub_file_t.
48548
48549 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
48550
48551 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
48552 `catch_result' to struct set_color_args.
48553
48554 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
48555
48556 * normal/menu.c: Include grub/script.h.
48557 * normal/menu_entry.c: Likewise.
48558 * include/grub/normal.h: Do not include grub/script.h.
48559
48560 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48561
48562 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
48563
48564 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48565
48566 * kern/disk.c (grub_disk_open): Print debug messages when opening a
48567 disk.
48568 (grub_disk_close): Print debug messages when closing a disk.
48569 (grub_disk_read): Print debug messages when disk read fails.
48570 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
48571 filesystem type.
48572 * kern/partition.c: Include misc.h.
48573 (grub_partition_iterate): Print debug messages when detecting
48574 partition type.
48575
48576 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48577
48578 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
48579 is negative.
48580 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
48581
48582 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
48583
48584 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
48585 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
48586
48587 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
48588
48589 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
48590 instead of sizeof(lv). Patch by Michael Guntsche.
48591
48592 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
48593
48594 * disk/lvm.c: Rename VGS to VG_LIST.
48595 (grub_lvm_iterate): Change VGS->LV to VG-LV.
48596 (grub_lvm_open): Likewise.
48597 Thanks to Michael Guntsche for finding this bug.
48598
48599 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48600
48601 * configure.ac (AC_INIT): Bumped to 1.95.
48602
48603 2006-10-14 Robert Millan <rmh@aybabtu.com>
48604
48605 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
48606 with "/dev/.static/dev/md".
48607
48608 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48609
48610 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
48611 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
48612 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
48613 DRIVE_NAME are always freed.
48614
48615 * util/i386/pc/biosdisk.c (make_device_name): Add one into
48616 DOS_PART, as a DOS partition is counted from one instead of zero
48617 now. Reported by Robert Millan.
48618
48619 2006-10-14 Robert Millan <rmh@aybabtu.com>
48620
48621 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
48622 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
48623 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
48624 string returned by grub_guess_root_device.
48625 * util/i386/pc/grub-setup.c: Likewise.
48626 * util/i386/pc/grub-probefs.c: Likewise.
48627
48628 * util/i386/pc/grub-probefs.c: Rename to ...
48629 * util/i386/pc/grub-probe.c: ... this.
48630 * DISTLIST: Remove grub-probefs, add grub-probe.
48631 * conf/i386-efi.rmk: Likewise.
48632 * conf/i386-pc.rmk: Likewise.
48633 * util/i386/pc/grub-install.in: Likewise.
48634
48635 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
48636 choose which information we want to print.
48637
48638 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48639
48640 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
48641 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
48642 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
48643 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
48644 video/readers/tga.c and video/i386/pc/vbeutil.c.
48645
48646 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
48647
48648 Added support for RAID and LVM.
48649
48650 * disk/lvm.c: New file.
48651 * disk/raid.c: Likewise.
48652 * include/grub/lvm.h: Likewise.
48653 * include/grub/raid.h: Likewise.
48654 * include/grub/util/lvm.h: Likewise.
48655 * include/grub/util/raid.h: Likewise.
48656 * util/lvm.c: Likewise.
48657 * util/raid.c: Likewise.
48658
48659 * include/grub/disk.h (grub_disk_dev_id): Add
48660 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
48661 (grub_disk_get_size): New prototype.
48662 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
48663 returns a partition.
48664 (grub_disk_get_size): New function.
48665
48666 * kern/i386/pc/init.c (make_install_device): Copy the prefix
48667 verbatim if grub_install_dos_part is -2.
48668
48669 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
48670 and LVM devices.
48671
48672 * util/i386/pc/grub-setup.c (setup): New argument
48673 MUST_EMBED. Force embedding of GRUB when the argument is
48674 true. Close FILE before returning.
48675 (main): Add support for RAID and LVM.
48676
48677 * conf/common.rmk: Add RAID and LVM modules.
48678 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
48679 util/lvm.c.
48680 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
48681
48682 * kern/misc.c (grub_strstr): New function.
48683 * include/grub/misc.h (grub_strstr): New prototype.
48684
48685 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
48686
48687 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
48688
48689 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
48690
48691 * kern/misc.c (grub_strtoull): Guess the base only if not
48692 specified.
48693
48694 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48695
48696 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
48697 PowerMac support.
48698
48699 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48700
48701 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
48702
48703 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
48704 Remove `flags' argument. All callers changed.
48705 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
48706 (IEEE1275_IHANDLE_INVALID): New variable.
48707 (IEEE1275_CELL_INVALID): New variable.
48708 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
48709 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
48710 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
48711 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
48712 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
48713 codes from Open Firmware. All callers updated.
48714 (grub_ieee1275_next_property): Directly return Open Firmware return
48715 code.
48716 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
48717 Standardize error checking from `grub_ieee1275_get_property'.
48718 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
48719 `devalias' to `aliases'. Correct comments. Consolidate error paths.
48720
48721 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48722
48723 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
48724 `instance_to_package_args' to `instance_to_path_args'.
48725
48726 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
48727 `grub_ieee1275_chosen'.
48728
48729 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
48730 `grub_ieee1275_interpret'.
48731
48732 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48733
48734 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
48735
48736 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48737
48738 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
48739 (__cmpdi): Likewise.
48740
48741 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
48742 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
48743 `grub_ssize_t'.
48744
48745 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
48746
48747 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
48748 to type `grub_ssize_t'.
48749 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
48750
48751 2006-09-22 Marco Gerards <marco@gnu.org>
48752
48753 * normal/script.c (grub_script_create_cmdmenu): Skip leading
48754 newlines.
48755
48756 2006-09-22 Marco Gerards <marco@gnu.org>
48757
48758 * commands/echo.c: New file.
48759
48760 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
48761
48762 * conf/common.rmk (echo_mod_SOURCES): New variable.
48763 (echo_mod_CFLAGS): Likewise.
48764 (echo_mod_LDFLAGS): Likewise.
48765
48766 2006-09-22 Marco Gerards <marco@gnu.org>
48767
48768 * normal/main.c (get_line): Malloc memory instead of using
48769 preallocated memory. Removed the arguments `cmdline' and
48770 `max_len'. Updated all callers.
48771
48772 2006-09-22 Marco Gerards <marco@gnu.org>
48773
48774 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
48775 (normal_mod_DEPENDENCIES): Likewise.
48776
48777 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
48778 (normal_mod_DEPENDENCIES): Likewise.
48779
48780 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
48781
48782 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
48783
48784 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
48785 programs.
48786 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
48787 (normal_mod_DEPENDENCIES): Likewise.
48788 * conf/i386-pc.mk: Regenerate.
48789 * conf/i386-efi.mk: Likewise
48790 * conf/common.mk: Likewise.
48791 * conf/powerpc-ieee1275.mk: Likewise.
48792 * conf/sparc64-ieee1275.mk: Likewise.
48793
48794 2006-09-22 Robert Millan <rmh@aybabtu.com>
48795
48796 Sync with i386 version.
48797 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
48798 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
48799
48800 2006-09-21 Robert Millan <rmh@aybabtu.com>
48801
48802 Import from GRUB Legacy (lib/device.c):
48803 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
48804 (init_device_map) [__linux__]: Add support for I2O devices.
48805
48806 2006-09-14 Marco Gerards <marco@gnu.org>
48807
48808 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
48809 `-melf_i386'.
48810
48811 2006-09-14 Robert Millan <rmh@aybabtu.com>
48812
48813 * util/i386/pc/grub-install.in: Skip menu.lst when removing
48814 /boot/grub/*.lst.
48815
48816 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
48817
48818 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
48819 before adding it to device.map.
48820
48821 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
48822
48823 * genmk.rb: Let GCC generate dependencies the first time it
48824 compiles a file; using the -MD option.
48825 * conf/common.mk: Regenerate.
48826 * conf/i386-pc.mk: Likewise.
48827 * conf/i386-efi.mk: Likewise.
48828 * conf/powerpc-ieee1275.mk: Likewise.
48829 * conf/sparc64-ieee1275.mk: Likewise.
48830
48831 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
48832
48833 Move the prototypes of grub_setjmp and grub_longjmp to
48834 cpu/setjmp.h, so that each architecture may specify different
48835 attributes.
48836
48837 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
48838 (grub_longjmp): Likewise.
48839 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
48840 (grub_longjmp): Likewise.
48841 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
48842 (grub_longjmp): Likewise.
48843
48844 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
48845 [!GRUB_UTIL] (grub_longjmp): Removed.
48846
48847 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
48848
48849 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
48850 "color!" method does not return any value.
48851
48852 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
48853
48854 * include/grub/bitmap.h: New file.
48855
48856 * include/grub/i386/pc/vbeutil.h: Likewise.
48857
48858 * video/bitmap.c: Likewise.
48859
48860 * video/readers/tga.c: Likewise.
48861
48862 * video/i386/pc/vbeutil.c: Likewise.
48863
48864 * commands/videotest.c: Code cleanup and updated to reflect to new
48865 video API.
48866
48867 * term/gfxterm.c: Likewise.
48868
48869 * video/video.c: Likewise.
48870
48871 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
48872 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
48873 (bitmap_mod_SOURCES): New entry.
48874 (bitmap_mod_CFLAGS): Likewise.
48875 (bitmap_mod_LDFLAGS): Likewise.
48876 (tga_mod_SOURCES): Likewise.
48877 (tga_mod_CFLAGS): Likewise.
48878 (tga_mod_LDFLAGS): Likewise.
48879
48880 * include/grub/video.h (grub_video_blit_operators): New enum type.
48881 (grub_video_render_target): Changed as forward declaration and moved
48882 actual definition to be video driver specific.
48883 (grub_video_adapter.blit_bitmap): Added blitting operator.
48884 (grub_video_adapter.blit_render_target): Likewise.
48885 (grub_video_blit_bitmap): Likewise.
48886 (grub_video_blit_render_target): Likewise.
48887
48888 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
48889 driver specific render target definition.
48890 (grub_video_vbe_map_rgba): Added driver internal helper.
48891 (grub_video_vbe_unmap_color): Updated to use
48892 grub_video_i386_vbeblit_info.
48893 (grub_video_vbe_get_video_ptr): Likewise.
48894
48895 * include/grub/i386/pc/vbeblit.h
48896 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
48897 grub_video_i386_vbeblit_info.
48898 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
48899 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
48900 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
48901 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
48902 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
48903 (grub_video_i386_vbeblit_index_index): Likewise.
48904 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
48905 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
48906 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
48907 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
48908 operator.
48909 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
48910 operator.
48911
48912 * video/i386/pc/vbeblit.c: Updated to reflect changes on
48913 include/grub/i386/pc/vbeblit.h.
48914
48915 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
48916 Updated to use grub_video_i386_vbeblit_info.
48917 (grub_video_i386_vbefill_R8G8B8): Likewise.
48918 (grub_video_i386_vbefill_index): Likewise.
48919 (grub_video_i386_vbefill): Added generic filler.
48920
48921 * video/i386/pc/vbefill.c: Updated to reflect changes on
48922 include/grub/i386/pc/vbefill.h.
48923
48924 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
48925 grub_video_i386_vbeblit_info.
48926 (grub_video_vbe_unmap_color): Likewise.
48927 (grub_video_vbe_blit_glyph): Likewise.
48928 (grub_video_vbe_scroll): Likewise.
48929 (grub_video_vbe_draw_pixel): Removed function.
48930 (grub_video_vbe_get_pixel): Likewise.
48931 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
48932 updated code to use it.
48933 (common_blitter): Added common blitter for render target and bitmap.
48934 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
48935 (grub_video_vbe_blit_render_target): Likewise.
48936
48937 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
48938
48939 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
48940 is in text mode if there is no console control protocol instance
48941 available.
48942
48943 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
48944
48945 * include/grub/video.h: Code cleanup.
48946
48947 * include/grub/i386/pc/vbe.h: Likewise.
48948
48949 * video/i386/pc/vbe.c: Likewise.
48950
48951 * video/i386/pc/vbeblit.c: Likewise.
48952
48953 * video/i386/pc/vbefill.c: Likewise.
48954
48955 * video/video.c: Likewise. Also added more comments.
48956
48957 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
48958
48959 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
48960 (struct grub_biosdisk_dap): Likewise.
48961
48962 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
48963 linkage settings for all functions.
48964
48965 2006-07-12 Marco Gerards <marco@gnu.org>
48966
48967 * configure.ac (--enable-mm-debug): Fix typo.
48968
48969 * genkernsyms.sh.in: Use proper quoting for `CC'.
48970
48971 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
48972
48973 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
48974 (normal_mod_ASFLAGS): Remove "-m32".
48975
48976 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
48977
48978 * util/misc.c: Include config.h.
48979 [!HAVE_MEMALIGN]: Do not include malloc.h.
48980 (grub_memalign): Use posix_memalign, if present. Then, use
48981 memalign, if present. Otherwise, emit an error.
48982
48983 * util/grub-emu.c: Do not include malloc.h.
48984
48985 * include/grub/util/misc.h: Include unistd.h. This is required for
48986 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
48987 D. Eades III <hde@foobar-qux.org>.
48988
48989 * configure.ac (AC_GNU_SOURCE): Added.
48990 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
48991 type.
48992
48993 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
48994
48995 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
48996 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
48997
48998 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
48999
49000 * include/grub/types.h (grub_host_addr_t): Rename to
49001 grub_target_addr_t.
49002 (grub_host_off_t): Rename to grub_target_off_t.
49003 (grub_host_size_t): Rename to grub_target_size_t.
49004 (grub_host_ssize_t): Rename to grub_target_ssize_t.
49005 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
49006
49007 * include/grub/kernel.h (struct grub_module_header): Change type
49008 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
49009 (grub_module_info): Likewise.
49010
49011 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49012
49013 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
49014 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
49015 Velazquez <jesus.velazquez@gmail.com>.
49016
49017 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49018
49019 Count partitions from 1 instead of 0 in the string representation
49020 of partitions. Still use 0-based internally.
49021
49022 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
49023 (sun_partition_map_iterate): Use grub_partition_t instead of
49024 struct grub_partition *. Cast DESC->START_CYLINDER to
49025 grub_uint64_t after converting the endian.
49026 (sun_partition_map_probe): Subtract 1 for PARTNUM.
49027 (sun_partition_map_get_name): Add 1 to P->INDEX.
49028
49029 * partmap/pc.c (grub_partition_parse): Subtract 1 for
49030 PCDATA->DOS_PART.
49031 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
49032
49033 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
49034 zero instead of one.
49035 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
49036 (gpt_partition_map_get_name): Add 1 into P->INDEX.
49037
49038 * partmap/apple.c (apple_partition_map_iterate): Change the type
49039 of POS to unsigned.
49040 (apple_partition_map_probe): Subtract 1 for PARTNUM.
49041 (apple_partition_map_get_name): Add 1 into P->INDEX.
49042
49043 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
49044 of POS to unsigned.
49045 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
49046 calculate the offset of a partition.
49047 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
49048 (amiga_partition_map_get_name): Add 1 into P->INDEX.
49049
49050 * partmap/acorn.c (acorn_partition_map_find): Change the type of
49051 SECTOR to grub_disk_addr_t.
49052 (acorn_partition_map_iterate): Likewise.
49053 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
49054 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
49055 top.
49056 (acorn_partition_map_get_name): Add 1 into P->INDEX.
49057
49058 * kern/i386/pc/init.c (make_install_device): Add 1 into
49059 GRUB_INSTALL_DOS_PART.
49060
49061 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
49062 conditional.
49063
49064 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49065
49066 Clean up the code to support 64-bit addressing in disks and
49067 files. This change is not enough for filesystems yet.
49068
49069 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
49070 type of "start" to grub_uint64_t.
49071 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
49072 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
49073 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
49074 convert addresses.
49075
49076 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
49077 to grub_disk_addr_t.
49078
49079 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
49080 string.
49081
49082 * partmap/pc.c (pc_partition_map_iterate): Likewise.
49083
49084 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
49085 to char *.
49086
49087 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
49088
49089 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
49090
49091 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
49092
49093 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
49094 to grub_off_t, to detect an error from grub_file_seek.
49095 (grub_multiboot_load_elf32): Likewise.
49096
49097 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
49098 maximum unsigned long value when an overflow is detected.
49099 (grub_strtoull): New function.
49100 (grub_divmod64): Likewise.
49101 (grub_lltoa): use grub_divmod64.
49102
49103 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
49104 grub_disk_addr_t.
49105 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
49106 the pointer to next character. Use grub_strtoull instead of
49107 grub_strtoul.
49108 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
49109 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
49110 respectively.
49111
49112 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
49113 return value is signed.
49114 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
49115 test if OFFSET is less than zero, as OFFSET is unsigned now.
49116
49117 * kern/disk.c (struct grub_disk_cache): Change the type of
49118 "sector" to grub_disk_addr_t.
49119 (grub_disk_cache_get_index): Change the type of SECTOR to
49120 grub_disk_addr_t. Calculate the hash with SECTOR casted to
49121 unsigned after shifting.
49122 (grub_disk_cache_invalidate): Change the type of SECTOR to
49123 grub_disk_addr_t.
49124 (grub_disk_cache_unlock): Likewise.
49125 (grub_disk_cache_store): Likewise.
49126 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
49127 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
49128 grub_disk_addr_t and grub_uint64_t, respectively.
49129 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
49130 body, as the value of OFFSET is tweaked by
49131 grub_disk_check_range. Change the types of START_SECTOR, LEN and
49132 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
49133 respectively.
49134 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
49135 body, as the value of OFFSET is tweaked by
49136 grub_disk_check_range. Change the types of LEN and N to
49137 grub_size_t.
49138
49139 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
49140 and "saved_offset" to grub_off_t.
49141 (test_header): Cast BUF to char *.
49142 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
49143 to char *.
49144 (grub_gzio_read): Change the types of OFFSET and SIZE to
49145 grub_off_t and grub_size_t, respectively.
49146
49147 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
49148 Removed.
49149 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
49150 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
49151 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
49152 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
49153 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
49154
49155 * include/grub/types.h (grub_off_t): Unconditionally set to
49156 grub_uint64_t.
49157 (grub_disk_addr_t): Changed to grub_uint64_t.
49158
49159 * include/grub/partition.h (struct grub_partition): Change the
49160 types of "start", "len" and "offset" to grub_disk_addr_t,
49161 grub_uint64_t and grub_disk_addr_t, respectively.
49162 (grub_partition_get_start): Return grub_disk_addr_t.
49163 (grub_partition_get_len): Return grub_uint64_t.
49164
49165 * include/grub/misc.h (grub_strtoull): New prototype.
49166 (grub_divmod64): Likewise.
49167
49168 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
49169 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
49170 grub_off_t, respectively.
49171 All callers and references changed.
49172
49173 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
49174 grub_size_t in "read".
49175 All callers and references changed.
49176
49177 * include/grub/file.h (struct grub_file): Change the types of
49178 "offset" and "size" to grub_off_t and grub_off_t,
49179 respectively. Change the type of SECTOR to grub_disk_addr_t in
49180 "read_hook".
49181 (grub_file_read): Change the type of LEN to grub_size_t.
49182 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
49183 grub_off_t.
49184 (grub_file_size): Return grub_off_t.
49185 (grub_file_tell): Likewise.
49186 All callers and references changed.
49187
49188 * include/grub/disk.h (struct grub_disk_dev): Change the types of
49189 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
49190 "write".
49191 (struct grub_disk): Change the type of "total_sectors" to
49192 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
49193 "read_hook".
49194 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
49195 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
49196 (grub_disk_write): Likewise.
49197 All callers and references changed.
49198
49199 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
49200 char * for grub_strncmp to silence gcc.
49201 (grub_iso9660_mount): Likewise.
49202 (grub_iso9660_mount): Likewise.
49203 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
49204 return statement.
49205 (grub_iso9660_iterate_dir): Likewise.
49206 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
49207
49208 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
49209 LEN to grub_disk_addr_t and grub_size_t, respectively.
49210
49211 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
49212
49213 * fs/jfs.c (grub_jfs_read_file): Likewise.
49214
49215 * fs/minix.c (grub_jfs_read_file): Likewise.
49216
49217 * fs/sfs.c (grub_jfs_read_file): Likewise.
49218
49219 * fs/ufs.c (grub_jfs_read_file): Likewise.
49220
49221 * fs/xfs.c (grub_jfs_read_file): Likewise.
49222
49223 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
49224 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
49225 respectively.
49226
49227 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
49228 BLKNR to -1 instead of returning GRUB_ERRNO.
49229 (grub_ext2_read_file): Change the types of SECTOR and
49230 LEN to grub_disk_addr_t and grub_size_t, respectively.
49231
49232 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
49233 LEN to grub_disk_addr_t and grub_size_t, respectively.
49234
49235 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
49236 grub_file_read.
49237
49238 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
49239 string. Do not cast SECTOR explicitly.
49240
49241 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
49242 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
49243 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
49244 grub_disk_addr_t and grub_size_t, respectively. If the sector is
49245 over 2TB and LBA mode is not supported, raise an error.
49246 (get_safe_sectors): New function.
49247 (grub_biosdisk_read): Use get_safe_sectors.
49248 (grub_biosdisk_write): Likewise.
49249
49250 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
49251 (grub_efidisk_write): Likewise.
49252
49253 * disk/loopback.c (delete_loopback): Cosmetic changes.
49254 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
49255 correctly.
49256 (grub_loopback_open): Likewise.
49257 (grub_loopback_read): Likewise. Also, change the type of POS to
49258 grub_off_t, and fix the usage of grub_memset.
49259
49260 * commands/i386/pc/play.c: Include grub/machine/time.h.
49261
49262 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
49263 print FILE->SIZE.
49264
49265 * commands/configfile.c: Include grub/env.h.
49266
49267 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
49268 GRUB_ERRNO directly instead. Change the type of POS to
49269 grub_off_t. Follow the coding standard.
49270
49271 * commands/blocklist.c: Include grub/partition.h.
49272 (grub_cmd_blocklist): Return an error if the underlying device is
49273 not a disk. Take the starting sector of a partition into account,
49274 if a partition is used.
49275
49276 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
49277 a length field.
49278 (lba_mode): Support 64-bit addresses.
49279 (chs_mode): Likewise.
49280 (copy_buffer): Adapted to the new offsets of a length field and a
49281 segment field.
49282 (blocklist_default_start): Allocate 64-bit space.
49283
49284 * boot/i386/pc/boot.S (force_lba): Removed.
49285 (boot_drive): Moved to under KERNEL_SECTOR.
49286 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
49287 space.
49288 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
49289 is useless.
49290 (lba_mode): Refactored to support a 64-bit address. More size
49291 optimization.
49292 (setup_sectors): Likewise.
49293
49294 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49295
49296 * DISTLIST: Added include/grub/i386/linux.h. Removed
49297 include/grub/i386/pc/linux.h
49298
49299 * configure.ac (AC_INIT): Bumped to 1.94.
49300
49301 * config.guess: Updated from gnulib.
49302 * config.sub: Likewise.
49303 * install-sh: Likewise.
49304 * mkinstalldirs: Likewise.
49305
49306 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49307
49308 * conf/common.rmk (grub_modules_init.lst): Depended on
49309 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
49310 MODSRCFILES.
49311
49312 * genmk.rb (PModule::rule): Reverted the previous change.
49313
49314 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49315
49316 * conf/common.rmk (grub_modules_init.lst): Depends on
49317 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
49318 that the target does not exist before producing.
49319 (grub_modules_init.h): Remove the target before generating.
49320 (grub_emu_init.c): Likewise.
49321
49322 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
49323
49324 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
49325
49326 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
49327 for the target-specific tests. Make sure that we also have the
49328 up-to-date target variables for those tests.
49329
49330 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49331
49332 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
49333 (PModule::rule): Likewise.
49334
49335 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49336
49337 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
49338 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
49339 target-specific flags should be prefixed.
49340 (PModule::rule): Likewise.
49341
49342 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
49343
49344 * configure.ac (CMP): Check if cmp is available explicitly.
49345
49346 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
49347
49348 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
49349 (target_cpu): New variable.
49350 (pkglibdir): Use target_cpu instead of host_cpu.
49351
49352 * util/i386/pc/grub-install.in (host_cpu): Removed.
49353 (target_cpu): New variable.
49354 (pkglibdir): Use target_cpu instead of host_cpu.
49355
49356 * util/genmoddep.c: Removed.
49357
49358 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
49359 instead of GRUB_HOST_SIZEOF_VOID_P.
49360 * kern/dl.c: Likewise.
49361
49362 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
49363 ...
49364 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49365 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49366 (GRUB_TARGET_SIZEOF_LONG): ... this.
49367 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49368 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49369 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49370 to ...
49371 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49372 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49373 (GRUB_TARGET_SIZEOF_LONG): ... this.
49374 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49375 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49376 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49377 to ...
49378 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49379 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49380 (GRUB_TARGET_SIZEOF_LONG): ... this.
49381 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49382 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49383
49384 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
49385 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
49386 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
49387 instead of GRUB_HOST_SIZEOF_LONG.
49388 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
49389 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
49390 GRUB_CPU_WORDS_BIGENDIAN.
49391 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
49392 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
49393 grub_host_ssize_t.
49394
49395 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
49396 (genmoddep_SOURCES): Likewise.
49397 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
49398 (genmoddep_SOURCES): Likewise.
49399 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
49400 (genmoddep_SOURCES): Likewise.
49401 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
49402 Likewise.
49403 (genmoddep_SOURCES): Likewise.
49404
49405 * genmoddep.awk: New file.
49406
49407 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
49408 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
49409 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
49410 (PModule::rule): Likewise.
49411 (Program::rule): Likewise.
49412 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
49413 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
49414 respectively.
49415
49416 * configure.ac: Rewritten intensively to use host and target
49417 instead of build and host, respectively.
49418
49419 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
49420 (host_cpu): Removed.
49421 (target_cpu): New variable.
49422 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
49423 (BUILD_CC): Removed.
49424 (BUILD_CFLAGS): Likewise.
49425 (BUILD_CPPFLAGS): Likewise.
49426 (TARGET_CC): New variable.
49427 (TARGET_CFLAGS): Likewise.
49428 (TARGET_CPPFLAGS): Likewise.
49429 (TARGET_LDFLAGS): Likewise.
49430 (AWK): Likewise.
49431 (include): Use target_cpu instead of host_cpu.
49432 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
49433
49434 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
49435
49436 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
49437
49438 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
49439 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
49440 field 'false' to 'exec_on_false'.
49441 (grub_script_create_cmdif): Renamed argument names to reflect above
49442 changes.
49443
49444 * normal/execute.c (grub_script_execute_cmdif): Likewise.
49445
49446 * normal/script.c (grub_script_create_cmdif): Likewise.
49447
49448 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
49449
49450 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
49451 top.
49452 (grub_hfsplus_btree_recptr): Likewise.
49453 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
49454 FILEBLOCK both to pass a block number and store next block
49455 number.
49456 (grub_hfsplus_read_block): Rewritten heavily to support an extent
49457 overflow file correctly. Specify errors appropriately, because
49458 fshelp expects that GRUB_ERRNO is set when fails. Reuse
49459 grub_hfsplus_btree_recptr to get the pointer to a found key.
49460 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
49461 is found.
49462
49463 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
49464 linux.mod.
49465 (_linux_mod_SOURCES): New variable.
49466 (_linux_mod_CFLAGS): Likewise.
49467 (_linux_mod_LDFLAGS): Likewise.
49468 (linux_mod_SOURCES): Likewise.
49469 (linux_mod_CFLAGS): Likewise.
49470 (linux_mod_LDFLAGS): Likewise.
49471
49472 * DISTLIST: Added loader/i386/efi/linux.c,
49473 loader/i386/efi/linux_normal.c and
49474 include/grub/i386/efi/loader.h.
49475
49476 * loader/i386/efi/linux.c: New file.
49477 * loader/i386/efi/linux_normal.c: Likewise.
49478 * include/grub/i386/efi/loader.h: Likewise.
49479
49480 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
49481
49482 * commands/blocklist.c: New file.
49483
49484 * DISTLIST: Added commands/blocklist.c.
49485
49486 * term/efi/console.c (grub_console_highlight_color): Use a lighter
49487 color for the background, and a darker color for the foreground.
49488 (grub_console_checkkey): Return READ_KEY.
49489 (grub_console_cls): Set the background to
49490 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
49491
49492 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
49493
49494 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
49495 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
49496
49497 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
49498 prototype.
49499
49500 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
49501 BG. The spec is wrong again.
49502
49503 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
49504 prototype.
49505 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
49506
49507 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
49508 commands/blocklist.c.
49509 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
49510
49511 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
49512 (blocklist_mod_SOURCES): New variable.
49513 (blocklist_mod_CFLAGS): Likewise.
49514 (blocklist_mod_LDFLAGS): Likewise.
49515
49516 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
49517
49518 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
49519 duplication.
49520 (lba_mode): Use %eax more intensively to reduce the code size.
49521
49522 2006-05-20 Marco Gerards <marco@gnu.org>
49523
49524 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
49525
49526 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
49527 for `menuentry'.
49528 (script): Accept leading newlines.
49529 (newlines): New rule to describe 0 or more newlines.
49530 (commands): Accept `command' with trailing newline. Fixed the
49531 order in which arguments were passed to `grub_script_add_cmd'.
49532 Accept commands separated by newlines.
49533 (function): Changed to accept newlines.
49534 (menuentry) Rewritten.
49535
49536 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
49537 front of the list, instead of to the end.
49538
49539 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
49540
49541 * util/i386/pc/grub-install.in (bindir): New variable.
49542 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
49543 Shaver <lbgwjl@gmail.com>.
49544
49545 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
49546
49547 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
49548 grub/machine/linux.h
49549 * loader/i386/pc/linux.c: Likewise.
49550
49551 * include/grub/i386/pc/linux.h: Moved to ...
49552 * include/grub/i386/linux.h: ... here.
49553
49554 * include/grub/i386/linux.h (struct linux_kernel_params): New
49555 struct.
49556
49557 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
49558
49559 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
49560 checking.
49561 (grub_video_vbe_blit_glyph): Likewise.
49562 (grub_video_vbe_blit_bitmap): Likewise.
49563 (grub_video_vbe_blit_render_target): Likewise.
49564
49565 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
49566
49567 * configure.ac (--with-platform): Properly quote the square
49568 brackets.
49569
49570 2006-05-08 Marco Gerards <marco@gnu.org>
49571
49572 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
49573 this...
49574 (kernel_elf_HEADERS): ...to this. Updated all users.
49575 (grubof_symlist.c): Renamed from this...
49576 (kernel_elf_symlist.c): ...to this. Updated all users.
49577 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49578 (grubof_SOURCES): Renamed from this...
49579 (kernel_elf_SOURCES): ...to this.
49580 (grubof_HEADERS): Renamed from this...
49581 (kernel_elf_HEADERS): ...to this.
49582 (grubof_CFLAGS): Renamed from this...
49583 (kernel_elf_CFLAGS): ...to this.
49584 (grubof_ASFLAGS): Renamed from this...
49585 (kernel_elf_ASFLAGS): ...to this.
49586 (grubof_LDFLAGS): Renamed from this...
49587 (kernel_elf_LDFLAGS): ...to this.
49588
49589 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
49590 this...
49591 (kernel_elf_HEADERS): ...to this. Updated all users.
49592 (grubof_symlist.c): Renamed from this...
49593 (kernel_elf_symlist.c): ...to this. Updated all users.
49594 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49595 (grubof_SOURCES): Renamed from this...
49596 (kernel_elf_SOURCES): ...to this.
49597 (grubof_HEADERS): Renamed from this...
49598 (kernel_elf_HEADERS): ...to this.
49599 (grubof_CFLAGS): Renamed from this...
49600 (kernel_elf_CFLAGS): ...to this.
49601 (grubof_ASFLAGS): Renamed from this...
49602 (kernel_elf_ASFLAGS): ...to this.
49603 (grubof_LDFLAGS): Renamed from this...
49604 (kernel_elf_LDFLAGS): ...to this.
49605
49606 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
49607 `kernel.elf' instead of `grubof'.
49608
49609 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
49610
49611 Add --with-platform to configure. Use pkglibdir instead of
49612 pkgdatadir. This is reported by Roger Leigh.
49613
49614 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
49615 (host_vendor): Likewise.
49616 (host_os): Likewise.
49617 (pkgdatadir): Likewise.
49618 (platform): New variable.
49619 (pkglibdir): Likewise.
49620 Use PKGLIBDIR instead of PKGDATADIR.
49621
49622 * util/i386/pc/grub-install.in (datadir): Removed.
49623 (host_vendor): Likewise.
49624 (host_os): Likewise.
49625 (pkgdatadir): Likewise.
49626 (platform): New variable.
49627 (pkglibdir): Likewise.
49628 Use PKGLIBDIR instead of PKGDATADIR.
49629
49630 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
49631 instead of GRUB_DATADIR.
49632 (main): Likewise.
49633 * util/i386/pc/grub-mkimage.c (usage): Likewise.
49634 (main): Likewise.
49635 * util/i386/efi/grub-mkimage.c (usage): Likewise.
49636 (main): Likewise.
49637
49638 * configure.ac (--with-platform): New option.
49639 Use PLATFORM instead of HOST_VENDOR to specify a platform.
49640
49641 * Makefile.in: Include a makefile based on PLATFORM instead of
49642 HOST_VENDOR.
49643 (pkgdatadir): Not appended by the machine type.
49644 (pkglibdir): Appended by the machine type.
49645 (host_vendor): Removed.
49646 (platform): New variable.
49647 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
49648 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
49649 (uninstall): Likewise.
49650
49651 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
49652
49653 Use the environment context in the menu. Remove the commands
49654 "default" and "timeout", and use variables instead.
49655
49656 * normal/menu.c: Include grub/env.h.
49657 (print_entry): Cast TITLE to silence gcc.
49658 (get_timeout): New function.
49659 (set_timeout): Likewise.
49660 (get_entry_number): Likewise.
49661 (run_menu): Use a default entry, a fallback entry and a timeout
49662 in the environment variables "default", "fallback" and
49663 "timeout". Also, tweak the default entry if it is not within the
49664 current menu entries.
49665 (grub_menu_run): Use a fallback entry in the environment variable
49666 "fallback".
49667
49668 * normal/main.c (read_config_file): Do not initialize
49669 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
49670 NEWMENU->TIMEOUT.
49671 (grub_normal_execute): Use a data slot to store the menu.
49672
49673 * include/grub/normal.h (struct grub_menu): Removed default_entry,
49674 fallback_entry and timeout.
49675 (struct grub_menu_list): Removed.
49676 (grub_menu_list_t): Likewise.
49677 (struct grub_context): Likewise.
49678 (grub_context_t): Likewise.
49679 (grub_context_get): Likewise.
49680 (grub_context_get_current_menu): Likewise.
49681 (grub_context_push_menu): Likewise.
49682 (grub_context_pop_menu): Likewise.
49683 (grub_default_init): Likewise.
49684 (grub_default_fini): Likewise.
49685 (grub_timeout_init): Likewise.
49686 (grub_timeout_fini): Likewise.
49687
49688 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
49689 and timeout.mod.
49690 (normal_mod_SOURCES): Removed normal/context.c.
49691
49692 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
49693 commands/default.c, commands/timeout.c and normal/context.c.
49694 (normal_mod_SOURCES): Removed normal/context.c.
49695
49696 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
49697 commands/timeout.c and normal/context.c.
49698 (normal_mod_SOURCES): Removed normal/context.c.
49699
49700 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
49701 commands/default.c, commands/timeout.c and normal/context.c.
49702 (normal_mod_SOURCES): Removed normal/context.c.
49703
49704 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
49705 timeout.mod.
49706 (default_mod_SOURCES): Removed.
49707 (default_mod_CFLAGS): Likewise.
49708 (default_mod_LDFLAGS): Likewise.
49709 (timeout_mod_SOURCES): Removed.
49710 (timeout_mod_CFLAGS): Likewise.
49711 (timeout_mod_LDFLAGS): Likewise.
49712
49713 * DISTLIST: Removed commands/default.c, commands/timeout.c and
49714 normal/context.c.
49715
49716 * commands/default.c: Removed.
49717 * commands/timeout.c: Likewise.
49718 * normal/context.c: Likewise.
49719
49720 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
49721
49722 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
49723
49724 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
49725
49726 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
49727 "next" to "prev" for readability.
49728 (struct grub_env_sorted_var): New struct.
49729 (grub_env_context): Renamed to ...
49730 (initial_context): ... this.
49731 (grub_env_var_context): Renamed to ...
49732 (current_context): ... this.
49733 (grub_env_find): Look only at CURRENT_CONTEXT.
49734 (grub_env_context_open): Rewritten to copy exported variables from
49735 previous context.
49736 (grub_env_context_close): Rewritten according to the new
49737 scheme. Also, add an assertion to prevent the initial context from
49738 removed.
49739 (grub_env_insert): Removed the code for the sorted list.
49740 (grub_env_remove): Likewise.
49741 (grub_env_export): Simply mark the variable with
49742 GRUB_ENV_VAR_GLOBAL.
49743 (grub_env_set): A cosmetic change for naming consistency.
49744 (grub_env_get): Likewise.
49745 (grub_env_unset): Likewise.
49746 (grub_env_iterate): Rewritten to sort variables within this
49747 function.
49748 (grub_register_variable_hook): Fixed for naming consistency. Call
49749 grub_env_find again, only if NAME is not found at the first time.
49750 (mangle_data_slot_name): New function.
49751 (grub_env_set_data_slot): Likewise.
49752 (grub_env_get_data_slot): Likewise.
49753 (grub_env_unset_data_slot): Likewise.
49754
49755 * include/grub/env.h (grub_env_var_type): New enum.
49756 (GRUB_ENV_VAR_LOCAL): New constant.
49757 (GRUB_ENV_VAR_GLOBAL): Likewise.
49758 (GRUB_ENV_VAR_DATA): Likewise.
49759 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
49760 "type".
49761 (grub_env_set): Replace VAR with NAME for consistency.
49762 (grub_register_variable_hook): Likewise.
49763 (grub_env_export): Specify the name of the argument.
49764 (grub_env_set_data_slot): New prototype.
49765 (grub_env_get_data_slot): Likewise.
49766 (grub_env_unset_data_slot): Likewise.
49767
49768 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
49769
49770 Extend the loader so that GRUB can accept a loader which comes
49771 back to GRUB when a loaded image exits. Also, this change adds
49772 support for a chainloader on EFI.
49773
49774 * term/efi/console.c: Include grub/misc.h.
49775 (grub_console_checkkey): Display a scan code on the top for
49776 debugging. This will be removed once the EFI port gets stable.
49777 Correct the scan code mapping.
49778
49779 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
49780 allocate memory from larger regions, in order to reduce the number
49781 of allocated regions. Otherwise, the MacOSX loader panics.
49782 (filter_memory_map): Avoid less than 1MB for compatibility with
49783 other loaders.
49784 (add_memory_regions): Allocate from the tail of a region, if
49785 possible, to avoid allocating a region near to 1MB, for the MacOSX
49786 loader.
49787
49788 * kern/efi/init.c (grub_efi_set_prefix): Specify
49789 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
49790
49791 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
49792 argument IMAGE_HANDLE and specify it to get a loaded image.
49793 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
49794 grub_efi_get_loaded_image.
49795 (grub_efi_get_filename): Divide the length by the size of
49796 grub_efi_char16_t.
49797 (grub_efi_get_device_path): New function.
49798 (grub_efi_print_device_path): Print End Device Path nodes. Divide
49799 the length by the size of grub_efi_char16_t for a file path device
49800 path node.
49801
49802 * kern/loader.c (grub_loader_noreturn): New variable.
49803 (grub_loader_set): Accept a new argument NORETURN. Set
49804 GRUB_LOADER_NORETURN to NORETURN.
49805 All callers changed.
49806 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
49807 grub_machine_fini.
49808
49809 * include/grub/efi/efi.h (grub_efi_get_device_path): New
49810 prototype.
49811 (grub_efi_get_loaded_image): Take an argument to specify an image
49812 handle.
49813
49814 * include/grub/loader.h (grub_loader_set): Added one more argument
49815 NORETURN.
49816
49817 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
49818 instead of grub_efi_open_protocol.
49819 (grub_efidisk_get_device_name): Likewise.
49820 (grub_efidisk_close): Print a newline.
49821 (grub_efidisk_get_device_handle): Fixed to use
49822 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
49823 GRUB_EFI_DEVICE_PATH_TYPE.
49824
49825 * disk/efi/efidisk.c (device_path_guid): Moved to ...
49826 * kern/efi/efi.c (device_path_guid): ... here.
49827
49828 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
49829 chain.mod.
49830 (kernel_mod_HEADERS): Added efi/disk.h.
49831 (_chain_mod_SOURCES): New variable.
49832 (_chain_mod_CFLAGS): Likewise.
49833 (_chain_mod_LDFLAGS): Likewise.
49834 (chain_mod_SOURCES): Likewise.
49835 (chain_mod_CFLAGS): Likewise.
49836 (chain_mod_LDFLAGS): Likewise.
49837
49838 * DISTLIST: Added include/grub/efi/chainloader.h,
49839 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
49840
49841 * include/grub/efi/chainloader.h: New file.
49842 * loader/efi/chainloader.c: Likewise.
49843 * loader/efi/chainloader_normal.c: Likewise.
49844
49845 2006-04-30 Marco Gerards <marco@gnu.org>
49846
49847 * commands/configfile.c (grub_cmd_source): New function.
49848 (GRUB_MOD_INIT): Register the commands `source' and `.'.
49849 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
49850
49851 2006-04-30 Marco Gerards <marco@gnu.org>
49852
49853 * normal/execute.c (grub_script_execute_cmd): Change the return
49854 type to `grub_err_t'. Correctly return the error.
49855 (grub_script_execute_cmdline): In case a command line is not a
49856 command or a function, try to interpret it as an assignment.
49857
49858 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
49859
49860 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
49861 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
49862 skip a node whose name is obviously invalid as UTF-16,
49863 i.e. contains a NUL character. Stop the iteration when the last
49864 directory entry is found. Instead of using the return value of
49865 grub_hfsplus_btree_iterate_node, store the value in RET and use
49866 it, because the iterator can be stopped by the last directory
49867 entry.
49868
49869 2006-04-30 Marco Gerards <marco@gnu.org>
49870
49871 * include/grub/env.h (grub_env_export): New prototype. Reported
49872 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
49873
49874 2006-04-30 Marco Gerards <marco@gnu.org>
49875
49876 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
49877 size of the extents in a catalog file record.
49878
49879 2006-04-29 Marco Gerards <marco@gnu.org>
49880
49881 * commands/configfile.c (grub_cmd_configfile): Execute the
49882 configfile within its own context.
49883
49884 * include/grub/env.h (grub_env_context_open): New prototype.
49885 (grub_env_context_close): Likewise.
49886
49887 * kern/env.c (grub_env): Removed.
49888 (grub_env_sorted): Likewise.
49889 (grub_env_context): New variable.
49890 (grub_env_var_context): Likewise.
49891 (grub_env_find): Search both the active context and the global
49892 context.
49893 (grub_env_context_open): New function.
49894 (grub_env_context_close): Likewise.
49895 (grub_env_insert): Likewise.
49896 (grub_env_remove): Likewise.
49897 (grub_env_export): Likewise.
49898 (grub_env_set): Changed to use helper functions to avoid code
49899 duplication.
49900 (grub_env_iterate): Rewritten so both the current context and the
49901 global context are being used.
49902
49903 * normal/command.c (export_command): New function.
49904 (grub_command_init): Register the `export' function.
49905
49906 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
49907
49908 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
49909 explicitly to suppress gcc's warnings.
49910 * fs/fat.c (grub_fat_find_dir): Likewise.
49911 (grub_fat_label): Likewise.
49912 * fs/xfs.c (grub_xfs_read_inode): Likewise.
49913 (grub_xfs_mount): Likewise.
49914 (grub_xfs_label): Likewise.
49915 * fs/affs.c (grub_affs_mount): Likewise.
49916 (grub_affs_label): Likewise.
49917 (grub_affs_iterate_dir): Likewise.
49918 * fs/sfs.c (grub_sfs_mount): Likewise.
49919 (grub_sfs_iterate_dir): Likewise.
49920 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
49921 * fs/hfs.c (grub_hfs_mount): Likewise.
49922 (grub_hfs_cmp_catkeys): Likewise.
49923 (grub_hfs_find_dir): Likewise.
49924 (grub_hfs_dir): Likewise.
49925 (grub_hfs_label): Likewise.
49926 * fs/jfs.c (grub_jfs_mount): Likewise.
49927 (grub_jfs_opendir): Likewise.
49928 (grub_jfs_getent): Likewise.
49929 (grub_jfs_lookup_symlink): Likewise.
49930 (grub_jfs_label): Likewise.
49931 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
49932 (grub_hfsplus_iterate_dir): Likewise.
49933 (grub_hfsplus_btree_iterate_node): Made static.
49934
49935 * util/grub-emu.c (prefix): New variable.
49936 (grub_machine_set_prefix): New function.
49937 (main): Do not set the environment variable "prefix" here. Only
49938 set PREFIX, which is used later by grub_machine_set_prefix.
49939
49940 * include/grub/video.h: Do not include grub/symbol.h.
49941 (grub_video_register): Not exported. This symbol is not defined in
49942 the kernel.
49943 (grub_video_unregister): Likewise.
49944 (grub_video_iterate): Likewise.
49945 (grub_video_setup): Likewise.
49946 (grub_video_restore): Likewise.
49947 (grub_video_get_info): Likewise.
49948 (grub_video_get_blit_format): Likewise.
49949 (grub_video_set_palette): Likewise.
49950 (grub_video_get_palette): Likewise.
49951 (grub_video_set_viewport): Likewise.
49952 (grub_video_get_viewport): Likewise.
49953 (grub_video_map_color): Likewise.
49954 (grub_video_map_rgb): Likewise.
49955 (grub_video_map_rgba): Likewise.
49956 (grub_video_fill_rect): Likewise.
49957 (grub_video_blit_glyph): Likewise.
49958 (grub_video_blit_bitmap): Likewise.
49959 (grub_video_blit_render_target): Likewise.
49960 (grub_video_scroll): Likewise.
49961 (grub_video_swap_buffers): Likewise.
49962 (grub_video_create_render_target): Likewise.
49963 (grub_video_delete_render_target): Likewise.
49964 (grub_video_set_active_render_target): Likewise.
49965
49966 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
49967 Undefined.
49968 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
49969
49970 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
49971 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
49972 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
49973 instead of $(srcdir)/genkernsyms.sh.
49974
49975 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
49976 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
49977 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
49978 instead of $(srcdir)/genkernsyms.sh.
49979
49980 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
49981 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
49982 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
49983 instead of $(srcdir)/genkernsyms.sh.
49984
49985 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
49986 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
49987 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
49988 instead of $(srcdir)/genkernsyms.sh.
49989
49990 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
49991 genkernsyms.sh.
49992
49993 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
49994 genkernsyms.sh.
49995 (gensymlist.sh): New target.
49996 (genkernsyms.sh): Likewise.
49997
49998 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
49999 genkernsyms.sh.in and gensymlist.sh.in.
50000
50001 * genkernsyms.sh: Removed.
50002 * gensymlist.sh: Likewise.
50003
50004 * genkernsyms.sh.in: New file.
50005 * gensymlist.sh.in: Likewise.
50006
50007 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50008
50009 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
50010 clobber "prefix", since we may have already set it manually.
50011
50012 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50013
50014 * kern/misc.c (abort): New alias for grub_abort.
50015
50016 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
50017
50018 A new machine-specific function "grub_machine_set_prefix" is
50019 defined. This is called after loading modules, so that a prefix
50020 initialization can use modules. Also, this change adds an
50021 intensive debugging feature for the memory manager via the
50022 configure option "--enable-mm-debug".
50023
50024 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
50025 PART.LEN.
50026
50027 * kern/sparc64/ieee1275/init.c (abort): Removed.
50028 (grub_stop): Likewise.
50029 (grub_exit): New function.
50030 (grub_set_prefix): Renamed to ...
50031 (grub_machine_set_prefix): ... this.
50032 (grub_machine_init): Do not call grub_set_prefix.
50033
50034 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
50035 (grub_machine_set_prefix): ... this.
50036 (grub_machine_init): Do not call grub_set_prefix.
50037
50038 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
50039 (grub_machine_init): Do not set the prefix here.
50040
50041 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
50042
50043 * kern/efi/init.c: Include grub/mm.h.
50044 (grub_efi_set_prefix): New function.
50045
50046 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
50047 (grub_efi_get_filename): New function.
50048 (grub_print_device_path): Renamed to ...
50049 (grub_efi_print_device_path): ... this.
50050
50051 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
50052 [MM_DEBUG] (grub_realloc): Likewise.
50053 [MM_DEBUG] (grub_free): Likewise.
50054 [MM_DEBUG] (grub_memalign): Likewise.
50055 [MM_DEBUG] (grub_mm_debug): New variable.
50056 [MM_DEBUG] (grub_debug_malloc): New function.
50057 [MM_DEBUG] (grub_debug_free): New function.
50058 [MM_DEBUG] (grub_debug_realloc): New function.
50059 [MM_DEBUG] (grub_debug_memalign): New function.
50060
50061 * kern/misc.c (grub_abort): Print a newline to distinguish
50062 the message.
50063
50064 * kern/main.c (grub_main): Call grub_machine_set_prefix and
50065 grub_set_root_dev after loading modules. This is necessary when
50066 setting a prefix depends on modules.
50067
50068 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
50069 (grub_efi_print_device_path): ... this.
50070 (grub_efi_get_filename): New prototype.
50071 (grub_efi_set_prefix): Likewise.
50072
50073 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
50074 and grub/disk.h.
50075 (grub_efidisk_get_device_handle): New prototype.
50076 (grub_efidisk_get_device_name): Likewise.
50077
50078 * include/grub/mm.h: Include config.h.
50079 (MM_DEBUG): Removed.
50080 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
50081 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
50082 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
50083 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
50084 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
50085 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
50086 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
50087 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
50088 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
50089
50090 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
50091
50092 * disk/efi/efidisk.c: Include grub/partition.h.
50093 (iterate_child_devices): New function.
50094 (add_device): First, compare only last device path nodes, so that
50095 devices are sorted by the types.
50096 (grub_efidisk_get_device_handle): New function.
50097 (grub_efidisk_get_device_name): Likewise.
50098
50099 * configure.ac (--enable-mm-debug): New option to enable the
50100 memory manager debugging feature. This makes the binary much
50101 bigger, so is disabled by default.
50102
50103 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
50104
50105 Use grub_abort instead of grub_stop, and grub_exit must be
50106 define in each architecture now. Also, this change adds support
50107 for EFI disks.
50108
50109 * util/i386/pc/grub-probefs.c: Include grub/term.h.
50110 (grub_getkey): New function.
50111 (grub_term_get_current): Likewise.
50112
50113 * util/i386/pc/grub-setup.c: Include grub/term.h.
50114 (grub_getkey): New function.
50115 (grub_term_get_current): Likewise.
50116
50117 * util/misc.c (grub_stop): Renamed to ...
50118 (grub_exit): ... this.
50119
50120 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
50121 (grub_exit): ... this.
50122 (grub_machine_init): Use grub_abort instead of abort.
50123 (grub_stop): Removed.
50124
50125 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
50126 abort.
50127
50128 * kern/i386/pc/startup.S (grub_exit): New function.
50129 (cold_reboot): New label.
50130
50131 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
50132 (grub_efi_init): Call grub_efidisk_init.
50133 (grub_efi_fini): Call grub_efidisk_fini.
50134
50135 * kern/efi/efi.c: Include grub/mm.h.
50136 (grub_efi_console_control_guid): Renamed to ...
50137 (console_control_guid): ... this.
50138 (grub_efi_loaded_image_guid): Renamed to ...
50139 (loaded_image_guid): ... this.
50140 (grub_efi_locate_handle): New function.
50141 (grub_efi_open_protocol): Likewise.
50142 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
50143 GRUB_EFI_CONSOLE_CONTROL_GUID.
50144 (grub_efi_exit): Removed.
50145 (grub_stop): Likewise.
50146 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
50147 (grub_exit): New function.
50148 (grub_print_device_path): Likewise.
50149
50150 * kern/rescue.c (grub_rescue_cmd_exit): New function.
50151 (grub_enter_rescue_mode): Register "exit".
50152
50153 * kern/misc.c (grub_real_dprintf): A cosmetic change.
50154 (grub_abort): New function.
50155
50156 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
50157
50158 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
50159
50160 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
50161
50162 * include/grub/efi/efi.h (grub_efi_exit): Removed.
50163 (grub_print_device_path): New prototype.
50164 (grub_efi_locate_handle): Likewise.
50165 (grub_efi_open_protocol): Likewise.
50166
50167 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
50168 * disk/efi/efidisk.c: Likewise.
50169
50170 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
50171
50172 * include/grub/efi/console_control.h
50173 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
50174
50175 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
50176 last 8 bytes as an array.
50177 (GRUB_EFI_DISK_IO_GUID): New macro.
50178 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
50179 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
50180 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
50181 grub_uint8_t.
50182 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
50183 (struct grub_efi_device_path): Rename the member "sub_type" to
50184 "subtype".
50185 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
50186 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
50187 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
50188 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
50189 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
50190 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
50191 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
50192 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
50193 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
50194 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
50195 (struct grub_efi_pci_device_path): New structure.
50196 (grub_efi_pci_device_path_t): New type.
50197 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
50198 (struct grub_efi_pccard_device_path): New structure.
50199 (grub_efi_pccard_device_path_t): New type.
50200 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
50201 (struct grub_efi_memory_mapped_device_path): New structure.
50202 (grub_efi_memory_mapped_device_path_t): New type.
50203 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
50204 (struct grub_efi_vendor_device_path): New structure.
50205 (grub_efi_vendor_device_path_t): New type.
50206 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
50207 (struct grub_efi_controller_device_path): New structure.
50208 (grub_efi_controller_device_path_t): New type.
50209 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
50210 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
50211 (struct grub_efi_acpi_device_path): New structure.
50212 (grub_efi_acpi_device_path_t): New type.
50213 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
50214 (struct grub_efi_expanded_acpi_device_path): New structure.
50215 (grub_efi_expanded_acpi_device_path_t): New type.
50216 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
50217 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
50218 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
50219 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
50220 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
50221 (struct grub_efi_atapi_device_path): New structure.
50222 (grub_efi_atapi_device_path_t): New type.
50223 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
50224 (struct grub_efi_fibre_channel_device_path): New structure.
50225 (grub_efi_fibre_channel_device_path_t): New type.
50226 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
50227 (struct grub_efi_1394_device_path): New structure.
50228 (grub_efi_1394_device_path_t): New type.
50229 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
50230 (struct grub_efi_usb_device_path): New structure.
50231 (grub_efi_usb_device_path_t): New type.
50232 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
50233 (struct grub_efi_usb_class_device_path): New structure.
50234 (grub_efi_usb_class_device_path_t): New type.
50235 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
50236 (struct grub_efi_i2o_device_path): New structure.
50237 (grub_efi_i2o_device_path_t): New type.
50238 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
50239 (struct grub_efi_mac_address_device_path): New structure.
50240 (grub_efi_mac_address_device_path_t): New type.
50241 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
50242 (struct grub_efi_ipv4_device_path): New structure.
50243 (grub_efi_ipv4_device_path_t): New type.
50244 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
50245 (struct grub_efi_ipv6_device_path): New structure.
50246 (grub_efi_ipv6_device_path_t): New type.
50247 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
50248 (struct grub_efi_infiniband_device_path): New structure.
50249 (grub_efi_infiniband_device_path_t): New type.
50250 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
50251 (struct grub_efi_uart_device_path): New structure.
50252 (grub_efi_uart_device_path_t): New type.
50253 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
50254 (struct grub_efi_vendor_messaging_device_path): New structure.
50255 (grub_efi_vendor_messaging_device_path_t): New type.
50256 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
50257 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
50258 (struct grub_efi_hard_drive_device_path): New structure.
50259 (grub_efi_hard_drive_device_path_t): New type.
50260 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
50261 (struct grub_efi_cdrom_device_path): New structure.
50262 (grub_efi_cdrom_device_path_t): New type.
50263 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
50264 (struct grub_efi_vendor_media_device_path): New structure.
50265 (grub_efi_vendor_media_device_path_t): New type.
50266 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
50267 (struct grub_efi_file_path_device_path): New structure.
50268 (grub_efi_file_path_device_path_t): New type.
50269 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
50270 (struct grub_efi_protocol_device_path): New structure.
50271 (grub_efi_protocol_device_path_t): New type.
50272 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
50273 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
50274 (struct grub_efi_bios_device_path): New structure.
50275 (grub_efi_bios_device_path_t): New type.
50276 (struct grub_efi_disk_io): New structure.
50277 (grub_efi_disk_io_t): New type.
50278 (struct grub_efi_block_io_media): New structure.
50279 (grub_efi_block_io_media_t): New type.
50280 (struct grub_efi_block_io): New structure.
50281 (grub_efi_block_io_t): New type.
50282
50283 * include/grub/misc.h (grub_stop): Removed.
50284 (grub_exit): New prototype.
50285 (grub_abort): Likewise.
50286
50287 * include/grub/disk.h (enum grub_disk_dev_id): Added
50288 GRUB_DISK_DEVICE_EFIDISK_ID.
50289
50290 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
50291 disk/efi/efidisk.c.
50292 (kernel_syms.lst): Remove the target if an error occurs.
50293
50294 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
50295
50296 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
50297 as it was simply too buggy.
50298
50299 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
50300
50301 * kern/misc.c (grub_lltoa): New function.
50302 (grub_vsprintf): Added support for the long long suffix,
50303 i.e. "ll".
50304
50305 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
50306
50307 * Makefile.in (LDFLAGS): Add variable.
50308 (LD): Remove variable.
50309 * configure.ac: Add -m32 to LDFLAGS.
50310 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
50311 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
50312 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
50313 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
50314 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
50315 variables.
50316 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
50317 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
50318 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
50319
50320 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
50321
50322 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
50323 length for unknown glyph.
50324
50325 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50326
50327 Add support for pre-loaded modules into the EFI port.
50328
50329 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
50330 completely. Accept one more argument DIR. The caller has changed.
50331
50332 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
50333
50334 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
50335 (grub_efi_loaded_image_guid): New variable.
50336 (grub_efi_get_loaded_image): New function.
50337 (grub_arch_modules_addr): Likewise.
50338
50339 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
50340 prototype.
50341
50342 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
50343 (struct grub_efi_loaded_image): New structure.
50344 (grub_efi_loaded_image_t): New type.
50345
50346 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50347
50348 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
50349 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
50350 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
50351
50352 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
50353
50354 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
50355
50356 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
50357
50358 * DISTLIST: Added include/grub/efi/console.h,
50359 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
50360 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50361
50362 * include/grub/efi/console.h: New file.
50363 * include/grub/efi/time.h: Likewise.
50364 * include/grub/i386/efi/kernel.h: Likewise.
50365 * kern/efi/init.c: Likewise.
50366 * kern/efi/mm.c: Likewise.
50367 * term/efi/console.c: Likewise.
50368
50369 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
50370 (grub_stop): Removed.
50371 (grub_get_rtc): Likewise.
50372 (grub_machine_init): Simply call grub_efi_init.
50373 (grub_machine_fini): Call grub_efi_fini.
50374
50375 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
50376 (grub_efi_output_string): Removed.
50377 (grub_efi_stall): New function.
50378 (grub_stop): Likewise.
50379 (grub_get_rtc): Likewise.
50380
50381 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
50382 (grub_efi_stall): New prototype.
50383 (grub_efi_allocate_pages): Likewise.
50384 (grub_efi_free_pages): Likewise.
50385 (grub_efi_get_memory_map): Likewise.
50386 (grub_efi_mm_init): Likewise.
50387 (grub_efi_mm_fini): Likewise.
50388 (grub_efi_init): Likewise.
50389 (grub_efi_fini): Likewise.
50390
50391 * include/grub/i386/efi/time.h: Do not include
50392 grub/symbol.h. Include grub/efi/time.h.
50393 (GRUB_TICKS_PER_SECOND): Removed.
50394 (grub_get_rtc): Likewise.
50395
50396 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
50397 Added padding. The EFI spec is buggy.
50398 (GRUB_EFI_BLACK): New macro.
50399 (GRUB_EFI_BLUE): Likewise.
50400 (GRUB_EFI_GREEN): Likewise.
50401 (GRUB_EFI_CYAN): Likewise.
50402 (GRUB_EFI_RED): Likewise.
50403 (GRUB_EFI_MAGENTA): Likewise.
50404 (GRUB_EFI_BROWN): Likewise.
50405 (GRUB_EFI_LIGHTGRAY): Likewise.
50406 (GRUB_EFI_BRIGHT): Likewise.
50407 (GRUB_EFI_DARKGRAY): Likewise.
50408 (GRUB_EFI_LIGHTBLUE): Likewise.
50409 (GRUB_EFI_LIGHTGREEN): Likewise.
50410 (GRUB_EFI_LIGHTCYAN): Likewise.
50411 (GRUB_EFI_LIGHTRED): Likewise.
50412 (GRUB_EFI_LIGHTMAGENTA): Likewise.
50413 (GRUB_EFI_YELLOW): Likewise.
50414 (GRUB_EFI_WHITE): Likewise.
50415 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
50416 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
50417 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
50418 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
50419 (GRUB_EFI_BACKGROUND_RED): Likewise.
50420 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
50421 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
50422 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
50423 (GRUB_EFI_TEXT_ATTR): Likewise.
50424
50425 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
50426 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50427 (kernel_mod_HEADERS): Added efi/time.h.
50428
50429 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
50430
50431 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
50432 include/grub/efi/api.h, include/grub/efi/console_control.h,
50433 include/grub/efi/efi.h, include/grub/efi/pe32.h,
50434 include/grub/i386/efi/time.h, kern/efi/efi.c,
50435 kern/i386/efi/init.c, kern/i386/efi/startup.S,
50436 and util/i386/efi/grub-mkimage.c.
50437
50438 * Makefile.in (RMKFILES): Added i386-efi.rmk.
50439
50440 * genmk.rb (PModule#rule): Do not export symbols if
50441 #{prefix}_EXPORTS is set to "no".
50442
50443 * conf/i386-efi.mk: New file.
50444 * conf/i386-efi.rmk: Likewise.
50445 * include/grub/efi/api.h: Likewise.
50446 * include/grub/efi/console_control.h: Likewise.
50447 * include/grub/efi/efi.h: Likewise.
50448 * include/grub/efi/pe32.h: Likewise.
50449 * include/grub/i386/efi/time.h: Likewise.
50450 * kern/efi/efi.c: Likewise.
50451 * kern/i386/efi/init.c: Likewise.
50452 * kern/i386/efi/startup.S: Likewise.
50453 * util/i386/efi/grub-mkimage.c: Likewise.
50454
50455 2006-04-17 Marco Gerards <marco@gnu.org>
50456
50457 * include/grub/script.h: Include <grub/parser.h> and
50458 "grub_script.tab.h".
50459 (struct grub_lexer_param): New struct.
50460 (struct grub_parser_param): Likewise.
50461 (grub_script_create_arglist): Pass the state in an argument.
50462 (grub_script_add_arglist): Likewise.
50463 (grub_script_create_cmdline): Likewise.
50464 (grub_script_create_cmdblock): Likewise.
50465 (grub_script_create_cmdif): Likewise.
50466 (grub_script_create_cmdmenu): Likewise.
50467 (grub_script_add_cmd): Likewise.
50468 (grub_script_arg_add): Likewise.
50469 (grub_script_lexer_ref): Likewise.
50470 (grub_script_lexer_deref): Likewise.
50471 (grub_script_lexer_record_start): Likewise.
50472 (grub_script_lexer_record_stop): Likewise.
50473 (grub_script_mem_record): Likewise.
50474 (grub_script_mem_record_stop): Likewise.
50475 (grub_script_malloc): Likewise.
50476 (grub_script_yylex): Likewise.
50477 (grub_script_yyparse): Likewise.
50478 (grub_script_yyerror): Likewise.
50479 (grub_script_yylex): Likewise.
50480 (grub_script_lexer_init): Return the state.
50481
50482 * normal/lexer.c (grub_script_lexer_state): Removed variable.
50483 (grub_script_lexer_done): Likewise.
50484 (grub_script_lexer_getline): Likewise.
50485 (grub_script_lexer_refs): Likewise.
50486 (script): Likewise.
50487 (newscript): Likewise.
50488 (record): Likewise.
50489 (recording): Likewise.
50490 (recordpos): Likewise.
50491 (recordlen): Likewise.
50492 (grub_script_lexer_init): Return the state instead of setting
50493 global variables.
50494 (grub_script_lexer_ref): Use the newly added argument for state
50495 instead of globals.
50496 (grub_script_lexer_deref): Likewise.
50497 (grub_script_lexer_record_start): Likewise.
50498 (grub_script_lexer_record_stop): Likewise.
50499 (recordchar): Likewise.
50500 (nextchar): Likewise.
50501 (grub_script_yylex2): Likewise.
50502 (grub_script_yylex): Likewise.
50503 (grub_script_yyerror): Likewise.
50504
50505 * normal/parser.y (func_mem): Removed variable.
50506 (menu_entry): Likewise.
50507 (err): Likewise.
50508 (%lex-param): New parser option.
50509 (%parse-param): Likewise.
50510 (script): Always return the AST.
50511 (argument): Pass the state around.
50512 (arguments): Likewise.
50513 (grubcmd): Likewise.
50514 (commands): Likewise.
50515 (function): Likewise.
50516 (menuentry): Likewise.
50517 (if_statement): Likewise.
50518 (if): Likewise.
50519
50520 * normal/script.c (grub_script_memused): Removed variable.
50521 (grub_script_parsed): Likewise.
50522 (grub_script_malloc): Added a state argument. Use that instead of
50523 global variables.
50524 (grub_script_mem_record): Likewise.
50525 (grub_script_mem_record_stop): Likewise.
50526 (grub_script_arg_add): Likewise.
50527 (grub_script_add_arglist): Likewise.
50528 (grub_script_create_cmdline): Likewise.
50529 (grub_script_create_cmdif): Likewise.
50530 (grub_script_create_cmdmenu): Likewise.
50531 (grub_script_add_cmd): Likewise.
50532 (grub_script_parse): Setup the state before calling the parser.
50533
50534 2006-04-16 Marco Gerards <marco@gnu.org>
50535
50536 * normal/command.c (grub_command_init): Remove the title command.
50537
50538 * normal/lexer.c (grub_script_yylex): Renamed from this...
50539 (grub_script_yylex2): ... to this.
50540 (grub_script_yylex): New function. Temporary
50541 introduced to filter some tokens.
50542 (grub_script_yyerror): Print a newline.
50543
50544 * normal/main.c (read_config_file): Output information about the
50545 lines that contain errors. Wait for a key after all lines have
50546 been processed. Don't return an empty menu.
50547
50548 * normal/parser.y (func_mem): Don't initialize.
50549 (menu_entry): Likewise.
50550 (err): New variable.
50551 (script): Don't return anything when an error was encountered.
50552 (ws, returns): Removed rules.
50553 (argument): Disabled concatenated variable support.
50554 (arguments): Remove explicit separators.
50555 (grubcmd): Likewise.
50556 (function): Likewise.
50557 (menuentry): Likewise.
50558 (if): Likewise.
50559 (commands): Likewise. Add error handling.
50560
50561 * normal/script.c (grub_script_create_cmdline): If
50562 `grub_script_parsed' is 0, assume the parser encountered an error.
50563
50564 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
50565
50566 * configure.ac: Add support for EFI. Fix the typo
50567 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
50568
50569 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50570
50571 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
50572 foreign multibyte characters should be shown correctly.
50573
50574 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50575
50576 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
50577 calculation.
50578 (read_config_file): Made it to close file before returning.
50579
50580 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
50581
50582 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
50583 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
50584 video/i386/pc/vbefill.c.
50585
50586 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
50587 video/i386/pc/vbefill.c.
50588
50589 * include/grub/video.h (grub_video_blit_format): New enum.
50590 (grub_video_mode_info): Added new member blit_format.
50591 (grub_video_get_blit_format): New function prototype.
50592
50593 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
50594 function prototype.
50595 (grub_video_vbe_map_rgb): Likewise.
50596 (grub_video_vbe_unmap_color): Likewise.
50597
50598 * include/grub/i386/pc/vbeblit.h: New file.
50599
50600 * include/grub/i386/pc/vbefill.h: New file.
50601
50602 * video/video.c (grub_video_get_blit_format): New function.
50603 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
50604 (grub_video_vbe_map_rgb): Likewise.
50605 (grub_video_vbe_unmap_color): Likewise.
50606
50607 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
50608 optimized fills.
50609 (grub_video_vbe_blit_render_target): Changed to use more optimized
50610 blits.
50611 (grub_video_vbe_setup): Added detection for optimized settings.
50612 (grub_video_vbe_create_render_target): Likewise.
50613
50614 * video/i386/pc/vbeblit.c: New file.
50615
50616 * video/i386/pc/vbefill.c: New file.
50617
50618 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
50619
50620 * font/manager.c (grub_font_get_glyph): Removed font fixup from
50621 here...
50622
50623 * util/unifont2pff.rb: ... and moved it to here. Improved argument
50624 parsing to support both hex and dec ranges. If filename was missing
50625 show usage information.
50626
50627 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
50628
50629 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
50630 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
50631
50632 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
50633 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
50634 (video_mod_SOURCES): Added.
50635 (video_mod_CFLAGS): Likewise.
50636 (video_mod_LDFLAGS): Likewise.
50637 (gfxterm_mod_SOURCES): Likewise.
50638 (gfxterm_mod_CFLAGS): Likewise.
50639 (gfxterm_mod_LDFLAGS): Likewise.
50640 (videotest_mod_SOURCES): Likewise.
50641 (videotest_mod_CFLAGS): Likewise.
50642 (videotest_mod_LDFLAGS): Likewise.
50643 (vesafb_mod_SOURCES): Removed.
50644 (vesafb_mod_CFLAGS): Likewise.
50645 (vesafb_mod_LDFLAGS): Likewise.
50646 (vga_mod_SOURCES): Likewise.
50647 (vga_mod_CFLAGS): Likewise.
50648 (vga_mod_LDFLAGS): Likewise.
50649
50650 * commands/videotest.c: New file.
50651
50652 * font/manager.c (fill_with_default_glyph): Modified to use
50653 grub_font_glyph.
50654 (grub_font_get_glyph): Likewise.
50655 (fontmanager): Renamed from this...
50656 (font_manager): ... to this.
50657
50658 * include/grub/font.h (grub_font_glyph): Added new structure.
50659 (grub_font_get_glyph): Modified to use grub_font_glyph.
50660
50661 * include/grub/misc.h (grub_abs): Added as inline function.
50662
50663 * include/grub/video.h: New file.
50664
50665 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
50666 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
50667 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
50668 (grub_vbe_get_controller_info): Renamed from this...
50669 (grub_vbe_bios_get_controller_info): ... to this.
50670 (grub_vbe_get_mode_info): Renamed from this...
50671 (grub_vbe_bios_get_mode_info): ... to this.
50672 (grub_vbe_set_mode): Renamed from this...
50673 (grub_vbe_bios_set_mode): ... to this.
50674 (grub_vbe_get_mode): Renamed from this...
50675 (grub_vbe_bios_get_mode): ... to this.
50676 (grub_vbe_set_memory_window): Renamed from this...
50677 (grub_vbe_bios_set_memory_window): ... to this.
50678 (grub_vbe_get_memory_window): Renamed from this...
50679 (grub_vbe_bios_get_memory_window): ... to this.
50680 (grub_vbe_set_scanline_length): Renamed from this...
50681 (grub_vbe_set_scanline_length): ... to this.
50682 (grub_vbe_get_scanline_length): Renamed from this...
50683 (grub_vbe_bios_get_scanline_length): ... to this.
50684 (grub_vbe_set_display_start): Renamed from this...
50685 (grub_vbe_bios_set_display_start): ... to this.
50686 (grub_vbe_get_display_start): Renamed from this...
50687 (grub_vbe_bios_get_display_start): ... to this.
50688 (grub_vbe_set_palette_data): Renamed from this...
50689 (grub_vbe_bios_set_palette_data): ... to this.
50690 (grub_vbe_set_pixel_rgb): Removed.
50691 (grub_vbe_set_pixel_index): Likewise.
50692
50693 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
50694 from this...
50695 (grub_vbe_bios_get_controller_info): ... to this.
50696 (grub_vbe_get_mode_info): Renamed from this...
50697 (grub_vbe_bios_get_mode_info): ... to this.
50698 (grub_vbe_set_mode): Renamed from this...
50699 (grub_vbe_bios_set_mode): ... to this.
50700 (grub_vbe_get_mode): Renamed from this...
50701 (grub_vbe_bios_get_mode): ... to this.
50702 (grub_vbe_set_memory_window): Renamed from this...
50703 (grub_vbe_bios_set_memory_window): ... to this.
50704 (grub_vbe_get_memory_window): Renamed from this...
50705 (grub_vbe_bios_get_memory_window): ... to this.
50706 (grub_vbe_set_scanline_length): Renamed from this...
50707 (grub_vbe_set_scanline_length): ... to this.
50708 (grub_vbe_get_scanline_length): Renamed from this...
50709 (grub_vbe_bios_get_scanline_length): ... to this.
50710 (grub_vbe_set_display_start): Renamed from this...
50711 (grub_vbe_bios_set_display_start): ... to this.
50712 (grub_vbe_get_display_start): Renamed from this...
50713 (grub_vbe_bios_get_display_start): ... to this.
50714 (grub_vbe_set_palette_data): Renamed from this...
50715 (grub_vbe_bios_set_palette_data): ... to this.
50716 (grub_vbe_bios_get_controller_info): Fixed problem with registers
50717 getting corrupted after calling it. Added more pushes and pops.
50718 (grub_vbe_bios_set_mode): Likewise.
50719 (grub_vbe_bios_get_mode): Likewise.
50720 (grub_vbe_bios_get_memory_window): Likewise.
50721 (grub_vbe_bios_set_scanline_length): Likewise.
50722 (grub_vbe_bios_get_scanline_length): Likewise.
50723 (grub_vbe_bios_get_display_start): Likewise.
50724 (grub_vbe_bios_set_palette_data): Likewise.
50725
50726 * normal/cmdline.c (cl_set_pos): Refresh the screen.
50727 (cl_insert): Likewise.
50728 (cl_delete): Likewise.
50729
50730 * term/gfxterm.c: New file.
50731
50732 * term/i386/pc/vesafb.c: Removed file.
50733
50734 * video/video.c: New file.
50735
50736 * video/i386/pc/vbe.c (real2pm): Added new function.
50737 (grub_video_vbe_draw_pixel): Likewise.
50738 (grub_video_vbe_get_video_ptr): Likewise.
50739 (grub_video_vbe_get_pixel): Likewise
50740 (grub_video_vbe_init): Likewise.
50741 (grub_video_vbe_fini): Likewise.
50742 (grub_video_vbe_setup): Likewise.
50743 (grub_video_vbe_get_info): Likewise.
50744 (grub_video_vbe_set_palette): Likewise.
50745 (grub_video_vbe_get_palette): Likewise.
50746 (grub_video_vbe_set_viewport): Likewise.
50747 (grub_video_vbe_get_viewport): Likewise.
50748 (grub_video_vbe_map_color): Likewise.
50749 (grub_video_vbe_map_rgb): Likewise.
50750 (grub_video_vbe_map_rgba): Likewise.
50751 (grub_video_vbe_unmap_color): Likewise.
50752 (grub_video_vbe_fill_rect): Likewise.
50753 (grub_video_vbe_blit_glyph): Likewise.
50754 (grub_video_vbe_blit_bitmap): Likewise.
50755 (grub_video_vbe_blit_render_target): Likewise.
50756 (grub_video_vbe_scroll): Likewise.
50757 (grub_video_vbe_swap_buffers): Likewise.
50758 (grub_video_vbe_create_render_target): Likewise.
50759 (grub_video_vbe_delete_render_target): Likewise.
50760 (grub_video_vbe_set_active_render_target): Likewise.
50761 (grub_vbe_set_pixel_rgb): Remove function.
50762 (grub_vbe_set_pixel_index): Likewise.
50763 (index_color_mode): Remove static variable.
50764 (active_mode): Likewise.
50765 (framebuffer): Likewise.
50766 (bytes_per_scan_line): Likewise.
50767 (grub_video_vbe_adapter): Added new static variable.
50768 (framebuffer): Likewise.
50769 (render_target): Likewise.
50770 (initial_mode): Likewise.
50771 (mode_in_use): Likewise.
50772 (mode_list): Likewise.
50773
50774 2006-03-10 Marco Gerards <marco@gnu.org>
50775
50776 * configure.ac (AC_INIT): Bumped to 1.93.
50777
50778 * DISTLIST: Added `include/grub/hfs.h'.
50779
50780 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
50781
50782 * boot/i386/pc/boot.S (general_error): Before looping, try INT
50783 18H, which might help the BIOS falling back to next boot media.
50784
50785 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
50786
50787 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
50788 Poe Chen <poe.poechen@gmail.com>.
50789
50790 2006-01-17 Marco Gerards <marco@gnu.org>
50791
50792 * include/grub/normal.h: Include <grub/script.h>.
50793 (grub_command_list): Removed struct.
50794 (grub_command_list_t): Removed type.
50795 (grub_menu_entry): Remove members `num' and `command_list'. Add
50796 members `commands' and `sourcecode'.
50797 * include/grub/script.h: Add inclusion guards.
50798 (grub_script_cmd_menuentry): New struct.
50799 (grub_script_execute_menuentry): New prototype.
50800 (grub_script_lexer_record_start): Likewise.
50801 (grub_script_lexer_record_stop): Likewise.
50802 * normal/execute.c (grub_script_execute_menuentry): New function.
50803 * normal/lexer.c (record, recording, recordpos, recordlen): New
50804 variables.
50805 (grub_script_lexer_record_start): New function.
50806 (grub_script_lexer_record_stop): Likewise.
50807 (recordchar): Likewise.
50808 (nextchar): Likewise.
50809 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
50810 2048 as the buffer size. Add the tokens `menuentry' and `@'.
50811 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
50812 (current_menu): New variable.
50813 (free_menu): Mainly rewritten.
50814 (grub_normal_menu_addentry): New function.
50815 (read_config_file): Rewritten.
50816 * normal/menu.c (run_menu_entry): Mainly rewritten.
50817 * normal/menu_entry.c (make_screen): Rewritten the code to insert
50818 the menu entry.
50819 (run): Mainly rewritten.
50820 * normal/parser.y (menu_entry): New variable.
50821 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
50822 (menuentry): New rule.
50823 (command): Add `menuentry'.
50824 (if_statement): Allow additional returns before `fi'.
50825 * normal/script.c (grub_script_create_cmdmenu): New function.
50826
50827 2006-01-03 Marco Gerards <marco@gnu.org>
50828
50829 * INSTALL: GNU Bison is required.
50830 * configure.ac: Rewritten the test to detect Bison.
50831 * Makefile.in (YACC): New variable. Reported by Xun Sun
50832 <xun.sun.cn@gmail.com>.
50833
50834 2006-01-03 Marco Gerards <marco@gnu.org>
50835
50836 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
50837 the HFS+ filesystem to filesystem blocks.
50838 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
50839 GCC warning is silenced.
50840
50841 2006-01-03 Marco Gerards <marco@gnu.org>
50842
50843 * partmap/apple.c (apple_partition_map_iterate): Convert the data
50844 read from disk from big endian to host byte order.
50845
50846 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
50847
50848 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
50849 documentation.
50850 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
50851 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
50852 embedded HFS+ filesystem.
50853 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
50854 (grub_hfs_sblock): Move from here...
50855 * include/grub/hfs.h: To here... New file.
50856 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
50857 documentation.
50858 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
50859 New macros.
50860 (grub_hfsplus_volheader): Change type of member `magic' to
50861 `grub_uint16_t'.
50862 (grub_hfsplus_data): Add new member `embedded_offset'.
50863 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
50864 returned block.
50865 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
50866 Calculate the offset.
50867
50868 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50869
50870 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
50871 Removed.
50872 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
50873
50874 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50875
50876 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
50877 ENV->NAME is NULL after allocating ENV->VALUE.
50878
50879 2005-12-25 Marco Gerards <marco@gnu.org>
50880
50881 * kern/env.c (grub_env_set): Rewritten the error handling code.
50882
50883 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50884
50885 * geninit.sh: Made more robust, and more portable.
50886
50887 2005-12-25 Marco Gerards <marco@gnu.org>
50888
50889 Add support for Apple HFS+ filesystems.
50890
50891 * fs/hfsplus.c: New file.
50892
50893 * DISTLIST: Added `fs/hfsplus.c'.
50894
50895 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
50896 (hfsplus_mod_SOURCES): New variable.
50897 (hfsplus_mod_CFLAGS): Likewise.
50898 (hfsplus_mod_LDFLAGS): Likewise.
50899 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
50900 (grub_setup_SOURCES): Likewise.
50901 (grub_mkdevicemap_SOURCES): Likewise.
50902 (grub_emu_SOURCES): Likewise.
50903 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
50904
50905 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
50906
50907 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
50908
50909 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50910
50911 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
50912 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
50913 include/grub/parser.h, include/grub/script.h, kern/parser.c,
50914 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
50915 normal/lexer.c, normal/parser.y, normal/script.c, and
50916 partmap/gpt.c.
50917 Removed kern/sparc64/cache.c.
50918
50919 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
50920 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
50921 grub_emu_init.c.
50922
50923 * configure.ac (AC_INIT): Bumped to 1.92.
50924
50925 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
50926
50927 * kern/err.c (grub_error_push): Added new function to support error
50928 stacks.
50929 (grub_error_pop): Likewise.
50930 (grub_error_stack_items): New local variable to support error stacks.
50931 (grub_error_stack_pos): Likewise.
50932 (grub_error_stack_assert): Likewise.
50933 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
50934 stack depth.
50935 (grub_print_error): Added support to print errors from error stack.
50936
50937 * include/grub/err.h (grub_error_push): Added function prototype.
50938 (grub_error_pop): Likewise.
50939
50940 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
50941
50942 * configure.ac: Accept `powerpc64' as host_cpu.
50943 (amd64): Rename to `biarch32'.
50944
50945 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
50946 non-cacheline-aligned addresses.
50947
50948 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
50949 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
50950 if `size' is non-zero.
50951
50952 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
50953
50954 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
50955 and `cd' to make sure the filename is not prefixed with a
50956 directory name.
50957 (pkgdata_MODULES): Add `gpt.mod'.
50958 (gpt_mod_SOURCES): New variable.
50959 (gpt_mod_CFLAGS): Likewise.
50960 (gpt_mod_LDFLAGS): Likewise.
50961
50962 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
50963
50964 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
50965 New macro.
50966
50967 * partmap/gpt.c: New file.
50968
50969 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
50970 GPT partition map is detected.
50971
50972 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
50973
50974 * commands/i386/pc/play.c: New file.
50975 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
50976 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
50977 macros.
50978
50979 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
50980
50981 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
50982 ((unused))' to silence gcc warning.
50983
50984 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
50985
50986 * configure.ac: Correct `AC_PROG_YACC' test.
50987
50988 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
50989
50990 * util/powerpc/ieee1275/grub-install.in: Run the mount point
50991 check before installing files.
50992
50993 2005-11-22 Mike Small <smallm@panix.com>
50994
50995 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
50996 number regex so multidigit numbers are recognized correctly.
50997
50998 2005-11-22 Mike Small <smallm@panix.com>
50999
51000 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
51001 debugging message before attempting to claim memory.
51002 (grub_rescue_cmd_initrd): Add a claim debugging message and try
51003 multiple addresses in case of failure.
51004
51005 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51006
51007 * term/tparm.c (get_space): Remove empty `if' statement.
51008
51009 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
51010
51011 * kern/parser.c (check_varstate): Rename `state' to 's'.
51012
51013 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51014
51015 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
51016 variable definitions to the beginning of each function. Sort stack
51017 variables by size.
51018 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
51019 `buf' argument to `char *'.
51020
51021 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51022
51023 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
51024 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51025 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51026 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51027 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51028 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51029 configfile.mod, search.mod, gzio.mod and test.mod.
51030 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51031 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51032 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51033 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51034 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51035 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51036 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51037 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51038 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51039 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51040 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51041 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51042 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51043 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51044 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51045 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51046 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51047 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51048 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51049 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51050 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51051 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51052 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
51053
51054 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
51055 `grep --include'.
51056 (pkgdata_MODULES): Add test.mod.
51057
51058 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51059
51060 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
51061 appending to variables with "+=".
51062 (PModule): Use full pathname to generate *.lst filenames.
51063
51064 * Makefile.in: Fixed list rules moved from genmk.rb.
51065 (.DELETE_ON_ERROR): New special target.
51066 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
51067
51068 * conf/i386-pc.rmk: Include conf/common.mk.
51069 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51070 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51071 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51072 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51073 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51074 configfile.mod, search.mod, gzio.mod and test.mod.
51075 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51076 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51077 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51078 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51079 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51080 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51081 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51082 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51083 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51084 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51085 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51086 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51087 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51088 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51089 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51090 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51091 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51092 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51093 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51094 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51095 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51096 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51097 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
51098 here...
51099 * conf/common.rmk: ... to here. New file.
51100
51101 * conf/common.mk: New file.
51102
51103 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
51104
51105 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
51106 (grub_script.tab.c): ... here.
51107
51108 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
51109 (grub_script.tab.c): ... here.
51110
51111 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
51112 (grub_script.tab.c): ... here.
51113
51114 * normal/command.c (grub_command_find): Fixed a memory leak of
51115 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
51116
51117 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51118
51119 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
51120 "@" which marks the start of a comment on ARM.
51121 (VARIABLE): Likewise.
51122
51123 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51124
51125 Add support for Linux/ADFS partition tables.
51126
51127 * partmap/acorn.c: New file.
51128
51129 * include/grub/acorn_filecore.h: Likewise.
51130
51131 * DISTLIST: Added `partmap/acorn.c' and
51132 `include/grub/acorn_filecore.h'.
51133
51134 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51135 `partmap/acorn.c'.
51136 (pkgdata_MODULES): Add `acorn.mod'.
51137 (acorn_mod_SOURCES): New variable.
51138 (acorn_mod_CFLAGS): Likewise.
51139
51140 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51141 `partmap/acorn.c'.
51142 (pkgdata_MODULES): Add `acorn.mod'.
51143 (acorn_mod_SOURCES): New variable.
51144 (acorn_mod_CFLAGS): Likewise.
51145
51146 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
51147 (pkgdata_MODULES): Add `acorn.mod'.
51148 (acorn_mod_SOURCES): New variable.
51149 (acorn_mod_CFLAGS): Likewise.
51150 (acorn_mod_LDFLAGS): Likewise.
51151
51152 * include/types.h (grub_disk_addr_t): New typedef.
51153
51154 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
51155
51156 * geninit.sh: New file.
51157
51158 * geninitheader.sh: Likewise.
51159
51160 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
51161 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
51162 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
51163 * commands/configfile.c (grub_configfile_init)
51164 (grub_configfile_fini): Likewise.
51165 * commands/default.c (grub_default_init, grub_default_fini):
51166 Likewise.
51167 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
51168 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
51169 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
51170 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
51171 Likewise.
51172 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
51173 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
51174 Likewise.
51175 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
51176 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
51177 Likewise.
51178 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
51179 Likewise.
51180 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
51181 Likewise.
51182 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
51183 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
51184 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
51185 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
51186 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
51187 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
51188 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
51189 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
51190 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
51191 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
51192 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
51193 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
51194 * partmap/amiga.c (grub_amiga_partition_map_init)
51195 (grub_amiga_partition_map_fini): Likewise.
51196 * partmap/apple.c (grub_apple_partition_map_init)
51197 (grub_apple_partition_map_fini): Likewise.
51198 * partmap/pc.c (grub_pc_partition_map_init)
51199 (grub_pc_partition_map_fini): Likewise.
51200 * partmap/sun.c (grub_sun_partition_map_init,
51201 grub_sun_partition_map_fini): Likewise.
51202 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
51203 Likewise.
51204
51205 * util/grub-emu.c: Include <grub_modules_init.h>.
51206 (main): Don't initialize and de-initialize any modules directly,
51207 use `grub_init_all' and `grub_fini_all' instead.
51208
51209 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
51210 `grub_vesafb_mod_init'.
51211 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
51212 all users.
51213 * term/i386/pc/vga.c (grub_vga_init): Renamed to
51214 `grub_vga_mod_init'. Updated all users.
51215 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
51216
51217 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
51218 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
51219 rules.
51220
51221 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
51222 Generate a function to initialize the module in utilities.
51223 Updated all callers.
51224 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
51225 initialize the module in utilities. Updated all callers.
51226
51227 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51228
51229 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
51230 escape sequence and a literal ^L to clear the screen.
51231
51232 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
51233 when returning from Open Firmware.
51234
51235 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51236
51237 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
51238 (grub_ofconsole_height): Likewise.
51239 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
51240 manually insert a '\n'.
51241 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
51242 `grub_ofconsole_height'. Return early if these are already set.
51243
51244 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
51245
51246 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51247 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
51248 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
51249 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
51250 and `normal/script.c'.
51251 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51252 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51253 (test_mod_SOURCES): New variable.
51254 (test_mod_CFLAGS): Likewise.
51255 (test_mod_LDFLAGS): Likewise.
51256 (pkgdata_MODULES): Add `test.mod'.
51257 (grub_script.tab.c): New rule.
51258 (grub_script.tab.h): Likewise.
51259
51260 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
51261
51262 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51263 `commands/test.c', `normal/execute.c', `normal/lexer.c',
51264 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51265 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51266 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51267 (test_mod_SOURCES): New variable.
51268 (test_mod_CFLAGS): Likewise.
51269 (pkgdata_MODULES): Add `test.mod'.
51270 (grub_script.tab.c): New rule.
51271 (grub_script.tab.h): Likewise.
51272
51273 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
51274
51275 Add initial scripting support.
51276
51277 * commands/test.c: New file.
51278 * include/grub/script.h: Likewise.
51279 * normal/execute.c: Likewise.
51280 * normal/function.c: Likewise.
51281 * normal/lexer.c: Likewise.
51282 * normal/parser.y: Likewise.
51283 * normal/script.c: Likewise.
51284
51285 * configure.ac: Add `AC_PROG_YACC' test.
51286
51287 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
51288 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
51289 `normal/function.c' and `normal/script.c'.
51290 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51291 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51292 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
51293 variables.
51294 (pkgdata_MODULES): Add `test.mod'.
51295 (grub_script.tab.c): New rule.
51296 (grub_script.tab.h): Likewise.
51297
51298 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
51299
51300 * include/grub/normal.h (grub_test_init): New prototype.
51301 (grub_test_fini): Likewise.
51302
51303 * normal/command.c: Include <grub/script.h>.
51304 (grub_command_execute): Rewritten.
51305
51306 * util/grub-emu.c (main): Call `grub_test_init' and
51307 `grub_test_fini'.
51308
51309 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51310
51311 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
51312 to 0.
51313 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
51314 there are no pending characters.
51315
51316 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51317
51318 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
51319 `grub_strndup' to drop device arguments. Replace unnecessary
51320 `grub_strndup' with `grub_strdup'.
51321
51322 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51323
51324 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
51325 `debug' environment variable has been set.
51326
51327 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
51328
51329 * Makefile.in (install-local): Use $(DATA).
51330 (uninstall): Likewise.
51331 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
51332 (sbin_UTILITIES): ... to here.
51333 (sbin_SCRIPTS): New variable.
51334 (grub_install_SOURCES): New variable.
51335 * util/powerpc/ieee1275/grub-install.in: New file.
51336 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
51337 variable.
51338 (add_segments): Call `grub_util_get_path'.
51339
51340 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
51341
51342 From Timothy Baldwin:
51343 * commands/ls.c (grub_ls_list_files): Close FILE with
51344 grub_file_close.
51345 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
51346
51347 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
51348
51349 * include/grub/parser.h: New file.
51350
51351 * kern/parser.c: Likewise.
51352
51353 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
51354 (grub_setup_SOURCES): Likewise.
51355 (grub_probefs_SOURCES): Likewise.
51356 (grub_emu_SOURCES): Likewise.
51357 (kernel_img_HEADERS): Add `parser.h'.
51358
51359 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51360 (grub_emu_SOURCES): Add `kern/parser.c'.
51361 (grubof_SOURCES): Likewise.
51362
51363 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51364 (grubof_SOURCES): Add `kern/parser.c'.
51365
51366 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
51367
51368 * kern/misc.c (grub_split_cmdline): Removed function.
51369
51370 * kern/rescue.c: Include <grub/parser.h>.
51371 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
51372 of `grub_split_cmdline'.
51373
51374 * normal/command.c: Include <grub/parser.h>.
51375 (grub_command_execute): Use `grub_parser_split_cmdline' instead
51376 of `grub_split_cmdline'.
51377
51378 * normal/completion.c: Include <grub/parser.h>.
51379 (cmdline_state): New variable.
51380 (iterate_dir): End the filename with a quote depending on the
51381 command line state.
51382 (get_state): new function.
51383 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
51384 split the arguments and determine the current argument. When the
51385 argument string is not quoted, escape all spaces.
51386
51387 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51388
51389 * normal/sparc64/setjmp.S: New file.
51390
51391 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51392
51393 * include/grub/sparc64/libgcc.h: New file.
51394 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
51395 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
51396 normal/sparc64/setjmp.c.
51397
51398 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51399
51400 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
51401 * kern/sparc64/cache.S: New file.
51402 * kern/sparc64/cache.c: Removed.
51403 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
51404 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
51405 -mtune=ultrasparc.
51406 (COMMON_LDFLAGS): Add -melf64_sparc.
51407 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
51408 (grubof_SOURCES): Use cache.S instead of cache.c.
51409 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
51410 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
51411 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
51412 commented though.
51413 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
51414 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
51415 (linux_mod_CFLAGS): Commented out.
51416 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
51417 out because module isn't built.
51418 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
51419 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
51420 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
51421 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
51422 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
51423 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51424 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51425 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
51426 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
51427 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
51428 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51429 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51430 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
51431 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
51432
51433 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
51434
51435 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
51436 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
51437 longer, because HFS should not be used on PC.
51438
51439 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51440
51441 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
51442 consistently within the loop.
51443
51444 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
51445
51446 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
51447 directory can not be read.
51448
51449 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51450
51451 * configure.ac (AC_INIT): Increase the version number to 1.91.
51452
51453 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
51454 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
51455 term/i386/pc/serial.c.
51456
51457 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51458
51459 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
51460 file size must be permitted.
51461
51462 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
51463 between %ah and %al.
51464
51465 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51466
51467 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
51468 grub_uint64_t.
51469 Call the hook with a NUL-terminated filename.
51470 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
51471 grub_cpu_to_be32.
51472
51473 * kern/term.c (cursor_state): New variable.
51474 (grub_term_set_current): Reset the cursor state on a new
51475 terminal.
51476 (grub_setcursor): Rewritten to use CURSOR_STATE.
51477 (grub_getcursor): New function.
51478
51479 * include/grub/term.h (grub_getcursor): New prototype.
51480
51481 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
51482 integers on ARM. Reported by Timothy Baldwin
51483 <T.E.Baldwin99@members.leeds.ac.uk>.
51484
51485 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
51486
51487 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
51488 allocated.
51489 (grub_sfs_dir): Likewise.
51490
51491 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
51492
51493 Add support for the SFS filesystem.
51494
51495 * fs/sfs.c: New file.
51496
51497 * DISTLIST: Added `fs/sfs.c'.
51498
51499 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
51500 (grub_probefs_SOURCES): Likewise.
51501 (grub_emu_SOURCES): Likewise.
51502 (pkgdata_MODULES): Add `sfs.mod'.
51503 (sfs_mod_SOURCES): New variable.
51504 (sfs_mod_CFLAGS): Likewise.
51505 (sfs_mod_LDFLAGS): Likewise.
51506
51507 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
51508 (pkgdata_MODULES): Add `sfs.mod'.
51509 (sfs_mod_SOURCES): New variable.
51510 (sfs_mod_CFLAGS): Likewise.
51511
51512 * util/grub-emu.c (main): Call `grub_sfs_init' and
51513 `grub_sfs_fini'.
51514
51515 * include/grub/fs.h (grub_sfs_init): New prototype.
51516 (grub_sfs_fini): Likewise.
51517
51518 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
51519
51520 Add support for the AFFS filesystem.
51521
51522 * fs/affs.c: New file.
51523
51524 * DISTLIST: Added `fs/affs.c'.
51525
51526 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
51527 (grub_probefs_SOURCES): Likewise.
51528 (grub_emu_SOURCES): Likewise.
51529 (pkgdata_MODULES): Add `affs.mod'.
51530 (affs_mod_SOURCES): New variable.
51531 (affs_mod_CFLAGS): Likewise.
51532 (affs_mod_LDFLAGS): Likewise.
51533
51534 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
51535 (pkgdata_MODULES): Add `affs.mod'.
51536 (affs_mod_SOURCES): New variable.
51537 (affs_mod_CFLAGS): Likewise.
51538
51539 * util/grub-emu.c (main): Call `grub_affs_init' and
51540 `grub_affs_fini'.
51541
51542 * include/grub/fs.h (grub_affs_init): New prototype.
51543 (grub_affs_fini): Likewise.
51544
51545 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51546
51547 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
51548
51549 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51550
51551 * configure.ac: Accept `x86_64' as host_cpu. In that case add
51552 `-m32' to CFLAGS.
51553
51554 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
51555 linking.
51556
51557 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
51558 (COMMON_LDFLAGS): New variable.
51559 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
51560 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
51561 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
51562 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
51563 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
51564 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
51565 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
51566 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
51567 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
51568 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
51569 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51570 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51571 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
51572 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
51573 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
51574 variables.
51575 (normal_mod_ASFLAGS): Add `-m32'.
51576
51577 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
51578 (grub_host_size_t, grub_host_ssize_t): New types.
51579 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
51580 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
51581 `GRUB_HOST_SIZEOF_VOID_P'.
51582
51583 * include/grub/kernel.h (struct grub_module_header): Type of
51584 member offset changed to `grub_host_off_t'. Type of member size
51585 changed to `grub_host_size_t'.
51586 (struct grub_module_info): Type of member offset changed to
51587 `grub_host_off_t'. Type of member size changed to
51588 `grub_host_size_t'.
51589
51590 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
51591
51592 Make GRUB's kernel compliant to Multiboot Specification.
51593
51594 * kern/i386/pc/startup.S (multiboot_header): New label.
51595 (multiboot_entry): Likewise.
51596 (multiboot_trampoline): Likewise.
51597
51598 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
51599 Increased to 0x4A0.
51600
51601 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
51602 put parentheses after a question mark.
51603 [!GRUB_UTIL] (my_mod): New variable.
51604
51605 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
51606
51607 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
51608
51609 Adds support for the XFS filesystem. Btrees are not supported
51610 yet.
51611
51612 * fs/xfs.c: New file.
51613
51614 * DISTLIST: Added `fs/xfs.c'.
51615
51616 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
51617 (grub_probefs_SOURCES): Likewise.
51618 (grub_emu_SOURCES): Likewise.
51619 (pkgdata_MODULES): Add `xfs.mod'.
51620 (xfs_mod_SOURCES): New variable.
51621 (xfs_mod_CFLAGS): Likewise.
51622
51623 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
51624 (pkgdata_MODULES): Add `xfs.mod'.
51625 (xfs_mod_SOURCES): New variable.
51626 (xfs_mod_CFLAGS): Likewise.
51627
51628 * util/grub-emu.c (main): Call `grub_xfs_init' and
51629 `grub_xfs_fini'.
51630
51631 * include/grub/fs.h (grub_xfs_init): New prototype.
51632 (grub_xfs_fini): Likewise.
51633
51634
51635 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
51636
51637 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
51638 color modes, allow greater than 16 colors to be configured as
51639 a default palette.
51640
51641 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
51642
51643 * normal/completion.c (complete_arguments): Add the qualifier
51644 const into OPTIONS.
51645
51646 From Omniflux <omniflux+lists@omniflux.com>:
51647 * include/grub/terminfo.h: New file.
51648 * include/grub/tparm.h: Likewise.
51649 * include/grub/i386/pc/serial.h: Likewise.
51650 * term/terminfo.c: Likewise.
51651 * term/tparm.c: Likewise.
51652 * term/i386/pc/serial.c: Likewise.
51653 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
51654 serial.mod.
51655 (terminfo_mod_SOURCES): New variable.
51656 (terminfo_mod_CFLAGS): Likewise.
51657 (serial_mod_SOURCES): Likewise.
51658 (serial_mod_CFLAGS): Likewise.
51659
51660 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
51661
51662 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
51663 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
51664 and kern/powerpc/ieee1275/cmain.c, respectively.
51665
51666 * boot/powerpc/ieee1275/crt0.S: Moved to ...
51667 * kern/powerpc/ieee1275/crt0.S: ... here.
51668
51669 * boot/powerpc/ieee1275/cmain.c: Moved to ...
51670 * kern/powerpc/ieee1275/cmain.c: ... here.
51671
51672 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
51673 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
51674 instead of boot/powerpc/ieee1275/crt0.S and
51675 boot/powerpc/ieee1275/cmain.c, respectively.
51676
51677 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
51678 sectors. It was not used anyway.
51679
51680 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51681
51682 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
51683 `unused parameter' warning.
51684
51685 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51686
51687 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
51688 function.
51689 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
51690 getcharwidth.
51691
51692 2005-08-28 Marco Gerards <metgerards@student.han.nl>
51693
51694 * include/grub/normal.h (enum grub_completion_type): Added
51695 `GRUB_COMPLETION_TYPE_ARGUMENT'.
51696
51697 * normal/cmdline.c (print_completion): Handle
51698 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
51699 * normal/menu_entry.c (store_completion): Likewise.
51700
51701 * normal/completion.c (complete_arguments): New function.
51702 (grub_normal_do_completion): Call `complete_arguments' when the
51703 current words start with a dash.
51704
51705 2005-08-27 Marco Gerards <metgerards@student.han.nl>
51706
51707 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
51708 `gzio.mod' instead of `io.mod').
51709
51710 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
51711
51712 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
51713 (DISTDIRS): Added io and video.
51714 Rewrite the search routine to make an output consistently.
51715
51716 * DISTLIST: Added conf/sparc64-ieee1275.mk,
51717 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
51718 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
51719 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
51720 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
51721 util/powerpc/ieee1275/misc.c.
51722
51723 * include/grub/gzio.h: New file.
51724 * io/gzio.c: Likewise.
51725
51726 * kern/file.c (grub_file_close): Call grub_device_close only if
51727 FILE->DEVICE is not NULL.
51728
51729 * include/grub/mm.h [!NULL] (NULL): New macro.
51730
51731 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
51732
51733 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
51734 (pkgdata_MODULES): Added gzio.mod.
51735 (gzio_mod_SOURCES): New variable.
51736 (gzio_mod_CFLAGS): Likewise.
51737
51738 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
51739 (pkgdata_MODULES): Added gzio.mod.
51740 (gzio_mod_SOURCES): New variable.
51741 (gzio_mod_CFLAGS): Likewise.
51742
51743 * commands/cat.c: Include grub/gzio.h.
51744 (grub_cmd_cat): Use grub_gzfile_open instead of
51745 grub_file_open.
51746
51747 * commands/cmp.c: Include grub/gzio.h.
51748 (grub_cmd_cmp): Use grub_gzfile_open instead of
51749 grub_file_open.
51750
51751 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
51752 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
51753 grub_file_open.
51754 (grub_rescue_cmd_module): Likewise.
51755
51756 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51757
51758 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
51759 kern/sparc64/ieee1275/init.c because it contains _start.
51760 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
51761
51762 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51763
51764 * configure.ac: Add support for sparc64 host with ieee1275
51765 firmware.
51766 * configure: Generated from configure.ac.
51767 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
51768 instead of int.
51769 (grub_ofdisk_read): Likewise.
51770 (grub_ofdisk_open): Use %p to print pointer values, and cast the
51771 pointers as (void *) to remove a warning.
51772 (grub_ofdisk_close): Likewise.
51773 (grub_ofdisk_read): Likewise.
51774 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
51775 returns, so make it return void to remove a warning.
51776 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
51777 Corresponding prototype change.
51778 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
51779 values, and cast the pointers as (void *) to remove a warning.
51780 (grub_mm_dump): Likewise.
51781 * conf/sparc64-ieee1275.mk: New file.
51782 * conf/sparc64-ieee1275.rmk: Likewise.
51783 * include/grub/sparc64/setjmp.h: Likewise.
51784 * include/grub/sparc64/types.h: Likewise.
51785 * include/grub/sparc64/ieee1275/console.h: Likewise.
51786 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
51787 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
51788 * include/grub/sparc64/ieee1275/time.h: Likewise.
51789 * kern/sparc64/cache.c: Likewise.
51790 * kern/sparc64/dl.c: Likewise.
51791 * kern/sparc64/ieee1275/init.c: Likewise.
51792 * kern/sparc64/ieee1275/openfw.c: Likewise.
51793
51794 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
51795
51796 * util/console.c (grub_ncurses_putchar): If C is greater than
51797 0x7f, set C to a question mark.
51798 (grub_ncurses_getcharwidth): New function.
51799 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
51800 getcharwidth.
51801
51802 * normal/menu.c (print_entry): Made aware of Unicode. First,
51803 convert TITLE to UCS-4, and predict the cursor position by
51804 grub_getcharwidth.
51805
51806 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
51807 const to SRC.
51808 * kern/misc.c (grub_utf16_to_utf8): Likewise.
51809
51810 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51811
51812 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
51813 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
51814 grub_strcat.
51815
51816 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
51817 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
51818 grub_strcpy and grub_strlen. Take it into account that a space
51819 character is inserted as a delimiter.
51820
51821 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51822
51823 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
51824 invalid magic in the error.
51825
51826 * commands/search.c: New file.
51827
51828 * util/grub-emu.c (main): Call grub_search_init and
51829 grub_search_fini.
51830
51831 * kern/rescue.c (grub_rescue_print_disks): Removed.
51832 (grub_rescue_print_devices): New function.
51833 (grub_rescue_cmd_ls): Use grub_device_iterate with
51834 grub_rescue_print_devices instead of grub_disk_dev_iterate with
51835 grub_rescue_print_disks.
51836
51837 * kern/partition.c (grub_partition_iterate): Return the result of
51838 PARTMAP->ITERATE instead of GRUB_ERRNO.
51839
51840 * kern/device.c: Include grub/partition.h.
51841 (grub_device_iterate): New function.
51842
51843 * include/grub/partition.h (grub_partition_iterate): Return int
51844 instead of grub_err_t.
51845
51846 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
51847 prototype.
51848 [GRUB_UTIL] (grub_search_fini): Likewise.
51849
51850 * include/grub/device.h (grub_device_iterate): New prototype.
51851
51852 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
51853 commands/search.c.
51854 (pkgdata_MODULES): Added search.mod.
51855 (search_mod_SOURCES): New variable.
51856 (search_mod_CFLAGS): Likewise.
51857
51858 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
51859 (pkgdata_MODULES): Added search.mod.
51860 (search_mod_SOURCES): New variable.
51861 (search_mod_CFLAGS): Likewise.
51862
51863 * commands/ls.c (grub_ls_list_disks): Renamed to ...
51864 (grub_ls_list_devices): ... this, and use grub_device_iterate.
51865 All callers changed.
51866
51867 * DISTLIST: Added commands/search.c.
51868
51869 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51870
51871 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
51872 conversion.
51873 (grub_getcharwidth): New function.
51874
51875 * kern/misc.c (grub_utf8_to_ucs4): New function.
51876
51877 * include/grub/term.h (struct grub_term): Added a new member
51878 "getcharwidth".
51879 (grub_getcharwidth): New prototype.
51880
51881 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
51882
51883 * term/i386/pc/console.c (map_char): New function. Segregated from
51884 grub_console_putchar.
51885 (grub_console_putchar): Use map_char.
51886 (grub_console_getcharwidth): New function.
51887 (grub_console_term): Specified grub_console_getcharwidth as
51888 getcharwidth.
51889
51890 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
51891 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
51892
51893 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
51894 GRUB_ERRNO.
51895 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
51896 on grub_strtoul completely.
51897 (write_char): Declare local variables in the beginning of the
51898 function.
51899 (grub_vesafb_getcharwidth): New function.
51900 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
51901 getcharwidth.
51902
51903 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
51904
51905 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
51906 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
51907 commands/i386/pc/vbetest.c.
51908
51909 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
51910 call grub_vbe_get_controller_info again, because the returned
51911 information is volatile.
51912 (grub_vbe_set_video_mode): Mostly rewritten.
51913 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
51914 grub_vbe_status_t correctly.
51915 (grub_vbe_get_video_mode_info): Likewise.
51916 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
51917 several if statements.
51918
51919 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
51920 * commands/i386/pc/vbeinfo.c: ... this.
51921
51922 * commands/i386/pc/vbe_test.c: Renamed to ...
51923 * commands/i386/pc/vbetest.c: ... this.
51924
51925 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
51926 ...
51927 (grub_cmd_vbeinfo): ... this. Save video modes before
51928 iterating. Skip a video mode, if it is not available, not enough
51929 information is given or it is monochrome. Show the memory
51930 model. Leave the interpretation of MODEVAR to grub_strtoul
51931 completely.
51932 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
51933 (GRUB_MOD_FINI): Likewise.
51934
51935 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
51936 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
51937 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
51938 duplicated grub_env_get. Leave the interpretation of MODEVAR to
51939 grub_strtoul completely.
51940 (real2pm): Removed.
51941 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
51942 (GRUB_MOD_FINI): Likewise.
51943
51944 * normal/misc.c: Include grub/mm.h.
51945
51946 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
51947 vbe_list_modes with vbetest.mod and vbeinfo.mod.
51948 (vbe_list_modes_mod_SOURCES): Removed.
51949 (vbe_list_modes_mod_CFLAGS): Likewise.
51950 (vbe_test_mod_SOURCES): Likewise.
51951 (vbe_test_mod_CFLAGS): Likewise.
51952 (vbeinfo_mod_SOURCES): New variable.
51953 (vbeinfo_mod_CFLAGS): Likewise.
51954 (vbetest_mod_SOURCES): Likewise.
51955 (vbetest_mod_CFLAGS): Likewise.
51956
51957 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
51958
51959 * normal/misc.c: New file.
51960
51961 * DISTLIST: Added normal/misc.c.
51962
51963 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
51964 DISK to HOOK. Call HOOK with DISK.
51965 * partmap/apple.c (apple_partition_map_iterate): Likewise.
51966 * partmap/pc.c (pc_partition_map_iterate): Likewise.
51967 * partmap/sun.c (sun_partition_map_iterate): Likewise.
51968
51969 * normal/menu_entry.c (struct screen): Added a new member
51970 "completion_shown".
51971 (completion_buffer): New global variable.
51972 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
51973 (store_completion): New function.
51974 (complete): Likewise.
51975 (clear_completions): Likewise.
51976 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
51977 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
51978 a tab, call complete.
51979
51980 * normal/completion.c (disk_dev): Removed.
51981 (print_simple_completion): Likewise.
51982 (print_partition_completion): Likewise.
51983 (print_func): New global variable.
51984 (add_completion): Do not take the arguments WHAT or PRINT any
51985 longer. Added a new argument TYPE. Instead of printing directly,
51986 call PRINT_FUNC if not NULL.
51987 All callers changed.
51988 (complete_device): Use a local variable DEV instead of
51989 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
51990 (grub_normal_do_completion): Take a new argument HOOK. Do not
51991 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
51992 empty string, return NULL instead.
51993 All callers changed.
51994
51995 * normal/cmdline.c (print_completion): New function.
51996
51997 * kern/partition.c (grub_partition_iterate): Add an argument DISK
51998 to HOOK.
51999 All callers changed.
52000
52001 * kern/disk.c (grub_print_partinfo): Removed.
52002
52003 * include/grub/partition.h (struct grub_partition_map): Add a new
52004 argument DISK into HOOK of ITERATE.
52005 (grub_partition_iterate): Add a new argument DISK to HOOK.
52006
52007 * include/grub/normal.h (enum grub_completion_type): New enum.
52008 (grub_completion_type_t): New type.
52009 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
52010 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
52011 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
52012 (GRUB_COMPLETION_TYPE_FILE): Likewise.
52013 (grub_normal_do_completion): Added a new argument HOOK.
52014 (grub_normal_print_device_info): New prototype.
52015
52016 * include/grub/disk.h (grub_print_partinfo): Removed.
52017
52018 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
52019 (normal_mod_SOURCES): Likewise.
52020 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
52021 (normal_mod_SOURCES): Likewise.
52022
52023 * commands/ls.c (grub_ls_list_disks): Use
52024 grub_normal_print_device_info instead of grub_print_partinfo. Free
52025 PNAME.
52026 (grub_ls_list_files): Use grub_normal_print_device_info instead of
52027 duplicating the code.
52028
52029 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52030
52031 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
52032 follow GCS more precisely.
52033 * commands/i386/pc/vbe_test.c: Likewise.
52034 * include/grub/i386/pc/vbe.h: Likewise.
52035 * term/i386/pc/vesafb.c: Likewise.
52036 * video/i386/pc/vbe.c: Likewise.
52037
52038 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52039
52040 * DISTLIST: Added term/i386/pc/vesafb.c
52041 DISTLIST: Added video/i386/pc/vbe.c
52042 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
52043 DISTLIST: Added commands/i386/pc/vbe_test.c.
52044 * commands/i386/pc/vbe_list_modes.c: New file.
52045 * commands/i386/pc/vbe_test.c: Likewise.
52046 * term/i386/pc/vesafb.c: Likewise.
52047 * video/i386/pc/vbe.c: Likewise.
52048 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
52049 (grub_vbe_probe) Added prototype.
52050 (grub_vbe_set_video_mode) Likewise.
52051 (grub_vbe_get_video_mode) Likewise.
52052 (grub_vbe_get_video_mode_info) Likewise.
52053 (grub_vbe_set_pixel_rgb) Likewise.
52054 (grub_vbe_set_pixel_index) Likewise.
52055 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
52056 (pkgdata_MODULES): Added vesafb.mod.
52057 (pkgdata_MODULES): Added vbe_list_modes.mod.
52058 (pkgdata_MODULES): Added vbe_test.mod.
52059 (vbe_mod_SOURCES): Added.
52060 (vbe_mod_CFLAGS): Likewise.
52061 (vesafb_mod_SOURCES): Likewise.
52062 (vesafb_mod_CFLAGS): Likewise.
52063 (vbe_list_modes_mod_SOURCES): Likewise.
52064 (vbe_list_modes_mod_CFLAGS): Likewise.
52065 (vbe_test_mod_SOURCES): Likewise.
52066 (vbe_test_mod_CFLAGS): Likewise.
52067
52068 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
52069
52070 * normal/command.c (grub_command_execute): If INTERACTIVE is
52071 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
52072 CMDLINE. Disable the pager if INTERACTIVE is true.
52073 All callers are changed.
52074
52075 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
52076 before reading a config file.
52077 * normal/main.c (read_config_file): Even if a command is not
52078 found, register it if it is within an entry.
52079
52080 * util/grub-emu.c: Include sys/types.h and unistd.h.
52081 (options): Added --hold.
52082 (struct arguments): Added a new member "hold".
52083 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
52084 missing.
52085 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
52086 cleared by a debugger, if it is not zero.
52087
52088 * include/grub/normal.h (grub_command_execute): Add an argument
52089 INTERACTIVE.
52090
52091 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
52092
52093 * DISTLIST: Added include/grub/i386/pc/vbe.h.
52094
52095 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
52096
52097 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
52098 program with another one, because the old one didn't detect a bug
52099 in gcc-3.4. Always use regparm 2, because the new test is still
52100 not enough for gcc-4.0. Someone must investigate a simple test
52101 case which detects a bug in gcc-4.0.
52102
52103 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
52104
52105 * DISTLIST: Added normal/completion.c.
52106
52107 * normal/completion.c: New file.
52108
52109 * term/i386/pc/console.c (grub_console_getwh): New function.
52110 (grub_console_term): Assign grub_console_getwh to getwh.
52111
52112 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
52113 function is defined in normal/completion.c as
52114 grub_normal_do_completion.
52115 (grub_cmdline_get): Use grub_normal_do_completion instead of
52116 grub_tab_complete.
52117
52118 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
52119 returns non-zero, otherwise return 0.
52120 (grub_partition_iterate): First, probe the partition map. Then,
52121 call ITERATE only for this partition map.
52122
52123 * kern/misc.c (grub_strncmp): Rewritten.
52124
52125 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
52126 returns non-zero. Otherwise return 0.
52127
52128 * include/grub/partition.h (grub_partition_map_iterate): Return
52129 int instead of void.
52130
52131 * include/grub/normal.h (grub_normal_do_completion): New prototype.
52132
52133 * include/grub/misc.h (grub_strncmp): Change the type of N to
52134 grub_size_t.
52135
52136 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
52137 of void.
52138
52139 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
52140 unsigned explicitly before comparing it with I.
52141
52142 * kern/main.c (grub_env_write_root): Add the attribute unused into
52143 VAR.
52144
52145 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52146 normal/completion.c.
52147 (normal_mod_SOURCES): Likewise.
52148 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
52149 (normal_mod_SOURCES): Likewise.
52150
52151 * normal/command.c (grub_iterate_commands): If ITERATE returns
52152 non-zero, return one immediately.
52153
52154 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
52155
52156 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
52157 * kern/i386/pc/startup.S: Updated Global Descriptor table's
52158 descriptions.
52159 (grub_vbe_get_controller_info): New function.
52160 (grub_vbe_get_mode_info): Likewise.
52161 (grub_vbe_set_mode): Likewise.
52162 (grub_vbe_get_mode): Likewise.
52163 (grub_vbe_set_memory_window): Likewise.
52164 (grub_vbe_get_memory_window): Likewise.
52165 (grub_vbe_set_scanline_length): Likewise.
52166 (grub_vbe_get_scanline_length): Likewise.
52167 (grub_vbe_set_display_start): Likewise.
52168 (grub_vbe_get_display_start): Likewise.
52169 (grub_vbe_set_palette_data): Likewise.
52170 * include/grub/i386/pc/vbe.h: New file.
52171
52172 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52173
52174 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52175 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
52176 * DISTLIST: Likewise.
52177 * kern/ieee1275/of.c: Moved to ...
52178 * kern/ieee1275/ieee1275.c: ... here.
52179
52180 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52181
52182 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
52183 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
52184 Pass 0 as `end' parameter to grub_strtoul().
52185
52186 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52187
52188 * include/grub/powerpc/ieee1275/console.h: Do not include
52189 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
52190 ifdef.
52191 (grub_console_cur_color): Remove i386-specific prototype.
52192 (grub_console_real_putchar): Likewise.
52193 (grub_console_checkkey): Likewise.
52194 (grub_console_getkey): Likewise.
52195 (grub_console_getxy): Likewise.
52196 (grub_console_gotoxy): Likewise.
52197 (grub_console_cls): Likewise.
52198 (grub_console_setcursor): Likewise.
52199 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
52200 Include <grub/machine/console.h>.
52201 * term/ieee1275/ofconsole.c: Likewise.
52202
52203 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
52204
52205 * Makefile.in (LIBLZO): New variable.
52206
52207 * configure.ac: Check for LZO version 2.
52208
52209 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
52210 lzo/lzo1x.h instead of lzo1x.h.
52211
52212 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
52213 of -llzo.
52214
52215 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
52216 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
52217
52218 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
52219 copying the data from PARTITION to P.
52220
52221 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52222
52223 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
52224 negative, unload the module.
52225
52226 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
52227 map is "pc_partition_map" but not "pc".
52228 (usage): Fix the description. The options are --boot-image and
52229 --core-image but not --boot-file or --core-file.
52230 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
52231 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
52232 DEFAULT_DIRECTORY.
52233
52234 * util/i386/pc/grub-install.in: Do not specify --boot-file or
52235 --core-file. Specify INSTALL_DEVICE as an argument.
52236
52237 * util/console.c: Include config.h.
52238 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
52239 [HAVE_NCURSES_H]: Include ncurses.h.
52240 [HAVE_CURSES_H]: Include curses.h.
52241 [!A_NORMAL] (A_NORMAL): Defined as zero.
52242 [!A_STANDOUT] (A_STANDOUT): Likewise.
52243
52244 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
52245 -lncurses.
52246 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
52247
52248 * configure.ac: Check for curses libraries and headers.
52249
52250 * Makefile.in (LIBCURSES): New variable.
52251
52252 * genmk.rb (Script::rule): Set the executable bits.
52253
52254 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
52255 name of the PC partition map is "pc_partition_map" but not "pc".
52256
52257 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52258
52259 * util/i386/pc/grub-install.in (grub_probefs): New variable.
52260 (modules): Likewise.
52261 (usage): Added descriptions for --modules and --grub-probefs.
52262 Handle --modules and --grub-probefs. Save the arguments in MODULES
52263 and GRUB_PROBEFS, respectively.
52264 Auto-detect a filesystem module against GRUBDIR. If the result is
52265 empty and modules are not specified explicitly, abort the
52266 installation. Add the result to MODULES.
52267
52268 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
52269 disk/powerpc/ieee1275/ofdisk.c,
52270 include/grub/powerpc/ieee1275/init.h and
52271 term/powerpc/ieee1275/ofconsole.c.
52272 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
52273 term/ieee1275/ofconsole.c.
52274
52275 * include/grub/powerpc/ieee1275/console.h: Resurrected.
52276
52277 * COPYING: Upgraded to the latest version. Only the address of the
52278 FSF office has changed.
52279
52280 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52281
52282 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52283 kern/ieee1275.c with kern/ieee1275/of.c.
52284
52285 * kern/ieee1275.c: Moved to ...
52286 * kern/ieee1275/of.c: ... here.
52287
52288 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
52289
52290 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
52291 readability.
52292
52293 * config.guess: Updated to the latest version from gnulib.
52294 * config.sub: Likewise.
52295 * install.sh: Likewise.
52296 * mkinstalldirs: Likewise.
52297
52298 * include/grub/console.h: Removed. This file is arch-specific. Do
52299 not put this in include/grub.
52300
52301 * include/grub/i386/pc/console.h: Resurrected.
52302
52303 * util/console.c: Include grub/machine/console.h instead of
52304 grub/console.h.
52305 * util/grub-emu.c: Likewise.
52306
52307 2005-08-04 Marco Gerards <metgerards@student.han.nl>
52308
52309 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
52310 hardcoded value.
52311
52312 From Vincent Pelletier <subdino2004@yahoo.fr>
52313 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
52314 Redefined to use grub_getwh.
52315 (grub_term): New member named getwh.
52316 (grub_getwh): New prototype.
52317 * kern/term.c (grub_getwh): New function.
52318 * term/i386/pc/console.c (grub_console_getwh): New function.
52319 (grub_console_term): New member `getwh'.
52320 * term/i386/pc/vga.c (grub_vga_getwh): New function.
52321 (grub_vga_term): New member `getwh'.
52322 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
52323 grub_ssize_t.
52324 (grub_ofconsole_getw): New function.
52325 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
52326 (grub_ofconsole_term): New field named getwh and new initial
52327 value.
52328
52329 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
52330
52331 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
52332 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
52333 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
52334 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
52335 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
52336 of <grub/machine/ieee1275.h>.
52337 * commands/ieee1275/reboot.c: Likewise.
52338 * boot/powerpc/ieee1275/ieee1275.c: Move ...
52339 * kern/ieee1275.c: ... to here. All users updated. Change all
52340 parameter structs to use new type `grub_ieee1275_cell_t'.
52341 * term/powerpc/ieee1275/ofconsole.c: Move ...
52342 * term/ieee1275/ofconsole.c: ... to here. All users updated.
52343 * disk/powerpc/ieee1275/ofdisk.c: Move ...
52344 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
52345 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
52346 to return int.
52347 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
52348 Remove unused prototypes. All users updated.
52349 * include/grub/powerpc/ieee1275/console.h: Removed.
52350 * include/grub/powerpc/ieee1275/ieee1275.h: Define
52351 `grub_ieee1275_cell_t'.
52352 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
52353 Cast comparisons with -1 to the correct type.
52354 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
52355 type to match `grub_ieee1275_entry_fn'.
52356
52357 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
52358
52359 * DISTLIST: Added util/i386/pc/grub-probefs.c.
52360
52361 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
52362 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
52363 partmap/sun.c.
52364 (grub_probefs_SOURCES): New variable.
52365
52366 * util/i386/pc/grub-probefs.c: New file.
52367
52368 * util/i386/pc/grub-setup.c (main): Call
52369 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
52370 grub_hfs_init and grub_jfs_init to initialize the system. Call
52371 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
52372 grub_pc_partition_map_fini to finish the system.
52373
52374 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
52375
52376 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
52377 function.
52378 (grub_multiboot_load_elf32): Likewise.
52379 (grub_multiboot_is_elf64): Likewise.
52380 (grub_multiboot_load_elf64): Likewise.
52381 (grub_multiboot_load_elf): Likewise.
52382 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
52383 an ELF32 or ELF64 file.
52384 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
52385
52386 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
52387 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
52388 NULL before calling FS->LABEL.
52389 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
52390 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
52391 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
52392 before calling FS->LABEL.
52393
52394 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
52395
52396 * util/i386/pc/grub-install.in (datadir): New variable.
52397 (libdir): Removed.
52398 (pkgdatadir): New variable.
52399 (pkglibdir): Removed.
52400
52401 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
52402
52403 * DISTLIST: Added util/i386/pc/grub-install.in.
52404
52405 * util/i386/pc/grub-install.in: New file.
52406
52407 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
52408 (grub_install_SOURCES): Likewise.
52409
52410 * genmk.rb: Added support for scripts.
52411 (Script): New class.
52412 (scripts): New variable.
52413
52414 * Makefile.in (install-local): Install sbin_SCRIPTS by
52415 INSTALL_SCRIPT.
52416 (uninstall): Remove sbin_SCRIPTS.
52417
52418 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
52419 device, try to get a GRUB device by
52420 grub_util_biosdisk_get_grub_dev.
52421 Free DEST_DEV.
52422
52423 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
52424 description for --device-map.
52425
52426 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52427
52428 Change the semantics of variable hooks. They now return strings
52429 instead of error values.
52430
52431 * util/i386/pc/grub-setup.c: Include grub/env.h.
52432 (setup): Use grub_device_set_root instead of grub_env_set.
52433
52434 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
52435 grub_env_get instead of grub_device_set_root and
52436 grub_device_get_root, respectively.
52437
52438 * kern/main.c (grub_env_write_root): New function.
52439 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
52440 grub_env_set instead of grub_device_set_root.
52441
52442 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
52443 many variables.
52444 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
52445 rather than calling ENV->WRITE_HOOK afterwards.
52446 (grub_env_get): Return the result of ENV->READ_HOOK rather than
52447 passing a pointer of a pointer.
52448 (grub_register_variable_hook): Change the types of "read_hook" and
52449 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
52450 respectively.
52451 Allocate the default empty string on the heap, because this string
52452 may be freed later.
52453
52454 * kern/device.c: Include grub/env.h.
52455 (grub_device_set_root): Removed.
52456 (grub_device_get_root): Likewise.
52457 (grub_device_open): Use grub_env_get instead of
52458 grub_device_get_root.
52459
52460 * include/grub/env.h (grub_env_read_hook_t): New type.
52461 (grub_env_write_hook_t): Likewise.
52462 (grub_env_var): Change the types of "read_hook" and "write_hook"
52463 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
52464 (grub_register_variable_hook): Likewise.
52465
52466 * include/grub/device.h (grub_device_set_root): Removed.
52467 (grub_device_set_root): Likewise.
52468
52469 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
52470 make sure that DIRNAME terminates with '/', so that
52471 grub_fat_find_dir will fail if PATH is not a directory.
52472
52473 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
52474 from DIRNAME.
52475 Use the qualifier auto for print_files and print_files_long.
52476 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
52477 as a regular file.
52478 Put a newline only if there is no error.
52479 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
52480 used.
52481
52482 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52483
52484 * kern/partition.c (grub_partition_probe): Initialize PART to
52485 NULL. Otherwise, when no partition map is registered, this returns
52486 a garbage.
52487
52488 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
52489
52490 * partmap/apple.c (apple_partition_map_iterate): Check if POS
52491 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
52492 valid.
52493
52494 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
52495
52496 * commands/ls.c (grub_ls_list_disks): Print the filesystem
52497 information on each device, if it does not have partitions. Print
52498 "Device" instead of "Disk", because this function is not specific
52499 to disk devices.
52500
52501 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
52502 static to ensure that it is put on the memory rather than a
52503 register.
52504
52505 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52506
52507 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
52508 (grub_cat_init): Likewise.
52509 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
52510 (options): Likewise.
52511 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
52512 (grub_configfile_init): Likewise.
52513 * font/manager.c (GRUB_MOD_INIT): Likewise.
52514 * commands/help.c (GRUB_MOD_INIT): Likewise.
52515 (grub_help_init): Likewise.
52516 * normal/command.c (grub_command_init): Likewise.
52517 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
52518 * disk/loopback.c (grub_loop_init): Likewise.
52519 (GRUB_MOD_INIT): Likewise.
52520 * commands/ls.c (grub_ls_init): Likewise.
52521 (GRUB_MOD_INIT): Likewise.
52522 (options): Likewise.
52523 * commands/boot.c (grub_boot_init): Likewise.
52524 (GRUB_MOD_INIT): Likewise.
52525 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
52526 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
52527 (GRUB_MOD_INIT): Likewise.
52528 * commands/cmp.c (grub_cmp_init): Likewise.
52529 (GRUB_MOD_INIT): Likewise.
52530
52531 * normal/arg.c: Use <> instead of "" to include header files.
52532 (SHORT_ARG_HELP): New macro.
52533 (SHORT_ARG_USAGE): Likewise.
52534 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
52535 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
52536 descriptions.
52537 (find_short): Check if C is 'h' or 'u' explicitly.
52538 (grub_arg_show_help): Use space characters instead of tabs. Treat
52539 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
52540 are shown with --help and --usage only if they are not used for
52541 the command itself.
52542 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
52543 'h' and 'u'.
52544
52545 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
52546 const into "longarg". Change the type of "shortarg" to int.
52547
52548 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52549
52550 * boot/i386/pc/boot.S (boot_drive_check): New label.
52551
52552 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
52553 macro.
52554
52555 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
52556 which do not pass a boot drive correctly. Copied from GRUB Legacy.
52557
52558 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52559
52560 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
52561 When turning off Gate A20, skip the check and return immediately,
52562 because this is not fatal usually.
52563
52564 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52565
52566 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
52567 be 0x7C00 instead of 0x8000.
52568
52569 * boot/i386/pc/pxeboot.S: Rewritten.
52570
52571 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
52572 EXT_C.
52573 (gate_a20_check_state): Read a byte from 0x108000. Invert the
52574 result.
52575
52576 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
52577
52578 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
52579 robustness. This routine now supports a BIOS call and System
52580 Control Port A to modify the gate A20.
52581
52582 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
52583 Increased to 0x440.
52584
52585 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
52586
52587 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
52588 device path and resulting ihandle.
52589 (grub_ofdisk_close): dprintf the ihandle being closed.
52590 (grub_ofdisk_read): dprintf function parameters.
52591 * kern/mm.c (grub_mm_init_region): Likewise.
52592 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
52593 (grub_linux_boot): dprintf the Linux entry point, initrd address and
52594 size, and boot arguments.
52595 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
52596 before loading into memory.
52597 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
52598 before loading into memory.
52599
52600 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
52601
52602 * kern/mm.c: Added much documentation.
52603 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
52604 8, set to 5 instead of 8.
52605
52606 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52607
52608 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
52609
52610 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
52611 (grub_mkdevicemap_SOURCES): New variable.
52612
52613 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
52614 lib/device.c of GRUB Legacy.
52615
52616 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52617
52618 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
52619 instead of PATH is NULL.
52620
52621 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
52622
52623 * commands/cmp.c (BUFFER_SIZE): New macro.
52624 (grub_cmd_cmp): Close the right file at the right time. Compare
52625 only data just read. Don't report files of different size as
52626 identical. Dynamically allocate buffers. Move variable
52627 declarations at the beginning of function.
52628
52629 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
52630
52631 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
52632 reverse.
52633
52634 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
52635
52636 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
52637 when backspace is pressed at beginning of line.
52638
52639 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
52640
52641 * DISTLIST: Added genfslist.sh.
52642
52643 * normal/main.c (fs_module_list): New variable.
52644 (autoload_fs_module): New function.
52645 (read_fs_list): Likewise.
52646 (grub_normal_execute): Call read_fs_list.
52647
52648 * kern/fs.c (grub_fs_autoload_hook): New variable.
52649 (grub_fs_probe): Added support for auto-loading.
52650
52651 * include/grub/normal.h (struct grub_fs_module_list): New struct.
52652 (grub_fs_module_list_t): New type.
52653
52654 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
52655 (grub_fs_autoload_hook): New prototype.
52656
52657 * genfslist.sh: New file.
52658
52659 * genmk.rb: Added a rule to generate a filesystem list.
52660
52661 2005-06-30 Marco Gerards <metgerards@student.han.nl>
52662
52663 * configure.ac: Fix the test for cross-compiling.
52664
52665 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
52666 define GRUB_UTIL anymore.
52667
52668 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
52669 so this function works on other systems than just big endian.
52670 (load_modules): Likewise.
52671 (add_segments): Likewise.
52672
52673 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
52674
52675 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
52676 contains `l' modifier, get a long from va_arg().
52677
52678 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
52679
52680 * kern/mm.c (grub_free): If the next free block which is being
52681 merged is the first free block, set the first block to the block
52682 being freed.
52683 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
52684
52685 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52686
52687 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
52688 `grub_ieee1275_chosen'.
52689
52690 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52691
52692 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
52693 (grub_ieee1275_chosen): New variable.
52694 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
52695 `chosen'.
52696 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
52697 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
52698 Rename first argument to `phandle' for consistency.
52699 (grub_ieee1275_get_property_length): Likewise.
52700 (grub_ieee1275_next_property): Likewise. Change type of first argument
52701 to grub_ieee1275_phandle_t.
52702 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
52703 Move export next to declaration.
52704 (grub_ieee1275_chosen): New variable.
52705 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
52706 Correct cosmetic typo.
52707 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
52708 `grub_ieee1275_chosen'.
52709 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
52710 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
52711 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
52712 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
52713 `grub_ieee1275_chosen'.
52714
52715 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
52716
52717 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
52718 /chosen/bootargs.
52719 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
52720 /chosen/bootargs as "variable=value" pairs.
52721
52722 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
52723
52724 * include/grub/misc.h (grub_dprintf): New macro.
52725 (grub_real_dprintf): New prototype.
52726 (grub_strword): Likewise.
52727 (grub_iswordseparator): Likewise.
52728 * kern/misc.c (grub_real_dprintf): New function.
52729 (grub_strword): Likewise.
52730 (grub_iswordseparator): Likewise.
52731
52732 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
52733
52734 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
52735 (roundup): Remove macro.
52736 (grub_ieee1275_flags): Make static.
52737 (grub_ieee1275_realmode): Remove.
52738 (grub_ieee1275_test_flag): New function.
52739 (grub_ieee1275_set_flag): Likewise.
52740 (find_options): Rename to `grub_ieee1275_find_options'; update
52741 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
52742 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
52743 (cmain): New prototype.
52744 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
52745 `grub_ieee1275_flags' directly.
52746 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
52747 machine/biosdisk.h.
52748 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
52749 Don't include grub/machine/init.h.
52750 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
52751 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
52752 Remove prototype.
52753 (grub_ieee1275_realmode): Likewise.
52754 (grub_ieee1275_flag): New enum.
52755 (grub_ieee1275_test_flag): New prototype.
52756 (grub_ieee1275_set_flag): New prototype.
52757 * include/grub/powerpc/ieee1275/init.h: Remove file.
52758 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
52759 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
52760 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
52761 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
52762 comment.
52763 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
52764 `grub_ieee1275_test_flag'.
52765 (grub_ieee1275_encode_devname): Likewise.
52766
52767 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
52768
52769 * include/grub/powerpc/ieee1275/ieee1275.h
52770 (grub_ieee1275_encode_devname): New prototype.
52771 (grub_ieee1275_get_filename): Likewise.
52772 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
52773 function.
52774 (grub_set_prefix): Likewise.
52775 (grub_machine_init): Call grub_set_prefix.
52776 * kern/powerpc/ieee1275/openfw.c: Fix typos.
52777 (grub_parse_type): New enum.
52778 (grub_ieee1275_get_devargs): New function.
52779 (grub_ieee1275_get_devname): Likewise.
52780 (grub_ieee1275_parse_args): Likewise.
52781 (grub_ieee1275_get_filename): Likewise.
52782 (grub_ieee1275_encode_devname): Likewise.
52783
52784 2005-03-30 Marco Gerards <metgerards@student.han.nl>
52785
52786 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
52787 `grub_loader_unset'.
52788
52789 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
52790
52791 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
52792 instead of grub_ieee1275_interpret.
52793 (grub_halt_init): New function.
52794 (grub_halt_fini): Likewise.
52795 (GRUB_MOD_INIT): Correct message grammar.
52796 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
52797 instead of grub_ieee1275_interpret.
52798 (grub_reboot_init): New function.
52799 (grub_reboot_fini): Likewise.
52800 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
52801 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
52802 util/i386/pc/misc.c with commands/ieee1275/halt.c,
52803 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
52804 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
52805 function.
52806 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
52807 Add prototype.
52808 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
52809 prototype.
52810 (grub_halt): Likewise.
52811 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
52812 (cmain): Remove __attribute__((unused)).
52813 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
52814 (grub_heap_len): Likewise.
52815 (grub_machine_fini): New function.
52816 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
52817 (grub_halt): Likewise.
52818 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
52819 function.
52820 * util/powerpc/ieee1275/misc.c: New file.
52821
52822 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
52823
52824 * DISTLIST: New file.
52825 * gendistlist.sh: Likewise.
52826
52827 * Makefile.in (COMMON_DISTFILES): Removed.
52828 (BOOT_DISTFILES): Likewise.
52829 (CONF_DISTFILES): Likewise.
52830 (DISK_DISTFILES): Likewise.
52831 (FS_DISTFILES): Likewise.
52832 (INCLUDE_DISTFILES): Likewise.
52833 (KERN_DISTFILES): Likewise.
52834 (LOADER_DISTFILES): Likewise.
52835 (TERM_DISTFILES): Likewise.
52836 (UTIL_DISTFILES): Likewise.
52837 (DISTFILES): Likewise.
52838 (uninstall): Uninstall files in $(pkgdata_DATA).
52839 (DISTLIST): New target.
52840 (distdir): Use the contents of the file DISTLIST to get a list of
52841 distributed files.
52842
52843 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
52844
52845 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
52846 descriptor. This is ported from GRUB Legacy.
52847
52848 * gencmdlist.sh: Added an extra semicolon to make it work with
52849 old sed versions. Reported by Robert Bihlmeyer
52850 <robbe@orcus.priv.at>.
52851
52852 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
52853
52854 Automatic loading of commands is supported.
52855
52856 * normal/main.c (read_command_list): New function.
52857 (grub_normal_execute): Call read_command_list.
52858
52859 * normal/command.c (grub_register_command): Return zero or CMD.
52860 Allocate CMD->NAME from the heap.
52861 Initialize CMD->MODULE_NAME to zero.
52862 Find the same name as well. If the same command is found and it is
52863 a dummy command, overwrite members. If it is not a dummy command,
52864 return zero.
52865 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
52866 (grub_command_find): If a dummy command is found, load a module
52867 and retry to find a command only once.
52868
52869 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
52870 make sure that each command is loaded.
52871
52872 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
52873 macro.
52874 (struct grub_command): Remove const from the member `name'.
52875 Add a new member `module_name'.
52876 (grub_register_command): Return grub_command_t.
52877
52878 * commands/help.c (grub_cmd_help): Call grub_command_find to make
52879 sure that each command is loaded.
52880
52881 * genmk.rb (PModule::rule): Specify a module name without the
52882 suffix ".mod" to gencmdlist.sh.
52883
52884 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
52885
52886 * gencmdlist.sh: New file.
52887
52888 * genmk.rb (PModule::rule): Generate a rule for a command list.
52889 Clean command.lst.
52890 Generate command.lst from $(COMMANDFILES).
52891
52892 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
52893 (DATA): Added $(pkgdata_DATA).
52894 (install-local): Install files in $(pkgdata_DATA).
52895
52896 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
52897
52898 * term/i386/pc/vga.c (debug_command): Removed.
52899 (GRUB_MOD_INIT): Do not register the command "debug".
52900
52901 From Hollis Blanchard:
52902 * commands/configfile.c: New file.
52903 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
52904 commands/configfile.c.
52905 (pkgdata_MODULES): Added configfile.mod.
52906 (configfile_mod_SOURCES): New variable.
52907 (configfile_mod_CFLAGS): Likewise.
52908 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52909 commands/configfile.c.
52910 (pkgdata_MODULES): Added configfile.mod.
52911 (configfile_mod_SOURCES): New variable.
52912 (configfile_mod_CFLAGS): Likewise.
52913 * util/grub-emu.c (main): Call grub_configfile_init and
52914 grub_configfile_fini.
52915 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
52916 prototype.
52917 [GRUB_UTIL] (grub_configfile_fini): Likewise.
52918
52919 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
52920
52921 * normal/arg.c (grub_arg_show_help): Do not show the bug report
52922 address.
52923
52924 * commands/help.c (grub_cmd_help): Do not print newlines after
52925 the last command in print_command_help.
52926
52927 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
52928
52929 * commands/default.h: New file.
52930 * commands/timeout.h: Likewise.
52931 * normal/context.c: Likewise.
52932
52933 * util/misc.c: Do not include sys/times.h.
52934 Include sys/time.h and grub/machine/time.h.
52935 (grub_get_rtc): Rewritten with gettimeofday.
52936
52937 * util/grub-emu.c (main): Call grub_default_init and
52938 grub_timeout_init before grub_normal_init, and call
52939 grub_timeout_fini and grub_default_fini after grub_main.
52940
52941 * util/console.c (grub_ncurses_checkkey): Return the read
52942 character or -1.
52943
52944 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
52945 timeouts.
52946
52947 * normal/main.c (read_config_file): Push MENU. If this fails,
52948 print an error and wait for a user input.
52949 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
52950 If a menu is empty or an error occurs, pop MENU.
52951 (grub_normal_execute): Pop and free MENU after grub_menu_run
52952 returns.
52953
52954 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
52955
52956 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
52957 include time.h.
52958 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
52959 without GRUB_UTIL.
52960 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
52961 time.h.
52962 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
52963 without GRUB_UTIL.
52964
52965 * include/grub/normal.h (struct grub_menu_list): New struct.
52966 (grub_menu_list_t): New type.
52967 (struct grub_context): New struct.
52968 (grub_context_t): New type.
52969 (grub_register_command): Got rid of EXPORT_FUNC.
52970 (grub_unregister_command): Likewise.
52971 (grub_context_get): New prototype.
52972 (grub_context_get_current_menu): Likewise.
52973 (grub_context_push_menu): Likewise.
52974 (grub_context_pop_menu): Likewise.
52975 [GRUB_UTIL] (grub_default_init): Likewise.
52976 [GRUB_UTIL] (grub_default_fini): Likewise.
52977 [GRUB_UTIL] (grub_timeout_init): Likewise.
52978 [GRUB_UTIL] (grub_timeout_fini): Likewise.
52979
52980 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
52981 commands/timeout.c and normal/context.c.
52982 (pkgdata_MODULES): Added default.mod and timeout.mod.
52983 (normal_mod_SOURCES): Added normal/context.c.
52984 (default_mod_SOURCES): New variable.
52985 (default_mod_CFLAGS): Likewise.
52986 (timeout_mod_SOURCES): Likewise.
52987 (timeout_mod_CFLAGS): Likewise.
52988 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
52989 conf/i386-pc.rmk.
52990 (pkgdata_MODULES): Added default.mod and timeout.mod.
52991 (normal_mod_SOURCES): Added normal/context.c.
52992 (default_mod_SOURCES): New variable.
52993 (default_mod_CFLAGS): Likewise.
52994 (timeout_mod_SOURCES): Likewise.
52995 (timeout_mod_CFLAGS): Likewise.
52996
52997 * Makefile.in (all-local): Added $(MKFILES).
52998
52999 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
53000
53001 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
53002 (grub_emu_SOURCES): Likewise.
53003 (pkgdata_MODULES): Add `sun.mod'.
53004 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53005 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53006 `partmap/sun.c'.
53007 (pkgdata_MODULES): Add `sun.mod'.
53008 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53009 * include/grub/partition.h (grub_sun_partition_map_init): New
53010 prototype.
53011 (grub_sun_partition_map_fini): Likewise.
53012 * partmap/sun.c: New file.
53013 * util/grub-emu.c (main): Initialize and de-initialize the sun
53014 partitionmap support.
53015
53016 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
53017
53018 This implements an Emacs-like menu entry editor.
53019
53020 * normal/menu_entry.c: New file.
53021
53022 * util/console.c (grub_ncurses_putchar): Translate some Unicode
53023 characters to ASCII.
53024 (saved_char): New variable.
53025 (grub_ncurses_checkkey): Rewritten completely.
53026 (grub_ncurses_getkey): Likewise.
53027 (grub_ncurses_init): Call raw instead of cbreak.
53028
53029 * normal/menu.c (print_entry): Do not put a space.
53030 (init_page): Renamed to ...
53031 (grub_menu_init_page): ... this. All callers changed.
53032 (edit_menu_entry): Removed.
53033 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
53034
53035 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
53036
53037 * kern/misc.c (grub_vprintf): Call grub_refresh.
53038
53039 * normal/menu.c (DISP_LEFT): Renamed to ...
53040 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
53041 * normal/menu.c (DISP_UP): Renamed to ...
53042 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
53043 * normal/menu.c (DISP_RIGHT): Renamed to ...
53044 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
53045 * normal/menu.c (DISP_DOWN): Renamed to ...
53046 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
53047 * normal/menu.c (DISP_HLINE): Renamed to ...
53048 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
53049 * normal/menu.c (DISP_VLINE): Renamed to ...
53050 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
53051 * normal/menu.c (DISP_UL): Renamed to ...
53052 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
53053 * normal/menu.c (DISP_UR): Renamed to ...
53054 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
53055 * normal/menu.c (DISP_LL): Renamed to ...
53056 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
53057 * normal/menu.c (DISP_LR): Renamed to ...
53058 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
53059 * normal/menu.c (TERM_WIDTH): Renamed to ...
53060 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
53061 * normal/menu.c (TERM_HEIGHT): Renamed to ...
53062 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
53063 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
53064 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
53065 * normal/menu.c (TERM_MARGIN): Renamed to ...
53066 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
53067 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
53068 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
53069 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
53070 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
53071 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
53072 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
53073 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
53074 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
53075 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
53076 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
53077 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
53078 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
53079 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
53080 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
53081 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
53082 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
53083 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
53084 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
53085 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
53086 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
53087 All callers changed.
53088
53089 * include/grub/normal.h: New prototype.
53090
53091 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53092 normal/menu_entry.c.
53093 (normal_mod_SOURCES): Likewise.
53094 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
53095 (normal_mod_SOURCES): Likewise.
53096
53097 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
53098
53099 * include/grub/normal.h (grub_halt_init): New prototype.
53100 (grub_halt_fini): Likewise.
53101 (grub_reboot_init): Likewise.
53102 (grub_reboot_fini): Likewise.
53103
53104 * util/grub-emu.c: Include signal.h.
53105 (main_env): New global variable.
53106 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
53107 catch C-c.
53108 (grub_machine_fini): New function.
53109 (main): Call grub_halt_init and grub_reboot_init before
53110 grub_main, and grub_reboot_fini and grub_halt_fini after it.
53111 Call setjmp with MAIN_ENV to go back afterwards.
53112 Call grub_machine_fini right before return.
53113
53114 * include/grub/util/misc.h: Include setjmp.h.
53115 (main_env): New prototype.
53116
53117 * include/grub/kernel.h (grub_machine_fini): New prototype.
53118 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
53119 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
53120
53121 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
53122 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
53123 * term/i386/pc/console.c (grub_console_fini): Likewise.
53124
53125 * util/i386/pc/misc.c: New file.
53126
53127 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53128 util/i386/pc/misc.c, commands/i386/pc/halt.c and
53129 commands/i386/pc/reboot.c.
53130
53131 2005-02-14 Guillem Jover <guillem@hadrons.org>
53132
53133 * include/grub/dl.h (grub_dl_check_header): New prototype.
53134 (grub_arch_dl_check_header): Change return type to grub_err_t,
53135 remove size parameter and export function. Update all callers.
53136 * kern/dl.c (grub_dl_check_header): New function.
53137 (grub_dl_load_core): Use `grub_dl_check_header' instead of
53138 `grub_arch_dl_check_header'. Check ELF type. Check if sections
53139 are inside the core.
53140 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
53141 independent ELF header checks.
53142 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53143 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
53144 `grub_dl_check_header' instead of explicit checks. Check for the
53145 ELF type.
53146 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
53147 `grub_dl_check_header' instead of explicit checks. Remove arch
53148 specific ELF header checks.
53149
53150 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
53151 argument SIZE.
53152
53153 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
53154
53155 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
53156 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
53157
53158 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
53159
53160 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
53161 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
53162 (part_map_iterate): Clear `grub_errno' and return 0 if
53163 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
53164 * partmap/amiga.c (amiga_partition_map_iterate): Return
53165 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
53166 * partmap/apple.c (apple_partition_map_iterate): Likewise.
53167
53168 2005-02-01 Guillem Jover <guillem@hadrons.org>
53169
53170 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
53171 help info.
53172
53173 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53174
53175 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
53176 Removed prototype.
53177 (grub_rescue_cmd_linux): New prototype.
53178 (grub_rescue_cmd_initrd): Likewise.
53179 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
53180 `bi_rec'.
53181 (grub_linux_release_mem): Release the memory for the initrd.
53182 (grub_load_linux): Renamed from this...
53183 (grub_rescue_cmd_linux): ...To this. Changed all callers.
53184 Changed `entry' not to be static. Loop over memory regions to
53185 find another one when the default fails.
53186 (grub_rescue_cmd_initrd): New function.
53187 (grub_linux_init): Remove function.
53188 (grub_linux_fini): Likewise.
53189 (GRUB_MOD_INIT): Register `initrd'.
53190 (GRUB_MOD_FINI): Unregister `initrd'.
53191 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
53192 Function removed.
53193 (grub_linux_normal_fini): Likewise.
53194 (GRUB_MOD_INIT): Register `initrd'.
53195 (GRUB_MOD_FINI): Unregister `initrd'.
53196
53197 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53198
53199 * commands/help.c: New file.
53200 * normal/arg.c (show_help): Renamed to...
53201 (grub_arg_show_help): ... this.
53202 * commands/i386/pc/halt.c: New file.
53203 * commands/i386/pc/reboot.c: Likewise.
53204 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
53205 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
53206 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
53207 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
53208 variables.
53209 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53210 `commands/help.c'.
53211 (pkgdata_MODULES): Add `help.mod'.
53212 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
53213 * grub/i386/pc/init.h (grub_reboot): New prototype.
53214 (grub_halt): Likewise.
53215 * include/grub/normal.h (grub_arg_show_help): New prototype.
53216 (grub_help_init): Likewise.
53217 (grub_help_fini): Likewise.
53218 * util/grub-emu.c (main): Initialize and deinitialize the help
53219 command.
53220
53221 * normal/cmdline.c (grub_cmdline_get): Doc fix.
53222
53223 * normal/command.c (grub_command_init): Fixed the description of
53224 the `set' and `unset' commands.
53225
53226 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53227
53228 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
53229 function.
53230 * commands/ieee1275/halt.c: New file.
53231 * commands/ieee1275/reboot.c: Likewise.
53232 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
53233 `__attribute__ ((unused))'. Some GCS related fixed.
53234 (grub_suspend_init) [GRUB_UTIL]: Function removed.
53235 (grub_suspend_fini): Likewise.
53236 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
53237 and `halt.mod'.
53238 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
53239 (halt_mod_CFLAGS): New variables.
53240 * include/grub/powerpc/ieee1275/ieee1275.h
53241 (grub_ieee1275_interpret): New prototype.
53242
53243 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
53244
53245 * include/grub/misc.h (memmove): New prototype.
53246 (memcpy): Likewise.
53247
53248 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
53249
53250 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
53251 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
53252
53253 2005-01-22 Marco Gerards <metgerards@student.han.nl>
53254
53255 * kern/misc.c (grub_strndup): Function rewritten.
53256
53257 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
53258
53259 * normal/menu.c (TERM_WIDTH): Macro redefined.
53260 (TERM_TOP_BORDER_Y): Likewise.
53261 (draw_border): Replaced while-loop by a for-loop. Make the number
53262 of lines consistent with the number of lines displayed in
53263 print_entries. Added a margin below the rectangle.
53264 (print_entry): Make the entry fit in the rectangle.
53265 (print_entries): Display the scroll arrows next to the right
53266 border.
53267
53268 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53269
53270 * fs/minix.c (grub_minix_find_file): Reserve more space for
53271 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
53272 `grub_strncpy' to copy `path' into it.
53273
53274 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53275
53276 Add the loopback device, a device via which files can be accessed
53277 as devices.
53278
53279 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
53280 (pkgdata_MODULES): Add loopback.mod.
53281 (loopback_mod_SOURCES): New variable.
53282 (loopback_mod_CFLAGS): Likewise.
53283 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53284 `disk/loopback.c'.
53285 (pkgdata_MODULES): Add loopback.mod.
53286 (loopback_mod_SOURCES): New variable.
53287 (loopback_mod_CFLAGS): Likewise.
53288 * disk/loopback.c: new file.
53289 * include/grub/normal.h (grub_loop_init): New prototype.
53290 (grub_loop_fini): New prototype.
53291 * util/grub-emu.c (main): Initialize and de-initialize loopback
53292 support.
53293 * include/grub/disk.h (grub_disk_dev_id): Add
53294 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
53295
53296 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
53297
53298 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
53299 function.
53300 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
53301 (suspend_mod_SOURCES): New variable.
53302 (suspend_mod_CFLAGS): Likewise.
53303 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
53304 New prototype.
53305 * commands/ieee1275/suspend.c: New file.
53306
53307 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
53308
53309 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
53310 ((unused))' to `__attribute__ ((used))'.
53311 (GRUB_MOD_FINI): Likewise.
53312 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
53313 * genmk.rb (PModule): Assign space to common symbols when linking
53314 modules.
53315
53316 2005-01-20 Marco Gerards <metgerards@student.han.nl>
53317
53318 * include/grub/mm.h (grub_mm_init_region): Change the type of the
53319 `unsigned' arguments to `grub_size_t'.
53320 (grub_malloc): Likewise.
53321 (grub_realloc): Likewise.
53322 (grub_memalign): Likewise.
53323 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
53324 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53325 * util/misc.c (grub_malloc): Likewise.
53326 (grub_realloc): Likewise.
53327 * kern/mm.c (get_header_from_pointer): Change the casts to
53328 `unsigned' into a cast to `grub_size_t'.
53329
53330 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
53331 point to `currnode' when `currnode' is changed.
53332
53333 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
53334 Schottelius <nico-linux@schottelius.org>.
53335
53336 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
53337
53338 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
53339 (note_path): Remove variable.
53340 (GRUB_IEEE1275_NOTE_NAME): New macro.
53341 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
53342 (grub_ieee1275_note_hdr): New structure.
53343 (grub_ieee1275_note_desc): Likewise.
53344 (grub_ieee1275_note): Likewise.
53345 (load_note): Remove `dir' argument. All callers updated. Remove
53346 `note_img' and `path'. Do not load a file from `note_path'.
53347 Initialize a struct grub_ieee1275_note and write that to `out'.
53348 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
53349
53350 2005-01-05 Marco Gerards <metgerards@student.han.nl>
53351
53352 * util/misc.c (grub_util_read_image): Revert last change. It
53353 called `grub_util_read_at', which seeks from the beginning of the
53354 file.
53355
53356 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
53357
53358 * TODO: Add note about endianness in grub-mkimage.
53359 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
53360 section.
53361 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
53362 (grub_mkimage_SOURCES): New target.
53363 * include/grub/kernel.h (grub_start_addr): Remove variable.
53364 (grub_end_addr): Likewise.
53365 (grub_total_module_size): Likewise.
53366 (grub_kernel_image_size): Likewise.
53367 (GRUB_MODULE_MAGIC): New constant.
53368 (grub_module_info): New structure.
53369 (grub_arch_modules_addr): New prototype.
53370 (grub_get_end_addr): Remove prototype.
53371 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
53372 * include/grub/powerpc/ieee1275/kernel.h: New file.
53373 * include/grub/util/misc.h (grub_util_get_fp_size): New
53374 prototype.
53375 (grub_util_read_at): Likewise.
53376 (grub_util_write_image_at): Likewise.
53377 * kern/main.c (grub_get_end_addr): Remove function.
53378 (grub_load_modules): Call grub_arch_modules_addr instead of using
53379 grub_end_addr. Look for a grub_module_info struct in memory. Use
53380 the grub_module_info fields instead of calling grub_get_end_addr
53381 as loop conditions. Move grub_add_unused_region code here.
53382 (grub_add_unused_region): Remove function.
53383 * kern/i386/pc/init.c: Include grub/cache.h.
53384 (grub_machine_init): Remove call to grub_get_end_addr. Remove
53385 one call to add_mem_region.
53386 (grub_arch_modules_addr): New function.
53387 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
53388 (grub_total_module_size): Likewise.
53389 Include grub/machine/kernel.h.
53390 (grub_arch_modules_addr): New function.
53391 * util/grub-emu.c (grub_end_addr): Remove variable.
53392 (grub_total_module_size): Likewise.
53393 (grub_arch_modules_addr): New function.
53394 * util/misc.c: Include unistd.h.
53395 (grub_util_get_fp_size): New function.
53396 (grub_util_read_at): Likewise.
53397 (grub_util_write_image_at): Likewise.
53398 (grub_util_read_image): Call grub_util_read_at.
53399 (grub_util_write_image): Call grub_util_write_image_at.
53400 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
53401 additional memory in kernel_img for a struct grub_module_info.
53402 Fill in that grub_module_info.
53403 * util/powerpc/ieee1275/grub-mkimage.c: New file.
53404
53405 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53406
53407 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
53408 New function.
53409 * include/grub/powerpc/ieee1275/ieee1275.h
53410 (grub_ieee1275_milliseconds): New prototype.
53411 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
53412 Change to 1000.
53413 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
53414 grub_ieee1275_milliseconds.
53415
53416 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53417
53418 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
53419 variable.
53420 (find_options): New function.
53421 (cmain): Call find_options.
53422 * include/grub/powerpc/ieee1275/ieee1275.h
53423 (grub_ieee1275_realmode): New extern variable.
53424 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
53425 grub_map if grub_ieee1275_realmode is false.
53426
53427 2004-12-29 Marco Gerards <metgerards@student.han.nl>
53428
53429 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
53430 lines are inserted and make it work like readline. Reported by
53431 Vincent Pelletier <subdino2004@yahoo.fr>.
53432
53433 2004-12-28 Marco Gerards <metgerards@student.han.nl>
53434
53435 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
53436
53437 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
53438 `kern/powerpc/cache.S'.
53439
53440 2004-12-27 Marco Gerards <metgerards@student.han.nl>
53441
53442 * genmk.rb: Handle the `Program' class in the main loop. Written
53443 by Johan Rydberg <jrydberg@gnu.org>.
53444 (Program): New class.
53445 (programs): New variable.
53446 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
53447 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
53448 instead of "grub/kernel.h". Include <grub/machine/init.h>.
53449 (help_arch): Function removed.
53450 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
53451 `powerpc/libgcc.h' and `loader.h'.
53452 (pkgdata_PROGRAMS): New variable.
53453 (sbin_UTILITIES): Variable removed.
53454 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
53455 (grubof_SOURCES): Variable re-defined so it only includes the
53456 core functionality.
53457 (grubof_CFLAGS): Remove `-DGRUBOF'.
53458 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
53459 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
53460 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
53461 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
53462 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
53463 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
53464 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
53465 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
53466 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
53467 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
53468 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
53469 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
53470 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
53471 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
53472 (pc_mod_CFLAGS): New variables.
53473 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
53474 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
53475 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
53476 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
53477 Moved from here...
53478 * include/grub/i386/pc/init.h (grub_os_area_addr)
53479 (rub_os_area_size): ... to here.
53480 * include/grub/powerpc/ieee1275/ieee1275.h
53481 (grub_ieee1275_entry_fn): Export symbol.
53482 * include/grub/powerpc/ieee1275/init.h: New file.
53483 * include/grub/powerpc/libgcc.h: Likewise.
53484 * include/grub/cache.h: Likewise.
53485 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
53486 <hollis@penguinppc.org>.
53487 * kern/dl.c: Include <grub/cache.h>.
53488 (grub_dl_flush_cache): New function.
53489 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
53490 for this module.
53491 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
53492 (grub_console_init): Removed prototypes.
53493 (grub_machine_init): Don't initialize the modules anymore.
53494 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
53495 static.
53496 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
53497 Macro undef removed.
53498 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
53499 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
53500 relocation `R_PPC_REL32'. Return an error when the relocation is
53501 unknown.
53502 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
53503 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
53504 * util/misc.c (grub_arch_sync_caches): Likewise.
53505
53506 2004-12-19 Marco Gerards <metgerards@student.han.nl>
53507
53508 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
53509 `symlist.c', add `grubof_symlist.c'.
53510 (symlist.c): Variable removed.
53511 (grubof_HEADERS): Variable added.
53512 (grubof_symlist.c): New target.
53513 (kernel_syms.lst): Use `grubof_HEADERS' instead of
53514 `kernel_img_HEADERS'.
53515 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
53516 * kern/powerpc/dl.c: New file.
53517 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
53518 Function removed.
53519 (grub_arch_dl_relocate_symbols): Likewise.
53520 (grub_register_exported_symbols): Likewise.
53521
53522 2004-12-13 Marco Gerards <metgerards@student.han.nl>
53523
53524 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
53525 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
53526 to fail instead. Reported by Vincent Pelletier
53527 <subdino2004@yahoo.fr>.
53528
53529 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
53530 it is not allocated. Reported by Vincent Pelletier
53531 <subdino2004@yahoo.fr>.
53532
53533 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
53534 output so the output looks better.
53535
53536 2004-12-04 Marco Gerards <metgerards@student.han.nl>
53537
53538 Modulize the partition map support and add support for the amiga
53539 partition map.
53540
53541 * commands/ls.c: Include <grub/partition.h> instead of
53542 <grub/machine/partition.h>.
53543 * kern/disk.c: Likewise.
53544 * kern/rescue.c: Likewise.
53545 * loader/i386/pc/chainloader.c: Likewise.
53546 * normal/cmdline.c: Likewise.
53547 * kern/powerpc/ieee1275/init.c: Likewise.
53548 (grub_machine_init): Call `grub_pc_partition_map_init',
53549 `grub_amiga_partition_map_init' and
53550 `grub_apple_partition_map_init'.
53551 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
53552 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
53553 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
53554 `partition.h' and `pc_partition.h'.
53555 (grub_setup_SOURCES): Remove
53556 `disk/i386/pc/partition.c'. Add `kern/partition.c',
53557 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53558 (grub_emu_SOURCES): Likewise.
53559 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
53560 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
53561 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
53562 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53563 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
53564 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53565 (grubof_SOURCES): Likewise.
53566 * disk/i386/pc/partition.c: File removed.
53567 * disk/powerpc/ieee1275/partition.c: Likewise.
53568 * include/grub/powerpc/ieee1275/partition.h: Likewise.
53569 * include/grub/i386/pc/partition.h: Likewise.
53570 * kern/partition.c: New file.
53571 * partmap/amiga.c: Likewise.
53572 * partmap/apple.c: Likewise.
53573 * partmap/pc.c: Likewise.
53574 * include/grub/partition.h: Likewise..
53575 * include/grub/pc_partition.h: Likewise.
53576 * util/grub-emu.c: Include <grub/partition.h> instead of
53577 <grub/machine/partition.h>.
53578 (main): Call `grub_pc_partition_map_init',
53579 `grub_amiga_partition_map_init' and
53580 `grub_apple_partition_map_init' and deinitialize afterwards.
53581 * util/i386/pc/biosdisk.c: Include `#include
53582 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53583 `<grub/machine/partition.h>'.
53584 * util/i386/pc/grub-setup.c: Likewise.
53585 * util/i386/pc/biosdisk.c: Likewise.
53586 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
53587 partition information in case of a PC partition.
53588 * util/i386/pc/grub-setup.c: Include `#include
53589 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53590 `<grub/machine/partition.h>'.
53591 (setup): Only access the PC specific partition information in case
53592 of a PC partition.
53593
53594 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
53595
53596 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
53597 (grub_longjmp): Likewise.
53598 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
53599 20.
53600 * normal/powerpc/setjmp.S: New file.
53601 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
53602 `normal/powerpc/setjmp.S'.
53603 (grubof_CFLAGS): Add `-DGRUBOF'.
53604 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
53605 [GRUB_UTIL && !GRUBOF].
53606
53607 2004-11-16 Marco Gerards <metgerards@student.han.nl>
53608
53609 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
53610 property named `name'. Correctly handle the error returned by
53611 `grub_ieee1275_finddevice' if a device can not be opened.
53612
53613 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
53614
53615 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
53616 `actual' for negativity.
53617 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53618 kern/fshelp.c.
53619
53620 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53621
53622 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
53623 (PAGE_OFFSET): New macro.
53624 (CRTC_ADDR_PORT): Likewise.
53625 (CRTC_DATA_PORT): Likewise.
53626 (START_ADDR_HIGH_REGISTER): Likewise.
53627 (START_ADDR_LOW_REGISTER): Likewise.
53628 (GRAPHICS_ADDR_PORT): Likewise.
53629 (GRAPHICS_DATA_PORT): Likewise.
53630 (READ_MAP_REGISTER): Likewise.
53631 (INPUT_STATUS1_REGISTER): Likewise.
53632 (INPUT_STATUS1_VERTR_BIT): Likewise.
53633 (page): New variable.
53634 (wait_vretrace): New function.
53635 (set_read_map): Likewise.
53636 (set_start_address): Likewise.
53637 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
53638 the right page.
53639 (check_vga_mem): Take the page into account.
53640 (write_char): Likewise.
53641 (write_cursor): Likewise.
53642 (scroll_up): Likewise. Copy the page to the page that is not
53643 shown and switch between both pages.
53644 (grub_vga_putchar): Fix off by one error.
53645 (grub_vga_cls): Wait for the vertical retrace. Take the page into
53646 account.
53647
53648 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53649
53650 Add support for iso9660 (including rockridge).
53651
53652 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53653 (iso9660_mod_SOURCES): New variable.
53654 (iso9660_mod_CFLAGS): Likewise.
53655 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53656 * include/grub/fs.h (grub_iso9660_init): New prototype.
53657 * util/grub-emu.c (main): Call `grub_iso9660_init'.
53658 * fs/iso9660.c: New file.
53659
53660 * include/grub/misc.h (grub_strncat): New prototype.
53661 * kern/misc.c (grub_strncat): New function.
53662
53663 * fs/hfs.c (grub_hfs_mount): Translate the error
53664 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
53665 * fs/jfs.c (grub_jfs_mount): Likewise.
53666 * fs/ufs.c (grub_ufs_mount): Likewise.
53667
53668 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
53669
53670 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
53671 which initialized BAT registers.
53672 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
53673 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53674 Move from here...
53675 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
53676 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53677 ... to here.
53678 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
53679 (grub_mapclaim): Likewise.
53680 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
53681 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
53682 hand.
53683
53684 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
53685
53686 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
53687 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
53688 -ffreestanding and -msoft-float.
53689
53690 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
53691
53692 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
53693 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
53694 set in grub_ieee1275_flags.
53695
53696 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
53697
53698 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
53699 prototype.
53700 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
53701 grub_console_init first.
53702 Change the memory range used for grub_ieee1275_claim and
53703 grub_mm_init_region.
53704 Print an error message if the claim fails.
53705 Include <grub/misc.h>.
53706
53707 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
53708
53709 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
53710 Call grub_children_iterate for device nodes of type `scsi',
53711 `ide', or `ata'.
53712 (grub_ofdisk_open): Remove manual device alias resolution.
53713 Fix memory leak when device cannot be opened.
53714 * include/grub/powerpc/ieee1275/ieee1275.h
53715 (grub_children_iterate): New prototype.
53716 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
53717 New function.
53718 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53719 Return -1 if args.size was -1.
53720
53721 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53722
53723 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
53724 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
53725 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
53726 Open Firmware's memory for it; claim memory from _start to _end.
53727 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
53728 (_end): New extern.
53729 (_start): Zero BSS from __bss_start to _end.
53730 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
53731 New extern.
53732 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
53733
53734 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53735
53736 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
53737 -1 if args.base was -1.
53738
53739 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
53740
53741 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
53742 escape sequence instead of a literal ^L. Also call
53743 grub_ofconsole_gotoxy.
53744
53745 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
53746
53747 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
53748 void * arguments to grub_addr_t. All callers updated. Also make
53749 the `result' argument optional.
53750 (grub_ieee1275_release): change void * arguments to grub_addr_t.
53751 All callers updated.
53752
53753 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
53754
53755 * commands/ls.c (grub_ls_list_files): Use the string following the
53756 initial ')', if present, as the filesystem path.
53757 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
53758
53759 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
53760
53761 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
53762
53763 Make the source code of the menu interface more readable.
53764
53765 * normal/menu.c: Include grub/mm.h.
53766 (TERM_WIDTH): New macro.
53767 (TERM_HEIGHT): Likewise.
53768 (TERM_INFO_HEIGHT): Likewise.
53769 (TERM_MARGIN): Likewise.
53770 (TERM_SCROLL_WIDTH): Likewise.
53771 (TERM_TOP_BORDER_Y): Likewise.
53772 (TERM_LEFT_BORDER_X): Likewise.
53773 (TERM_BORDER_WIDTH): Likewise.
53774 (TERM_MESSAGE_HEIGHT): Likewise.
53775 (TERM_BORDER_HEIGHT): Likewise.
53776 (TERM_NUM_ENTRIES): Likewise.
53777 (TERM_FIRST_ENTRY_Y): Likewise.
53778 (TERM_ENTRY_WIDTH): Likewise.
53779 (TERM_CURSOR_X): Likewise.
53780 (draw_border): Use macros instead of magic numbers.
53781 (print_entry): Likewise.
53782 (print_entries): Likewise.
53783 (run_menu): Likewise. Also, handle the key 'e'.
53784 (run_menu_entry): Ignore empty command lines.
53785 (print_message): Added a new argument EDIT. If EDIT is true,
53786 print a different message.
53787 (init_page): Likewise.
53788 (edit_menu_entry): New function. Not implemented yet.
53789
53790 2004-09-17 Marco Gerards <metgerards@student.han.nl>
53791
53792 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
53793 can be loaded from normal mode.
53794
53795 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
53796 `multiboot.mod'.
53797 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
53798 (multiboot_mod_CFLAGS): New variables.
53799 * loader/i386/pc/linux_normal.c: New file.
53800 * loader/i386/pc/multiboot_normal.c: Likewise.
53801
53802 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
53803 attribute `unused'.
53804
53805 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
53806 `fdiro' to read the mode information from instead of `diro'.
53807
53808 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
53809 looking up a symlink.
53810
53811 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
53812 macro.
53813 * normal/command.c (grub_command_execute): Don't parse the
53814 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
53815 flags of the command.
53816
53817 * normal/menu.c (grub_menu_run): Fix typo.
53818
53819 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
53820
53821 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
53822
53823 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
53824 `y + 1' instead of `y - 1'.
53825
53826 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
53827
53828 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
53829
53830 From Hollis Blanchard <hollis@penguinppc.org>:
53831 * kern/misc.c (memmove): New alias for grub_memmove.
53832 (memcmp): New alias for grub_memcmp.
53833 (memset): New alias for grub_memset.
53834 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53835 Change "int handle" to "grub_ieee1275_phandle_t handle".
53836 * include/grub/powerpc/ieee1275/ieee1275.h
53837 (grub_ieee1275_get_property): Likewise.
53838
53839 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
53840
53841 Added normal mode command `chainloader' as module chain.mod, which
53842 depends on normal.mod and _chain.mod.
53843
53844 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
53845 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
53846 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
53847 Deleted prototype.
53848 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
53849 but arguments parsing moved to ...
53850 (grub_chainloader_cmd): ... here. New function.
53851 * include/grub/i386/pc/chainloader.h: New file.
53852 * loader/i386/pc/chainloader_normal.c: Likewise.
53853
53854 2004-09-11 Marco Gerards <metgerards@student.han.nl>
53855
53856 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
53857 (grub_mkimage_LDFLAGS): Likewise.
53858 (grub_emu_SOURCES): Likewise.
53859 (kernel_img_HEADERS): Added fshelp.h.
53860 * fs/ext2.c: Include <grub/fshelp.h>.
53861 (FILETYPE_REG): New macro.
53862 (FILETYPE_INO_REG): Likewise.
53863 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
53864 Changed all users.
53865 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
53866 all users.
53867 (grub_fshelp_node): New struct.
53868 (grub_ext2_data): Added member `diropen'. Changed member `inode'
53869 to a pointer.
53870 (grub_ext2_get_file_block): Removed function.
53871 (grub_ext2_read_block): New function.
53872 (grub_ext2_read_file): Replaced parameter `data' by `node'.
53873 This function was written.
53874 (grub_ext2_mount): Read the root inode. Create a diropen struct.
53875 (grub_ext2_find_file): Removed function.
53876 (grub_ext2_read_symlink): New function.
53877 (grub_ext2_iterate_dir): Likewise.
53878 (grub_ext2_open): Rewritten.
53879 (grub_ext2_dir): Rewritten.
53880 * include/grub/fshelp.h: New file.
53881 * fs/fshelp.c: Likewise.
53882
53883 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
53884
53885 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
53886 (print_message): Add a missing newline.
53887 (run_menu): Added timeout support.
53888 (run_menu_entry): New local function.
53889 (grub_menu_run): Added support for booting.
53890
53891 * kern/loader.c (grub_loader_is_loaded): New function.
53892
53893 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
53894 (grub_get_rtc): Exported.
53895
53896 * include/grub/i386/pc/time.h: Include grub/symbol.h.
53897 (grub_get_rtc): Exported.
53898
53899 * include/grub/normal.h (struct grub_command_list): Remove
53900 constant from the member `command'.
53901
53902 * include/grub/loader.h (grub_loader_is_loaded): Declared.
53903
53904 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
53905
53906 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
53907
53908 2004-08-28 Marco Gerards <metgerards@student.han.nl>
53909
53910 Add support for the JFS filesystem.
53911
53912 * fs/jfs.c: New file.
53913 * include/grub/fs.h (grub_jfs_init): New prototype.
53914 (grub_jfs_fini): New prototype.
53915 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
53916 (grub_emu_SOURCES): Likewise.
53917 (pkgdata_MODULES): Add jfs.mod.
53918 (jfs_mod_SOURCES): New variable.
53919 (jfs_mod_CFLAGS): Likewise.
53920 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
53921 (grubof_SOURCES): Likewise.
53922 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
53923
53924 * fs/fat.c (grub_fat_find_dir): Convert the filename little
53925 endian to the host endian.
53926 (grub_fat_utf16_to_utf8): Move function from there...
53927 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
53928 the endianness of the source string anymore.
53929 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
53930
53931 2004-08-24 Marco Gerards <metgerards@student.han.nl>
53932
53933 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
53934 (grub_boot_fini) [GRUB_UTIL]: Likewise.
53935 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
53936 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
53937
53938 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
53939 (grub_hfs_iterate_dir): Make the function static. Add prototypes
53940 for `node_found' and `it_dir'.
53941 (grub_hfs_dir): Add prototype for `dir_hook'.
53942
53943 * fs/minix.c (grub_minix_get_file_block): Add prototype for
53944 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
53945 and `indir32' to silence a gcc warning.
53946
53947 * include/grub/fs.h (grub_hfs_init): New prototype.
53948 (grub_hfs_fini): Likewise.
53949
53950
53951 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
53952
53953 Each disk device has its own id now. This is useful to make use
53954 of multiple disk devices.
53955
53956 * include/grub/disk.h (grub_disk_dev_id): New enum.
53957 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
53958 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
53959
53960 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
53961 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
53962
53963 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
53964 GRUB_DISK_DEVICE_OFDISK_ID as an id.
53965
53966 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
53967 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
53968
53969 * include/grub/disk.h (struct grub_disk_dev): Added a new member
53970 "id" which is used by the cache manager.
53971
53972 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
53973 of just "GRUB".
53974
53975 2004-08-18 Marco Gerards <metgerards@student.han.nl>
53976
53977 * fs/hfs.c: New file.
53978 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
53979 (grub_emu_SOURCES): Likewise.
53980 (pkgdata_MODULES): Add hfs.mod.
53981 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
53982 (grubof_SOURCES): Likewise.
53983 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
53984
53985 * include/grub/misc.h (grub_strncasecmp): Add prototype.
53986 * kern/misc.c (grub_strncasecmp): Add function.
53987
53988 2004-08-14 Marco Gerards <metgerards@student.han.nl>
53989
53990 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
53991 with parentheses.
53992
53993 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
53994 (grub_ext2_dir): In case the directory entry type is unknown, read
53995 it from the inode.
53996
53997 2004-08-02 Peter Bruin <pjbruin@dds.nl>
53998
53999 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
54000 grub_load_linux instead of grub_rescue_cmd_linux as second
54001 argument of grub_rescue_register_command.
54002
54003 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
54004
54005 2004-07-27 Marco Gerards <metgerards@student.han.nl>
54006
54007 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
54008 function.
54009 * commands/boot.c: Remove the check for `GRUB_UTIL'.
54010 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
54011 `loader/powerpc/ieee1275/linux.c',
54012 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
54013 * include/grub/powerpc/ieee1275/ieee1275.h
54014 (grub_ieee1275_release): New prototype.
54015 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
54016 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
54017 normal, boot, linux and linux_normal.
54018 * loader/powerpc/ieee1275/linux.c: New file.
54019 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
54020
54021 2004-07-12 Marco Gerards <metgerards@student.han.nl>
54022
54023 * normal/arg.c (grub_arg_parse): Correct error handling after
54024 reallocating the argumentlist (check if `argl' is not null instead
54025 of checking if `args' is not null).
54026 * kern/mm.c (grub_realloc): Return the same pointer when using the
54027 same region, instead of returning the header address.
54028
54029 2004-07-11 Marco Gerards <metgerards@student.han.nl>
54030
54031 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
54032 one block instead of two when looking for the initial partition.
54033 (grub_partition_probe): Initialize the local variable `p' with 0.
54034 Use base 10 for the grub_strtoul call.
54035 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
54036 need for one local variable.
54037 (grub_strtoul): Don't add the new value to `num', instead of that
54038 just assign it.
54039
54040 2004-07-11 Marco Gerards <metgerards@student.han.nl>
54041
54042 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
54043 (pxeboot_img_SOURCES): New variable.
54044 (pxeboot_img_ASFLAGS): Likewise.
54045 (pxeboot_img_LDFLAGS): Likewise.
54046 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
54047 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
54048 <lode_leroy@hotmail.com>.
54049
54050 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54051
54052 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
54053 there was no input.
54054
54055 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54056
54057 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
54058 the history buffer logic.
54059
54060 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54061
54062 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
54063 (FILETYPE_INO_SYMLINK): New macros.
54064 (grub_ext2_find_file): Check if the node is a directory using the
54065 inode stat information instead of using the filetype in the
54066 dirent. Exclude the first character of an absolute symlink.
54067 (grub_ext2_dir): Mask out the filetype part of the mode member of
54068 the inode.
54069
54070 2004-05-24 Marco Gerards <metgerards@student.han.nl>
54071
54072 Add support for UFS version 1 and 2. Add support for the minix
54073 filesystem version 1 and 2, both the variants with 14 and 30 long
54074 filenames.
54075
54076 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
54077 fs/minix.c.
54078 (grub_emu_SOURCES): Likewise.
54079 (pkgdata_MODULES): Add ufs.mod and minix.mod.
54080 (ufs_mod_SOURCES): New variable.
54081 (ufs_mod_CFLAGS): Likewise.
54082 (minix_mod_SOURCES): Likewise.
54083 (minix_mod_CFLAGS): Likewise.
54084 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
54085 fs/minix.c.
54086 (grubof_SOURCES): Likewise.
54087 * fs/ufs.c: New file.
54088 * fs/minix.c: New file.
54089 * include/grub/fs.h (grub_ufs_init): New prototype.
54090 (grub_ufs_fini): Likewise.
54091 (grub_minix_init): Likewise.
54092 (grub_minix_fini): Likewise.
54093 * util/grub-emu.c (main): Initialize and deinitialize UFS and
54094 minix fs.
54095
54096 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
54097
54098 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
54099 commands/ls.c, commands/terminal.c, commands/boot.c,
54100 commands/cmp.c and commands/cat.c.
54101 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
54102
54103 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
54104 "env.h"
54105
54106 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54107
54108 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
54109 and grub_, respectively. Because the conversion is trivial and
54110 mechanical, I omit the details here. Please refer to the CVS
54111 if you need more information.
54112
54113 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54114
54115 * include/pupa: Renamed to ...
54116 * include/grub: ... this.
54117 * util/i386/pc/pupa-mkimage.c: Renamed to ...
54118 * util/i386/pc/grub-mkimage.c: ... this.
54119 * util/i386/pc/pupa-setup.c: Renamed to ...
54120 * util/i386/pc/grub-setup.c: ... this.
54121 * util/pupa-emu.c: Renamed to ...
54122 * util/grub-emu.c: ... this.
54123
54124 2004-03-29 Marco Gerards <metgerards@student.han.nl>
54125
54126 Add support for the newworld apple macintosh (PPC). This has been
54127 tested on the powerbook 2000 only. It only adds support for
54128 generic ieee1275 functions, console and disk support. This should
54129 be easy to port to other architectures with support for Open
54130 Firmware.
54131
54132 * configure.ac: Accept the powerpc as host_cpu. In the case of
54133 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
54134 specific tests are only executed while building for the i386.
54135 Inverse test for crosscompile.
54136 * genmk.rb (Utility): Allow assembler files.
54137 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
54138 * conf/powerpc-ieee1275.rmk: New file.
54139 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
54140 * disk/powerpc/ieee1275/partition.c: Likewise.
54141 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
54142 * include/pupa/powerpc/ieee1275/console.h: Likewise.
54143 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
54144 * include/pupa/powerpc/ieee1275/time.h: Likewise.
54145 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
54146 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
54147 * include/pupa/powerpc/ieee1275/loader.h
54148 * include/pupa/powerpc/setjmp.h: Likewise.
54149 * include/pupa/powerpc/types.h: Likewise.
54150 * kern/powerpc/ieee1275/init.c: Likewise.
54151 * kern/powerpc/ieee1275/openfw.c: Likewise.
54152 * term/powerpc/ieee1275/ofconsole.c: Likewise.
54153
54154 These files were written by Johan Rydberg
54155 (jrydberg@night.trouble.net) and I only modified them slightly.
54156
54157 * boot/powerpc/ieee1275/cmain.c: New file.
54158 * boot/powerpc/ieee1275/crt0.S: Likewise.
54159 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
54160 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
54161
54162 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
54163
54164 * Makefile.in: Update copyright.
54165 * genmodsrc.sh: Likewise.
54166 * gensymlist.sh: Likewise.
54167 * term/i386/pc/vga.c: Indent correctly.
54168
54169 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
54170 bugreporting address.
54171 * util/i386/pc/pupa-setup.c (usage): Likewise,
54172 (main): Call pupa_ext2_init and pupa_ext2_fini.
54173
54174 * fs/fat.c (log2): Renamed to ...
54175 (fat_log2): ... this.
54176 All callers changed.
54177 * kern/misc.c (memcpy): Alias to pupa_memmove.
54178 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
54179 lvalue cast.
54180 * util/console.c (pupa_ncurses_fini): Return 0.
54181
54182 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
54183 Move fail label here.
54184 [__GNU__]: Don't warn when using stat.
54185 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
54186 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
54187 long int. Use strtol instead of strtoul.
54188
54189 2004-03-14 Marco Gerards <metgerards@student.han.nl>
54190
54191 * commands/boot.c: New file.
54192 * commands/cat.c: Likewise.
54193 * commands/cmp.c: Likewise.
54194 * commands/ls.c: Likewise.
54195 * commands/terminal.c: Likewise.
54196 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
54197 (pupa_register_command): Changed interface to match the new
54198 argument parser.
54199 (pupa_command_execute): Changed (almost rewritten) so it uses
54200 pupa_split_command. Added support for setting variables using the
54201 syntax `foo=bar'.
54202 (rescue_command): Changed to work with the new argument parser.
54203 (terminal_command): Moved from here to commands/terminal.c.
54204 (set_command): New function.
54205 (unset_command): New function.
54206 (insmod_command): New function.
54207 (rmmod_command): New function.
54208 (lsmod_command): New function.
54209 (pupa_command_init): Don't initialize the command terminal
54210 anymore. Initialize the commands set, unset, insmod, rmmod and
54211 lsmod.
54212 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
54213 (kernel_img_HEADERS): Add arg.h and env.h.
54214 (pupa_mkimage_LDFLAGS): Add kern/env.c.
54215 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
54216 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
54217 normal/arg.c.
54218 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
54219 terminal.mod.
54220 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
54221 (boot_mod_SOURCES): New variable.
54222 (terminal_mod_SOURCES): Likewise.
54223 (ls_mod_SOURCES): Likewise.
54224 (cmp_mod_SOURCES): Likewise.
54225 (cat_mod_SOURCES): Likewise.
54226
54227 * normal/arg.c: New file.
54228 * kern/env.c: Likewise.
54229 * include/pupa/arg.h: Likewise.
54230 * include/pupa/env.h: Likewise.
54231 * font/manager.c (font_command): Changed to match argument parsing
54232 interface changes.
54233 (PUPA_MOD_INIT): Likewise.
54234 * hello/hello.c (pupa_cmd_hello): Likewise.
54235 (PUPA_MOD_INIT): Likewise.
54236 * include/pupa/disk.h: Include <pupa/device.h>.
54237 (pupa_print_partinfo): New prototype.
54238 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
54239 (pupa_dl_get_prefix): Likewise.
54240 * include/pupa/misc.h: Include <pupa/err.h>.
54241 (pupa_isgraph): New prototype.
54242 (pupa_isdigit): Likewise.
54243 (pupa_split_cmdline): Likewise.
54244 * include/pupa/normal.h: Include <pupa/arg.h>.
54245 (pupa_command): Changed the prototype of the member `func' to
54246 match the argument parsing interface. Added member `options'.
54247 (pupa_register_command): Updated to match function.
54248 (pupa_arg_parse): New prototype.
54249 (pupa_hello_init) [PUPA_UTIL]: New prototype.
54250 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
54251 (pupa_ls_init) [PUPA_UTIL]: Likewise.
54252 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
54253 (pupa_cat_init) [PUPA_UTIL]: Likewise.
54254 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
54255 (pupa_boot_init) [PUPA_UTIL]: Likewise.
54256 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
54257 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
54258 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
54259 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
54260 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
54261 * kern/disk.c: Include <pupa/file.h>.
54262 (pupa_print_partinfo): New function.
54263 * kern/dl.c: Include <pupa/env.h>.
54264 (pupa_dl_dir): Variable removed.
54265 (pupa_dl_load): Use the environment variable `prefix' instead of
54266 the variable pupa_dl_dir.
54267 (pupa_dl_set_prefix): Function removed.
54268 (pupa_dl_get_prefix): Likewise.
54269 * kern/i386/pc/init.c: Include <pupa/env.h>.
54270 (pupa_machine_init): Use the environment variable `prefix' instead of
54271 using pupa_dl_set_prefix to set the prefix.
54272 * kern/main.c: Include <pupa/env.h>.
54273 (pupa_set_root_dev): Use the environment variable `prefix' instead of
54274 using pupa_dl_get_prefix to get the prefix.
54275 * kern/misc.c: Include <pupa/env.h>.
54276 (pupa_isdigit): New function.
54277 (pupa_isgraph): Likewise.
54278 (pupa_ftoa): Likewise.
54279 (pupa_vsprintf): Added support for printing values of the type
54280 `double'. Make it possible to format variable output when using
54281 formatting like `%1.2%f'.
54282 (pupa_split_cmdline): New function.
54283 * kern/rescue.c: Include <pupa/env.h>.
54284 (next_word): Removed function.
54285 (pupa_rescue_cmd_prefix): Likewise.
54286 (pupa_rescue_cmd_set): New function.
54287 (pupa_rescue_cmd_unset): New function.
54288 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
54289 split the command line instead of splitting it here. Added
54290 support for setting variables using the syntax `foo=bar'. Don't
54291 initialize the prefix command anymore. Initialized the set and
54292 unset commands.
54293 * normal/cmdline.c: Include <pupa/env.h>.
54294 (pupa_tab_complete): Added prototypes for print_simple_completion,
54295 print_partition_completion, add_completion, iterate_commands,
54296 iterate_dev, iterate_part and iterate_dir. Moved code to print
54297 partition information from here to kern/disk.c.
54298 (pupa_cmdline_run): Don't check if the function exists anymore.
54299 * normal/main.c: Include <pupa/env.h>.
54300 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
54301 instead of using pupa_dl_get_prefix to get the prefix.
54302 * term/i386/pc/vga.c: Include <pupa/arg.h>.
54303 (check_vga_mem): Cast pointers to `void *' to silence a gcc
54304 warning.
54305 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
54306 (pupa_vga_setcolor): Declare unused variables with `__attribute__
54307 ((unused))' to silence a gcc warning.
54308 (pupa_vga_setcolor): Likewise.
54309 (debug_command): Changed to match argument parsing
54310 interface changes.
54311 * util/pupa-emu.c: Include <pupa/env.h>.
54312 (options): Added 0's for unused fields to silence a gcc warning.
54313 (argp): Likewise.
54314 (main): Use the environment variable `prefix' instead of using
54315 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
54316 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
54317 and terminal.
54318
54319 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
54320 * util/misc.c: Include <malloc.h>.
54321 (pupa_malloc): Rewritten so errors are correctly reported.
54322 (pupa_realloc): Likewise.
54323 (pupa_memalign): Likewise.
54324 (pupa_mm_init_region): Declare unused variables with
54325 `__attribute__ ((unused))' to silence a gcc warning.
54326 * normal/i386/setjmp.S: Remove tab at the end of the file to
54327 silence a gcc warning.
54328 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
54329 variables with `__attribute__ ((unused))' to silence a gcc
54330 warning.
54331 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
54332 local variable i unsigned to silence a gcc warning.
54333
54334 * kern/term.c: Include <pupa/misc.h>.
54335 (pupa_more_lines): New variable.
54336 (pupa_more): Likewise.
54337 (pupa_putcode): When the pager is active pause at the end of every
54338 screen.
54339 (pupa_set_more): New function.
54340 * include/pupa/term.h (pupa_set_more): New prototype.
54341
54342
54343 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
54344
54345 Now this project is GRUB 2 rather than PUPA. The location of
54346 the CVS repository was moved to GRUB's.
54347
54348 * configure.ac: Use bug-grub as the reporting address.
54349 Use GRUB instead of PUPA.
54350 Change the version number to 1.90.
54351
54352 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
54353
54354 * genkernsyms.sh: Updated copyright information.
54355 * genmk.rb: Likewise.
54356 * genmodsrc.sh: Likewise.
54357 * gensymlist.sh: Likewise.
54358 * boot/i386/pc/boot.S: Likewise.
54359 * boot/i386/pc/diskboot.S: Likewise.
54360 * disk/i386/pc/biosdisk.c: Likewise.
54361 * disk/i386/pc/partition.c: Likewise.
54362 * font/manager.c: Likewise.
54363 * fs/ext2.c: Likewise.
54364 * fs/fat.c: Likewise.
54365 * include/pupa/boot.h: Likewise.
54366 * include/pupa/device.h: Likewise.
54367 * include/pupa/disk.h: Likewise.
54368 * include/pupa/dl.h: Likewise.
54369 * include/pupa/elf.h: Likewise.
54370 * include/pupa/err.h: Likewise.
54371 * include/pupa/file.h: Likewise.
54372 * include/pupa/font.h: Likewise.
54373 * include/pupa/fs.h: Likewise.
54374 * include/pupa/kernel.h: Likewise.
54375 * include/pupa/loader.h: Likewise.
54376 * include/pupa/misc.h: Likewise.
54377 * include/pupa/mm.h: Likewise.
54378 * include/pupa/net.h: Likewise.
54379 * include/pupa/normal.h: Likewise.
54380 * include/pupa/rescue.h: Likewise.
54381 * include/pupa/setjmp.h: Likewise.
54382 * include/pupa/symbol.h: Likewise.
54383 * include/pupa/term.h: Likewise.
54384 * include/pupa/types.h: Likewise.
54385 * include/pupa/i386/setjmp.h: Likewise.
54386 * include/pupa/i386/types.h: Likewise.
54387 * include/pupa/i386/pc/biosdisk.h: Likewise.
54388 * include/pupa/i386/pc/boot.h: Likewise.
54389 * include/pupa/i386/pc/console.h: Likewise.
54390 * include/pupa/i386/pc/init.h: Likewise.
54391 * include/pupa/i386/pc/kernel.h: Likewise.
54392 * include/pupa/i386/pc/linux.h: Likewise.
54393 * include/pupa/i386/pc/loader.h: Likewise.
54394 * include/pupa/i386/pc/memory.h: Likewise.
54395 * include/pupa/i386/pc/multiboot.h: Likewise.
54396 * include/pupa/i386/pc/partition.h: Likewise.
54397 * include/pupa/i386/pc/time.h: Likewise.
54398 * include/pupa/i386/pc/vga.h: Likewise.
54399 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
54400 * include/pupa/util/getroot.h: Likewise.
54401 * include/pupa/util/misc.h: Likewise.
54402 * include/pupa/util/resolve.h: Likewise.
54403 * kern/device.c: Likewise.
54404 * kern/disk.c: Likewise.
54405 * kern/dl.c: Likewise.
54406 * kern/err.c: Likewise.
54407 * kern/file.c: Likewise.
54408 * kern/fs.c: Likewise.
54409 * kern/loader.c: Likewise.
54410 * kern/main.c: Likewise.
54411 * kern/misc.c: Likewise.
54412 * kern/mm.c: Likewise.
54413 * kern/rescue.c: Likewise.
54414 * kern/term.c: Likewise.
54415 * kern/i386/dl.c: Likewise.
54416 * kern/i386/pc/init.c: Likewise.
54417 * kern/i386/pc/lzo1x.S: Likewise.
54418 * kern/i386/pc/startup.S: Likewise.
54419 * loader/i386/pc/chainloader.c: Likewise.
54420 * loader/i386/pc/linux.c: Likewise.
54421 * loader/i386/pc/multiboot.c: Likewise.
54422 * normal/cmdline.c: Likewise.
54423 * normal/command.c: Likewise.
54424 * normal/main.c: Likewise.
54425 * normal/menu.c: Likewise.
54426 * normal/i386/setjmp.S: Likewise.
54427 * term/i386/pc/console.c: Likewise.
54428 * term/i386/pc/vga.c: Likewise.
54429 * util/console.c: Likewise.
54430 * util/genmoddep.c: Likewise.
54431 * util/misc.c: Likewise.
54432 * util/pupa-emu.c: Likewise.
54433 * util/resolve.c: Likewise.
54434 * util/unifont2pff.rb: Likewise.
54435 * util/i386/pc/biosdisk.c: Likewise.
54436 * util/i386/pc/getroot.c: Likewise.
54437 * util/i386/pc/pupa-mkimage.c: Likewise.
54438 * util/i386/pc/pupa-setup.c: Likewise.
54439
54440 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
54441
54442 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
54443 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
54444 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
54445 reading and reset it after reading.
54446 (pupa_ext2_close): Return PUPA_ERR_NONE.
54447
54448 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
54449 Correct value.
54450 (struct linux_kernel_header): Add kernel_version and
54451 initrd_addr_max.
54452 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
54453 pupa_file_read succeeds.
54454 (pupa_rescue_cmd_initrd): Implement.
54455
54456 2003-12-03 Marco Gerards <metgerards@student.han.nl>
54457
54458 * fs/ext2.c (pupa_ext2_label): New function.
54459 (pupa_ext2_fs): Added label.
54460 * fs/fat.c (pupa_fat_label): New function.
54461 (pupa_fat_fs): Added label.
54462 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
54463
54464 * kern/misc.c (pupa_strndup): New function.
54465 * include/pupa/misc.h (pupa_strndup): New prototype.
54466
54467 * include/pupa/normal.h: Include <pupa/err.h>.
54468 (pupa_set_history): New prototype.
54469 (pupa_iterate_commands): New prototype.
54470 * normal/cmdline.c: Include <pupa/machine/partition.h>,
54471 <pupa/disk.h>, <pupa/file.h>.
54472 (hist_size): New variable.
54473 (hist_lines): Likewise.
54474 (hist_end): Likewise.
54475 (hist_used): Likewise.
54476 (pupa_set_history): New function.
54477 (pupa_history_get): Likewise.
54478 (pupa_history_add): Likewise.
54479 (pupa_history_replace): Likewise.
54480 (pupa_tab_complete): Likewise.
54481 (pupa_cmdline_run): Added tab completion and history buffer. Tab
54482 completion shows partitionnames while completing partitions, this
54483 feature was suggested by Jeff Bailey.
54484 * normal/command.c (pupa_iterate_commands): New function.
54485 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
54486 (pupa_normal_init): Initialize history buffer.
54487 (PUPA_MOD_INIT): Likewise.
54488 (pupa_normal_fini): Free the history buffer.
54489 (PUPA_MOD_FINI): Likewise.
54490
54491 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
54492 key.
54493
54494 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
54495 * configure.ac [i386]: Check for regparam bug.
54496 (NESTED_FUNC_ATTR) [! i386]: Defined.
54497
54498 2003-11-17 Marco Gerards <metgerards@student.han.nl>
54499
54500 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
54501 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
54502 (pupa_emu_SOURCES): New variable.
54503 (pupa_emu_LDFLAGS): Likewise.
54504 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
54505 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
54506 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
54507 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54508 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
54509 (pupa_jmp_buf): New typedef.
54510 (pupa_setjmp) [PUPA_UTIL]: New macro.
54511 (pupa_longjmp) [PUPA_UTIL]: Likewise.
54512 * include/pupa/term.h (struct pupa_term): New member `refresh'.
54513 (pupa_refresh): New prototype.
54514 * include/pupa/util/getroot.h: New file.
54515 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
54516 it.
54517 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
54518 (pupa_rescue_cmd_cat): Likewise.
54519 (pupa_rescue_cmd_ls): Likewise.
54520 (pupa_rescue_cmd_testload): Likewise.
54521 (pupa_rescue_cmd_lsmod): Likewise.
54522 * normal/cmdline.c (pupa_cmdline_get): Likewise.
54523 * normal/menu.c (run_menu): Likewise.
54524 * kern/term.c (pupa_cls): Likewise.
54525 (pupa_refresh): New function.
54526 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
54527 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54528 * util/console.c: New file.
54529
54530 * util/i386/pc/getroot.c: New file.
54531 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
54532 (pupa_putchar): New function.
54533 (pupa_refresh): Likewise.
54534 (xgetcwd): Function moved to ...
54535 (strip_extra_slashes): Likewise.
54536 (get_prefix): Likewise.
54537 * util/i386/pc/getroot.c: ... here.
54538 (find_root_device): Function moved and renamed to...
54539 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
54540 Changed all callers.
54541 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
54542 and renamed to...
54543 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
54544 Changed all callers.
54545 * util/misc.c (pupa_memalign): New function.
54546 (pupa_mm_init_region): Likewise.
54547 (pupa_register_exported_symbols): Likewise.
54548 (pupa_putchar): Function removed.
54549 * util/pupa-emu.c: New file.
54550
54551 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
54552
54553 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
54554 (_multiboot_mod_SOURCES): New variable.
54555 (_multiboot_mod_CFLAGS): Likewise.
54556 * loader/i386/pc/multiboot.c: New file.
54557 * include/pupa/i386/pc/multiboot.h: Likewise.
54558 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
54559 (pupa_multiboot_real_boot): New function.
54560 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
54561 (pupa_multiboot_real_boot): New prototype.
54562 (pupa_rescue_cmd_multiboot): Likewise
54563 (pupa_rescue_cmd_module): Likewise.
54564
54565 * kern/loader.c (pupa_loader_set): Continue when
54566 pupa_loader_unload_func() fails.
54567 (pupa_loader_unset): New function.
54568 * include/pupa/loader.h (pupa_loader_unset): New prototype.
54569
54570 * kern/misc.c (pupa_stpcpy): New function.
54571 * include/pupa/misc.h (pupa_stpcpy): New prototype.
54572
54573 2003-11-12 Marco Gerards <metgerards@student.han.nl>
54574
54575 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
54576 for available extensions.
54577
54578 * include/pupa/i386/pc/time.h: New file.
54579 * kern/disk.c: Include <pupa/machine/time.h>.
54580 (PUPA_CACHE_TIMEOUT): New macro.
54581 (pupa_last_time): New variable.
54582 (pupa_disk_open): Flush the cache when there was a timeout.
54583 (pupa_disk_close): Reset the timer.
54584 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
54585 pupa_currticks.
54586 * util/misc.c: Include <sys/times.h>
54587 (pupa_get_rtc): New function.
54588
54589 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
54590
54591 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
54592 as blocks.
54593 (pupa_ext2_get_file_block): Use blocks member.
54594
54595 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
54596 first block. Return -1 instead of pupa_errno on error.
54597
54598 2003-10-27 Marco Gerards <metgerards@student.han.nl>
54599
54600 * README: In the pupa-mkimage example use _chain instead of chain
54601 and ext2 instead of fat.
54602 * TODO: Replace ext2fs with jfs as an example. Add an item for
54603 adding journal playback for ext2fs.
54604 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
54605 (pkgdata_MODULES): Added ext2.mod.
54606 (ext2_mod_SOURCES): New variable.
54607 (ext2_mod_CFLAGS): Likewise.
54608 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
54609 * include/pupa/misc.h (pupa_strncpy): New prototype.
54610 (pupa_strcat): Likewise.
54611 (pupa_strncmp): Likewise.
54612 * kern/misc.c (pupa_strcat): Enable function.
54613 (pupa_strncpy): New function.
54614 (pupa_strncmp): Likewise.
54615 * fs/ext2.c: New file.
54616
54617 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
54618 when the read failed before retrying.
54619 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
54620 (_FILE_OFFSET_BITS): Likewise.
54621 * configure.ac: Added AC_SYS_LARGEFILE.
54622
54623 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54624
54625 * genmk.rb (PModule#rule): Make sure to get only symbol names
54626 from the output of nm.
54627 Reported by Robert Millan <rmh.grub@aybabtu.com>.
54628
54629 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54630
54631 I forgot to check in these changes for a long time. This adds
54632 incomplete support for VGA console, and this is still very
54633 buggy. Also, a lot of consideration is required for I18N,
54634 UNICODE, and VGA font issues. Therefore, assume that this is
54635 such that "better than nothing".
54636
54637 * font/manager.c: New file.
54638 * include/pupa/font.h: Likewise.
54639 * include/pupa/i386/pc/vga.h: Likewise.
54640 * term/i386/pc/vga.c: Likewise.
54641 * util/unifont2pff.rb: Likewise.
54642
54643 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
54644 (pkgdata_MODULES): Added vga.mod and font.mod.
54645 (vga_mod_SOURCES): New variables.
54646 (vga_mod_CFLAGS): Likewise.
54647 (font_mod_SOURCES): Likewise.
54648 (font_mod_CFLAGS): Likewise.
54649
54650 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
54651
54652 * include/pupa/term.h: Include pupa/err.h.
54653 (struct pupa_term): Added init and fini.
54654 Changed the argument of putchar to pupa_uint32_t.
54655
54656 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
54657 (pupa_console_real_putchar): New prototype.
54658 (pupa_console_putchar): Removed.
54659 (pupa_console_checkkey): Exported.
54660 (pupa_console_getkey): Likewise.
54661
54662 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
54663 characters.
54664
54665 * kern/term.c (pupa_term_set_current): Rewritten.
54666 (pupa_putchar): Likewise.
54667 (pupa_putcode): New function.
54668
54669 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
54670 (pupa_console_real_putchar): ... this.
54671 (pupa_vga_set_mode): New function.
54672 (pupa_vga_get_font): Likewise.
54673
54674 * normal/command.c: Include pupa/term.h.
54675 (terminal_command): New function.
54676 (pupa_command_init): Register the command "terminal".
54677
54678 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
54679 (DISP_UP): Likewise.
54680 (DISP_RIGHT): Likewise.
54681 (DISP_DOWN): Likewise.
54682 (DISP_HLINE): Likewise.
54683 (DISP_VLINE): Likewise.
54684 (DISP_UL): Likewise.
54685 (DISP_UR): Likewise.
54686 (DISP_LL): Likewise.
54687 (DISP_LR): Likewise.
54688
54689 * term/i386/pc/console.c (pupa_console_putchar): New function.
54690
54691 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
54692
54693 * util/resolve.c (pupa_util_resolve_dependencies): BUG
54694 FIX. Reverse the path_list.
54695
54696 * include/pupa/normal.h: Export pupa_register_command and
54697 pupa_unregister_command.
54698
54699 * hello/hello.c (pupa_cmd_hello): New module.
54700 * conf/i386-pc.rmk: Added hello.mod.
54701
54702 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
54703
54704 * kern/i386/pc/lzo1x.S: New file.
54705
54706 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
54707 (compress_kernel): New variable.
54708 (generate_image): Heavily modified to support compressing a
54709 large part of the core image.
54710
54711 * util/misc.c (pupa_util_read_image): Fix a file descriptor
54712 leak.
54713 (pupa_util_load_image): New function.
54714
54715 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
54716 (pupa_compressed_size): New variable.
54717 (codestart): Enable Gate A20 here.
54718 Decompress the compressed part of the core image.
54719 Rearrange the code to put functions and variables which are
54720 required for initialization in the non-compressed part.
54721 Include lzo1x.S.
54722
54723 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
54724 here.
54725
54726 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
54727
54728 * include/pupa/i386/pc/kernel.h
54729 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
54730 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
54731 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
54732 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
54733 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
54734
54735 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
54736
54737 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
54738 (Utility#rule): Likewise.
54739
54740 * configure.ac: Check if LZO is available.
54741
54742 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
54743
54744 * include/pupa/normal.h: New file.
54745 * include/pupa/setjmp.h: Likewise.
54746 * include/pupa/i386/setjmp.h: Likewise.
54747 * normal/cmdline.c: Likewise.
54748 * normal/command.c: Likewise.
54749 * normal/main.c: Likewise.
54750 * normal/menu.c: Likewise.
54751 * normal/i386/setjmp.S: Likewise.
54752
54753 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
54754 (pupa_rescue_cmd_initrd): Likewise.
54755
54756 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
54757 Likewise.
54758
54759 * kern/i386/pc/startup.S (translation_table): New variable.
54760 (translate_keycode): New function.
54761 (pupa_console_getkey): Call translate_keycode.
54762
54763 * kern/rescue.c (attempt_normal_mode): New function.
54764 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
54765 it failed, print a message.
54766
54767 * kern/mm.c (pupa_real_malloc): Print more information when a
54768 free magic is broken.
54769 (pupa_free): If the first free header is not free actually, set
54770 it to P.
54771
54772 * kern/main.c (pupa_load_normal_mode): Just load the module
54773 "normal".
54774 (pupa_main): Don't print the message
54775 "Entering into rescue mode..." here.
54776
54777 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
54778 Declared.
54779 (pupa_rescue_cmd_initrd): Likewise.
54780 (pupa_rescue_cmd_initrd): Likewise.
54781
54782 * include/pupa/symbol.h (FUNCTION): Specify the type.
54783 (VARIABLE): Likewise.
54784
54785 * include/pupa/err.h (pupa_err_t): Added
54786 PUPA_ERR_UNKNOWN_COMMAND.
54787
54788 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
54789 (pupa_dl_get_prefix): Likewise.
54790
54791 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
54792 Added _chain.mod and _linux.mod instead of chain.mod and
54793 linux.mod.
54794 (chain_mod_SOURCES): Renamed to ...
54795 (_chain_mod_SOURCES): ... this.
54796 (chain_mod_CFLAGS): Renamed to ...
54797 (_chain_mod_CFLAGS): ... this.
54798 (linux_mod_SOURCES): Renamed to ...
54799 (_linux_mod_SOURCES): ... this.
54800 (linux_mod_CFLAGS): Renamed to ...
54801 (_linux_mod_CFLAGS): ... this.
54802 (normal_mod_SOURCES): New variable.
54803 (normal_mod_CFLAGS): Likewise.
54804 (normal_mod_ASFLAGS): Likewise.
54805
54806 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
54807
54808 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
54809 possible.
54810
54811 * kern/dl.c (pupa_dl_ref): Refer depending modules
54812 recursively.
54813 (pupa_dl_unref): Unrefer depending modules recursively.
54814 Don't call pupa_dl_unload implicitly, because PUPA can crash if
54815 a module is unloaded before one depending on that module is
54816 unloaded.
54817 (pupa_dl_unload): Unload depending modules explicitly,
54818 if possible.
54819
54820 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
54821
54822 * include/pupa/i386/pc/linux.h: New file.
54823 * loader/i386/pc/linux.c: Likewise.
54824
54825 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
54826 Removed.
54827 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
54828 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
54829 of PUPA_CHAINLOADER_BOOT_SECTOR.
54830
54831 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
54832 (pupa_linux_prot_size): New variable.
54833 (pupa_linux_tmp_addr): Likewise.
54834 (pupa_linux_real_addr): Likewise.
54835 (pupa_linux_boot_zimage): New function.
54836 (pupa_linux_boot_bzimage): Likewise.
54837
54838 * kern/i386/pc/init.c (struct mem_region): New structure.
54839 (MAX_REGIONS): New macro.
54840 (mem_regions): New variable.
54841 (num_regions): Likewise.
54842 (pupa_os_area_addr): Likewise.
54843 (pupa_os_area_size): Likewise.
54844 (pupa_lower_mem): Likewise.
54845 (pupa_upper_mem): Likewise.
54846 (add_mem_region): New function.
54847 (compact_mem_regions): Likewise.
54848 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
54849 the size of the conventional memory and that of so-called upper
54850 memory (before the first memory hole).
54851 Instead of adding each found region to free memory, use
54852 add_mem_region and add them after removing overlaps.
54853 Also, add only 1/4 of the upper memory to free memory. The rest
54854 is used for loading OS images. Maybe this is ad hoc, but this
54855 makes it much easier to relocate OS images when booting.
54856
54857 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
54858 (pupa_enter_rescue_mode): Don't register initrd and module.
54859
54860 * kern/mm.c: Include pupa/dl.h.
54861
54862 * kern/main.c: Include pupa/file.h and pupa/device.h.
54863
54864 * kern/loader.c (pupa_loader_load_module_func): Removed.
54865 (pupa_loader_load_module): Likewise.
54866
54867 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
54868 ``.o''.
54869
54870 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
54871 (pupa_linux_tmp_addr): Likewise.
54872 (pupa_linux_real_addr): Likewise.
54873 (pupa_linux_boot_zimage): Likewise.
54874 (pupa_linux_boot_bzimage): Likewise.
54875
54876 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
54877 (pupa_upper_mem): Likewise.
54878 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
54879 module is too dangerous.
54880
54881 * include/pupa/loader.h (pupa_os_area_addr): Declared.
54882 (pupa_os_area_size): Likewise.
54883 (pupa_loader_set): Remove the first argument. Loader doesn't
54884 manage modules or initrd any longer.
54885 (pupa_loader_load_module): Removed.
54886
54887 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
54888 (linux_mod_SOURCES): New variable.
54889 (linux_mod_CFLAGS): Likewise.
54890
54891 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
54892
54893 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
54894 the length of a blocklist correctly.
54895
54896 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
54897 Use ioctl only if the OS file is a block device.
54898 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
54899 not very useful for normal files.
54900
54901 * kern/main.c (pupa_set_root_dev): New function.
54902 (pupa_load_normal_mode): Likewise.
54903 (pupa_main): Call those above.
54904
54905 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
54906 pupa_uint16_t.
54907
54908 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
54909
54910 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
54911
54912 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
54913 (setup): Configure the installed partition information and the
54914 dl prefix.
54915
54916 * loader/i386/pc/chainloader.c (my_mod): New variable.
54917 (pupa_chainloader_unload): New function.
54918 (pupa_rescue_cmd_chainloader): Refer itself.
54919 (PUPA_MOD_INIT): Save its own module in MY_MOD.
54920
54921 * kern/i386/pc/startup.S (install_partition): Removed.
54922 (version_string): Likewise.
54923 (config_file): Likewise.
54924 (pupa_install_dos_part): New variable.
54925 (pupa_install_bsd_part): Likewise.
54926 (pupa_prefix): Likewise.
54927 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
54928
54929 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
54930 and pupa/misc.h.
54931 (make_install_device): New function.
54932 (pupa_machine_init): Set the dl prefix.
54933
54934 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
54935 (buf): Renamed to ...
54936 (linebuf): ... this.
54937 (pupa_rescue_cmd_prefix): New function.
54938 (pupa_rescue_cmd_insmod): Likewise.
54939 (pupa_rescue_cmd_rmmod): Likewise.
54940 (pupa_rescue_cmd_lsmod): Likewise.
54941 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
54942 rmmod and lsmod.
54943
54944 * kern/mm.c (pupa_memalign): If failed even after invalidating
54945 disk caches, unload unneeded modules and retry.
54946
54947 * kern/misc.c (pupa_memmove): New function.
54948 (pupa_memcpy): Removed.
54949 (pupa_strcpy): New function.
54950 (pupa_itoa): Made static.
54951
54952 * kern/dl.c (pupa_dl_iterate): New function.
54953 (pupa_dl_ref): Likewise.
54954 (pupa_dl_unref): Likewise.
54955 (pupa_dl_unload): Return if succeeded or not.
54956 (pupa_dl_unload_unneeded): New function.
54957 (pupa_dl_unload_all): Likewise.
54958 (pupa_dl_init): Renamed to ...
54959 (pupa_dl_set_prefix): ... this.
54960 (pupa_dl_get_prefix): New function.
54961
54962 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
54963 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
54964 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
54965 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
54966 (pupa_install_dos_part): Declared.
54967 (pupa_install_bsd_part): Likewise.
54968 (pupa_prefix): Likewise.
54969 (pupa_boot_drive): Likewise.
54970
54971 * include/pupa/types.h: Fix a typo.
54972
54973 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
54974 pupa_memmove.
54975 (pupa_memmove): Declared.
54976 (pupa_strcpy): Likewise.
54977
54978 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
54979 pupa_mod_init takes one argument, its own module.
54980 (pupa_dl_unload_unneeded): Declared.
54981 (pupa_dl_unload_all): Likewise.
54982 (pupa_dl_ref): Likewise.
54983 (pupa_dl_unref): Likewise.
54984 (pupa_dl_iterate): Likewise.
54985 (pupa_dl_init): Renamed to ...
54986 (pupa_dl_set_prefix): ... this.
54987 (pupa_dl_get_prefix): Declared.
54988
54989 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
54990 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
54991 unloaded.
54992 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
54993 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
54994
54995 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
54996 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
54997
54998 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
54999
55000 * util/i386/pc/pupa-setup.c (setup): Define the internal
55001 function find_first_partition_start at the top level, because GCC
55002 3.0.x cannot compile internal functions in deeper scopes
55003 correctly.
55004 (find_root_device): Use lstat instead of stat.
55005 Don't follow symbolic links.
55006 Fix the path-constructing code.
55007
55008 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
55009 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
55010 by a BLKGETSIZE ioctl first, because block devices don't fill
55011 the member st_mode of the structure stat on Linux.
55012 [__linux__] (linux_find_partition): Use a temporary buffer
55013 REAL_DEV for the working space. Copy it to DEV before returning.
55014 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
55015 buffer cache consistent.
55016 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
55017 strncmp. The previous value was merely wrong.
55018 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
55019
55020 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
55021 FAT size is 12. The previous value was merely wrong.
55022
55023 * kern/main.c (pupa_main): Don't split the starting message from
55024 newlines.
55025
55026 * kern/term.c (pupa_putchar): Put CR after LF instead of before
55027 LF, because BIOS goes crazy about character attributes in this
55028 case.
55029
55030 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55031
55032 * include/i386/pc/util/biosdisk.h: New file.
55033 * util/i386/pc/biosdisk.c: Likewise.
55034 * util/i386/pc/pupa-setup.c: Likewise.
55035
55036 * Makefile.in (INCLUDE_DISTFILES): Added
55037 include/pupa/i386/pc/util/biosdisk.h.
55038 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
55039 directory util/i386/pc.
55040 (install-local): Added a rule for sbin_UTILITIES.
55041 (uninstall): Likewise.
55042
55043 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
55044
55045 * util/misc.c (xrealloc): New function.
55046 (pupa_malloc): Likewise.
55047 (pupa_free): Likewise.
55048 (pupa_realloc): Likewise.
55049 (pupa_stop): Likewise.
55050 (pupa_putchar): Likewise.
55051
55052 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
55053
55054 * include/pupa/util/misc.h (xrealloc): Declared.
55055
55056 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
55057 macro.
55058 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
55059 (PUPA_BOOT_MACHINE_BPB_END): ... this.
55060
55061 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
55062 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55063
55064 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
55065 way should be implemented.
55066 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55067
55068 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
55069 the size of NAME for safety.
55070 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
55071 0x88.
55072
55073 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
55074 (pupa_setup_SOURCES): Likewise.
55075
55076 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
55077
55078 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55079
55080 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
55081 bunch of pushl's from pusha, because this destroys the return
55082 value.
55083
55084 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55085
55086 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
55087 This means that any missing prototypes could be fatal. Also, you
55088 must take care when writing assembly code. See the comments at
55089 the beginning of startup.S, for more details.
55090
55091 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
55092 compilation mechanism.
55093 (pupa_chainloader_real_boot): Likewise.
55094 (pupa_biosdisk_rw_int13_extensions): Likewise.
55095 (pupa_biosdisk_rw_standard): Likewise.
55096 (pupa_biosdisk_check_int13_extensions): Likewise.
55097 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
55098 (pupa_biosdisk_get_diskinfo_standard): Likewise.
55099 (pupa_get_memsize): Likewise.
55100 (pupa_get_mmap_entry): Likewise.
55101 (pupa_console_putchar): Likewise.
55102 (pupa_console_setcursor): Likewise.
55103 (pupa_getrtsecs): Use pushl instead of push.
55104
55105 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
55106 memory instead of the stack for a mmap entry, because some
55107 BIOSes may ignore the maximum size and overflow.
55108
55109 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
55110
55111 * genmk.rb (PModule#rule): Compile automatically generated
55112 sources with module-specific CFLAGS as well as other sources.
55113
55114 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55115
55116 * configure.ac: Check ld.
55117 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
55118 respectively, before checking endianness and sizes.
55119
55120 * Makefile.in (LD): New variable.
55121
55122 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55123
55124 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
55125
55126 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55127
55128 * Changelog: New file.
55129